Ticket #21675: twentytwelve-archives.diff
| File twentytwelve-archives.diff, 5.7 KB (added by , 14 years ago) |
|---|
-
wp-content/themes/twentytwelve/author.php
14 14 get_header(); ?> 15 15 16 16 <section id="primary" class="site-content"> 17 17 18 <div id="content" role="main"> 18 19 19 20 <?php if ( have_posts() ) : ?> … … 45 46 <?php 46 47 // If a user has filled out their description, show a bio on their entries. 47 48 if ( get_the_author_meta( 'description' ) ) : ?> 48 <div class="author-info"> 49 <div class="author-avatar"> 50 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 60 ) ); ?> 51 </div><!-- .author-avatar --> 52 <div class="author-description"> 53 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 54 <p><?php the_author_meta( 'description' ); ?></p> 55 </div><!-- .author-description --> 56 </div><!-- .author-info --> 49 <div class="author-info"> 50 <div class="author-avatar"> 51 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 60 ) ); ?> 52 </div><!-- .author-avatar --> 53 54 <div class="author-description"> 55 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 56 57 <p><?php the_author_meta( 'description' ); ?></p> 58 </div><!-- .author-description --> 59 </div><!-- .author-info --> 57 60 <?php endif; ?> 58 61 59 <?php /* Start the Loop */ ?> 60 <?php while ( have_posts() ) : the_post(); ?> 61 <?php get_template_part( 'content', get_post_format() ); ?> 62 <?php endwhile; ?> 62 <?php // Start the Loop 63 while ( have_posts() ) : the_post(); 64 get_template_part( 'content', get_post_format() ); 65 endwhile; 66 67 twentytwelve_content_nav( 'nav-below' ); 68 ?> 63 69 64 <?php twentytwelve_content_nav( 'nav-below' ); ?>65 66 70 <?php else : ?> 67 71 <?php get_template_part( 'content', 'none' ); ?> 68 72 <?php endif; ?> 69 73 70 74 </div><!-- #content --> 75 71 76 </section><!-- #primary --> 72 77 73 78 <?php get_sidebar(); ?> -
wp-content/themes/twentytwelve/tag.php
14 14 get_header(); ?> 15 15 16 16 <section id="primary" class="site-content"> 17 17 18 <div id="content" role="main"> 18 19 19 20 <?php if ( have_posts() ) : ?> … … 45 46 <?php endif; ?> 46 47 47 48 </div><!-- #content --> 49 48 50 </section><!-- #primary --> 49 51 50 52 <?php get_sidebar(); ?> -
wp-content/themes/twentytwelve/category.php
14 14 get_header(); ?> 15 15 16 16 <section id="primary" class="site-content"> 17 17 18 <div id="content" role="main"> 18 19 19 20 <?php if ( have_posts() ) : ?> 21 20 22 <header class="archive-header"> 21 23 <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1> 22 24 23 <?php if ( category_description() ) : // Show an optional category description ?>24 <div class="archive-meta"><?php echo category_description(); ?></div>25 <?php endif; ?>25 <?php if ( category_description() ) : // Show an optional category description ?> 26 <div class="archive-meta"><?php echo category_description(); ?></div> 27 <?php endif; ?> 26 28 </header><!-- .archive-header --> 27 29 28 30 <?php … … 35 37 */ 36 38 get_template_part( 'content', get_post_format() ); 37 39 38 endwhile; 40 endwhile; // end of the loop. 39 41 40 42 twentytwelve_content_nav( 'nav-below' ); 41 43 ?> … … 45 47 <?php endif; ?> 46 48 47 49 </div><!-- #content --> 50 48 51 </section><!-- #primary --> 49 52 50 53 <?php get_sidebar(); ?> -
wp-content/themes/twentytwelve/archive.php
20 20 get_header(); ?> 21 21 22 22 <section id="primary" class="site-content"> 23 23 24 <div id="content" role="main"> 24 25 25 26 <?php if ( have_posts() ) : ?> 26 27 <header class="archive-header"> 27 <h1 class="archive-title"><?php 28 <h1 class="archive-title"> 29 <?php 28 30 if ( is_day() ) : 29 31 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); 30 32 elseif ( is_month() ) : … … 34 36 else : 35 37 _e( 'Archives', 'twentytwelve' ); 36 38 endif; 37 ?></h1> 39 ?> 40 </h1><!-- .archive-title --> 38 41 </header><!-- .archive-header --> 39 42 40 43 <?php … … 57 60 <?php endif; ?> 58 61 59 62 </div><!-- #content --> 63 60 64 </section><!-- #primary --> 61 65 62 66 <?php get_sidebar(); ?> -
wp-content/themes/twentytwelve/index.php
17 17 get_header(); ?> 18 18 19 19 <div id="primary" class="site-content"> 20 20 21 <div id="content" role="main"> 22 21 23 <?php if ( have_posts() ) : ?> 22 24 23 25 <?php /* Start the Loop */ ?> … … 53 55 <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> 54 56 <?php get_search_form(); ?> 55 57 </div><!-- .entry-content --> 58 56 59 <?php endif; // end current_user_can() check ?> 57 60 58 61 </article><!-- #post-0 --> … … 60 63 <?php endif; // end have_posts() check ?> 61 64 62 65 </div><!-- #content --> 66 63 67 </div><!-- #primary --> 64 68 65 69 <?php get_sidebar(); ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)