Make WordPress Core

Ticket #21685: 21685-indentation.diff

File 21685-indentation.diff, 32.0 KB (added by obenland, 14 years ago)
  • wp-content/themes/twentytwelve/content-none.php

     
    88 */
    99?>
    1010
    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 -->
    1515
    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

     
    88 */
    99?>
    1010
    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>
    3721                <?php else : ?>
    38                 <div class="entry-content">
    39                         <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</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 -->
    4332
    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">&rarr;</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">&rarr;</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">&rarr;</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

     
    99
    1010get_header(); ?>
    1111
    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">
    1414
    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&rsquo;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&rsquo;t it?', 'twentytwelve' ); ?></h1>
     18                        </header>
    1919
    20                                 <div class="entry-content">
    21                                         <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;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&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentytwelve' ); ?></p>
     22                                <?php get_search_form(); ?>
     23                        </div><!-- .entry-content -->
     24                </article><!-- #post-0 -->
    2525
    26                 </div><!-- #content -->
    27         </div><!-- #primary .site-content -->
     26        </div><!-- #content -->
     27</div><!-- #primary .site-content -->
    2828
    2929<?php get_footer(); ?>
     30 No newline at end of file
  • wp-content/themes/twentytwelve/full-width-page.php

     
    99
    1010get_header(); ?>
    1111
    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">
    1414
    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. ?>
    1919
    20                 </div><!-- #content -->
    21         </div><!-- #primary .site-content -->
     20        </div><!-- #content -->
     21</div><!-- #primary .site-content -->
    2222
    2323<?php get_footer(); ?>
     24 No newline at end of file
  • wp-content/themes/twentytwelve/single.php

     
    99
    1010get_header(); ?>
    1111
    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">
    1414
    15                         <?php while ( have_posts() ) : the_post(); ?>
     15                <?php while ( have_posts() ) : the_post(); ?>
    1616
    17                                 <?php get_template_part( 'content', get_post_format() ); ?>
     17                        <?php get_template_part( 'content', get_post_format() ); ?>
    1818
    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">&larr;</span>', 'twentytwelve' ) . ' %title' ); ?></span>
    22                                         <span class="nav-next"><?php next_post_link( '%link', '%title ' . __( '<span class="meta-nav">&rarr;</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">&larr;</span>', 'twentytwelve' ) . ' %title' ); ?></span>
     22                                <span class="nav-next"><?php next_post_link( '%link', '%title ' . __( '<span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></span>
     23                        </nav><!-- .nav-single -->
    2424
    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                                 ?>
     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                        ?>
    3030
    31                         <?php endwhile; // end of the loop. ?>
     31                <?php endwhile; // end of the loop. ?>
    3232
    33                 </div><!-- #content -->
    34         </div><!-- #primary .site-content -->
     33        </div><!-- #content -->
     34</div><!-- #primary .site-content -->
    3535
    3636<?php get_sidebar(); ?>
    3737<?php get_footer(); ?>
     38 No newline at end of file
  • wp-content/themes/twentytwelve/author.php

     
    99
    1010get_header(); ?>
    1111
    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">
    1414
    15                 <?php if ( have_posts() ) : ?>
     15        <?php if ( have_posts() ) : ?>
    1616
    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                         ?>
     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                ?>
    2626
    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>
    3030
    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                         ?>
     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                ?>
    3838
    39                         <?php twentytwelve_content_nav( 'nav-above' ); ?>
     39                <?php twentytwelve_content_nav( 'nav-above' ); ?>
    4040
    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; ?>
     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; ?>
    5454
    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; ?>
    5959
    60                         <?php twentytwelve_content_nav( 'nav-below' ); ?>
     60                <?php twentytwelve_content_nav( 'nav-below' ); ?>
    6161
    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; ?>
    6565
    66                 </div><!-- #content -->
    67         </section><!-- #primary .site-content -->
     66        </div><!-- #content -->
     67</section><!-- #primary .site-content -->
    6868
    6969<?php get_sidebar(); ?>
    7070<?php get_footer(); ?>
     71 No newline at end of file
  • wp-content/themes/twentytwelve/homepage.php

     
    99
    1010get_header(); ?>
    1111
    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">
    1414
    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; ?>
    2121
    22                                 <?php get_template_part( 'content', 'page' ); ?>
     22                        <?php get_template_part( 'content', 'page' ); ?>
    2323
    24                         <?php endwhile; // end of the loop. ?>
     24                <?php endwhile; // end of the loop. ?>
    2525
    26                 </div><!-- #content -->
    27         </div><!-- #primary .site-content -->
     26        </div><!-- #content -->
     27</div><!-- #primary .site-content -->
    2828
    2929<?php get_sidebar( 'home' ); ?>
    3030<?php get_footer(); ?>
     31 No newline at end of file
  • wp-content/themes/twentytwelve/content-link.php

     
    88 */
    99?>
    1010
    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">&rarr;</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">&rarr;</span>', 'twentytwelve' ) ); ?>
     15        </div><!-- .entry-content -->
    1616
    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

     
    1414
    1515get_header(); ?>
    1616
    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">
    1919
    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. ?>
    2424
    25                 </div><!-- #content -->
    26         </div><!-- #primary .site-content -->
     25        </div><!-- #content -->
     26</div><!-- #primary .site-content -->
    2727
    2828<?php get_sidebar(); ?>
    2929<?php get_footer(); ?>
     30 No newline at end of file
  • wp-content/themes/twentytwelve/index.php

     
    1515
    1616get_header(); ?>
    1717
    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() ) : ?>
    2121
    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; ?>
    2626
    27                         <?php twentytwelve_content_nav( 'nav-below' ); ?>
     27                <?php twentytwelve_content_nav( 'nav-below' ); ?>
    2828
    29                 <?php else : ?>
     29        <?php else : ?>
    3030
    31                         <article id="post-0" class="post no-results not-found">
     31                <article id="post-0" class="post no-results not-found">
    3232
    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 -->
    3939
    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 -->
    4343
    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 -->
    5050
    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 ?>
    5656
    57                         </article><!-- #post-0 -->
     57                </article><!-- #post-0 -->
    5858
    59                 <?php endif; // end have_posts() check ?>
     59        <?php endif; // end have_posts() check ?>
    6060
    61                 </div><!-- #content -->
    62         </div><!-- #primary .site-content -->
     61        </div><!-- #content -->
     62</div><!-- #primary .site-content -->
    6363
    6464<?php get_sidebar(); ?>
    6565<?php get_footer(); ?>
     66 No newline at end of file
  • wp-content/themes/twentytwelve/content-image.php

     
    88 */
    99?>
    1010
    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">&rarr;</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">&rarr;</span>', 'twentytwelve' ) ); ?>
     14        </div><!-- .entry-content -->
    1515
    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

     
    99
    1010get_header(); ?>
    1111
    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">
    1414
    15                 <?php if ( have_posts() ) : ?>
     15        <?php if ( have_posts() ) : ?>
    1616
    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>
    2020
    21                         <?php twentytwelve_content_nav( 'nav-above' ); ?>
     21                <?php twentytwelve_content_nav( 'nav-above' ); ?>
    2222
    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; ?>
    2727
    28                         <?php twentytwelve_content_nav( 'nav-below' ); ?>
     28                <?php twentytwelve_content_nav( 'nav-below' ); ?>
    2929
    30                 <?php else : ?>
     30        <?php else : ?>
    3131
    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 -->
    3636
    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 -->
    4242
    43                 <?php endif; ?>
     43        <?php endif; ?>
    4444
    45                 </div><!-- #content -->
    46         </section><!-- #primary .site-content -->
     45        </div><!-- #content -->
     46</section><!-- #primary .site-content -->
    4747
    4848<?php get_sidebar(); ?>
    4949<?php get_footer(); ?>
     50 No newline at end of file
  • wp-content/themes/twentytwelve/archive.php

     
    1414
    1515get_header(); ?>
    1616
    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">
    3719
    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>
    5337
    5438                        <?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 -->
    5753
    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();
    6357
    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() );
    6563
    66                         twentytwelve_content_nav( 'nav-below' );
    67                         ?>
     64                endwhile;
    6865
    69                 <?php else : ?>
    70                         <?php get_template_part( 'content', 'none' ); ?>
    71                 <?php endif; ?>
     66                twentytwelve_content_nav( 'nav-below' );
     67                ?>
    7268
    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 -->
    7575
    7676<?php get_sidebar(); ?>
    7777<?php get_footer(); ?>
     78 No newline at end of file