Ticket #23620: 23620.9.diff
File 23620.9.diff, 4.1 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentythirteen/content-image.php
9 9 ?> 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <header class="entry-header"> 13 <div class="entry-media"> 14 <?php the_image(); ?> 15 </div> 12 <div class="entry-media"> 13 <?php the_image( 'twentythirteen-image-post-format' ); ?> 14 </div><!-- .entry-media --> 16 15 16 <header class="entry-header"> 17 17 <?php if ( is_single() ) : ?> 18 18 <h1 class="entry-title"><?php the_title(); ?></h1> 19 19 <?php else : ?> -
wp-content/themes/twentythirteen/content-video.php
9 9 ?> 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <header class="entry-header"> 13 <div class="entry-media"> 14 <?php the_video(); ?> 15 </div> 12 <div class="entry-media"> 13 <?php the_video(); ?> 14 </div><!-- .entry-media --> 16 15 16 <header class="entry-header"> 17 17 <?php if ( is_single() ) : ?> 18 18 <h1 class="entry-title"><?php the_title(); ?></h1> 19 19 <?php else : ?> -
wp-content/themes/twentythirteen/style.css
1408 1408 * ---------------------------------------------------------------------------- 1409 1409 */ 1410 1410 1411 .entry-media { 1412 margin: 0 auto 24px; 1413 max-width: 724px; 1414 width: 100%; 1415 } 1416 1417 .sidebar .entry-media { 1418 max-width: 1040px; 1419 padding: 0 316px 0 0; 1420 } 1421 .entry-media > * { 1422 display: block; 1423 margin: 0 auto; 1424 max-width: 100%; 1425 } 1426 1411 1427 /* Aside */ 1412 1428 .format-aside { 1413 1429 background-color: #f7f5e7; … … 1469 1485 } 1470 1486 1471 1487 .format-audio .entry-media { 1472 margin: 0 auto 24px;1473 1488 max-width: 604px; 1474 width: 100%;1475 1489 } 1476 1490 1477 1491 .format-audio .entry-media:before { … … 1659 1673 font-weight: bold; 1660 1674 } 1661 1675 1662 .format-image .entry-header {1663 max-width: 724px;1664 }1665 1666 .format-image .entry-header img {1667 height: auto;1668 max-width: 724px;1669 }1670 1671 .format-image .entry-content .size-full {1672 margin: 0 -60px;1673 max-width: 724px;1674 }1675 1676 .format-image .wp-caption {1677 margin: 0 auto;1678 text-align: center;1679 }1680 1681 .format-image .wp-caption-text {1682 padding: 0 5px;1683 text-align: left;1684 }1685 1686 .format-image .wp-caption.alignleft:first-of-type,1687 .format-image .wp-caption.alignright:first-of-type {1688 margin: 0;1689 }1690 1691 .format-image p:last-child {1692 margin: 0;1693 }1694 1695 1676 .format-image .categories-links, 1696 1677 .format-image .tags-links { 1697 1678 display: none; … … 1860 1841 } 1861 1842 1862 1843 .format-video .entry-content a, 1863 .single-format-video .entry-content a, 1864 .format-video .entry-meta a { 1865 color: #fbfaf3; 1866 } 1867 1844 .format-video .entry-meta a, 1868 1845 .format-video .entry-content a:hover, 1869 1846 .format-video .entry-meta a:hover { 1870 color: # ea9629;1847 color: #fbfaf3; 1871 1848 } 1872 1849 1873 1850 .format-video .entry-title { … … 1875 1852 font-weight: 400; 1876 1853 } 1877 1854 1878 .format-video .entry-header {1879 max-width: 724px;1880 }1881 1882 1855 .format-video .entry-meta { 1883 1856 color: #220e10; 1884 1857 } -
wp-content/themes/twentythirteen/functions.php
100 100 add_theme_support( 'post-thumbnails' ); 101 101 set_post_thumbnail_size( 604, 270, true ); 102 102 103 // Register custom image size for image post formats. 104 add_image_size( 'twentythirteen-image-post-format', 724, 1288 ); 105 103 106 // This theme uses its own gallery styles. 104 107 add_filter( 'use_default_gallery_style', '__return_false' ); 105 108 } … … 527 530 * @since Twenty Thirteen 1.0 528 531 */ 529 532 function twentythirteen_content_width() { 530 if ( has_post_format( ' image' ) || has_post_format( 'video' ) || is_attachment() ) {533 if ( has_post_format( 'video' ) || is_attachment() ) { 531 534 global $content_width; 532 535 $content_width = 724; 533 536 }