Ticket #25325: 25325.2.diff
File 25325.2.diff, 16.6 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 if ( ! post_password_required() ) : ?> 12 <?php if ( is_single() ) : ?> 13 <div class="attachment-featured-thumbnail"> 14 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 15 </div> 16 <?php else : ?> 17 <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"> 18 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 19 </a> 20 <?php endif; ?> 21 <?php endif; ?> 22 11 23 <header class="entry-header"> 12 24 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 25 <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 if ( ! post_password_required() ) : ?> 12 <?php if ( is_single() ) : ?> 13 <div class="attachment-featured-thumbnail"> 14 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 15 </div> 16 <?php else : ?> 17 <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"> 18 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 19 </a> 20 <?php endif; ?> 21 <?php endif; ?> 22 11 23 <header class="entry-header"> 12 24 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 25 <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 if ( ! post_password_required() ) : ?> 12 <?php if ( is_single() ) : ?> 13 <div class="attachment-featured-thumbnail"> 14 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 15 </div> 16 <?php else : ?> 17 <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"> 18 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 19 </a> 20 <?php endif; ?> 21 <?php endif; ?> 22 11 23 <header class="entry-header"> 12 24 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 25 <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 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-quote.php
8 8 ?> 9 9 10 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <?php if ( ! post_password_required() ) : ?> 12 <?php if ( is_single() ) : ?> 13 <div class="attachment-featured-thumbnail"> 14 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 15 </div> 16 <?php else : ?> 17 <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"> 18 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 19 </a> 20 <?php endif; ?> 21 <?php endif; ?> 22 11 23 <header class="entry-header"> 12 24 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 25 <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 if ( ! post_password_required() ) : ?> 12 <?php if ( is_single() ) : ?> 13 <div class="attachment-featured-thumbnail"> 14 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 15 </div> 16 <?php else : ?> 17 <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"> 18 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 19 </a> 20 <?php endif; ?> 21 <?php endif; ?> 22 11 23 <header class="entry-header"> 12 24 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 25 <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 if ( ! post_password_required() ) : ?> 10 <?php if ( is_single() ) : ?> 11 <div class="attachment-featured-thumbnail"> 12 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 13 </div> 14 <?php else : ?> 15 <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"> 16 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 17 </a> 18 <?php endif; ?> 19 <?php endif; ?> 13 20 14 21 <header class="entry-header"> 15 22 <?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 body classes 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/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 } 953 964 .content-area .entry-title { 954 965 font-size: 33px; 955 966 font-weight: 300; … … 963 974 text-transform: uppercase; 964 975 } 965 976 .content-area .entry-content, 966 .content-area . page-content,967 . content-area .entry-summary{977 .content-area .entry-summary, 978 .page-content { 968 979 background-color: #fff; 969 980 padding: 12px 10px 0; 970 981 } … … 973 984 padding: 0 10px; 974 985 } 975 986 .content-area footer.entry-meta { 976 margin-bottom: 36px;987 margin-bottom: 24px; 977 988 } 978 989 .content-area footer.entry-meta .entry-title { 979 990 font-size: 12px; … … 988 999 footer.entry-meta .entry-title a:hover { 989 1000 color: #2b2b2b; 990 1001 } 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 1002 .format-aside .entry-content, 999 1003 .format-aside .entry-summary, 1000 1004 .format-quote .entry-content, … … 1003 1007 .format-link.entry-summary { 1004 1008 padding-top: 0; 1005 1009 } 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 1010 /* Page specific styles */ 1024 1011 .page .entry-content, 1025 1012 .error404 .page-header, … … 1151 1138 font-size: 16px; 1152 1139 font-weight: 900; 1153 1140 line-height: 1.5; 1154 margin -bottom:24px;1141 margin: 0 0 24px; 1155 1142 } 1156 1143 .taxonomy-description { 1157 1144 color: #767676; … … 1223 1210 display: block; 1224 1211 min-height: 168px; 1225 1212 } 1226 .attachment-featured-featured:hover img {1213 a.attachment-featured-featured:hover img { 1227 1214 opacity: 0.85; 1228 1215 } 1229 1216 #featured-content .entry-wrap { … … 1579 1566 } 1580 1567 .post-navigation, 1581 1568 .image-navigation { 1582 margin: 24px auto ;1569 margin: 24px auto 48px; 1583 1570 max-width: 474px; 1584 1571 padding: 0 10px; 1585 1572 } … … 1648 1635 ----------------------------------------------- */ 1649 1636 1650 1637 .comments-area { 1651 margin: 36px auto;1638 margin: 48px auto; 1652 1639 max-width: 474px; 1653 1640 padding: 0 10px; 1654 1641 } … … 2201 2188 margin: 0; 2202 2189 text-transform: none; 2203 2190 } 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 2191 .list-view .content-area .format-aside .entry-title, 2212 2192 .list-view .content-area .format-quote .entry-title, 2213 2193 .list-view .content-area .format-link .entry-title { … … 2308 2288 margin-bottom: 24px; 2309 2289 padding: 0 10px; 2310 2290 } 2311 . search-results .content-area .type-page{2291 .list-view .content-area .hentry { 2312 2292 border-top: 1px solid rgba(0, 0, 0, 0.1); 2293 padding-top: 48px; 2313 2294 } 2314 .search-results .content-area .type-page .entry-header { 2315 margin-top: 24px; 2295 .list-view .content-area .has-featured-image .attachment-featured-thumbnail, 2296 .list-view .content-area .format-standard .attachment-featured-thumbnail { 2297 margin-top: -49px; 2316 2298 } 2317 2299 } 2318 2300 2319 2301 @media screen and (min-width: 642px) { 2320 2302 .content-area .entry-header { 2321 margin-top: -48px;2322 2303 padding-right: 30px; 2323 2304 padding-left: 30px; 2324 2305 } 2325 .attachment .content-area .entry-header { 2326 margin-top: 0; 2306 .content-area .has-featured-image .entry-header, 2307 .content-area .format-standard .entry-header { 2308 margin-top: -48px; 2327 2309 } 2328 2310 } 2329 2311 … … 2336 2318 .site-content { 2337 2319 margin-right: 33.33333333%; 2338 2320 } 2339 .content-area .entry-header { 2321 .content-area .has-featured-image .entry-header, 2322 .content-area .format-standard .entry-header { 2340 2323 margin-top: 0; 2341 2324 } 2342 2325 .content-area .entry-content, … … 2410 2393 margin-left: -168px; 2411 2394 max-width: 810px; 2412 2395 } 2413 .single-attachment .entry-content .attachment {2414 text-align: center;2396 .single-attachment .entry-content .attachment img { 2397 margin: 0 auto; 2415 2398 } 2416 2399 .full-width .entry-content blockquote.alignleft, 2417 2400 .full-width .entry-content blockquote.alignright { … … 2427 2410 } 2428 2411 2429 2412 @media screen and (min-width: 870px) { 2430 .content-area { 2413 .content-area, 2414 .content-sidebar, 2415 .ephemera { 2431 2416 padding-top: 72px; 2432 2417 } 2433 .home .content-area { 2434 padding-top: 36px; 2435 } 2436 .content-area .entry-header { 2418 .content-area .has-featured-image .entry-header, 2419 .content-area .format-standard .entry-header { 2437 2420 margin-top: -48px; 2438 2421 } 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 {2451 margin-top: 0;2452 }2453 2422 .comments-area article, 2454 2423 .comment-list .trackback, 2455 2424 .comment-list .pingback { … … 2505 2474 .content-area .entry-header { 2506 2475 margin-top: 0; 2507 2476 } 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 2477 .site-footer { 2522 2478 padding-left: 27px; 2523 2479 } … … 2606 2562 } 2607 2563 2608 2564 @media screen and (min-width: 1040px) { 2609 .content-area .entry-header { 2565 .content-area .has-featured-image .entry-header, 2566 .content-area .format-standard .entry-header { 2610 2567 margin-top: -48px; 2611 2568 } 2612 2569 .content-area .entry-header, … … 2622 2579 padding-right: 15px; 2623 2580 padding-left: 15px; 2624 2581 } 2582 .full-width .content-area .entry-header, 2583 .full-width .content-area .entry-content, 2584 .full-width .content-area .entry-summary, 2585 .full-width .content-area footer.entry-meta, 2586 .full-width .archive-header, 2587 .full-width .page-header, 2588 .full-width .page-content, 2589 .full-width .post-navigation, 2590 .full-width .image-navigation, 2591 .full-width .comments-area { 2592 padding-right: 30px; 2593 padding-left: 30px; 2594 } 2625 2595 } 2626 2596 2627 2597 @media screen and (min-width: 1080px) {