wp/wp-content/themes/twentythirteen/page.php
changeset 7 cf61fcea0001
parent 0 d970ebf37754
child 10 372f2766ea20
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    15 
    15 
    16 	<div id="primary" class="content-area">
    16 	<div id="primary" class="content-area">
    17 		<div id="content" class="site-content" role="main">
    17 		<div id="content" class="site-content" role="main">
    18 
    18 
    19 			<?php /* The loop */ ?>
    19 			<?php /* The loop */ ?>
    20 			<?php while ( have_posts() ) : the_post(); ?>
    20 			<?php
       
    21 			while ( have_posts() ) :
       
    22 				the_post();
       
    23 ?>
    21 
    24 
    22 				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    25 				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    23 					<header class="entry-header">
    26 					<header class="entry-header">
    24 						<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
    27 						<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
    25 						<div class="entry-thumbnail">
    28 						<div class="entry-thumbnail">
    30 						<h1 class="entry-title"><?php the_title(); ?></h1>
    33 						<h1 class="entry-title"><?php the_title(); ?></h1>
    31 					</header><!-- .entry-header -->
    34 					</header><!-- .entry-header -->
    32 
    35 
    33 					<div class="entry-content">
    36 					<div class="entry-content">
    34 						<?php the_content(); ?>
    37 						<?php the_content(); ?>
    35 						<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
    38 						<?php
       
    39 						wp_link_pages(
       
    40 							array(
       
    41 								'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
       
    42 								'after'       => '</div>',
       
    43 								'link_before' => '<span>',
       
    44 								'link_after'  => '</span>',
       
    45 							)
       
    46 						);
       
    47 ?>
    36 					</div><!-- .entry-content -->
    48 					</div><!-- .entry-content -->
    37 
    49 
    38 					<footer class="entry-meta">
    50 					<footer class="entry-meta">
    39 						<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
    51 						<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
    40 					</footer><!-- .entry-meta -->
    52 					</footer><!-- .entry-meta -->