Changeset 30394 for trunk/src/wp-content/themes/twentyfifteen/archive.php
- Timestamp:
- 11/19/2014 08:27:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/archive.php
r30316 r30394 1 1 <?php 2 2 /** 3 * The template for displaying archive pages .3 * The template for displaying archive pages 4 4 * 5 5 * Used to display archive-type pages if nothing more specific matches a query. … … 11 11 * and author.php for Author archives. 12 12 * 13 * @link http ://codex.wordpress.org/Template_Hierarchy13 * @link https://codex.wordpress.org/Template_Hierarchy 14 14 * 15 15 * @package WordPress … … 32 32 </header><!-- .page-header --> 33 33 34 <?php /* Start the Loop */ ?> 35 <?php while ( have_posts() ) : the_post(); ?> 34 <?php 35 // Start the Loop. 36 while ( have_posts() ) : the_post(); 36 37 37 <?php 38 /* Include the Post-Format-specific template for the content. 39 * If you want to override this in a child theme, then include a file 40 * called content-___.php (where ___ is the Post Format name) and that will be used instead. 41 */ 42 get_template_part( 'content', get_post_format() ); 43 ?> 38 /* 39 * Include the Post-Format-specific template for the content. 40 * If you want to override this in a child theme, then include a file 41 * called content-___.php (where ___ is the Post Format name) and that will be used instead. 42 */ 43 get_template_part( 'content', get_post_format() ); 44 44 45 <?php endwhile; ?> 45 // End the loop. 46 endwhile; 46 47 47 <?php 48 the_pagination( array( 49 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 50 'next_text' => __( 'Next page', 'twentyfifteen' ), 51 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', 52 ) ); 53 ?> 48 // Previous/next page navigation. 49 the_pagination( array( 50 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 51 'next_text' => __( 'Next page', 'twentyfifteen' ), 52 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', 53 ) ); 54 54 55 <?php else : ?> 55 // If no content, include the "No posts found" template. 56 else : 57 get_template_part( 'content', 'none' ); 56 58 57 <?php get_template_part( 'content', 'none' ); ?> 58 59 <?php endif; ?> 59 endif; 60 ?> 60 61 61 62 </main><!-- .site-main -->
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)