Changeset 25802
- Timestamp:
- 10/15/2013 11:23:08 PM (11 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/content-aside.php
r25769 r25802 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php twentyfourteen_ featured_thumbnail(); ?>12 <?php twentyfourteen_post_thumbnail(); ?> 13 13 14 14 <header class="entry-header"> -
trunk/src/wp-content/themes/twentyfourteen/content-gallery.php
r25769 r25802 26 26 27 27 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 28 <?php if ( is_single() && $image ) : ?>29 <div class=" attachment-featured-thumbnail">28 <?php if ( is_single() && $image ) : ?> 29 <div class="featured-thumbnail"> 30 30 <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?> 31 31 </div> 32 32 <?php elseif ( $image ) : ?> 33 <a class=" attachment-featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">33 <a class="featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>"> 34 34 <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?> 35 35 </a> -
trunk/src/wp-content/themes/twentyfourteen/content-image.php
r25769 r25802 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php twentyfourteen_ featured_thumbnail(); ?>12 <?php twentyfourteen_post_thumbnail(); ?> 13 13 14 14 <header class="entry-header"> -
trunk/src/wp-content/themes/twentyfourteen/content-link.php
r25769 r25802 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php twentyfourteen_ featured_thumbnail(); ?>12 <?php twentyfourteen_post_thumbnail(); ?> 13 13 14 14 <header class="entry-header"> -
trunk/src/wp-content/themes/twentyfourteen/content-page.php
r25769 r25802 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php twentyfourteen_featured_thumbnail(); ?> 13 14 <?php the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); ?> 12 <?php 13 twentyfourteen_post_thumbnail(); 14 the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); 15 ?> 15 16 16 17 <div class="entry-content"> -
trunk/src/wp-content/themes/twentyfourteen/content-quote.php
r25769 r25802 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php twentyfourteen_ featured_thumbnail(); ?>12 <?php twentyfourteen_post_thumbnail(); ?> 13 13 14 14 <header class="entry-header"> -
trunk/src/wp-content/themes/twentyfourteen/content-video.php
r25769 r25802 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php twentyfourteen_ featured_thumbnail(); ?>12 <?php twentyfourteen_post_thumbnail(); ?> 13 13 14 14 <header class="entry-header"> -
trunk/src/wp-content/themes/twentyfourteen/content.php
r25769 r25802 12 12 13 13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 14 <?php twentyfourteen_ featured_thumbnail(); ?>14 <?php twentyfourteen_post_thumbnail(); ?> 15 15 16 16 <header class="entry-header"> -
trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php
r25792 r25802 19 19 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 20 20 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 21 21 22 22 // Add the custom accent color setting and control. 23 23 $wp_customize->add_setting( 'accent_color', array( -
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r25769 r25802 156 156 157 157 /** 158 * Display featured image with appropriate HTML tag. 159 * 160 * @since Twenty Fourteen 1.0 158 * Displays an optional featured image, with an anchor element 159 * when on index views, and a div element when on a single view. 161 160 * 162 161 * @return void 163 */ 164 function twentyfourteen_featured_thumbnail() { 165 if ( ! post_password_required() ) : 166 if ( has_post_thumbnail() && is_singular() ) : 167 ?> 168 <div class="attachment-featured-thumbnail"> 169 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 170 </div> 171 <?php 172 else : 173 ?> 174 <a href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail"> 175 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 176 </a> 177 <?php 178 endif; 179 endif; 162 */ 163 function twentyfourteen_post_thumbnail() { 164 if ( post_password_required() ) 165 return; 166 167 if ( is_singular() ) : 168 ?> 169 170 <div class="featured-thumbnail"> 171 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 172 </div> 173 174 <?php else : ?> 175 176 <a class="featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>"> 177 <?php if ( has_post_thumbnail() ) : 178 the_post_thumbnail( 'featured-thumbnail-large' ); 179 else : ?> 180 <p class="screen-reader-text"><?php _e( 'No featured image.', 'twentyfourteen' ); ?></p> 181 <?php endif; ?> 182 </a> 183 184 <?php endif; // End is_singular() 180 185 } -
trunk/src/wp-content/themes/twentyfourteen/rtl.css
r25758 r25802 368 368 /* Mobile list style */ 369 369 @media screen and (max-width: 400px) { 370 .list-view . attachment-featured-thumbnail img {370 .list-view .featured-thumbnail img { 371 371 float: right; 372 372 margin: 0 0 3px 10px; -
trunk/src/wp-content/themes/twentyfourteen/style.css
r25788 r25802 561 561 562 562 .attachment-featured-featured img, 563 . attachment-featured-thumbnail img {563 .featured-thumbnail img { 564 564 height: auto; 565 565 max-width: 100%; … … 1108 1108 */ 1109 1109 1110 . attachment-featured-thumbnail {1110 .featured-thumbnail { 1111 1111 background: #767676; 1112 1112 background-attachment: fixed; … … 1124 1124 } 1125 1125 1126 . attachment-featured-thumbnail:hover {1126 .featured-thumbnail:hover { 1127 1127 background: #919191; 1128 1128 background-attachment: fixed; … … 1132 1132 } 1133 1133 1134 . attachment-featured-thumbnail img {1134 .featured-thumbnail img { 1135 1135 display: block; 1136 1136 margin: 0 auto; 1137 1137 } 1138 1138 1139 .has-featured-image . attachment-featured-thumbnail,1140 .format-standard . attachment-featured-thumbnail {1139 .has-featured-image .featured-thumbnail, 1140 .format-standard .featured-thumbnail { 1141 1141 display: block; 1142 1142 } … … 2638 2638 2639 2639 @media screen and (max-width: 400px) { 2640 .list-view . attachment-featured-thumbnail {2640 .list-view .featured-thumbnail { 2641 2641 background: none; 2642 2642 min-height: 0; … … 2645 2645 } 2646 2646 2647 .list-view . attachment-featured-thumbnail img {2647 .list-view .featured-thumbnail img { 2648 2648 float: left; 2649 2649 margin: 0 10px 3px 0; … … 2708 2708 2709 2709 @media screen and (min-width: 401px) { 2710 a. attachment-featured-thumbnail:hover img {2710 a.featured-thumbnail:hover img { 2711 2711 opacity: 0.85; 2712 2712 } … … 2810 2810 } 2811 2811 2812 .list-view .site-content .has-featured-image . attachment-featured-thumbnail,2813 .list-view .site-content .format-standard . attachment-featured-thumbnail {2812 .list-view .site-content .has-featured-image .featured-thumbnail, 2813 .list-view .site-content .format-standard .featured-thumbnail { 2814 2814 margin-top: -49px; 2815 2815 }
Note: See TracChangeset
for help on using the changeset viewer.