Ticket #30020: 30020.diff
| File 30020.diff, 3.3 KB (added by , 11 years ago) |
|---|
-
wp-content/themes/twentyfifteen/image.php
26 26 </header><!-- .entry-header --> 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 <?php if ( has_excerpt() ) : ?> 43 <div class="entry-caption"> 44 <?php the_excerpt(); ?> 45 </div><!-- .entry-caption --> 46 <?php endif; ?> 47 </div><!-- .entry-attachment --> 42 48 43 <?php if ( has_excerpt() ) : ?>44 <div class="entry-caption">45 <?php the_excerpt(); ?>46 </div><!-- .entry-caption -->47 <?php endif; ?>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>', 52 53 'after' => '</div>', -
wp-content/themes/twentyfifteen/style.css
1999 1999 width: auto; 2000 2000 } 2001 2001 2002 . type-attachment .entry-header{2003 clear: right;2002 .entry-attachment { 2003 margin-bottom: 1.6em; 2004 2004 } 2005 2005 2006 2006 .type-attachment .entry-title { … … 2022 2022 -ms-hyphens: auto; 2023 2023 hyphens: auto; 2024 2024 line-height: 1.5; 2025 padding-top: 0.5em; 2025 2026 word-wrap: break-word; 2026 2027 } 2027 2028 … … 3157 3158 margin-bottom: 1.5294em; 3158 3159 } 3159 3160 3161 .entry-attachment { 3162 margin-bottom: 1.6471em; 3163 } 3164 3160 3165 .format-aside .entry-title, 3161 3166 .format-image .entry-title, 3162 3167 .format-video .entry-title, … … 3689 3694 margin-bottom: 1.5789em; 3690 3695 } 3691 3696 3697 .entry-attachment { 3698 margin-bottom: 1.6842em 3699 } 3700 3692 3701 .format-aside .entry-title, 3693 3702 .format-image .entry-title, 3694 3703 .format-video .entry-title, … … 4344 4353 margin-bottom: 1.4667em; 4345 4354 } 4346 4355 4356 .entry-attachment { 4357 margin-bottom: 1.6em; 4358 } 4359 4347 4360 .format-aside .entry-title, 4348 4361 .format-image .entry-title, 4349 4362 .format-video .entry-title, … … 4862 4875 margin-bottom: 1.5294em; 4863 4876 } 4864 4877 4878 .entry-attachment { 4879 margin-bottom: 1.6471em; 4880 } 4881 4865 4882 .format-aside .entry-title, 4866 4883 .format-image .entry-title, 4867 4884 .format-video .entry-title, … … 5376 5393 margin-bottom: 1.5789em; 5377 5394 } 5378 5395 5396 .entry-attachment { 5397 margin-bottom: 1.6842em; 5398 } 5399 5379 5400 .format-aside .entry-title, 5380 5401 .format-image .entry-title, 5381 5402 .format-video .entry-title,