Make WordPress Core

Changeset 22058


Ignore:
Timestamp:
09/27/2012 03:20:52 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Twelve: consistent indentation for content-* template files.

Location:
trunk/wp-content/themes/twentytwelve
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/content-aside.php

    r21723 r22058  
    99?>
    1010
    11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    12     <div class="aside">
    13         <h1 class="entry-title"><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>
    14         <div class="entry-content">
    15             <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
    16         </div><!-- .entry-content -->
    17     </div><!-- .aside -->
     11    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     12        <div class="aside">
     13            <h1 class="entry-title"><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>
     14            <div class="entry-content">
     15                <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
     16            </div><!-- .entry-content -->
     17        </div><!-- .aside -->
    1818
    19     <footer class="entry-meta">
    20         <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
    21         <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
    22     </footer><!-- .entry-meta -->
    23 </article><!-- #post -->
     19        <footer class="entry-meta">
     20            <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
     21            <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
     22        </footer><!-- .entry-meta -->
     23    </article><!-- #post -->
  • trunk/wp-content/themes/twentytwelve/content-none.php

    r21618 r22058  
    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>
     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>
    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 -->
  • trunk/wp-content/themes/twentytwelve/content-page.php

    r21618 r22058  
    99?>
    1010
    11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    12     <header class="entry-header">
    13         <h1 class="entry-title"><?php the_title(); ?></h1>
    14     </header>
     11    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     12        <header class="entry-header">
     13            <h1 class="entry-title"><?php the_title(); ?></h1>
     14        </header>
    1515
    16     <div class="entry-content">
    17         <?php the_content(); ?>
    18         <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
    19     </div><!-- .entry-content -->
    20     <footer class="entry-meta">
    21         <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
    22     </footer><!-- .entry-meta -->
    23 </article><!-- #post -->
     16        <div class="entry-content">
     17            <?php the_content(); ?>
     18            <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
     19        </div><!-- .entry-content -->
     20        <footer class="entry-meta">
     21            <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
     22        </footer><!-- .entry-meta -->
     23    </article><!-- #post -->
  • trunk/wp-content/themes/twentytwelve/content-quote.php

    r21723 r22058  
    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         <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
    18         <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
    19     </footer><!-- .entry-meta -->
    20 </article><!-- #post -->
     16        <footer class="entry-meta">
     17            <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
     18            <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
     19        </footer><!-- .entry-meta -->
     20    </article><!-- #post -->
Note: See TracChangeset for help on using the changeset viewer.