page.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php get_header();?>
  2. <div id="content" class="site-content">
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-lg-3">
  6. <div class="hp-sidenav navbar sticky-md-top pt-sm-3" role="navigation">
  7. <div class="navbars-collapse">
  8. <div class="flex-column list-group-flush">
  9. <li class="<?php if ( is_page() && !$post->post_parent ) echo 'current_nav-item'; ?> nav-item list-group-item py-1 p-0">
  10. <a href="<?php echo get_permalink( $post->post_parent ); ?>" >
  11. <?php echo get_the_title( $post->post_parent ); ?>
  12. </a>
  13. </li>
  14. <?php echo boot23_list_child_pages(); ?>
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. <section id="primary" class="content-area col-lg-9 col-md-12">
  20. <div id="main" class="site-main" role="main">
  21. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  22. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  23. <header class="entry-header">
  24. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  25. </header>
  26. <div class="post-thumbnail">
  27. <?php the_post_thumbnail(); ?>
  28. </div>
  29. <div class="entry-content">
  30. <?php the_content(); ?>
  31. </div>
  32. <div class="meta text-end mb-5">
  33. <small><i class="bi-alarm"></i> <?php the_modified_time('Y/m/d'); edit_post_link( __( 'edit', 'textdomain' ), ' ( ', ' )' );?></small>
  34. </div>
  35. </article>
  36. <?php endwhile; ?>
  37. </div>
  38. </section>
  39. </div>
  40. </div>
  41. </div>
  42. <?php get_footer();?>