Changeset 25213 for trunk/src/wp-content/themes/twentyfourteen/archive.php
- Timestamp:
- 09/02/2013 09:20:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/archive.php
r25088 r25213 19 19 get_header(); ?> 20 20 21 <section id="primary" class="content-area">22 <div id="content" class="site-content" role="main">21 <section id="primary" class="content-area"> 22 <div id="content" class="site-content" role="main"> 23 23 24 <?php if ( have_posts() ) : ?>24 <?php if ( have_posts() ) : ?> 25 25 26 <header class="page-header">27 <h1 class="page-title">28 <?php29 if ( is_day() ) :30 printf( __( 'Day: %s', 'twentyfourteen' ), get_the_date() );26 <header class="page-header"> 27 <h1 class="page-title"> 28 <?php 29 if ( is_day() ) : 30 printf( __( 'Day: %s', 'twentyfourteen' ), get_the_date() ); 31 31 32 elseif ( is_month() ) :33 printf( __( 'Month: %s', 'twentyfourteen' ), get_the_date( 'F Y' ) );32 elseif ( is_month() ) : 33 printf( __( 'Month: %s', 'twentyfourteen' ), get_the_date( 'F Y' ) ); 34 34 35 elseif ( is_year() ) :36 printf( __( 'Year: %s', 'twentyfourteen' ), get_the_date( 'Y' ) );35 elseif ( is_year() ) : 36 printf( __( 'Year: %s', 'twentyfourteen' ), get_the_date( 'Y' ) ); 37 37 38 else :39 _e( 'Archives', 'twentyfourteen' );38 else : 39 _e( 'Archives', 'twentyfourteen' ); 40 40 41 endif;42 ?>43 </h1>44 </header><!-- .page-header -->41 endif; 42 ?> 43 </h1> 44 </header><!-- .page-header --> 45 45 46 <?php47 while ( have_posts() ) :48 the_post();46 <?php 47 while ( have_posts() ) : 48 the_post(); 49 49 50 get_template_part( 'content', get_post_format() );51 endwhile;52 twentyfourteen_paging_nav();50 get_template_part( 'content', get_post_format() ); 51 endwhile; 52 twentyfourteen_paging_nav(); 53 53 54 else :55 get_template_part( 'no-results', 'archive' );54 else : 55 get_template_part( 'content', 'none' ); 56 56 57 endif;58 ?>59 </div><!-- #content -->60 </section><!-- #primary -->57 endif; 58 ?> 59 </div><!-- #content --> 60 </section><!-- #primary --> 61 61 62 62 <?php
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)