Ticket #29127: 29127.twentytwelve.2.patch
File 29127.twentytwelve.2.patch, 5.3 KB (added by , 10 years ago) |
---|
-
wp-content/themes/twentytwelve/author.php
29 29 ?> 30 30 31 31 <header class="archive-header"> 32 <h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<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>32 <h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<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> 33 33 </header><!-- .archive-header --> 34 34 35 35 <?php -
wp-content/themes/twentytwelve/functions.php
279 279 function twentytwelve_content_nav( $html_id ) { 280 280 global $wp_query; 281 281 282 $html_id = esc_attr( $html_id );283 284 282 if ( $wp_query->max_num_pages > 1 ) : ?> 285 <nav id="<?php echo $html_id; ?>" class="navigation" role="navigation">283 <nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation"> 286 284 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> 287 285 <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div> 288 286 <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div> 289 </nav><!-- #<?php echo $html_id; ?>.navigation -->287 </nav><!-- .navigation --> 290 288 <?php endif; 291 289 } 292 290 endif; -
wp-content/themes/twentytwelve/header.php
46 46 </nav><!-- #site-navigation --> 47 47 48 48 <?php if ( get_header_image() ) : ?> 49 <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>49 <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="" /></a> 50 50 <?php endif; ?> 51 51 </header><!-- #masthead --> 52 52 53 <div id="main" class="wrapper"> 54 No newline at end of file 53 <div id="main" class="wrapper"> -
wp-content/themes/twentytwelve/image.php
66 66 $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); 67 67 else : 68 68 // or get the URL of the first image attachment 69 $next_attachment_url = get_attachment_link( $attachments[ 0]->ID );69 $next_attachment_url = get_attachment_link( $attachments[0]->ID ); 70 70 endif; 71 71 else : 72 72 // or, if there's only 1 image, get the URL of the image -
wp-content/themes/twentytwelve/inc/custom-header.php
147 147 * @since Twenty Twelve 1.0 148 148 */ 149 149 function twentytwelve_admin_header_image() { 150 $style = 'color: #' . get_header_textcolor() . ';'; 151 if ( ! display_header_text() ) 152 $style = 'display: none;'; 150 153 ?> 151 154 <div id="headimg"> 152 <?php 153 if ( ! display_header_text() ) 154 $style = ' style="display:none;"'; 155 else 156 $style = ' style="color:#' . get_header_textcolor() . ';"'; 157 ?> 158 <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 159 <h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2> 155 <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 156 <h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></h2> 160 157 <?php $header_image = get_header_image(); 161 158 if ( ! empty( $header_image ) ) : ?> 162 <img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />159 <img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="" /> 163 160 <?php endif; ?> 164 161 </div> 165 <?php } 166 No newline at end of file 162 <?php } 163