WordPress.org

Make WordPress Core

Ticket #23542: 23542.2.diff

File 23542.2.diff, 1.3 KB (added by Mamaduka, 14 months ago)
  • wp-content/themes/twentythirteen/functions.php

     
    528528add_action( 'template_redirect', 'twentythirteen_content_width' ); 
    529529 
    530530/** 
     531 * Adjust embed defaults for video post formats. 
     532 * 
     533 * @since Twenty Thirteen 1.0 
     534 */ 
     535function twentythirteen_embed_defaults( $defaults ) { 
     536        if ( has_post_format( 'video' ) ) { 
     537                $defaults['width'] = 724; 
     538                $defautls['height'] = 1000; 
     539        } 
     540 
     541        return $defaults; 
     542} 
     543add_filter( 'embed_defaults', 'twentythirteen_embed_defaults' ); 
     544 
     545/** 
    531546 * Adds entry date to aside posts after the content. 
    532547 * 
    533548 * 
  • wp-content/themes/twentythirteen/style.css

     
    17351735        background-color: #dd5625; 
    17361736} 
    17371737 
     1738.format-video .entry-content embed, 
     1739.format-video .entry-content iframe, 
     1740.format-video .entry-content object, 
     1741.format-video .entry-content video { 
     1742        margin: 0 -60px; 
     1743        max-width: 724px; 
     1744} 
     1745 
    17381746.format-video .entry-content a, 
    17391747.single-format-video .entry-content a { 
    17401748        color: #fbfaf3;