Ticket #25325: 25325.7.diff
File 25325.7.diff, 9.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 twentyfourteen_ featured_thumbnail(); ?>11 <?php twentyfourteen_post_thumbnail(); ?> 12 12 13 13 <header class="entry-header"> 14 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> -
wp-content/themes/twentyfourteen/content.php
6 6 ?> 7 7 8 8 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 9 <?php twentyfourteen_ featured_thumbnail(); ?>9 <?php twentyfourteen_post_thumbnail(); ?> 10 10 11 11 <header class="entry-header"> 12 12 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> -
wp-content/themes/twentyfourteen/rtl.css
350 350 351 351 /* Mobile list style */ 352 352 @media screen and (max-width: 400px) { 353 .list-view . attachment-featured-thumbnail img {353 .list-view .featured-thumbnail img { 354 354 float: right; 355 355 margin: 0 0 3px 10px; 356 356 } -
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(); ?>11 <?php twentyfourteen_post_thumbnail(); ?> 12 12 13 13 <header class="entry-header"> 14 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> -
wp-content/themes/twentyfourteen/inc/template-tags.php
143 143 add_action( 'save_post', 'twentyfourteen_category_transient_flusher' ); 144 144 145 145 /** 146 * Displays featured image with appropriate html tag. 146 * Displays an optional featured image, with an anchor element 147 * when on index views, and a div element when on a single view. 147 148 * 148 149 * @return void 149 150 */ 150 function twentyfourteen_featured_thumbnail() { 151 if ( ! post_password_required() ) : 152 if ( has_post_thumbnail() && is_singular() ) : 153 ?> 154 <div class="attachment-featured-thumbnail"> 155 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 156 </div> 157 <?php 158 else : 159 ?> 160 <a href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail"> 161 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 162 </a> 163 <?php 164 endif; 151 function twentyfourteen_post_thumbnail() { 152 if ( post_password_required() ) 153 return; 154 155 if ( is_singular() ) : 156 ?> 157 158 <div class="featured-thumbnail"> 159 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 160 </div> 161 162 <?php else : ?> 163 164 <a class="featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>"> 165 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 166 </a> 167 168 <?php 165 169 endif; 166 } 167 No newline at end of file 170 } -
wp-content/themes/twentyfourteen/content-gallery.php
24 24 ?> 25 25 26 26 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 27 <?php if ( is_single() && $image ) : ?>28 <div class=" attachment-featured-thumbnail">27 <?php if ( is_single() && $image ) : ?> 28 <div class="featured-thumbnail"> 29 29 <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?> 30 30 </div> 31 31 <?php elseif ( $image ) : ?> 32 <a class=" attachment-featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">32 <a class="featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>"> 33 33 <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?> 34 34 </a> 35 35 <?php endif; ?> -
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(); ?>11 <?php twentyfourteen_post_thumbnail(); ?> 12 12 13 13 <header class="entry-header"> 14 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> -
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(); ?>11 <?php twentyfourteen_post_thumbnail(); ?> 12 12 13 13 <header class="entry-header"> 14 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> -
wp-content/themes/twentyfourteen/style.css
802 802 margin-bottom: 24px; 803 803 max-width: 672px; 804 804 } 805 . attachment-featured-thumbnail {805 .featured-thumbnail { 806 806 background: #767676; 807 807 background-attachment: fixed; 808 808 background-image: -webkit-linear-gradient(135deg, #767676 12.5%, #fff 12.5%, #fff 50%, #767676 50%, #767676 62.5%, #fff 62.5%); … … 817 817 height: auto; 818 818 z-index: 0; 819 819 } 820 .has-featured-image . attachment-featured-thumbnail,821 .format-standard . attachment-featured-thumbnail {820 .has-featured-image .featured-thumbnail, 821 .format-standard .featured-thumbnail { 822 822 display: block; 823 823 } 824 . attachment-featured-thumbnail:hover {824 .featured-thumbnail:hover { 825 825 background: #919191; 826 826 background-attachment: fixed; 827 827 background-image: -webkit-linear-gradient(135deg, #919191 12.5%, #fff 12.5%, #fff 50%, #919191 50%, #919191 62.5%, #fff 62.5%); 828 828 background-image: linear-gradient(135deg, #919191 12.5%, #fff 12.5%, #fff 50%, #919191 50%, #919191 62.5%, #fff 62.5%); 829 829 background-size: 4px 4px; 830 830 } 831 . attachment-featured-thumbnail img {831 .featured-thumbnail img { 832 832 display: block; 833 833 margin: 0 auto; 834 834 } … … 1372 1372 height: auto; 1373 1373 } 1374 1374 .attachment-featured-featured img, 1375 . attachment-featured-thumbnail img {1375 .featured-thumbnail img { 1376 1376 height: auto; 1377 1377 max-width: 100%; 1378 1378 } … … 2152 2152 .list-view .content-area footer.entry-meta { 2153 2153 display: none; 2154 2154 } 2155 .list-view . attachment-featured-thumbnail {2155 .list-view .featured-thumbnail { 2156 2156 background: none; 2157 2157 min-height: 0; 2158 2158 width: auto; 2159 2159 z-index: 2; 2160 2160 } 2161 .list-view . attachment-featured-thumbnail img {2161 .list-view .featured-thumbnail img { 2162 2162 float: left; 2163 2163 margin: 0 10px 3px 0; 2164 2164 width: 84px; … … 2197 2197 } 2198 2198 2199 2199 @media screen and (min-width: 401px) { 2200 a. attachment-featured-thumbnail:hover img {2200 a.featured-thumbnail:hover img { 2201 2201 opacity: 0.85; 2202 2202 } 2203 2203 .content-area span + .entry-date:before, … … 2284 2284 border-top: 1px solid rgba(0, 0, 0, 0.1); 2285 2285 padding-top: 48px; 2286 2286 } 2287 .list-view .content-area .has-featured-image . attachment-featured-thumbnail,2288 .list-view .content-area .format-standard . attachment-featured-thumbnail {2287 .list-view .content-area .has-featured-image .featured-thumbnail, 2288 .list-view .content-area .format-standard .featured-thumbnail { 2289 2289 margin-top: -49px; 2290 2290 } 2291 2291 } -
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(); ?>11 <?php twentyfourteen_post_thumbnail(); ?> 12 12 13 13 <header class="entry-header"> 14 14 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> -
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 13 <?php the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); ?> 11 <?php 12 twentyfourteen_post_thumbnail(); 13 the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); 14 ?> 14 15 15 16 <div class="entry-content"> 16 17 <?php