1
0

single-image.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Template part for displaying posts.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Akina
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <?php if(should_show_title()) { ?>
  12. <div class="Extendfull">
  13. <?php the_post_thumbnail('full'); ?>
  14. <header class="entry-header">
  15. <h1 class="entry-title"><?php the_title(); ?></h1>
  16. <p class="entry-census"><?php echo poi_time_since(strtotime($post->post_date)); ?>&nbsp;&nbsp;<?php echo get_post_views(get_the_ID()).' '._n('View','Views',get_post_views(get_the_ID()),'sakurairo')/*次阅读*/?></p>
  17. <hr>
  18. </header>
  19. </div>
  20. <?php } ?>
  21. <!-- .entry-header -->
  22. <div class="entry-content">
  23. <?php the_content(); ?>
  24. <?php
  25. wp_link_pages( array(
  26. 'before' => '<div class="page-links">' . __( 'Pages:', 'ondemand' ),
  27. 'after' => '</div>',
  28. ) );
  29. ?>
  30. </div><!-- .entry-content -->
  31. <?php the_reward(); ?>
  32. <footer class="post-footer">
  33. <div class="post-tags">
  34. <?php if ( has_tag() ) { echo '<i class="iconfont icon-tags"></i> '; the_tags('', ' ', ' ');}?>
  35. </div>
  36. </footer><!-- .entry-footer -->
  37. </article><!-- #post-## -->