Make WordPress Core


Ignore:
Timestamp:
11/19/2010 05:37:47 AM (14 years ago)
Author:
nacin
Message:

Twenty Ten code cleanups. props lancewillett, fixes #15476.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/loop.php

    r16334 r16480  
    5858<?php /* How to display posts in the Gallery category. */ ?>
    5959
    60     <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) || 'gallery' == get_post_format( $post->ID ) ) : ?>
     60    <?php if ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) || 'gallery' == get_post_format( $post->ID ) ) : ?>
    6161        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    6262            <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
     
    6969<?php if ( post_password_required() ) : ?>
    7070                <?php the_content(); ?>
    71 <?php else : ?>         
    72                 <?php 
     71<?php else : ?>
     72                <?php
    7373                    $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
    7474                    if ( $images ) :
     
    9090
    9191            <div class="entry-utility">
    92                 <a href="<?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
     92                <a href="<?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
    9393                <span class="meta-sep">|</span>
    9494                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
     
    9999<?php /* How to display posts in the asides category */ ?>
    100100
    101     <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) || 'aside' == get_post_format( $post->ID ) ) : ?>
     101    <?php elseif ( in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) || 'aside' == get_post_format( $post->ID ) ) : ?>
    102102        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    103103
Note: See TracChangeset for help on using the changeset viewer.