Ticket #21685: 21685-indentation.diff
| File 21685-indentation.diff, 32.0 KB (added by , 14 years ago) |
|---|
-
wp-content/themes/twentytwelve/content-none.php
8 8 */ 9 9 ?> 10 10 11 <article id="post-0" class="post no-results not-found">12 <header class="entry-header">13 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>14 </header><!-- .entry-header -->11 <article id="post-0" class="post no-results not-found"> 12 <header class="entry-header"> 13 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> 14 </header><!-- .entry-header --> 15 15 16 <div class="entry-content">17 <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p>18 <?php get_search_form(); ?>19 </div><!-- .entry-content -->20 </article><!-- #post-0 -->16 <div class="entry-content"> 17 <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> 18 <?php get_search_form(); ?> 19 </div><!-- .entry-content --> 20 </article><!-- #post-0 --> -
wp-content/themes/twentytwelve/content.php
8 8 */ 9 9 ?> 10 10 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> 13 <div class="featured-post"> 14 <?php _e( 'Featured post', 'twentytwelve' ); ?> 15 </div> 16 <?php endif; ?> 17 <header class="entry-header"> 18 <?php the_post_thumbnail(); ?> 19 <?php if ( is_single() ) : ?> 20 <h1 class="entry-title"><?php the_title(); ?></h1> 21 <?php else : ?> 22 <h1 class="entry-title"> 23 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> 24 </h1> 25 <?php endif; // is_single() ?> 26 <?php if ( comments_open() ) : ?> 27 <div class="comments-link"> 28 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> 29 </div><!-- .comments-link --> 30 <?php endif; // comments_open() ?> 31 </header><!-- .entry-header --> 32 33 <?php if ( is_search() ) : // Only display Excerpts for Search ?> 34 <div class="entry-summary"> 35 <?php the_excerpt(); ?> 36 </div><!-- .entry-summary --> 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> 13 <div class="featured-post"> 14 <?php _e( 'Featured post', 'twentytwelve' ); ?> 15 </div> 16 <?php endif; ?> 17 <header class="entry-header"> 18 <?php the_post_thumbnail(); ?> 19 <?php if ( is_single() ) : ?> 20 <h1 class="entry-title"><?php the_title(); ?></h1> 37 21 <?php else : ?> 38 <div class="entry-content"> 39 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 40 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> 41 </div><!-- .entry-content --> 42 <?php endif; ?> 22 <h1 class="entry-title"> 23 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> 24 </h1> 25 <?php endif; // is_single() ?> 26 <?php if ( comments_open() ) : ?> 27 <div class="comments-link"> 28 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> 29 </div><!-- .comments-link --> 30 <?php endif; // comments_open() ?> 31 </header><!-- .entry-header --> 43 32 44 <footer class="entry-meta"> 45 <?php twentytwelve_entry_meta(); ?> 46 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 47 <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> 48 <div id="author-info"> 49 <div id="author-avatar"> 50 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?> 51 </div><!-- #author-avatar --> 52 <div id="author-description"> 53 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 54 <p><?php the_author_meta( 'description' ); ?></p> 55 <div id="author-link"> 56 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 57 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> 58 </a> 59 </div><!-- #author-link --> 60 </div><!-- #author-description --> 61 </div><!-- #author-info --> 62 <?php endif; ?> 63 </footer><!-- .entry-meta --> 64 </article><!-- #post --> 33 <?php if ( is_search() ) : // Only display Excerpts for Search ?> 34 <div class="entry-summary"> 35 <?php the_excerpt(); ?> 36 </div><!-- .entry-summary --> 37 <?php else : ?> 38 <div class="entry-content"> 39 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 40 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> 41 </div><!-- .entry-content --> 42 <?php endif; ?> 43 44 <footer class="entry-meta"> 45 <?php twentytwelve_entry_meta(); ?> 46 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 47 <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> 48 <div id="author-info"> 49 <div id="author-avatar"> 50 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?> 51 </div><!-- #author-avatar --> 52 <div id="author-description"> 53 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 54 <p><?php the_author_meta( 'description' ); ?></p> 55 <div id="author-link"> 56 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 57 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> 58 </a> 59 </div><!-- #author-link --> 60 </div><!-- #author-description --> 61 </div><!-- #author-info --> 62 <?php endif; ?> 63 </footer><!-- .entry-meta --> 64 </article><!-- #post --> -
wp-content/themes/twentytwelve/404.php
9 9 10 10 get_header(); ?> 11 11 12 <div id="primary" class="site-content">13 <div id="content" role="main">12 <div id="primary" class="site-content"> 13 <div id="content" role="main"> 14 14 15 <article id="post-0" class="post error404 no-results not-found">16 <header class="entry-header">17 <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentytwelve' ); ?></h1>18 </header>15 <article id="post-0" class="post error404 no-results not-found"> 16 <header class="entry-header"> 17 <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentytwelve' ); ?></h1> 18 </header> 19 19 20 <div class="entry-content">21 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentytwelve' ); ?></p>22 <?php get_search_form(); ?>23 </div><!-- .entry-content -->24 </article><!-- #post-0 -->20 <div class="entry-content"> 21 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentytwelve' ); ?></p> 22 <?php get_search_form(); ?> 23 </div><!-- .entry-content --> 24 </article><!-- #post-0 --> 25 25 26 </div><!-- #content -->27 </div><!-- #primary .site-content -->26 </div><!-- #content --> 27 </div><!-- #primary .site-content --> 28 28 29 29 <?php get_footer(); ?> 30 No newline at end of file -
wp-content/themes/twentytwelve/full-width-page.php
9 9 10 10 get_header(); ?> 11 11 12 <div id="primary" class="site-content">13 <div id="content" role="main">12 <div id="primary" class="site-content"> 13 <div id="content" role="main"> 14 14 15 <?php while ( have_posts() ) : the_post(); ?>16 <?php get_template_part( 'content', 'page' ); ?>17 <?php comments_template( '', true ); ?>18 <?php endwhile; // end of the loop. ?>15 <?php while ( have_posts() ) : the_post(); ?> 16 <?php get_template_part( 'content', 'page' ); ?> 17 <?php comments_template( '', true ); ?> 18 <?php endwhile; // end of the loop. ?> 19 19 20 </div><!-- #content -->21 </div><!-- #primary .site-content -->20 </div><!-- #content --> 21 </div><!-- #primary .site-content --> 22 22 23 23 <?php get_footer(); ?> 24 No newline at end of file -
wp-content/themes/twentytwelve/single.php
9 9 10 10 get_header(); ?> 11 11 12 <div id="primary" class="site-content">13 <div id="content" role="main">12 <div id="primary" class="site-content"> 13 <div id="content" role="main"> 14 14 15 <?php while ( have_posts() ) : the_post(); ?>15 <?php while ( have_posts() ) : the_post(); ?> 16 16 17 <?php get_template_part( 'content', get_post_format() ); ?>17 <?php get_template_part( 'content', get_post_format() ); ?> 18 18 19 <nav class="nav-single">20 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>21 <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">←</span>', 'twentytwelve' ) . ' %title' ); ?></span>22 <span class="nav-next"><?php next_post_link( '%link', '%title ' . __( '<span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></span>23 </nav><!-- .nav-single -->19 <nav class="nav-single"> 20 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> 21 <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">←</span>', 'twentytwelve' ) . ' %title' ); ?></span> 22 <span class="nav-next"><?php next_post_link( '%link', '%title ' . __( '<span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></span> 23 </nav><!-- .nav-single --> 24 24 25 <?php26 // If comments are open or we have at least one comment, load up the comment template27 if ( comments_open() || '0' != get_comments_number() )28 comments_template( '', true );29 ?>25 <?php 26 // If comments are open or we have at least one comment, load up the comment template 27 if ( comments_open() || '0' != get_comments_number() ) 28 comments_template( '', true ); 29 ?> 30 30 31 <?php endwhile; // end of the loop. ?>31 <?php endwhile; // end of the loop. ?> 32 32 33 </div><!-- #content -->34 </div><!-- #primary .site-content -->33 </div><!-- #content --> 34 </div><!-- #primary .site-content --> 35 35 36 36 <?php get_sidebar(); ?> 37 37 <?php get_footer(); ?> 38 No newline at end of file -
wp-content/themes/twentytwelve/author.php
9 9 10 10 get_header(); ?> 11 11 12 <section id="primary" class="site-content">13 <div id="content" role="main">12 <section id="primary" class="site-content"> 13 <div id="content" role="main"> 14 14 15 <?php if ( have_posts() ) : ?>15 <?php if ( have_posts() ) : ?> 16 16 17 <?php18 /* Queue the first post, that way we know19 * what author we're dealing with (if that is the case).20 *21 * We reset this later so we can run the loop22 * properly with a call to rewind_posts().23 */24 the_post();25 ?>17 <?php 18 /* Queue the first post, that way we know 19 * what author we're dealing with (if that is the case). 20 * 21 * We reset this later so we can run the loop 22 * properly with a call to rewind_posts(). 23 */ 24 the_post(); 25 ?> 26 26 27 <header class="archive-header">28 <h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>29 </header>27 <header class="archive-header"> 28 <h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1> 29 </header> 30 30 31 <?php32 /* Since we called the_post() above, we need to33 * rewind the loop back to the beginning that way34 * we can run the loop properly, in full.35 */36 rewind_posts();37 ?>31 <?php 32 /* Since we called the_post() above, we need to 33 * rewind the loop back to the beginning that way 34 * we can run the loop properly, in full. 35 */ 36 rewind_posts(); 37 ?> 38 38 39 <?php twentytwelve_content_nav( 'nav-above' ); ?>39 <?php twentytwelve_content_nav( 'nav-above' ); ?> 40 40 41 <?php42 // If a user has filled out their description, show a bio on their entries.43 if ( get_the_author_meta( 'description' ) ) : ?>44 <div id="author-info">45 <div id="author-avatar">46 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 60 ) ); ?>47 </div><!-- #author-avatar -->48 <div id="author-description">49 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>50 <p><?php the_author_meta( 'description' ); ?></p>51 </div><!-- #author-description -->52 </div><!-- #author-info -->53 <?php endif; ?>41 <?php 42 // If a user has filled out their description, show a bio on their entries. 43 if ( get_the_author_meta( 'description' ) ) : ?> 44 <div id="author-info"> 45 <div id="author-avatar"> 46 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 60 ) ); ?> 47 </div><!-- #author-avatar --> 48 <div id="author-description"> 49 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 50 <p><?php the_author_meta( 'description' ); ?></p> 51 </div><!-- #author-description --> 52 </div><!-- #author-info --> 53 <?php endif; ?> 54 54 55 <?php /* Start the Loop */ ?>56 <?php while ( have_posts() ) : the_post(); ?>57 <?php get_template_part( 'content', get_post_format() ); ?>58 <?php endwhile; ?>55 <?php /* Start the Loop */ ?> 56 <?php while ( have_posts() ) : the_post(); ?> 57 <?php get_template_part( 'content', get_post_format() ); ?> 58 <?php endwhile; ?> 59 59 60 <?php twentytwelve_content_nav( 'nav-below' ); ?>60 <?php twentytwelve_content_nav( 'nav-below' ); ?> 61 61 62 <?php else : ?>63 <?php get_template_part( 'content', 'none' ); ?>64 <?php endif; ?>62 <?php else : ?> 63 <?php get_template_part( 'content', 'none' ); ?> 64 <?php endif; ?> 65 65 66 </div><!-- #content -->67 </section><!-- #primary .site-content -->66 </div><!-- #content --> 67 </section><!-- #primary .site-content --> 68 68 69 69 <?php get_sidebar(); ?> 70 70 <?php get_footer(); ?> 71 No newline at end of file -
wp-content/themes/twentytwelve/homepage.php
9 9 10 10 get_header(); ?> 11 11 12 <div id="primary" class="site-content">13 <div id="content" role="main">12 <div id="primary" class="site-content"> 13 <div id="content" role="main"> 14 14 15 <?php while ( have_posts() ) : the_post(); ?>16 <?php if ( has_post_thumbnail() ) {?>17 <div class="entry-page-image">18 <?php the_post_thumbnail(); ?>19 </div>20 <?php }?>15 <?php while ( have_posts() ) : the_post(); ?> 16 <?php if ( has_post_thumbnail() ) : ?> 17 <div class="entry-page-image"> 18 <?php the_post_thumbnail(); ?> 19 </div> 20 <?php endif; ?> 21 21 22 <?php get_template_part( 'content', 'page' ); ?>22 <?php get_template_part( 'content', 'page' ); ?> 23 23 24 <?php endwhile; // end of the loop. ?>24 <?php endwhile; // end of the loop. ?> 25 25 26 </div><!-- #content -->27 </div><!-- #primary .site-content -->26 </div><!-- #content --> 27 </div><!-- #primary .site-content --> 28 28 29 29 <?php get_sidebar( 'home' ); ?> 30 30 <?php get_footer(); ?> 31 No newline at end of file -
wp-content/themes/twentytwelve/content-link.php
8 8 */ 9 9 ?> 10 10 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>12 <header><?php _e( 'Link', 'twentytwelve' ); ?></header>13 <div class="entry-content">14 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>15 </div><!-- .entry-content -->11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <header><?php _e( 'Link', 'twentytwelve' ); ?></header> 13 <div class="entry-content"> 14 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 15 </div><!-- .entry-content --> 16 16 17 <footer class="entry-meta">18 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<div class="edit-link">', '</div>' ); ?>19 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_date(); ?></a>20 </footer><!-- .entry-meta -->21 </article><!-- #post -->17 <footer class="entry-meta"> 18 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<div class="edit-link">', '</div>' ); ?> 19 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_date(); ?></a> 20 </footer><!-- .entry-meta --> 21 </article><!-- #post --> -
wp-content/themes/twentytwelve/page.php
14 14 15 15 get_header(); ?> 16 16 17 <div id="primary" class="site-content">18 <div id="content" role="main">17 <div id="primary" class="site-content"> 18 <div id="content" role="main"> 19 19 20 <?php while ( have_posts() ) : the_post(); ?>21 <?php get_template_part( 'content', 'page' ); ?>22 <?php comments_template( '', true ); ?>23 <?php endwhile; // end of the loop. ?>20 <?php while ( have_posts() ) : the_post(); ?> 21 <?php get_template_part( 'content', 'page' ); ?> 22 <?php comments_template( '', true ); ?> 23 <?php endwhile; // end of the loop. ?> 24 24 25 </div><!-- #content -->26 </div><!-- #primary .site-content -->25 </div><!-- #content --> 26 </div><!-- #primary .site-content --> 27 27 28 28 <?php get_sidebar(); ?> 29 29 <?php get_footer(); ?> 30 No newline at end of file -
wp-content/themes/twentytwelve/index.php
15 15 16 16 get_header(); ?> 17 17 18 <div id="primary" class="site-content">19 <div id="content" role="main">20 <?php if ( have_posts() ) : ?>18 <div id="primary" class="site-content"> 19 <div id="content" role="main"> 20 <?php if ( have_posts() ) : ?> 21 21 22 <?php /* Start the Loop */ ?>23 <?php while ( have_posts() ) : the_post(); ?>24 <?php get_template_part( 'content', get_post_format() ); ?>25 <?php endwhile; ?>22 <?php /* Start the Loop */ ?> 23 <?php while ( have_posts() ) : the_post(); ?> 24 <?php get_template_part( 'content', get_post_format() ); ?> 25 <?php endwhile; ?> 26 26 27 <?php twentytwelve_content_nav( 'nav-below' ); ?>27 <?php twentytwelve_content_nav( 'nav-below' ); ?> 28 28 29 <?php else : ?>29 <?php else : ?> 30 30 31 <article id="post-0" class="post no-results not-found">31 <article id="post-0" class="post no-results not-found"> 32 32 33 <?php if ( current_user_can( 'edit_posts' ) ) :34 // Show a different message to a logged-in user who can add posts.35 ?>36 <header class="entry-header">37 <h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1>38 </header><!-- .entry-header -->33 <?php if ( current_user_can( 'edit_posts' ) ) : 34 // Show a different message to a logged-in user who can add posts. 35 ?> 36 <header class="entry-header"> 37 <h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1> 38 </header><!-- .entry-header --> 39 39 40 <div class="entry-content">41 <p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p>42 </div><!-- .entry-content -->40 <div class="entry-content"> 41 <p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p> 42 </div><!-- .entry-content --> 43 43 44 <?php else :45 // Show the default message to everyone else.46 ?>47 <header class="entry-header">48 <h1 class="entry-title"><?php _e( 'Nothing found', 'twentytwelve' ); ?></h1>49 </header><!-- .entry-header -->44 <?php else : 45 // Show the default message to everyone else. 46 ?> 47 <header class="entry-header"> 48 <h1 class="entry-title"><?php _e( 'Nothing found', 'twentytwelve' ); ?></h1> 49 </header><!-- .entry-header --> 50 50 51 <div class="entry-content">52 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p>53 <?php get_search_form(); ?>54 </div><!-- .entry-content -->55 <?php endif; // end current_user_can() check ?>51 <div class="entry-content"> 52 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> 53 <?php get_search_form(); ?> 54 </div><!-- .entry-content --> 55 <?php endif; // end current_user_can() check ?> 56 56 57 </article><!-- #post-0 -->57 </article><!-- #post-0 --> 58 58 59 <?php endif; // end have_posts() check ?>59 <?php endif; // end have_posts() check ?> 60 60 61 </div><!-- #content -->62 </div><!-- #primary .site-content -->61 </div><!-- #content --> 62 </div><!-- #primary .site-content --> 63 63 64 64 <?php get_sidebar(); ?> 65 65 <?php get_footer(); ?> 66 No newline at end of file -
wp-content/themes/twentytwelve/content-image.php
8 8 */ 9 9 ?> 10 10 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>12 <div class="entry-content">13 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>14 </div><!-- .entry-content -->11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <div class="entry-content"> 13 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 14 </div><!-- .entry-content --> 15 15 16 <footer class="entry-meta">17 <h1><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>18 <h2><?php the_date(); ?></h2>19 </footer><!-- .entry-meta -->20 </article><!-- #post -->16 <footer class="entry-meta"> 17 <h1><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 18 <h2><?php the_date(); ?></h2> 19 </footer><!-- .entry-meta --> 20 </article><!-- #post --> -
wp-content/themes/twentytwelve/search.php
9 9 10 10 get_header(); ?> 11 11 12 <section id="primary" class="site-content">13 <div id="content" role="main">12 <section id="primary" class="site-content"> 13 <div id="content" role="main"> 14 14 15 <?php if ( have_posts() ) : ?>15 <?php if ( have_posts() ) : ?> 16 16 17 <header class="page-header">18 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1>19 </header>17 <header class="page-header"> 18 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1> 19 </header> 20 20 21 <?php twentytwelve_content_nav( 'nav-above' ); ?>21 <?php twentytwelve_content_nav( 'nav-above' ); ?> 22 22 23 <?php /* Start the Loop */ ?>24 <?php while ( have_posts() ) : the_post(); ?>25 <?php get_template_part( 'content', get_post_format() ); ?>26 <?php endwhile; ?>23 <?php /* Start the Loop */ ?> 24 <?php while ( have_posts() ) : the_post(); ?> 25 <?php get_template_part( 'content', get_post_format() ); ?> 26 <?php endwhile; ?> 27 27 28 <?php twentytwelve_content_nav( 'nav-below' ); ?>28 <?php twentytwelve_content_nav( 'nav-below' ); ?> 29 29 30 <?php else : ?>30 <?php else : ?> 31 31 32 <article id="post-0" class="post no-results not-found">33 <header class="entry-header">34 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>35 </header><!-- .entry-header -->32 <article id="post-0" class="post no-results not-found"> 33 <header class="entry-header"> 34 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> 35 </header><!-- .entry-header --> 36 36 37 <div class="entry-content">38 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentytwelve' ); ?></p>39 <?php get_search_form(); ?>40 </div><!-- .entry-content -->41 </article><!-- #post-0 -->37 <div class="entry-content"> 38 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentytwelve' ); ?></p> 39 <?php get_search_form(); ?> 40 </div><!-- .entry-content --> 41 </article><!-- #post-0 --> 42 42 43 <?php endif; ?>43 <?php endif; ?> 44 44 45 </div><!-- #content -->46 </section><!-- #primary .site-content -->45 </div><!-- #content --> 46 </section><!-- #primary .site-content --> 47 47 48 48 <?php get_sidebar(); ?> 49 49 <?php get_footer(); ?> 50 No newline at end of file -
wp-content/themes/twentytwelve/archive.php
14 14 15 15 get_header(); ?> 16 16 17 <section id="primary" class="site-content"> 18 <div id="content" role="main"> 19 20 <?php if ( have_posts() ) : ?> 21 <header class="archive-header"> 22 <h1 class="archive-title"><?php 23 if ( is_day() ) { 24 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); 25 } elseif ( is_month() ) { 26 printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); 27 } elseif ( is_year() ) { 28 printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); 29 } elseif ( is_tag() ) { 30 printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); 31 } elseif ( is_category() ) { 32 printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); 33 } else { 34 _e( 'Blog Archives', 'twentytwelve' ); 35 } 36 ?></h1> 17 <section id="primary" class="site-content"> 18 <div id="content" role="main"> 37 19 38 <?php 39 // Show an optional tag description. 40 if ( is_tag() ) { 41 $tag_description = tag_description(); 42 if ( $tag_description ) 43 echo '<div class="archive-meta">' . $tag_description . '</div>'; 44 } 45 // Show an optional category description. 46 if ( is_category() ) { 47 $category_description = category_description(); 48 if ( $category_description ) 49 echo '<div class="archive-meta">' . $category_description . '</div>'; 50 } 51 ?> 52 </header><!-- /. archive-header --> 20 <?php if ( have_posts() ) : ?> 21 <header class="archive-header"> 22 <h1 class="archive-title"><?php 23 if ( is_day() ) { 24 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); 25 } elseif ( is_month() ) { 26 printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); 27 } elseif ( is_year() ) { 28 printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); 29 } elseif ( is_tag() ) { 30 printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); 31 } elseif ( is_category() ) { 32 printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); 33 } else { 34 _e( 'Blog Archives', 'twentytwelve' ); 35 } 36 ?></h1> 53 37 54 38 <?php 55 /* Start the Loop */ 56 while ( have_posts() ) : the_post(); 39 // Show an optional tag description. 40 if ( is_tag() ) { 41 $tag_description = tag_description(); 42 if ( $tag_description ) 43 echo '<div class="archive-meta">' . $tag_description . '</div>'; 44 } 45 // Show an optional category description. 46 if ( is_category() ) { 47 $category_description = category_description(); 48 if ( $category_description ) 49 echo '<div class="archive-meta">' . $category_description . '</div>'; 50 } 51 ?> 52 </header><!-- /. archive-header --> 57 53 58 /* Include the post format-specific template for the content. If you want to 59 * this in a child theme then include a file called called content-___.php 60 * (where ___ is the post format) and that will be used instead. 61 */ 62 get_template_part( 'content', get_post_format() ); 54 <?php 55 /* Start the Loop */ 56 while ( have_posts() ) : the_post(); 63 57 64 endwhile; 58 /* Include the post format-specific template for the content. If you want to 59 * this in a child theme then include a file called called content-___.php 60 * (where ___ is the post format) and that will be used instead. 61 */ 62 get_template_part( 'content', get_post_format() ); 65 63 66 twentytwelve_content_nav( 'nav-below' ); 67 ?> 64 endwhile; 68 65 69 <?php else : ?> 70 <?php get_template_part( 'content', 'none' ); ?> 71 <?php endif; ?> 66 twentytwelve_content_nav( 'nav-below' ); 67 ?> 72 68 73 </div><!-- #content --> 74 </section><!-- #primary .site-content --> 69 <?php else : ?> 70 <?php get_template_part( 'content', 'none' ); ?> 71 <?php endif; ?> 72 73 </div><!-- #content --> 74 </section><!-- #primary .site-content --> 75 75 76 76 <?php get_sidebar(); ?> 77 77 <?php get_footer(); ?> 78 No newline at end of file