Changeset 18244
- Timestamp:
- 06/10/2011 09:57:18 PM (13 years ago)
- Location:
- trunk/wp-content/themes/twentyeleven
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/author.php
r17959 r18244 25 25 26 26 <header class="page-header"> 27 <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID") ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>27 <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<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> 28 28 </header> 29 29 -
trunk/wp-content/themes/twentyeleven/content-aside.php
r18189 r18244 40 40 41 41 <footer class="entry-meta"> 42 <?php 43 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 44 get_permalink(), 45 get_the_date( 'c' ), 46 get_the_date(), 47 get_author_posts_url( get_the_author_meta( 'ID' ) ), 48 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 49 get_the_author() 50 ); 51 ?> 42 <?php twentyeleven_posted_on(); ?> 52 43 <?php if ( comments_open() ) : ?> 53 44 <span class="sep"> | </span> -
trunk/wp-content/themes/twentyeleven/content-featured.php
r18189 r18244 15 15 16 16 <div class="entry-meta"> 17 <?php 18 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 19 get_permalink(), 20 get_the_date( 'c' ), 21 get_the_date(), 22 get_author_posts_url( get_the_author_meta( 'ID' ) ), 23 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 24 get_the_author() 25 ); 26 ?> 17 <?php twentyeleven_posted_on(); ?> 27 18 </div><!-- .entry-meta --> 28 19 </header><!-- .entry-header --> … … 47 38 get_the_category_list( __( ', ', 'twentyeleven' ) ), 48 39 $tag_list, 49 get_permalink(),40 esc_url( get_permalink() ), 50 41 the_title_attribute( 'echo=0' ) 51 42 ); -
trunk/wp-content/themes/twentyeleven/content-gallery.php
r18189 r18244 19 19 20 20 <div class="entry-meta"> 21 <?php 22 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 23 get_permalink(), 24 get_the_date( 'c' ), 25 get_the_date(), 26 get_author_posts_url( get_the_author_meta( 'ID' ) ), 27 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 28 get_the_author() 29 ); 30 ?> 21 <?php twentyeleven_posted_on(); ?> 31 22 </div><!-- .entry-meta --> 32 23 </header><!-- .entry-header --> … … 55 46 56 47 <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ), 57 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',48 'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', 58 49 number_format_i18n( $total_images ) 59 50 ); ?></em></p> -
trunk/wp-content/themes/twentyeleven/content-image.php
r18189 r18244 33 33 <div class="entry-meta"> 34 34 <?php 35 printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),36 get_permalink(),35 printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ), 36 esc_url( get_permalink() ), 37 37 get_the_date( 'c' ), 38 38 get_the_date(), 39 get_author_posts_url( get_the_author_meta( 'ID') ),39 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 40 40 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 41 41 get_the_author() -
trunk/wp-content/themes/twentyeleven/content-link.php
r18189 r18244 40 40 41 41 <footer class="entry-meta"> 42 <?php 43 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 44 get_permalink(), 45 get_the_date( 'c' ), 46 get_the_date(), 47 get_author_posts_url( get_the_author_meta( 'ID' ) ), 48 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 49 get_the_author() 50 ); 51 ?> 42 <?php twentyeleven_posted_on(); ?> 52 43 <?php if ( comments_open() ) : ?> 53 44 <span class="sep"> | </span> -
trunk/wp-content/themes/twentyeleven/content-quote.php
r18189 r18244 18 18 <?php if ( 'post' == $post->post_type ) : ?> 19 19 <div class="entry-meta"> 20 <?php 21 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 22 get_permalink(), 23 get_the_date( 'c' ), 24 get_the_date(), 25 get_author_posts_url( get_the_author_meta( 'ID' ) ), 26 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 27 get_the_author() 28 ); 29 ?> 20 <?php twentyeleven_posted_on(); ?> 30 21 </div><!-- .entry-meta --> 31 22 <?php endif; ?> -
trunk/wp-content/themes/twentyeleven/content-single.php
r18189 r18244 14 14 15 15 <div class="entry-meta"> 16 <?php 17 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 18 get_permalink(), 19 get_the_date( 'c' ), 20 get_the_date(), 21 get_author_posts_url( get_the_author_meta( 'ID' ) ), 22 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 23 get_the_author() 24 ); 25 ?> 16 <?php twentyeleven_posted_on(); ?> 26 17 </div><!-- .entry-meta --> 27 18 </header><!-- .entry-header --> … … 46 37 get_the_category_list( __( ', ', 'twentyeleven' ) ), 47 38 $tag_list, 48 get_permalink(),39 esc_url( get_permalink() ), 49 40 the_title_attribute( 'echo=0' ), 50 41 get_the_author(), 51 get_author_posts_url( get_the_author_meta( 'ID') )42 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) 52 43 ); 53 44 ?> … … 63 54 <?php the_author_meta( 'description' ); ?> 64 55 <div id="author-link"> 65 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID') ); ?>" rel="author">56 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 66 57 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyeleven' ), get_the_author() ); ?> 67 58 </a> -
trunk/wp-content/themes/twentyeleven/content-status.php
r18189 r18244 41 41 42 42 <footer class="entry-meta"> 43 <?php 44 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 45 get_permalink(), 46 get_the_date( 'c' ), 47 get_the_date(), 48 get_author_posts_url( get_the_author_meta( 'ID' ) ), 49 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 50 get_the_author() 51 ); 52 ?> 43 <?php twentyeleven_posted_on(); ?> 53 44 <?php if ( comments_open() ) : ?> 54 45 <span class="sep"> | </span> -
trunk/wp-content/themes/twentyeleven/content.php
r18189 r18244 22 22 <?php if ( 'post' == $post->post_type ) : ?> 23 23 <div class="entry-meta"> 24 <?php 25 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 26 get_permalink(), 27 get_the_date( 'c' ), 28 get_the_date(), 29 get_author_posts_url( get_the_author_meta( 'ID' ) ), 30 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 31 get_the_author() 32 ); 33 ?> 24 <?php twentyeleven_posted_on(); ?> 34 25 </div><!-- .entry-meta --> 35 26 <?php endif; ?> -
trunk/wp-content/themes/twentyeleven/functions.php
r18140 r18244 301 301 $style = ' style="color:#' . get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) . ';"'; 302 302 ?> 303 <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo home_url( '/'); ?>"><?php bloginfo( 'name' ); ?></a></h1>303 <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 304 304 <div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div> 305 305 <?php $header_image = get_header_image(); … … 326 326 */ 327 327 function twentyeleven_continue_reading_link() { 328 return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) . '</a>';328 return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) . '</a>'; 329 329 } 330 330 … … 560 560 } 561 561 endif; // ends check for twentyeleven_comment() 562 563 if ( ! function_exists( 'twentyeleven_posted_on' ) ) : 564 /** 565 * Prints HTML with meta information for the current post-date/time and author. 566 * 567 * @since Twenty Eleven 1.0 568 */ 569 function twentyeleven_posted_on() { 570 printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ), 571 esc_url( get_permalink() ), 572 esc_attr( get_the_time() ), 573 esc_attr( get_the_date( 'c' ) ), 574 esc_html( get_the_date() ), 575 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 576 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 577 esc_html( get_the_author() ) 578 ); 579 } 580 endif; 581 582 /** 583 * Adds Twenty Eleven author class to the array of body classes. 584 * 585 * @since Twenty Eleven 1.0 586 */ 587 function twentyeleven_author_class( $classes ) { 588 589 if ( ! is_multi_author() ) { 590 $classes[] = 'single-author'; 591 } 592 593 return $classes; 594 } 595 add_filter( 'body_class', 'twentyeleven_author_class' ); -
trunk/wp-content/themes/twentyeleven/header.php
r18181 r18244 72 72 <header id="branding" role="banner"> 73 73 <hgroup> 74 <h1 id="site-title"><span><a href="<?php echo home_url( '/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>74 <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1> 75 75 <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2> 76 76 </hgroup> … … 81 81 if ( ! empty( $header_image ) ) : 82 82 ?> 83 <a href="<?php echo home_url( '/'); ?>">83 <a href="<?php echo esc_url( home_url( '/' ) ); ?>"> 84 84 <?php 85 85 // The header image -
trunk/wp-content/themes/twentyeleven/image.php
r18072 r18244 30 30 esc_attr( get_the_time() ), 31 31 get_the_date(), 32 wp_get_attachment_url(),32 esc_url( wp_get_attachment_url() ), 33 33 $metadata['width'], 34 34 $metadata['height'], 35 get_permalink( $post->post_parent),35 esc_url( get_permalink( $post->post_parent ) ), 36 36 get_the_title( $post->post_parent ) 37 37 ); … … 70 70 } 71 71 ?> 72 <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php72 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 73 73 $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 ); 74 74 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height. … … 93 93 <footer class="entry-meta"> 94 94 <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?> 95 <?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>.', 'twentyeleven' ), get_trackback_url() ); ?>95 <?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>.', 'twentyeleven' ), esc_url( get_trackback_url() ) ); ?> 96 96 <?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?> 97 <?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>.', 'twentyeleven' ), get_trackback_url() ); ?>97 <?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>.', 'twentyeleven' ), esc_url( get_trackback_url() ) ); ?> 98 98 <?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?> 99 99 <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyeleven' ); ?> -
trunk/wp-content/themes/twentyeleven/searchform.php
r18166 r18244 8 8 */ 9 9 ?> 10 <form method="get" id="searchform" action="<?php echo home_url( '/'); ?>">10 <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> 11 11 <label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label> 12 12 <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" /> -
trunk/wp-content/themes/twentyeleven/style.css
r18190 r18244 738 738 .entry-meta a { 739 739 font-weight: bold; 740 } 741 .single-author .entry-meta .by-author { 742 display: none; 740 743 } 741 744 .entry-content,
Note: See TracChangeset
for help on using the changeset viewer.