Changeset 25213
- Timestamp:
- 09/02/2013 09:20:56 PM (12 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 5 added
- 1 deleted
- 6 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 -
trunk/src/wp-content/themes/twentyfourteen/front-page.php
r25090 r25213 32 32 33 33 else : 34 get_template_part( ' no-results', 'index' );34 get_template_part( 'content', 'none' ); 35 35 36 36 endif; -
trunk/src/wp-content/themes/twentyfourteen/index.php
r25088 r25213 28 28 29 29 else : 30 get_template_part( ' no-results', 'index' );30 get_template_part( 'content', 'none' ); 31 31 32 32 endif; -
trunk/src/wp-content/themes/twentyfourteen/rtl.css
r25090 r25213 552 552 } 553 553 554 .archive-header, 554 555 .page-header { 555 556 margin: 0 12.5% 24px 8.03571428%; … … 789 790 } 790 791 792 .archive-header, 791 793 .page-header { 792 794 margin: 0 12.5% 24px 8.03571428%; -
trunk/src/wp-content/themes/twentyfourteen/search.php
r25088 r25213 9 9 get_header(); ?> 10 10 11 <section id="primary" class="content-area">12 <div id="content" class="site-content" role="main">11 <section id="primary" class="content-area"> 12 <div id="content" class="site-content" role="main"> 13 13 14 <?php if ( have_posts() ) : ?>14 <?php if ( have_posts() ) : ?> 15 15 16 <header class="page-header">17 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() ); ?></h1>18 </header><!-- .page-header -->16 <header class="page-header"> 17 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() ); ?></h1> 18 </header><!-- .page-header --> 19 19 20 <?php21 while ( have_posts() ) :22 the_post();20 <?php 21 while ( have_posts() ) : 22 the_post(); 23 23 24 get_template_part( 'content', get_post_format() );25 endwhile;26 twentyfourteen_paging_nav();24 get_template_part( 'content', get_post_format() ); 25 endwhile; 26 twentyfourteen_paging_nav(); 27 27 28 else :29 get_template_part( 'no-results', 'search' );28 else : 29 get_template_part( 'content', 'none' ); 30 30 31 endif;32 ?>31 endif; 32 ?> 33 33 34 </div><!-- #content -->35 </section><!-- #primary -->34 </div><!-- #content --> 35 </section><!-- #primary --> 36 36 37 37 <?php -
trunk/src/wp-content/themes/twentyfourteen/style.css
r25090 r25213 1084 1084 1085 1085 /* .content-area specific styles */ 1086 .content-area .entry-header, 1087 .content-area .page-header { 1086 .content-area .entry-header { 1088 1087 background-color: #fff; 1089 1088 padding: 24px 10px 12px; 1090 1089 padding: 2.4rem 1.0rem 1.2rem; 1091 1090 } 1092 .content-area .entry-title, 1093 .content-area .page-title { 1091 .content-area .entry-title { 1094 1092 font-size: 33px; 1095 1093 font-size: 3.3rem; … … 1307 1305 height: 0.4rem; 1308 1306 } 1307 .archive-header, 1309 1308 .page-header { 1310 1309 margin: 0 0 24px; … … 1313 1312 padding: 0 1.0rem; 1314 1313 } 1314 .archive-title, 1315 1315 .page-title { 1316 1316 font-size: 16px; … … 1321 1321 margin-bottom: 2.4rem; 1322 1322 } 1323 .taxonomy-description p{1323 .taxonomy-description { 1324 1324 color: #767676; 1325 1325 font-size: 12px; … … 2564 2564 padding: 0 4.46428571%; 2565 2565 } 2566 .archive-header, 2566 2567 .page-header { 2567 2568 margin: 0 4.59183673% 24px; … … 2702 2703 margin: 0 11.30926724%; 2703 2704 } 2705 .archive-header, 2704 2706 .page-header { 2705 2707 margin: 0 8.03571428% 24px 12.5%; … … 2827 2829 width: 24.87804878%; 2828 2830 } 2829 .content-area .entry-header, 2830 .content-area .page-header { 2831 .content-area .entry-header { 2831 2832 margin: -48px 4.59183673% 0; 2832 2833 margin: -4.8rem 4.59183673% 0; … … 2846 2847 padding: 0 4.46428571%; 2847 2848 } 2849 .archive-header, 2848 2850 .page-header { 2849 2851 margin: 0 4.59183673% 24px; … … 2974 2976 2975 2977 @media screen and (min-width: 1150px) { 2976 .content-area .entry-header, 2977 .content-area .page-header { 2978 .content-area .entry-header { 2978 2979 margin: -48px 8.03571428% 0 12.5%; 2979 2980 margin: -4.8rem 8.03571428% 0 12.5%; … … 3010 3011 padding-left: 16.77524429%; 3011 3012 } 3013 .archive-header, 3012 3014 .page-header { 3013 3015 margin: 0 8.03571428% 24px 12.5%;
Note: See TracChangeset
for help on using the changeset viewer.