Advertisement
Guest User

page.php

a guest
Apr 21st, 2020
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying all pages
  4. *
  5. * This is the template that displays all pages by default.
  6. * Please note that this is the WordPress construct of pages and that other
  7. * 'pages' on your WordPress site will use a different template.
  8. *
  9. */
  10.  
  11. get_header(); ?>
  12.  
  13.  
  14. <?php
  15.  
  16. // Get content width and sidebar position
  17. $content_class = woodmart_get_content_class();
  18.  
  19. ?>
  20.  
  21. <div class="site-content <?php echo esc_attr( $content_class ); ?>" role="main">
  22.  
  23. <?php /* The loop */ ?>
  24. <?php while ( have_posts() ) : the_post(); ?>
  25. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  26.  
  27. <div class="entry-content">
  28. <?php the_content(); ?>
  29. <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'woodmart' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
  30. </div>
  31.  
  32. <?php woodmart_entry_meta(); ?>
  33.  
  34. </article><!-- #post -->
  35.  
  36. <?php
  37. // If comments are open or we have at least one comment, load up the comment template.
  38. if ( woodmart_get_opt('page_comments') && (comments_open() || get_comments_number()) ) :
  39. comments_template();
  40. endif;
  41. ?>
  42.  
  43. <?php endwhile; ?>
  44.  
  45. </div><!-- .site-content -->
  46.  
  47. <?php get_sidebar(); ?>
  48.  
  49. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement