not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 regels
1.5 KiB

  1. <?php
  2. /**
  3. * The template for displaying all single posts and attachments
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Fifteen
  7. * @since Twenty Fifteen 1.0
  8. */
  9. get_header(); ?>
  10. <div id="primary" class="content-area">
  11. <main id="main" class="site-main" role="main">
  12. <article class="post">
  13. <?php
  14. // Start the loop.
  15. while ( have_posts() ) : the_post();
  16. /*
  17. * Include the post format-specific template for the content. If you want to
  18. * use this in a child theme, then include a file called called content-___.php
  19. * (where ___ is the post format) and that will be used instead.
  20. */
  21. get_template_part( 'content', 'site' );
  22. // If comments are open or we have at least one comment, load up the comment template.
  23. // if ( comments_open() || get_comments_number() ) :
  24. // comments_template();
  25. // endif;
  26. // Previous/next post navigation.
  27. the_post_navigation( array(
  28. 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
  29. '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
  30. '<span class="post-title">%title</span>',
  31. 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
  32. '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
  33. '<span class="post-title">%title</span>',
  34. ) );
  35. // End the loop.
  36. endwhile;
  37. ?>
  38. </article>
  39. </main><!-- .site-main -->
  40. </div><!-- .content-area -->
  41. <?php get_footer(); ?>