Changeset 31266
- Timestamp:
- 01/22/2015 12:41:58 AM (10 years ago)
- Location:
- trunk/src/wp-content/themes/twentyten
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyten/archive.php
r25746 r31266 55 55 * called loop-archive.php and that will be used instead. 56 56 */ 57 57 get_template_part( 'loop', 'archive' ); 58 58 ?> 59 59 -
trunk/src/wp-content/themes/twentyten/author.php
r25746 r31266 26 26 ?> 27 27 28 <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), "<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>28 <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), '<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> 29 29 30 30 <?php … … 64 64 * called loop-author.php and that will be used instead. 65 65 */ 66 66 get_template_part( 'loop', 'author' ); 67 67 ?> 68 68 </div><!-- #content --> -
trunk/src/wp-content/themes/twentyten/footer.php
r25746 r31266 25 25 26 26 <div id="site-info"> 27 <a href="<?php echo home_url( '/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">27 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 28 28 <?php bloginfo( 'name' ); ?> 29 29 </a> -
trunk/src/wp-content/themes/twentyten/functions.php
r30145 r31266 571 571 $galleries = get_post_galleries( get_the_ID(), false ); 572 572 if ( isset( $galleries[0]['ids'] ) ) 573 573 $images = explode( ',', $galleries[0]['ids'] ); 574 574 } else { 575 575 $pattern = get_shortcode_regex(); -
trunk/src/wp-content/themes/twentyten/header.php
r28250 r31266 31 31 // Add a page number if necessary: 32 32 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) 33 echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page) );33 echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) ); 34 34 35 35 ?></title> … … 63 63 <<?php echo $heading_tag; ?> id="site-title"> 64 64 <span> 65 <a href="<?php echo home_url( '/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>65 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> 66 66 </span> 67 67 </<?php echo $heading_tag; ?>> … … 97 97 } 98 98 ?> 99 <img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" />99 <img src="<?php header_image(); ?>" width="<?php echo esc_attr( $header_image_width ); ?>" height="<?php echo esc_attr( $header_image_height ); ?>" alt="" /> 100 100 <?php endif; ?> 101 101 </div><!-- #branding --> -
trunk/src/wp-content/themes/twentyten/index.php
r25746 r31266 25 25 * called loop-index.php and that will be used instead. 26 26 */ 27 27 get_template_part( 'loop', 'index' ); 28 28 ?> 29 29 </div><!-- #content --> -
trunk/src/wp-content/themes/twentyten/loop-attachment.php
r28585 r31266 81 81 else 82 82 // or get the URL of the first image attachment 83 $next_attachment_url = get_attachment_link( $attachments[ 0]->ID );83 $next_attachment_url = get_attachment_link( $attachments[0]->ID ); 84 84 } else { 85 85 // or, if there's only 1 image attachment, get the URL of the image … … 112 112 </div><!-- #nav-below --> 113 113 <?php else : ?> 114 <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>114 <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo esc_html( basename( get_permalink() ) ); ?></a> 115 115 <?php endif; ?> 116 116 </div><!-- .entry-attachment --> 117 <div class="entry-caption"><?php if ( ! empty( $post->post_excerpt ) ) the_excerpt(); ?></div>117 <div class="entry-caption"><?php if ( ! empty( $post->post_excerpt ) ) the_excerpt(); ?></div> 118 118 119 119 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> -
trunk/src/wp-content/themes/twentyten/loop-single.php
r25868 r31266 47 47 <?php the_author_meta( 'description' ); ?> 48 48 <div id="author-link"> 49 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID') ); ?>" rel="author">49 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 50 50 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() ); ?> 51 51 </a> -
trunk/src/wp-content/themes/twentyten/loop.php
r25746 r31266 82 82 </div><!-- .gallery-thumb --> 83 83 <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, 'twentyten' ), 84 'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',84 'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', 85 85 number_format_i18n( $total_images ) 86 86 ); ?></em></p> … … 92 92 <div class="entry-utility"> 93 93 <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?> 94 <a href="<?php echo get_post_format_link( 'gallery'); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>94 <a href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 95 95 <span class="meta-sep">|</span> 96 96 <?php elseif ( $gallery = get_term_by( 'slug', _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ) && in_category( $gallery->term_id ) ) : ?> 97 <a href="<?php echo get_category_link( $gallery); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>97 <a href="<?php echo esc_url( get_category_link( $gallery ) ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 98 98 <span class="meta-sep">|</span> 99 99 <?php endif; ?> -
trunk/src/wp-content/themes/twentyten/onecolumn-page.php
r25746 r31266 24 24 * called loop-page.php and that will be used instead. 25 25 */ 26 26 get_template_part( 'loop', 'page' ); 27 27 ?> 28 28 -
trunk/src/wp-content/themes/twentyten/search.php
r25746 r31266 21 21 * called loop-search.php and that will be used instead. 22 22 */ 23 23 get_template_part( 'loop', 'search' ); 24 24 ?> 25 25 <?php else : ?> -
trunk/src/wp-content/themes/twentyten/style.css
r30967 r31266 8 8 License: GNU General Public License v2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header 10 Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, featured-image-header 11 11 Text Domain: twentyten 12 12 */ -
trunk/src/wp-content/themes/twentyten/tag.php
r25746 r31266 23 23 * called loop-tag.php and that will be used instead. 24 24 */ 25 25 get_template_part( 'loop', 'tag' ); 26 26 ?> 27 27 </div><!-- #content -->
Note: See TracChangeset
for help on using the changeset viewer.