wp/wp-content/themes/twentyfourteen/index.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    17 get_header(); ?>
    17 get_header(); ?>
    18 
    18 
    19 <div id="main-content" class="main-content">
    19 <div id="main-content" class="main-content">
    20 
    20 
    21 <?php
    21 <?php
    22 	if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    22 if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    23 		// Include the featured content template.
    23 	// Include the featured content template.
    24 		get_template_part( 'featured-content' );
    24 	get_template_part( 'featured-content' );
    25 	}
    25 }
    26 ?>
    26 ?>
    27 
    27 
    28 	<div id="primary" class="content-area">
    28 	<div id="primary" class="content-area">
    29 		<div id="content" class="site-content" role="main">
    29 		<div id="content" class="site-content" role="main">
    30 
    30 
    31 		<?php
    31 		<?php
    32 			if ( have_posts() ) :
    32 		if ( have_posts() ) :
    33 				// Start the Loop.
    33 			// Start the Loop.
    34 				while ( have_posts() ) : the_post();
    34 			while ( have_posts() ) :
       
    35 				the_post();
    35 
    36 
    36 					/*
    37 				/*
    37 					 * Include the post format-specific template for the content. If you want to
    38 				 * Include the post format-specific template for the content. If you want to
    38 					 * use this in a child theme, then include a file called called content-___.php
    39 				 * use this in a child theme, then include a file called content-___.php
    39 					 * (where ___ is the post format) and that will be used instead.
    40 				 * (where ___ is the post format) and that will be used instead.
    40 					 */
    41 				 */
    41 					get_template_part( 'content', get_post_format() );
    42 				get_template_part( 'content', get_post_format() );
    42 
    43 
    43 				endwhile;
    44 				endwhile;
    44 				// Previous/next post navigation.
    45 			// Previous/next post navigation.
    45 				twentyfourteen_paging_nav();
    46 			twentyfourteen_paging_nav();
    46 
    47 
    47 			else :
    48 			else :
    48 				// If no content, include the "No posts found" template.
    49 				// If no content, include the "No posts found" template.
    49 				get_template_part( 'content', 'none' );
    50 				get_template_part( 'content', 'none' );
    50 
    51