Changeset 30394 for trunk/src/wp-content/themes/twentyfifteen/index.php
- Timestamp:
- 11/19/2014 08:27:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/index.php
r30316 r30394 1 1 <?php 2 2 /** 3 * The main template file .3 * The main template file 4 4 * 5 5 * This is the most generic template file in a WordPress theme … … 7 7 * It is used to display a page when nothing more specific matches a query. 8 8 * e.g., it puts together the home page when no home.php file exists. 9 * Learn more: http://codex.wordpress.org/Template_Hierarchy10 9 * 11 * @link http://codex.wordpress.org/Template_Hierarchy10 * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy} 12 11 * 13 12 * @package WordPress … … 29 28 <?php endif; ?> 30 29 31 <?php while ( have_posts() ) : the_post(); ?> 30 <?php 31 // Start the loop. 32 while ( have_posts() ) : the_post(); 32 33 33 <?php 34 /* Include the Post-Format-specific template for the content. 35 * If you want to override this in a child theme, then include a file 36 * called content-___.php (where ___ is the Post Format name) and that will be used instead. 37 */ 38 get_template_part( 'content', get_post_format() ); 39 ?> 34 /* 35 * Include the Post-Format-specific template for the content. 36 * If you want to override this in a child theme, then include a file 37 * called content-___.php (where ___ is the Post Format name) and that will be used instead. 38 */ 39 get_template_part( 'content', get_post_format() ); 40 40 41 <?php endwhile; ?> 41 // End the loop. 42 endwhile; 42 43 43 <?php 44 the_pagination( array( 45 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 46 'next_text' => __( 'Next page', 'twentyfifteen' ), 47 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', 48 ) ); 49 ?> 44 // Previous/next page navigation. 45 the_pagination( array( 46 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 47 'next_text' => __( 'Next page', 'twentyfifteen' ), 48 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', 49 ) ); 50 50 51 <?php else : ?> 51 // If no content, include the "No posts found" template. 52 else : 53 get_template_part( 'content', 'none' ); 52 54 53 <?php get_template_part( 'content', 'none' ); ?> 54 55 <?php endif; ?> 55 endif; 56 ?> 56 57 57 58 </main><!-- .site-main -->
Note: See TracChangeset
for help on using the changeset viewer.