Advertisement
Guest User

page.php

a guest
Apr 25th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.44 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
  7.  * other 'pages' on your WordPress site will use a different template.
  8.  *
  9.  *
  10.  *
  11.  */
  12.  
  13. get_header(); ?>
  14. <div class="container">
  15.     <div class="content-inner">
  16.         <div class="row">
  17.             <div>
  18.                 <div id="primary" class="content-area">
  19.                     <main id="main" class="site-main" role="main">
  20.                         <?php while ( have_posts() ) : the_post(); ?>
  21.                             <header class="page-header">
  22.                                 <?php the_title( '<h1 class="page-title">', '</h1>' ); ?>
  23.                             </header>
  24.  
  25.                             <div class="page-content">
  26.                                 <?php the_content(); ?>
  27.                                 <?php
  28.                                     wp_link_pages( array(
  29.                                         'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'dw' ) . '</span>',
  30.                                         'after'       => '</div>',
  31.                                         'link_before' => '<span>',
  32.                                         'link_after'  => '</span>',
  33.                                         'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'dw' ) . ' </span>%',
  34.                                         'separator'   => '<span class="screen-reader-text">, </span>',
  35.                                     ) );
  36.                                 ?>
  37.                             </div>
  38.  
  39.                             <?php
  40.                             if ( comments_open() || get_comments_number() ) :
  41.                                 comments_template();
  42.                             endif;
  43.                             ?>
  44.                         <?php endwhile; ?>
  45.                     </main>
  46.                 </div>
  47.             </div>
  48.         </div>
  49.     </div>
  50. </div>
  51. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement