Ticket #15476: twentyten-cleanup.diff
File twentyten-cleanup.diff, 8.0 KB (added by , 14 years ago) |
---|
-
footer.php
23 23 ?> 24 24 25 25 <div id="site-info"> 26 <a href="<?php echo home_url( '/' ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">26 <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 27 27 <?php bloginfo( 'name' ); ?> 28 28 </a> 29 29 </div><!-- #site-info --> 30 30 31 31 <div id="site-generator"> 32 32 <?php do_action( 'twentyten_credits' ); ?> 33 <a href="<?php echo esc_url( __('http://wordpress.org/', 'twentyten') ); ?>" 34 title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?>" rel="generator"> 35 <?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?> 36 </a> 33 <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a> 37 34 </div><!-- #site-generator --> 38 35 39 36 </div><!-- #colophon --> -
loop-attachment.php
29 29 30 30 <div class="entry-meta"> 31 31 <?php 32 printf( __('<span class="%1$s">By</span> %2$s', 'twentyten'),32 printf( __( '<span class="%1$s">By</span> %2$s', 'twentyten' ), 33 33 'meta-prep meta-prep-author', 34 34 sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 35 35 get_author_posts_url( get_the_author_meta( 'ID' ) ), … … 40 40 ?> 41 41 <span class="meta-sep">|</span> 42 42 <?php 43 printf( __( '<span class="%1$s">Published</span> %2$s', 'twentyten'),43 printf( __( '<span class="%1$s">Published</span> %2$s', 'twentyten' ), 44 44 'meta-prep meta-prep-entry-date', 45 45 sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>', 46 46 esc_attr( get_the_time() ), … … 50 50 if ( wp_attachment_is_image() ) { 51 51 echo ' <span class="meta-sep">|</span> '; 52 52 $metadata = wp_get_attachment_metadata(); 53 printf( __( 'Full size is %s pixels', 'twentyten' ),53 printf( __( 'Full size is %s pixels', 'twentyten' ), 54 54 sprintf( '<a href="%1$s" title="%2$s">%3$s × %4$s</a>', 55 55 wp_get_attachment_url(), 56 esc_attr( __( 'Link to full-size image', 'twentyten') ),56 esc_attr( __( 'Link to full-size image', 'twentyten' ) ), 57 57 $metadata['width'], 58 58 $metadata['height'] 59 59 ) -
rtl.css
94 94 -------------------------------------------------------------- */ 95 95 96 96 /* Text elements */ 97 ul {97 ul, ol { 98 98 margin: 0 1.5em 18px 0; 99 99 } 100 100 blockquote { -
index.php
4 4 * 5 5 * This is the most generic template file in a WordPress theme 6 6 * and one of the two required files for a theme (the other being style.css). 7 * It is used to display a page when nothing more specific matches a query. 7 * It is used to display a page when nothing more specific matches a query. 8 8 * E.g., it puts together the home page when no home.php file exists. 9 9 * Learn more: http://codex.wordpress.org/Template_Hierarchy 10 10 * -
functions.php
335 335 case 'trackback' : 336 336 ?> 337 337 <li class="post pingback"> 338 <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten'), ' ' ); ?></p>338 <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p> 339 339 <?php 340 340 break; 341 341 endswitch; -
sidebar.php
18 18 * some default sidebar stuff just in case. 19 19 */ 20 20 if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?> 21 21 22 22 <li id="search" class="widget-container widget_search"> 23 23 <?php get_search_form(); ?> 24 24 </li> -
loop.php
57 57 58 58 <?php /* How to display posts in the Gallery category. */ ?> 59 59 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 ) ) : ?> 61 61 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 62 62 <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> 63 63 … … 68 68 <div class="entry-content"> 69 69 <?php if ( post_password_required() ) : ?> 70 70 <?php the_content(); ?> 71 <?php else : ?> 72 <?php 71 <?php else : ?> 72 <?php 73 73 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); 74 74 if ( $images ) : 75 75 $total_images = count( $images ); … … 89 89 </div><!-- .entry-content --> 90 90 91 91 <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> 93 93 <span class="meta-sep">|</span> 94 94 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 95 95 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> … … 98 98 99 99 <?php /* How to display posts in the asides category */ ?> 100 100 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 ) ) : ?> 102 102 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 103 103 104 104 <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?> -
archive.php
32 32 <?php if ( is_day() ) : ?> 33 33 <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?> 34 34 <?php elseif ( is_month() ) : ?> 35 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'F Y') ); ?>35 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'F Y' ) ); ?> 36 36 <?php elseif ( is_year() ) : ?> 37 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'Y') ); ?>37 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'Y' ) ); ?> 38 38 <?php else : ?> 39 39 <?php _e( 'Blog Archives', 'twentyten' ); ?> 40 40 <?php endif; ?>