Make WordPress Core


Ignore:
Timestamp:
02/08/2010 05:59:08 PM (16 years ago)
Author:
ryan
Message:

gettext for twentyten. see #12170

File:
1 edited

Legend:

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

    r13012 r13024  
    11<?php get_header(); ?>
    2    
    3         <div id="container">   
     2
     3        <div id="container">
    44            <div id="content">
    5            
     5
    66<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    77                <div id="nav-above" class="navigation">
     
    99                    <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    1010                </div><!-- #nav-above -->
    11 <?php } ?>         
    12    
    13     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
     11<?php } ?>
     12
     13    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    1414    <?php if ( in_category( 'Gallery' ) ) { ?>
    1515        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    2121the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
    2222                <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
    23                 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>                 
     23                <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
    2424            </div><!-- .entry-meta -->
    2525
    2626            <div class="entry-content">
    2727                <div class="gallery-thumb"><a class="size-thumbnail" href="<?php permalink_link() ?>"><?php $hilite = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment' LIMIT 1" ); echo wp_get_attachment_image( $hilite, 'thumbnail' );?></a></div>
    28                        
    29                 <p><em>This gallery contains <a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php echo $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment'" ); ?> photos</a>.</em></p>
    30                
     28
     29                <p><em><?php printf( __('This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten'), 'href="' . get_permalink() . '" title="' . sprintf( __('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ) . '" rel="bookmark"', $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment'" )); ?></em></p>
     30
    3131                <?php the_excerpt(''); ?>
    3232            </div><!-- .entry-content -->
     
    3939                <a href="<?php echo $category_link; ?>" title="<?php _e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a>
    4040
    41                 <span class="meta-sep"> | </span>               
     41                <span class="meta-sep"> | </span>
    4242
    4343                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
     
    4949
    5050    <?php } elseif ( in_category( 'asides' ) ) { ?>
    51         <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>                                       
    52             <div class="entry-content"> 
     51        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     52            <div class="entry-content">
    5353<?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
    5454            </div><!-- .entry-content -->
     
    6060                <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
    6161                <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
    62                 <span class="meta-sep"> | </span>           
     62                <span class="meta-sep"> | </span>
    6363                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
    6464                <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?>
    65             </div><!-- #entry-utility -->   
     65            </div><!-- #entry-utility -->
    6666        </div><!-- #post-<?php the_ID(); ?> -->
    67                
    68    
     67
     68
    6969    <?php } else { ?>
    7070        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    7171            <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    72            
     72
    7373            <div class="entry-meta">
    7474                <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
     
    7676the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
    7777                <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
    78                 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>                 
     78                <span class="author vcard"><a class="url fn n"2 href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
    7979            </div><!-- .entry-meta -->
    80                                
    81             <div class="entry-content"> 
     80
     81            <div class="entry-content">
    8282<?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
    8383<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
     
    9090                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
    9191                <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?>
    92             </div><!-- #entry-utility -->   
     92            </div><!-- #entry-utility -->
    9393        </div><!-- #post-<?php the_ID(); ?> -->
    94                
    95 <?php comments_template(); ?>               
    96    
     94
     95<?php comments_template(); ?>
     96
    9797    <?php } ?>
    9898    <?php endwhile; ?>
     
    103103        <?php get_search_form(); ?>
    104104        </div>
    105     <?php endif; ?>     
     105    <?php endif; ?>
    106106
    107107<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
     
    110110                    <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    111111                </div><!-- #nav-below -->
    112 <?php } ?>         
    113            
    114             </div><!-- #content -->     
     112<?php } ?>
     113
     114            </div><!-- #content -->
    115115        </div><!-- #container -->
    116        
    117 <?php get_sidebar(); ?> 
     116
     117<?php get_sidebar(); ?>
    118118<?php get_footer(); ?>
Note: See TracChangeset for help on using the changeset viewer.