34 lines
1.2 KiB
PHP
34 lines
1.2 KiB
PHP
<?php get_header(); ?>
|
|
|
|
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
<article role="main" class="primary-content" id="post-<?php the_ID(); ?>">
|
|
<header>
|
|
<h1><?php the_title(); ?></h1>
|
|
</header>
|
|
|
|
<?php the_post_thumbnail('full');?>
|
|
|
|
<?php the_content(); ?>
|
|
|
|
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:' ), 'after' => '</div>' ) ); ?>
|
|
|
|
<footer class="entry-meta">
|
|
<p>Posted <strong><?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago'; ?></strong> on <time datetime="<?php the_time('l, F jS, Y') ?>" pubdate><?php the_time('l, F jS, Y') ?></time> · <a href="<?php the_permalink(); ?>">Permalink</a></p>
|
|
</footer>
|
|
|
|
<?php comments_template( '', true ); ?>
|
|
|
|
<ul class="navigation">
|
|
<li class="older">
|
|
<?php previous_post_link( '%link', '← %title' ); ?>
|
|
</li>
|
|
<li class="newer">
|
|
<?php next_post_link( '%link', '%title →' ); ?>
|
|
</li>
|
|
</ul>
|
|
|
|
<?php endwhile; // end of the loop. ?>
|
|
</article>
|
|
|
|
<?php get_footer(); ?>
|