Changeset 29951
- Timestamp:
- 10/17/2014 09:35:01 PM (10 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfifteen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/image.php
r29892 r29951 27 27 28 28 <div class="entry-content"> 29 <?php 30 /** 31 * Filter the default Twenty Fifteen image attachment size. 32 * 33 * @since Twenty Fifteen 1.0 34 * 35 * @param string $image_size Image size. Default 'large'. 36 */ 37 $image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' ); 38 echo wp_get_attachment_image( get_the_ID(), $image_size ); 29 <div class="entry-attachment"> 30 <?php 31 /** 32 * Filter the default Twenty Fifteen image attachment size. 33 * 34 * @since Twenty Fifteen 1.0 35 * 36 * @param string $image_size Image size. Default 'large'. 37 */ 38 $image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' ); 39 echo wp_get_attachment_image( get_the_ID(), $image_size ); 40 ?> 39 41 40 the_content(); 41 ?> 42 43 <?php if ( has_excerpt() ) : ?> 44 <div class="entry-caption"> 45 <?php the_excerpt(); ?> 46 </div><!-- .entry-caption --> 47 <?php endif; ?> 42 <?php if ( has_excerpt() ) : ?> 43 <div class="entry-caption"> 44 <?php the_excerpt(); ?> 45 </div><!-- .entry-caption --> 46 <?php endif; ?> 47 </div><!-- .entry-attachment --> 48 48 49 49 <?php 50 the_content(); 50 51 wp_link_pages( array( 51 52 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'twentyfifteen' ) . '</span>', -
trunk/src/wp-content/themes/twentyfifteen/style.css
r29949 r29951 2000 2000 } 2001 2001 2002 . type-attachment .entry-header{2003 clear: right;2002 .entry-attachment { 2003 margin-bottom: 1.6em; 2004 2004 } 2005 2005 … … 2023 2023 hyphens: auto; 2024 2024 line-height: 1.5; 2025 padding-top: 0.5em; 2025 2026 word-wrap: break-word; 2026 2027 } … … 3162 3163 } 3163 3164 3165 .entry-attachment { 3166 margin-bottom: 1.6471em; 3167 } 3168 3164 3169 .format-aside .entry-title, 3165 3170 .format-image .entry-title, … … 3694 3699 } 3695 3700 3701 .entry-attachment { 3702 margin-bottom: 1.6842em 3703 } 3704 3696 3705 .format-aside .entry-title, 3697 3706 .format-image .entry-title, … … 4349 4358 } 4350 4359 4360 .entry-attachment { 4361 margin-bottom: 1.6em; 4362 } 4363 4351 4364 .format-aside .entry-title, 4352 4365 .format-image .entry-title, … … 4867 4880 } 4868 4881 4882 .entry-attachment { 4883 margin-bottom: 1.6471em; 4884 } 4885 4869 4886 .format-aside .entry-title, 4870 4887 .format-image .entry-title, … … 5379 5396 .page-links { 5380 5397 margin-bottom: 1.5789em; 5398 } 5399 5400 .entry-attachment { 5401 margin-bottom: 1.6842em; 5381 5402 } 5382 5403
Note: See TracChangeset
for help on using the changeset viewer.