-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·39 lines (36 loc) · 1.3 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php Nuclear::render_template($header_templates); ?>
<?php if (have_posts()): ?>
<h2>Latest Posts</h2>
<ol class="list-unstyled">
<?php while (have_posts()) : the_post(); ?>
<li>
<article id="post-<?php the_ID(); ?>" <?php post_class('cf entry'); ?> role="article">
<header class="entry-header">
<h1 class="entry-title single-title">
<a href="<?php esc_url(the_permalink()); ?>" title="Permalink to <?php the_title(); ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</h1>
<time datetime="<?php the_time('Y-m-d'); ?>" pubdate>
<?php the_date(); ?> <?php the_time(); ?>
</time>
<?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?>
</header>
<section class="cf entry-content">
<?php the_content(); ?>
<?php wp_link_pages([
'before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:') . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
]); ?>
</section>
</article>
</li>
<?php endwhile; ?>
</ol>
<?php else: ?>
<h2>No posts to display</h2>
<?php endif; ?>
<?php echo Nuclear::pagination(); ?>
<?php Nuclear::render_template($footer_templates); ?>