Changeset 13029
- Timestamp:
- 02/08/2010 08:28:13 PM (15 years ago)
- Location:
- trunk/wp-content/themes/twentyten
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/archive.php
r13025 r13029 28 28 29 29 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 30 <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>30 <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> 31 31 32 32 <div class="entry-meta"> 33 33 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 34 34 <a href="<?php 35 the_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>35 the_permalink(); ?>" title="<?php echo esc_attr( get_the_time('Y-m-d\TH:i:sO') ); ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a> 36 36 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 37 <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>37 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 38 38 </div><!-- .entry-meta --> 39 39 -
trunk/wp-content/themes/twentyten/attachment.php
r13025 r13029 6 6 <?php the_post(); ?> 7 7 8 <p class="page-title"><a href="<?php echo get_permalink($post->post_parent) ?>" title="<?php printf( __( 'Return to %s', 'twentyten' ), wp_specialchars( get_the_title($post->post_parent), 1 ) ) ?>" rel="gallery">← <?php echo get_the_title($post->post_parent) ?></a></p>8 <p class="page-title"><a href="<?php echo get_permalink($post->post_parent) ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), wp_specialchars( get_the_title($post->post_parent), 1 ) ) ?>" rel="gallery">← <?php echo get_the_title($post->post_parent) ?></a></p> 9 9 10 10 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 13 13 <div class="entry-meta"> 14 14 <span class="meta-prep meta-prep-author"><?php _e('By ', 'twentyten'); ?></span> 15 <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>15 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 16 16 <span class="meta-sep"> | </span> 17 17 <span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'twentyten'); ?></span> … … 23 23 <div class="entry-attachment"> 24 24 <?php if ( wp_attachment_is_image( $post->id ) ) : $att_image = wp_get_attachment_image_src( $post->id, array(640,640)); ?> 25 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->id); ?>" title="<?php the_title(); ?>" rel="attachment"><img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a>25 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->id); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a> 26 26 </p> 27 27 … … 32 32 </div><!-- #nav-below --> 33 33 <?php else : ?> 34 <a href="<?php echo wp_get_attachment_url($post->ID) ?>" title="<?php echo wp_specialchars( get_the_title($post->ID), 1 )?>" rel="attachment"><?php echo basename($post->guid) ?></a>34 <a href="<?php echo wp_get_attachment_url($post->ID) ?>" title="<?php echo esc_attr( get_the_title($post->ID) ); ?>" rel="attachment"><?php echo basename($post->guid) ?></a> 35 35 <?php endif; ?> 36 36 </div> … … 50 50 comments_rss() ) ?> 51 51 52 <?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>52 <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?> 53 53 <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ) ?> 54 <?php elseif ( ! ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>54 <?php elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?> 55 55 <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ) ?> 56 <?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>56 <?php elseif ( comments_open() && !pings_open() ) : // Only comments open ?> 57 57 <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ) ?> 58 <?php elseif ( ! ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>58 <?php elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?> 59 59 <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ) ?> 60 60 <?php endif; ?> -
trunk/wp-content/themes/twentyten/author.php
r13025 r13029 6 6 <?php the_post(); ?> 7 7 8 <h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'twentyten' ), "<a class='url fn n' href='$authordata->user_url' title=' $authordata->display_name' rel='me'>$authordata->display_name</a>" ) ?></h1>8 <h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'twentyten' ), "<a class='url fn n' href='$authordata->user_url' title='" . esc_attr($authordata->display_name) . "' rel='me'>" . esc_html($authordata->display_name) . "</a>" ) ?></h1> 9 9 10 10 <?php if ( get_the_author_meta('description') ) : // If a user has filled out their decscription show a bio on their entries ?> … … 32 32 33 33 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 34 <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>34 <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> 35 35 36 36 <div class="entry-meta"> -
trunk/wp-content/themes/twentyten/category.php
r13025 r13029 22 22 23 23 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 24 <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>24 <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> 25 25 26 26 <div class="entry-meta"> … … 29 29 the_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> 30 30 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 31 <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>31 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 32 32 </div><!-- .entry-meta --> 33 33 -
trunk/wp-content/themes/twentyten/comments.php
r13027 r13029 75 75 <div id="form-section-author" class="form-section"> 76 76 <div class="form-label"><label for="author"><?php _e('Name', 'twentyten') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'twentyten') ?></div> 77 <div class="form-input"><input id="author" name="author" type="text" value="<?php echo $comment_author?>" size="30" tabindex="3" /></div>77 <div class="form-input"><input id="author" name="author" type="text" value="<?php echo esc_attr($comment_author) ?>" size="30" tabindex="3" /></div> 78 78 </div><!-- #form-section-author .form-section --> 79 79 80 80 <div id="form-section-email" class="form-section"> 81 81 <div class="form-label"><label for="email"><?php _e('Email', 'twentyten') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'twentyten') ?></div> 82 <div class="form-input"><input id="email" name="email" type="text" value="<?php echo $comment_author_email?>" size="30" tabindex="4" /></div>82 <div class="form-input"><input id="email" name="email" type="text" value="<?php echo esc_attr($comment_author_email) ?>" size="30" tabindex="4" /></div> 83 83 </div><!-- #form-section-email .form-section --> 84 84 85 85 <div id="form-section-url" class="form-section"> 86 86 <div class="form-label"><label for="url"><?php _e('Website', 'twentyten') ?></label></div> 87 <div class="form-input"><input id="url" name="url" type="text" value="<?php echo $comment_author_url?>" size="30" tabindex="5" /></div>87 <div class="form-input"><input id="url" name="url" type="text" value="<?php echo esc_attr($comment_author_url) ?>" size="30" tabindex="5" /></div> 88 88 </div><!-- #form-section-url .form-section --> 89 89 … … 101 101 <?php do_action('comment_form', $post->ID); ?> 102 102 103 <div class="form-submit"><input id="submit" name="submit" type="submit" value="<?php _e('Post Comment', 'twentyten') ?>" tabindex="7" /><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></div>103 <div class="form-submit"><input id="submit" name="submit" type="submit" value="<?php esc_attr_e('Post Comment', 'twentyten') ?>" tabindex="7" /><input type="hidden" name="comment_post_ID" value="<?php echo esc_attr($id); ?>" /></div> 104 104 105 105 <?php comment_id_fields(); ?> -
trunk/wp-content/themes/twentyten/footer.php
r13024 r13029 7 7 8 8 <div id="site-info"> 9 <a href="<?php bloginfo( 'url' ) ?>/" title="<?php bloginfo( 'name' )?>" rel="home"><?php bloginfo( 'name' ) ?></a>9 <a href="<?php bloginfo( 'url' ) ?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ) ?></a> 10 10 </div> 11 11 12 12 <div id="site-generator"> 13 <?php printf( __('Proudly powered by <span id="generator-link">%s</span>.', 'twentyten'), '<a href="http://wordpress.org/" title="' . __( 'Semantic Personal Publishing Platform', 'twentyten' ) . '" rel="generator">' . __( 'WordPress', 'twentyten' ) . '</a>' ); ?>13 <?php printf( __('Proudly powered by <span id="generator-link">%s</span>.', 'twentyten'), '<a href="http://wordpress.org/" title="' . esc_attr__( 'Semantic Personal Publishing Platform', 'twentyten' ) . '" rel="generator">' . __( 'WordPress', 'twentyten' ) . '</a>' ); ?> 14 14 </div> 15 15 -
trunk/wp-content/themes/twentyten/functions.php
r13025 r13029 50 50 // Get the page number 51 51 function get_page_number() { 52 if ( get_query_var('paged') ) {52 if ( get_query_var('paged') ) 53 53 print ' | ' . __( 'Page ' , 'twentyten') . get_query_var('paged'); 54 }55 54 } // end get_page_number 56 55 … … 67 66 // Make a nice read more link on excerpts 68 67 function new_excerpt_more($more) { 69 return ' … <a href="'. get_permalink($post->ID) . '">' . 'Continue reading <span class="meta-nav">→</span>' . '</a>';68 return ' … <a href="'. get_permalink() . '">' . 'Continue reading <span class="meta-nav">→</span>' . '</a>'; 70 69 } 71 70 add_filter('excerpt_more', 'new_excerpt_more'); … … 125 124 function remove_gallery_css() { 126 125 return "<div class='gallery'>"; 127 128 126 } 127 add_filter('gallery_style', 'remove_gallery_css'); 129 128 130 129 … … 241 240 // Add all the groovy widget areas 242 241 add_action( 'init', 'theme_widgets_init' ); 243 244 -
trunk/wp-content/themes/twentyten/header.php
r13025 r13029 21 21 <?php wp_head(); ?> 22 22 23 <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( __( '%s latest posts', 'twentyten' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />24 <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'twentyten' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />23 <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( esc_attr__( '%s latest posts', 'twentyten' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" /> 24 <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( esc_attr__( '%s latest comments', 'twentyten' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" /> 25 25 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> 26 26 </head> … … 33 33 34 34 <div id="branding"> 35 <div id="site-title"><span><a href="<?php bloginfo( 'url' ) ?>/" title="<?php bloginfo( 'name' )?>" rel="home"><?php bloginfo( 'name' ) ?></a></span></div>35 <div id="site-title"><span><a href="<?php bloginfo( 'url' ) ?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ) ?></a></span></div> 36 36 <div id="site-description"><?php bloginfo( 'description' ) ?></div> 37 37 … … 46 46 47 47 <div id="access"> 48 <div class="skip-link screen-reader-text"><a href="#content" title="<?php _e( 'Skip to content', 'twentyten' ) ?>"><?php _e( 'Skip to content', 'twentyten' ) ?></a></div>48 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ) ?>"><?php _e( 'Skip to content', 'twentyten' ) ?></a></div> 49 49 <?php wp_page_menu( 'sort_column=menu_order' ); ?> 50 50 </div><!-- #access --> -
trunk/wp-content/themes/twentyten/index.php
r13024 r13029 14 14 <?php if ( in_category( 'Gallery' ) ) { ?> 15 15 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 16 <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>16 <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> 17 17 18 18 <div class="entry-meta"> … … 21 21 the_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> 22 22 <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( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 24 24 </div><!-- .entry-meta --> 25 25 … … 27 27 <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 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>29 <p><em><?php printf( __('This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten'), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__('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 30 31 31 <?php the_excerpt(''); ?> … … 37 37 $category_link = get_category_link( $category_id ); 38 38 ?> 39 <a href="<?php echo $category_link; ?>" title="<?php _e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a>39 <a href="<?php echo $category_link; ?>" title="<?php esc_attr_e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a> 40 40 41 41 <span class="meta-sep"> | </span> … … 59 59 the_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> 60 60 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 61 <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>61 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 62 62 <span class="meta-sep"> | </span> 63 63 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> … … 69 69 <?php } else { ?> 70 70 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 71 <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>71 <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> 72 72 73 73 <div class="entry-meta"> … … 76 76 the_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> 77 77 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </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>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( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 79 79 </div><!-- .entry-meta --> 80 80 -
trunk/wp-content/themes/twentyten/search.php
r13025 r13029 18 18 19 19 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 20 <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>20 <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> 21 21 22 22 <?php if ( $post->post_type == 'post' ) { ?> … … 26 26 the_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> 27 27 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 28 <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>28 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 29 29 </div><!-- .entry-meta --> 30 30 <?php } ?> -
trunk/wp-content/themes/twentyten/searchform.php
r13024 r13029 1 <form id="searchform" name="searchform" method="get" action=" /">1 <form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>"> 2 2 <div> 3 3 <label for="s"><?php _e('Search', 'twentyten'); ?></label> 4 4 <input type="text" id="s" name="s" /> 5 <input type="submit" id="searchsubmit" value="<?php _e('Search', 'twentyten'); ?>" />5 <input type="submit" id="searchsubmit" value="<?php esc_attr_e('Search', 'twentyten'); ?>" /> 6 6 </div> 7 7 </form> -
trunk/wp-content/themes/twentyten/single.php
r13025 r13029 16 16 <div class="entry-meta"> 17 17 <span class="meta-prep meta-prep-author"><?php _e('Posted by ', 'twentyten'); ?></span> 18 <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>18 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 19 19 <span class="meta-sep"> <?php _e('on ', 'twentyten'); ?> </span> 20 20 <a href="<?php … … 37 37 <?php the_author_meta('description'); ?> 38 38 <div id="author-link"> 39 <a 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 _e('View all posts by ', 'twentyten'); ?><?php the_author(); ?> →</a>39 <a href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php _e('View all posts by ', 'twentyten'); ?><?php the_author(); ?> →</a> 40 40 </div><!-- #author-link --> 41 41 </div><!-- #author-description --> -
trunk/wp-content/themes/twentyten/tag.php
r13025 r13029 20 20 21 21 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 22 <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>22 <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> 23 23 24 24 <div class="entry-meta"> … … 26 26 <a href="<?php the_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> 27 27 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 28 <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>28 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 29 29 </div><!-- .entry-meta --> 30 30
Note: See TracChangeset
for help on using the changeset viewer.