Ticket #25325: 25325.1.diff
File 25325.1.diff, 8.1 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentyfourteen/content-page.php
8 8 ?> 9 9 10 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <?php if ( ! post_password_required() && has_post_thumbnail() ) : ?> 12 <div class="attachment-featured-thumbnail"> 13 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 14 </div> 15 <?php endif; ?> 16 11 17 <?php the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); ?> 12 18 13 19 <div class="entry-content"> -
wp-content/themes/twentyfourteen/content.php
3 3 * @package WordPress 4 4 * @subpackage Twenty_Fourteen 5 5 */ 6 7 6 ?> 8 7 9 8 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 10 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail"> 11 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 12 </a> 9 <?php if ( ! post_password_required() && ( has_post_thumbnail() || 'post' == get_post_type() ) ) : ?> 10 <div class="attachment-featured-thumbnail"> 11 <?php if ( has_post_thumbnail() && ! is_single() ) : ?> 12 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>"> 13 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 14 </a> 15 <?php 16 elseif ( has_post_thumbnail() ) : 17 the_post_thumbnail( 'featured-thumbnail-large' ); 18 endif; 19 ?> 20 </div> 21 <?php endif; ?> 13 22 14 23 <header class="entry-header"> 15 24 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> -
wp-content/themes/twentyfourteen/functions.php
59 59 add_theme_support( 'automatic-feed-links' ); 60 60 61 61 // Enable support for Post Thumbnails. 62 add_theme_support( 'post-thumbnails' , array( 'post' ));62 add_theme_support( 'post-thumbnails' ); 63 63 64 64 // Adding several sizes for Post Thumbnails. 65 65 add_image_size( 'featured-thumbnail-large', 672, 0 ); -
wp-content/themes/twentyfourteen/style.css
393 393 .more-link .meta-nav, 394 394 .post-format-archive-link .meta-nav, 395 395 .attachment-featured-featured img, 396 .attachment-featured-thumbnail img,396 .attachment-featured-thumbnail a img, 397 397 .search-toggle, 398 398 button, 399 399 html input[type="button"], … … 803 803 display: none; 804 804 } 805 805 .hentry { 806 margin-bottom: 24px;806 margin-bottom: 48px; 807 807 max-width: 672px; 808 808 } 809 809 .attachment-featured-thumbnail { … … 941 941 } 942 942 .content-area .entry-header { 943 943 background-color: #fff; 944 padding: 24px10px 12px;944 padding: 0 10px 12px; 945 945 } 946 .content-area .attachment-featured-thumbnail + .entry-header { 947 padding-top: 24px; 948 } 946 949 .content-area .entry-title { 947 950 font-size: 33px; 948 951 font-weight: 300; … … 981 984 footer.entry-meta .entry-title a:hover { 982 985 color: #2b2b2b; 983 986 } 984 .format-aside,985 .format-quote,986 .format-link,987 .format-image,988 .format-video {989 border-top: 1px solid rgba(0, 0, 0, 0.1);990 }991 987 .format-aside .entry-content, 992 988 .format-aside .entry-summary, 993 989 .format-quote .entry-content, … … 997 993 padding-top: 0; 998 994 } 999 995 1000 /* Single specific styles */1001 .single .format-aside .entry-header,1002 .single .format-quote .entry-header,1003 .single .format-link .entry-header,1004 .single .format-image .entry-header,1005 .single .format-video .entry-header {1006 padding-top: 0;1007 }1008 .single .format-aside,1009 .single .format-quote,1010 .single .format-link,1011 .single .format-image,1012 .single .format-video {1013 border-top: none;1014 }1015 1016 996 /* Page specific styles */ 1017 997 .page .entry-content, 1018 998 .error404 .page-header, … … 1143 1123 font-size: 16px; 1144 1124 font-weight: 900; 1145 1125 line-height: 1.5; 1146 margin -bottom:24px;1126 margin: 0 0 24px; 1147 1127 } 1148 1128 .taxonomy-description { 1149 1129 color: #767676; … … 2218 2198 } 2219 2199 2220 2200 @media screen and (min-width: 401px) { 2221 .attachment-featured-thumbnail :hover img {2201 .attachment-featured-thumbnail a:hover img { 2222 2202 opacity: 0.8; 2223 2203 } 2204 .list-view .content-area .hentry { 2205 border-top: 1px solid rgba(0, 0, 0, 0.1); 2206 padding-top: 48px; 2207 } 2208 .list-view .content-area .hentry > .attachment-featured-thumbnail { 2209 margin-top: -49px; 2210 } 2224 2211 .content-area span + .entry-date:before, 2225 2212 .content-area span + .byline:before, 2226 2213 .content-area span + .comments-link:before, … … 2302 2289 margin-bottom: 24px; 2303 2290 padding: 0 10px; 2304 2291 } 2305 .search-results .content-area .type-page {2306 border-top: 1px solid rgba(0, 0, 0, 0.1);2307 }2308 .search-results .content-area .type-page .entry-header {2309 margin-top: 24px;2310 }2311 2292 } 2312 2293 2313 2294 @media screen and (min-width: 642px) { 2314 2295 .content-area .entry-header { 2315 margin-top: -48px;2316 2296 padding-right: 30px; 2317 2297 padding-left: 30px; 2318 2298 } 2319 . attachment .content-area.entry-header {2320 margin-top: 0;2299 .content-area .attachment-featured-thumbnail + .entry-header { 2300 margin-top: -48px; 2321 2301 } 2322 2302 } 2323 2303 … … 2330 2310 .site-content { 2331 2311 margin-right: 33.33333333%; 2332 2312 } 2333 .content-area . entry-header {2313 .content-area .attachment-featured-thumbnail + .entry-header { 2334 2314 margin-top: 0; 2335 2315 } 2336 2316 .content-area .entry-content, … … 2372 2352 .full-width .site-content { 2373 2353 margin-right: 0; 2374 2354 } 2355 .full-width .content-area .attachment-featured-thumbnail + .entry-header { 2356 margin-top: -48px; 2357 } 2375 2358 } 2376 2359 2377 2360 @media screen and (min-width: 770px) { … … 2427 2410 .home .content-area { 2428 2411 padding-top: 36px; 2429 2412 } 2430 .content-area . entry-header {2413 .content-area .attachment-featured-thumbnail + .entry-header { 2431 2414 margin-top: -48px; 2432 2415 } 2433 .content-area .format-aside .entry-header,2434 .content-area .format-quote .entry-header,2435 .content-area .format-link .entry-header,2436 .content-area .format-video .entry-header,2437 .content-area .format-image .entry-header {2438 margin-top: 12px;2439 }2440 .single .content-area .format-aside .entry-header,2441 .single .content-area .format-quote .entry-header,2442 .single .content-area .format-link .entry-header,2443 .single .content-area .format-image .entry-header,2444 .single .content-area .format-video .entry-header {2445 margin-top: 0;2446 }2447 2416 .comments-area article, 2448 2417 .comment-list .trackback, 2449 2418 .comment-list .pingback { … … 2496 2465 margin-left: -29.04761904%; 2497 2466 width: 29.04761904%; 2498 2467 } 2499 .content-area . entry-header {2468 .content-area .attachment-featured-thumbnail + .entry-header { 2500 2469 margin-top: 0; 2501 2470 } 2502 .content-area .entry-header2503 .content-area .entry-content,2504 .content-area .entry-summary,2505 .content-area footer.entry-meta,2506 .archive-header,2507 .page-header,2508 .page-content,2509 .post-navigation,2510 .image-navigation,2511 .comments-area {2512 padding-right: 0;2513 padding-left: 0;2514 }2515 2471 .site-footer { 2516 2472 padding-left: 27px; 2517 2473 } … … 2600 2556 } 2601 2557 2602 2558 @media screen and (min-width: 1040px) { 2603 .content-area . entry-header {2559 .content-area .attachment-featured-thumbnail + .entry-header { 2604 2560 margin-top: -48px; 2605 2561 } 2606 2562 .content-area .entry-header, … … 2616 2572 padding-right: 15px; 2617 2573 padding-left: 15px; 2618 2574 } 2575 .full-width .content-area .entry-header, 2576 .full-width .content-area .entry-content, 2577 .full-width .content-area .entry-summary, 2578 .full-width .content-area footer.entry-meta, 2579 .full-width .archive-header, 2580 .full-width .page-header, 2581 .full-width .page-content, 2582 .full-width .post-navigation, 2583 .full-width .image-navigation, 2584 .full-width .comments-area { 2585 padding-right: 30px; 2586 padding-left: 30px; 2587 } 2619 2588 } 2620 2589 2621 2590 @media screen and (min-width: 1080px) {