Ticket #21675: twentytwelve-misc.diff
File twentytwelve-misc.diff, 8.9 KB (added by , 13 years ago) |
---|
-
wp-content/themes/twentytwelve/search.php
10 10 get_header(); ?> 11 11 12 12 <section id="primary" class="site-content"> 13 13 14 <div id="content" role="main"> 14 15 15 16 <?php if ( have_posts() ) : ?> … … 43 44 <?php endif; ?> 44 45 45 46 </div><!-- #content --> 47 46 48 </section><!-- #primary --> 47 49 48 50 <?php get_sidebar(); ?> -
wp-content/themes/twentytwelve/404.php
10 10 get_header(); ?> 11 11 12 12 <div id="primary" class="site-content"> 13 13 14 <div id="content" role="main"> 14 15 15 16 <article id="post-0" class="post error404 no-results not-found"> 17 16 18 <header class="entry-header"> 17 19 <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentytwelve' ); ?></h1> 18 </header> 20 </header><!-- .entry-header --> 19 21 20 22 <div class="entry-content"> 21 23 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentytwelve' ); ?></p> 22 24 <?php get_search_form(); ?> 23 25 </div><!-- .entry-content --> 26 24 27 </article><!-- #post-0 --> 25 28 26 29 </div><!-- #content --> 30 27 31 </div><!-- #primary --> 28 32 29 <?php get_footer(); ?> 30 No newline at end of file 33 <?php get_footer(); ?> -
wp-content/themes/twentytwelve/single.php
10 10 get_header(); ?> 11 11 12 12 <div id="primary" class="site-content"> 13 13 14 <div id="content" role="main"> 14 15 15 16 <?php while ( have_posts() ) : the_post(); ?> … … 18 19 19 20 <nav class="nav-single"> 20 21 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> 22 21 23 <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span> 22 24 <span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span> 23 25 </nav><!-- .nav-single --> … … 31 33 <?php endwhile; // end of the loop. ?> 32 34 33 35 </div><!-- #content --> 36 34 37 </div><!-- #primary --> 35 38 36 39 <?php get_sidebar(); ?> -
wp-content/themes/twentytwelve/page.php
15 15 get_header(); ?> 16 16 17 17 <div id="primary" class="site-content"> 18 18 19 <div id="content" role="main"> 19 20 20 21 <?php while ( have_posts() ) : the_post(); ?> … … 23 24 <?php endwhile; // end of the loop. ?> 24 25 25 26 </div><!-- #content --> 27 26 28 </div><!-- #primary --> 27 29 28 30 <?php get_sidebar(); ?> -
wp-content/themes/twentytwelve/image.php
12 12 get_header(); ?> 13 13 14 14 <div id="primary" class="site-content"> 15 15 16 <div id="content" role="main"> 16 17 17 18 <?php while ( have_posts() ) : the_post(); ?> 18 19 19 20 <article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>> 21 20 22 <header class="entry-header"> 21 23 <h1 class="entry-title"><?php the_title(); ?></h1> 22 24 … … 59 61 endforeach; 60 62 61 63 $k++; 64 62 65 // If there is more than 1 attachment in a gallery 63 66 if ( count( $attachments ) > 1 ) : 64 67 if ( isset( $attachments[ $k ] ) ) : … … 73 76 $next_attachment_url = wp_get_attachment_url(); 74 77 endif; 75 78 ?> 76 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php 77 $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) ); 78 echo wp_get_attachment_image( $post->ID, $attachment_size ); 79 ?></a> 79 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"> 80 <?php 81 $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) ); 82 echo wp_get_attachment_image( $post->ID, $attachment_size ); 83 ?> 84 </a> 80 85 81 86 <?php if ( ! empty( $post->post_excerpt ) ) : ?> 82 <div class="entry-caption">83 <?php the_excerpt(); ?>84 </div>87 <div class="entry-caption"> 88 <?php the_excerpt(); ?> 89 </div><!-- .entry-caption --> 85 90 <?php endif; ?> 91 86 92 </div><!-- .attachment --> 87 93 88 94 </div><!-- .entry-attachment --> -
wp-content/themes/twentytwelve/inc/custom-header.php
94 94 function twentytwelve_admin_header_style() { 95 95 ?> 96 96 <style type="text/css"> 97 .appearance_page_custom-header #headimg {98 border: none;99 }100 #headimg h1,101 #headimg h2 {102 line-height: 1.6;103 margin: 0;104 padding: 0;105 }106 #headimg h1 {107 font-size: 30px;108 }109 #headimg h1 a {110 color: #515151;111 text-decoration: none;112 }113 #headimg h1 a:hover {114 color: #21759b;115 }116 #headimg h2 {117 color: #777;118 font: normal 13px/1.8 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;119 margin-bottom: 24px;120 }121 #headimg img {122 max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px;123 }97 .appearance_page_custom-header #headimg { 98 border: none; 99 } 100 #headimg h1, 101 #headimg h2 { 102 line-height: 1.6; 103 margin: 0; 104 padding: 0; 105 } 106 #headimg h1 { 107 font-size: 30px; 108 } 109 #headimg h1 a { 110 color: #515151; 111 text-decoration: none; 112 } 113 #headimg h1 a:hover { 114 color: #21759b; 115 } 116 #headimg h2 { 117 color: #777; 118 font: normal 13px/1.8 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif; 119 margin-bottom: 24px; 120 } 121 #headimg img { 122 max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px; 123 } 124 124 </style> 125 125 <?php 126 126 } … … 141 141 $style = ' style="color:#' . get_header_textcolor() . ';"'; 142 142 ?> 143 143 <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 144 144 145 <h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2> 146 145 147 <?php $header_image = get_header_image(); 148 146 149 if ( ! empty( $header_image ) ) : ?> 147 150 <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="" /> 148 151 <?php endif; ?> 149 </div> 150 <?php } 151 No newline at end of file 152 </div><!-- #heading --> 153 <?php } -
wp-content/themes/twentytwelve/comments.php
31 31 printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), 32 32 number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); 33 33 ?> 34 </h2> 34 </h2><!-- .comments-title --> 35 35 36 36 <ol class="commentlist"> 37 37 <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> 38 38 </ol><!-- .commentlist --> 39 39 40 40 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> 41 <nav id="comment-nav-below" class="navigation" role="navigation">42 <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>43 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div>44 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div>45 </nav>41 <nav id="comment-nav-below" class="navigation" role="navigation"> 42 <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1> 43 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div> 44 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div> 45 </nav><!-- #comment-nav-below --> 46 46 <?php endif; // check for comment navigation ?> 47 47 48 48 <?php // If comments are closed and there are comments, let's leave a little note.