| 1 | Index: wp-content/themes/twentytwelve/search.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-content/themes/twentytwelve/search.php (revision 22166) |
|---|
| 4 | +++ wp-content/themes/twentytwelve/search.php (working copy) |
|---|
| 5 | @@ -10,6 +10,7 @@ |
|---|
| 6 | get_header(); ?> |
|---|
| 7 | |
|---|
| 8 | <section id="primary" class="site-content"> |
|---|
| 9 | + |
|---|
| 10 | <div id="content" role="main"> |
|---|
| 11 | |
|---|
| 12 | <?php if ( have_posts() ) : ?> |
|---|
| 13 | @@ -43,6 +44,7 @@ |
|---|
| 14 | <?php endif; ?> |
|---|
| 15 | |
|---|
| 16 | </div><!-- #content --> |
|---|
| 17 | + |
|---|
| 18 | </section><!-- #primary --> |
|---|
| 19 | |
|---|
| 20 | <?php get_sidebar(); ?> |
|---|
| 21 | Index: wp-content/themes/twentytwelve/404.php |
|---|
| 22 | =================================================================== |
|---|
| 23 | --- wp-content/themes/twentytwelve/404.php (revision 22166) |
|---|
| 24 | +++ wp-content/themes/twentytwelve/404.php (working copy) |
|---|
| 25 | @@ -10,20 +10,24 @@ |
|---|
| 26 | get_header(); ?> |
|---|
| 27 | |
|---|
| 28 | <div id="primary" class="site-content"> |
|---|
| 29 | + |
|---|
| 30 | <div id="content" role="main"> |
|---|
| 31 | |
|---|
| 32 | <article id="post-0" class="post error404 no-results not-found"> |
|---|
| 33 | + |
|---|
| 34 | <header class="entry-header"> |
|---|
| 35 | <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentytwelve' ); ?></h1> |
|---|
| 36 | - </header> |
|---|
| 37 | + </header><!-- .entry-header --> |
|---|
| 38 | |
|---|
| 39 | <div class="entry-content"> |
|---|
| 40 | <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentytwelve' ); ?></p> |
|---|
| 41 | <?php get_search_form(); ?> |
|---|
| 42 | </div><!-- .entry-content --> |
|---|
| 43 | + |
|---|
| 44 | </article><!-- #post-0 --> |
|---|
| 45 | |
|---|
| 46 | </div><!-- #content --> |
|---|
| 47 | + |
|---|
| 48 | </div><!-- #primary --> |
|---|
| 49 | |
|---|
| 50 | -<?php get_footer(); ?> |
|---|
| 51 | \ No newline at end of file |
|---|
| 52 | +<?php get_footer(); ?> |
|---|
| 53 | Index: wp-content/themes/twentytwelve/single.php |
|---|
| 54 | =================================================================== |
|---|
| 55 | --- wp-content/themes/twentytwelve/single.php (revision 22166) |
|---|
| 56 | +++ wp-content/themes/twentytwelve/single.php (working copy) |
|---|
| 57 | @@ -10,6 +10,7 @@ |
|---|
| 58 | get_header(); ?> |
|---|
| 59 | |
|---|
| 60 | <div id="primary" class="site-content"> |
|---|
| 61 | + |
|---|
| 62 | <div id="content" role="main"> |
|---|
| 63 | |
|---|
| 64 | <?php while ( have_posts() ) : the_post(); ?> |
|---|
| 65 | @@ -18,6 +19,7 @@ |
|---|
| 66 | |
|---|
| 67 | <nav class="nav-single"> |
|---|
| 68 | <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> |
|---|
| 69 | + |
|---|
| 70 | <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span> |
|---|
| 71 | <span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span> |
|---|
| 72 | </nav><!-- .nav-single --> |
|---|
| 73 | @@ -31,6 +33,7 @@ |
|---|
| 74 | <?php endwhile; // end of the loop. ?> |
|---|
| 75 | |
|---|
| 76 | </div><!-- #content --> |
|---|
| 77 | + |
|---|
| 78 | </div><!-- #primary --> |
|---|
| 79 | |
|---|
| 80 | <?php get_sidebar(); ?> |
|---|
| 81 | Index: wp-content/themes/twentytwelve/page.php |
|---|
| 82 | =================================================================== |
|---|
| 83 | --- wp-content/themes/twentytwelve/page.php (revision 22166) |
|---|
| 84 | +++ wp-content/themes/twentytwelve/page.php (working copy) |
|---|
| 85 | @@ -15,6 +15,7 @@ |
|---|
| 86 | get_header(); ?> |
|---|
| 87 | |
|---|
| 88 | <div id="primary" class="site-content"> |
|---|
| 89 | + |
|---|
| 90 | <div id="content" role="main"> |
|---|
| 91 | |
|---|
| 92 | <?php while ( have_posts() ) : the_post(); ?> |
|---|
| 93 | @@ -23,6 +24,7 @@ |
|---|
| 94 | <?php endwhile; // end of the loop. ?> |
|---|
| 95 | |
|---|
| 96 | </div><!-- #content --> |
|---|
| 97 | + |
|---|
| 98 | </div><!-- #primary --> |
|---|
| 99 | |
|---|
| 100 | <?php get_sidebar(); ?> |
|---|
| 101 | Index: wp-content/themes/twentytwelve/image.php |
|---|
| 102 | =================================================================== |
|---|
| 103 | --- wp-content/themes/twentytwelve/image.php (revision 22166) |
|---|
| 104 | +++ wp-content/themes/twentytwelve/image.php (working copy) |
|---|
| 105 | @@ -12,11 +12,13 @@ |
|---|
| 106 | get_header(); ?> |
|---|
| 107 | |
|---|
| 108 | <div id="primary" class="site-content"> |
|---|
| 109 | + |
|---|
| 110 | <div id="content" role="main"> |
|---|
| 111 | |
|---|
| 112 | <?php while ( have_posts() ) : the_post(); ?> |
|---|
| 113 | |
|---|
| 114 | <article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>> |
|---|
| 115 | + |
|---|
| 116 | <header class="entry-header"> |
|---|
| 117 | <h1 class="entry-title"><?php the_title(); ?></h1> |
|---|
| 118 | |
|---|
| 119 | @@ -59,6 +61,7 @@ |
|---|
| 120 | endforeach; |
|---|
| 121 | |
|---|
| 122 | $k++; |
|---|
| 123 | + |
|---|
| 124 | // If there is more than 1 attachment in a gallery |
|---|
| 125 | if ( count( $attachments ) > 1 ) : |
|---|
| 126 | if ( isset( $attachments[ $k ] ) ) : |
|---|
| 127 | @@ -73,16 +76,19 @@ |
|---|
| 128 | $next_attachment_url = wp_get_attachment_url(); |
|---|
| 129 | endif; |
|---|
| 130 | ?> |
|---|
| 131 | - <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php |
|---|
| 132 | - $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) ); |
|---|
| 133 | - echo wp_get_attachment_image( $post->ID, $attachment_size ); |
|---|
| 134 | - ?></a> |
|---|
| 135 | + <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"> |
|---|
| 136 | + <?php |
|---|
| 137 | + $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) ); |
|---|
| 138 | + echo wp_get_attachment_image( $post->ID, $attachment_size ); |
|---|
| 139 | + ?> |
|---|
| 140 | + </a> |
|---|
| 141 | |
|---|
| 142 | <?php if ( ! empty( $post->post_excerpt ) ) : ?> |
|---|
| 143 | - <div class="entry-caption"> |
|---|
| 144 | - <?php the_excerpt(); ?> |
|---|
| 145 | - </div> |
|---|
| 146 | + <div class="entry-caption"> |
|---|
| 147 | + <?php the_excerpt(); ?> |
|---|
| 148 | + </div><!-- .entry-caption --> |
|---|
| 149 | <?php endif; ?> |
|---|
| 150 | + |
|---|
| 151 | </div><!-- .attachment --> |
|---|
| 152 | |
|---|
| 153 | </div><!-- .entry-attachment --> |
|---|
| 154 | Index: wp-content/themes/twentytwelve/inc/custom-header.php |
|---|
| 155 | =================================================================== |
|---|
| 156 | --- wp-content/themes/twentytwelve/inc/custom-header.php (revision 22166) |
|---|
| 157 | +++ wp-content/themes/twentytwelve/inc/custom-header.php (working copy) |
|---|
| 158 | @@ -94,33 +94,33 @@ |
|---|
| 159 | function twentytwelve_admin_header_style() { |
|---|
| 160 | ?> |
|---|
| 161 | <style type="text/css"> |
|---|
| 162 | - .appearance_page_custom-header #headimg { |
|---|
| 163 | - border: none; |
|---|
| 164 | - } |
|---|
| 165 | - #headimg h1, |
|---|
| 166 | - #headimg h2 { |
|---|
| 167 | - line-height: 1.6; |
|---|
| 168 | - margin: 0; |
|---|
| 169 | - padding: 0; |
|---|
| 170 | - } |
|---|
| 171 | - #headimg h1 { |
|---|
| 172 | - font-size: 30px; |
|---|
| 173 | - } |
|---|
| 174 | - #headimg h1 a { |
|---|
| 175 | - color: #515151; |
|---|
| 176 | - text-decoration: none; |
|---|
| 177 | - } |
|---|
| 178 | - #headimg h1 a:hover { |
|---|
| 179 | - color: #21759b; |
|---|
| 180 | - } |
|---|
| 181 | - #headimg h2 { |
|---|
| 182 | - color: #777; |
|---|
| 183 | - font: normal 13px/1.8 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif; |
|---|
| 184 | - margin-bottom: 24px; |
|---|
| 185 | - } |
|---|
| 186 | - #headimg img { |
|---|
| 187 | - max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px; |
|---|
| 188 | - } |
|---|
| 189 | + .appearance_page_custom-header #headimg { |
|---|
| 190 | + border: none; |
|---|
| 191 | + } |
|---|
| 192 | + #headimg h1, |
|---|
| 193 | + #headimg h2 { |
|---|
| 194 | + line-height: 1.6; |
|---|
| 195 | + margin: 0; |
|---|
| 196 | + padding: 0; |
|---|
| 197 | + } |
|---|
| 198 | + #headimg h1 { |
|---|
| 199 | + font-size: 30px; |
|---|
| 200 | + } |
|---|
| 201 | + #headimg h1 a { |
|---|
| 202 | + color: #515151; |
|---|
| 203 | + text-decoration: none; |
|---|
| 204 | + } |
|---|
| 205 | + #headimg h1 a:hover { |
|---|
| 206 | + color: #21759b; |
|---|
| 207 | + } |
|---|
| 208 | + #headimg h2 { |
|---|
| 209 | + color: #777; |
|---|
| 210 | + font: normal 13px/1.8 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif; |
|---|
| 211 | + margin-bottom: 24px; |
|---|
| 212 | + } |
|---|
| 213 | + #headimg img { |
|---|
| 214 | + max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px; |
|---|
| 215 | + } |
|---|
| 216 | </style> |
|---|
| 217 | <?php |
|---|
| 218 | } |
|---|
| 219 | @@ -141,10 +141,13 @@ |
|---|
| 220 | $style = ' style="color:#' . get_header_textcolor() . ';"'; |
|---|
| 221 | ?> |
|---|
| 222 | <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> |
|---|
| 223 | + |
|---|
| 224 | <h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2> |
|---|
| 225 | + |
|---|
| 226 | <?php $header_image = get_header_image(); |
|---|
| 227 | + |
|---|
| 228 | if ( ! empty( $header_image ) ) : ?> |
|---|
| 229 | <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="" /> |
|---|
| 230 | <?php endif; ?> |
|---|
| 231 | - </div> |
|---|
| 232 | -<?php } |
|---|
| 233 | \ No newline at end of file |
|---|
| 234 | + </div><!-- #heading --> |
|---|
| 235 | +<?php } |
|---|
| 236 | Index: wp-content/themes/twentytwelve/comments.php |
|---|
| 237 | =================================================================== |
|---|
| 238 | --- wp-content/themes/twentytwelve/comments.php (revision 22166) |
|---|
| 239 | +++ wp-content/themes/twentytwelve/comments.php (working copy) |
|---|
| 240 | @@ -31,18 +31,18 @@ |
|---|
| 241 | printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), |
|---|
| 242 | number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); |
|---|
| 243 | ?> |
|---|
| 244 | - </h2> |
|---|
| 245 | + </h2><!-- .comments-title --> |
|---|
| 246 | |
|---|
| 247 | <ol class="commentlist"> |
|---|
| 248 | <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> |
|---|
| 249 | </ol><!-- .commentlist --> |
|---|
| 250 | |
|---|
| 251 | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> |
|---|
| 252 | - <nav id="comment-nav-below" class="navigation" role="navigation"> |
|---|
| 253 | - <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1> |
|---|
| 254 | - <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div> |
|---|
| 255 | - <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div> |
|---|
| 256 | - </nav> |
|---|
| 257 | + <nav id="comment-nav-below" class="navigation" role="navigation"> |
|---|
| 258 | + <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1> |
|---|
| 259 | + <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div> |
|---|
| 260 | + <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div> |
|---|
| 261 | + </nav><!-- #comment-nav-below --> |
|---|
| 262 | <?php endif; // check for comment navigation ?> |
|---|
| 263 | |
|---|
| 264 | <?php // If comments are closed and there are comments, let's leave a little note. |
|---|