Ticket #25325: 25325.4.diff
File 25325.4.diff, 15.4 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentyfourteen/content-aside.php
8 8 ?> 9 9 10 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <?php twentyfourteen_featured_thumbnail(); ?> 12 11 13 <header class="entry-header"> 12 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 15 <div class="entry-meta"> -
wp-content/themes/twentyfourteen/content-image.php
8 8 ?> 9 9 10 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <?php twentyfourteen_featured_thumbnail(); ?> 12 11 13 <header class="entry-header"> 12 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 15 <div class="entry-meta"> -
wp-content/themes/twentyfourteen/content-link.php
8 8 ?> 9 9 10 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <?php twentyfourteen_featured_thumbnail(); ?> 12 11 13 <header class="entry-header"> 12 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 15 <div class="entry-meta"> -
wp-content/themes/twentyfourteen/content-page.php
8 8 ?> 9 9 10 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <?php twentyfourteen_featured_thumbnail(); ?> 12 11 13 <?php the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); ?> 12 14 13 15 <div class="entry-content"> -
wp-content/themes/twentyfourteen/content-quote.php
8 8 ?> 9 9 10 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <?php twentyfourteen_featured_thumbnail(); ?> 12 11 13 <header class="entry-header"> 12 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 15 <div class="entry-meta"> -
wp-content/themes/twentyfourteen/content-video.php
8 8 ?> 9 9 10 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <?php twentyfourteen_featured_thumbnail(); ?> 12 11 13 <header class="entry-header"> 12 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 15 <div class="entry-meta"> -
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 twentyfourteen_featured_thumbnail(); ?> 13 10 14 11 <header class="entry-header"> 15 12 <?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 ); … … 481 481 add_filter( 'body_class', 'twentyfourteen_body_classes' ); 482 482 483 483 /** 484 * Extends the default WordPress post classes. 485 * 486 * Adds a post class to denote: 487 * Non-password protected page with a featured image. 488 * 489 * @param array $classes A list of existing post class values. 490 * @return array The filtered post class list. 491 */ 492 function twentyfourteen_post_classes( $classes ) { 493 if ( ! post_password_required() && has_post_thumbnail() ) 494 $classes[] = 'has-featured-image'; 495 496 return $classes; 497 } 498 add_filter( 'post_class', 'twentyfourteen_post_classes' ); 499 500 /** 484 501 * Creates a nicely formatted and more specific title element text for output 485 502 * in head of document, based on current view. 486 503 * -
wp-content/themes/twentyfourteen/inc/template-tags.php
143 143 } 144 144 add_action( 'edit_category', 'twentyfourteen_category_transient_flusher' ); 145 145 add_action( 'save_post', 'twentyfourteen_category_transient_flusher' ); 146 147 /** 148 * Displays featured image with appropriate html tag. 149 * 150 * @return void 151 */ 152 function twentyfourteen_featured_thumbnail() { 153 if ( ! post_password_required() ) : 154 if ( has_post_thumbnail() && is_singular() ) : 155 ?> 156 <div class="attachment-featured-thumbnail"> 157 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 158 </div> 159 <?php 160 else : 161 ?> 162 <a href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail"> 163 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 164 </a> 165 <?php 166 endif; 167 endif; 168 } 169 No newline at end of file -
wp-content/themes/twentyfourteen/style.css
453 453 /* Clearing */ 454 454 .clear:before, 455 455 .clear:after, 456 .hentry:before, 457 .hentry:after, 456 458 [class*="content"]:before, 457 459 [class*="content"]:after, 458 460 [class*="site"]:before, … … 462 464 } 463 465 464 466 .clear:after, 467 .hentry:after, 465 468 [class*="content"]:after, 466 469 [class*="site"]:after { 467 470 clear: both; … … 809 812 background-image: -webkit-linear-gradient(135deg, #767676 12.5%, #fff 12.5%, #fff 50%, #767676 50%, #767676 62.5%, #fff 62.5%); 810 813 background-image: linear-gradient(135deg, #767676 12.5%, #fff 12.5%, #fff 50%, #767676 50%, #767676 62.5%, #fff 62.5%); 811 814 background-size: 4px 4px; 812 display: block;815 display: none; 813 816 float: none; 814 817 margin: 0; 815 818 min-height: 180px; … … 818 821 height: auto; 819 822 z-index: 0; 820 823 } 824 .has-featured-image .attachment-featured-thumbnail, 825 .format-standard .attachment-featured-thumbnail { 826 display: block; 827 } 821 828 .attachment-featured-thumbnail:hover { 822 829 background: #919191; 823 830 background-attachment: fixed; … … 825 832 background-image: linear-gradient(135deg, #919191 12.5%, #fff 12.5%, #fff 50%, #919191 50%, #919191 62.5%, #fff 62.5%); 826 833 background-size: 4px 4px; 827 834 } 828 . full-width .attachment-featured-thumbnail img {835 .attachment-featured-thumbnail img { 829 836 display: block; 830 837 margin: 0 auto; 831 838 } … … 940 947 /* .content-area specific styles */ 941 948 .content-area .entry-header, 942 949 .content-area .entry-content, 943 .content-area .page-content,944 950 .content-area .entry-summary, 945 .content-area .entry-meta { 951 .content-area .entry-meta, 952 .page-content { 946 953 margin: 0 auto; 947 954 max-width: 474px; 948 955 } 949 956 .content-area .entry-header { 950 957 background-color: #fff; 951 padding: 24px10px 12px;958 padding: 0 10px 12px; 952 959 } 960 .content-area .has-featured-image .entry-header, 961 .content-area .format-standard .entry-header { 962 padding-top: 24px; 963 } 964 .content-area .format-standard.post-password-required .entry-header { 965 padding-top: 0; 966 } 953 967 .content-area .entry-title { 954 968 font-size: 33px; 955 969 font-weight: 300; … … 963 977 text-transform: uppercase; 964 978 } 965 979 .content-area .entry-content, 966 .content-area . page-content,967 . content-area .entry-summary{980 .content-area .entry-summary, 981 .page-content { 968 982 background-color: #fff; 969 983 padding: 12px 10px 0; 970 984 } … … 973 987 padding: 0 10px; 974 988 } 975 989 .content-area footer.entry-meta { 976 margin-bottom: 36px;990 margin-bottom: 24px; 977 991 } 978 992 .content-area footer.entry-meta .entry-title { 979 993 font-size: 12px; … … 988 1002 footer.entry-meta .entry-title a:hover { 989 1003 color: #2b2b2b; 990 1004 } 991 .format-aside,992 .format-quote,993 .format-link,994 .format-image,995 .format-video {996 border-top: 1px solid rgba(0, 0, 0, 0.1);997 }998 1005 .format-aside .entry-content, 999 1006 .format-aside .entry-summary, 1000 1007 .format-quote .entry-content, … … 1003 1010 .format-link.entry-summary { 1004 1011 padding-top: 0; 1005 1012 } 1006 1007 /* Single specific styles */1008 .single .format-aside .entry-header,1009 .single .format-quote .entry-header,1010 .single .format-link .entry-header,1011 .single .format-image .entry-header,1012 .single .format-video .entry-header {1013 padding-top: 0;1014 }1015 .single .format-aside,1016 .single .format-quote,1017 .single .format-link,1018 .single .format-image,1019 .single .format-video {1020 border-top: none;1021 }1022 1023 1013 /* Page specific styles */ 1024 1014 .page .entry-content, 1025 1015 .error404 .page-header, … … 1151 1141 font-size: 16px; 1152 1142 font-weight: 900; 1153 1143 line-height: 1.5; 1154 margin -bottom:24px;1144 margin: 0 0 24px; 1155 1145 } 1156 1146 .taxonomy-description { 1157 1147 color: #767676; … … 1579 1569 } 1580 1570 .post-navigation, 1581 1571 .image-navigation { 1582 margin: 24px auto ;1572 margin: 24px auto 48px; 1583 1573 max-width: 474px; 1584 1574 padding: 0 10px; 1585 1575 } … … 1648 1638 ----------------------------------------------- */ 1649 1639 1650 1640 .comments-area { 1651 margin: 36px auto;1641 margin: 48px auto; 1652 1642 max-width: 474px; 1653 1643 padding: 0 10px; 1654 1644 } … … 2201 2191 margin: 0; 2202 2192 text-transform: none; 2203 2193 } 2204 .list-view .content-area .format-aside,2205 .list-view .content-area .format-quote,2206 .list-view .content-area .format-link,2207 .list-view .content-area .format-image,2208 .list-view .content-area .format-video {2209 border-top: 0;2210 }2211 2194 .list-view .content-area .format-aside .entry-title, 2212 2195 .list-view .content-area .format-quote .entry-title, 2213 2196 .list-view .content-area .format-link .entry-title { … … 2225 2208 } 2226 2209 2227 2210 @media screen and (min-width: 401px) { 2228 .attachment-featured-thumbnail:hover img {2211 a.attachment-featured-thumbnail:hover img { 2229 2212 opacity: 0.85; 2230 2213 } 2231 2214 .content-area span + .entry-date:before, … … 2308 2291 margin-bottom: 24px; 2309 2292 padding: 0 10px; 2310 2293 } 2311 . search-results .content-area .type-page{2294 .list-view .content-area .hentry { 2312 2295 border-top: 1px solid rgba(0, 0, 0, 0.1); 2296 padding-top: 48px; 2313 2297 } 2314 .search-results .content-area .type-page .entry-header { 2315 margin-top: 24px; 2298 .list-view .content-area .has-featured-image .attachment-featured-thumbnail, 2299 .list-view .content-area .format-standard .attachment-featured-thumbnail { 2300 margin-top: -49px; 2316 2301 } 2317 2302 } 2318 2303 2319 2304 @media screen and (min-width: 642px) { 2320 2305 .content-area .entry-header { 2321 margin-top: -48px;2322 2306 padding-right: 30px; 2323 2307 padding-left: 30px; 2324 2308 } 2325 .attachment .content-area .entry-header { 2309 .content-area .has-featured-image .entry-header, 2310 .content-area .format-standard .entry-header { 2311 margin-top: -48px; 2312 } 2313 .content-area .format-standard.post-password-required .entry-header { 2326 2314 margin-top: 0; 2327 2315 } 2328 2316 } … … 2336 2324 .site-content { 2337 2325 margin-right: 33.33333333%; 2338 2326 } 2339 .content-area .entry-header { 2327 .content-area .has-featured-image .entry-header, 2328 .content-area .format-standard .entry-header { 2340 2329 margin-top: 0; 2341 2330 } 2342 2331 .content-area .entry-content, … … 2378 2367 .full-width .site-content { 2379 2368 margin-right: 0; 2380 2369 } 2370 .full-width .content-area .has-featured-image .entry-header, 2371 .full-width .content-area .format-standard .entry-header { 2372 margin-top: -48px; 2373 } 2381 2374 } 2382 2375 2383 2376 @media screen and (min-width: 770px) { … … 2410 2403 margin-left: -168px; 2411 2404 max-width: 810px; 2412 2405 } 2413 .single-attachment .entry-content .attachment {2414 text-align: center;2406 .single-attachment .entry-content .attachment img { 2407 margin: 0 auto; 2415 2408 } 2416 2409 .full-width .entry-content blockquote.alignleft, 2417 2410 .full-width .entry-content blockquote.alignright { … … 2427 2420 } 2428 2421 2429 2422 @media screen and (min-width: 870px) { 2430 .content-area { 2423 .content-area, 2424 .content-sidebar, 2425 .ephemera { 2431 2426 padding-top: 72px; 2432 2427 } 2433 .home .content-area { 2434 padding-top: 36px; 2435 } 2436 .content-area .entry-header { 2428 .content-area .has-featured-image .entry-header, 2429 .content-area .format-standard .entry-header { 2437 2430 margin-top: -48px; 2438 2431 } 2439 .content-area .format-aside .entry-header, 2440 .content-area .format-quote .entry-header, 2441 .content-area .format-link .entry-header, 2442 .content-area .format-video .entry-header, 2443 .content-area .format-image .entry-header { 2444 margin-top: 12px; 2445 } 2446 .single .content-area .format-aside .entry-header, 2447 .single .content-area .format-quote .entry-header, 2448 .single .content-area .format-link .entry-header, 2449 .single .content-area .format-image .entry-header, 2450 .single .content-area .format-video .entry-header { 2432 .content-area .format-standard.post-password-required .entry-header { 2451 2433 margin-top: 0; 2452 2434 } 2453 2435 .comments-area article, … … 2505 2487 .content-area .entry-header { 2506 2488 margin-top: 0; 2507 2489 } 2508 .content-area .entry-header2509 .content-area .entry-content,2510 .content-area .entry-summary,2511 .content-area footer.entry-meta,2512 .archive-header,2513 .page-header,2514 .page-content,2515 .post-navigation,2516 .image-navigation,2517 .comments-area {2518 padding-right: 0;2519 padding-left: 0;2520 }2521 2490 .site-footer { 2522 2491 padding-left: 27px; 2523 2492 } … … 2603 2572 .featured-content { 2604 2573 padding-left: 182px; 2605 2574 } 2575 .content-area .has-featured-image .entry-header, 2576 .content-area .format-standard .entry-header { 2577 margin-top: 0; 2578 } 2606 2579 } 2607 2580 2608 2581 @media screen and (min-width: 1040px) { 2609 .content-area .entry-header { 2582 .content-area .has-featured-image .entry-header, 2583 .content-area .format-standard .entry-header { 2610 2584 margin-top: -48px; 2611 2585 } 2586 .content-area .format-standard.post-password-required .entry-header { 2587 margin-top: 0; 2588 } 2612 2589 .content-area .entry-header, 2613 2590 .content-area .entry-content, 2614 2591 .content-area .entry-summary, … … 2622 2599 padding-right: 15px; 2623 2600 padding-left: 15px; 2624 2601 } 2602 .full-width .content-area .entry-header, 2603 .full-width .content-area .entry-content, 2604 .full-width .content-area .entry-summary, 2605 .full-width .content-area footer.entry-meta, 2606 .full-width .archive-header, 2607 .full-width .page-header, 2608 .full-width .page-content, 2609 .full-width .post-navigation, 2610 .full-width .image-navigation, 2611 .full-width .comments-area { 2612 padding-right: 30px; 2613 padding-left: 30px; 2614 } 2625 2615 } 2626 2616 2627 2617 @media screen and (min-width: 1080px) {