single.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php get_header(); ?>
  2. <div id="content" class="site-content">
  3. <div class="container">
  4. <div class="row">
  5. <section id="primary" class="content-area col-sm-12 col-md-12 col-lg-10 offset-lg-1">
  6. <div id="main" class="site-main" role="main">
  7. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <header class="entry-header">
  10. <?php the_title( '<h1 class="entry-title">', '</h1>' );?>
  11. <div class="entry-meta">
  12. <time datetime="<?php echo get_the_date('c'); ?>" itemprop="datePublished"><i class="bi bi-calendar-date mr-1"></i> <?php echo get_the_date(); ?></time>
  13. </div>
  14. </header>
  15. <div class="entry-content">
  16. <?php the_content();?>
  17. </div>
  18. <footer class="entry-footer">
  19. <div class="meta text-end mb-5">
  20. <small><i class="bi-alarm"></i> <?php the_modified_time('Y/m/d'); edit_post_link( __( 'edit', 'textdomain' ), ' ( ', ' )' );?></small>
  21. </div>
  22. </footer>
  23. </article>
  24. <?php
  25. the_post_navigation( array(
  26. 'prev_text' => __( ' %title' ),
  27. 'next_text' => __( ' %title' )
  28. ));
  29. ?>
  30. <?php endwhile;?>
  31. </div>
  32. </section>
  33. <!-- get_sidebar(); -->
  34. </div>
  35. </div>
  36. </div>
  37. <?php get_footer(); ?>