| 1 | Index: wp-content/themes/twentythirteen/functions.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-content/themes/twentythirteen/functions.php (revision 23465) |
|---|
| 4 | +++ wp-content/themes/twentythirteen/functions.php (working copy) |
|---|
| 5 | @@ -528,6 +528,23 @@ |
|---|
| 6 | add_action( 'template_redirect', 'twentythirteen_content_width' ); |
|---|
| 7 | |
|---|
| 8 | /** |
|---|
| 9 | + * Adjust embed defaults for video post formats. |
|---|
| 10 | + * |
|---|
| 11 | + * @since Twenty Thirteen 1.0 |
|---|
| 12 | + */ |
|---|
| 13 | +function twentythirteen_embed_defaults( $defaults ) { |
|---|
| 14 | + $post = get_post(); |
|---|
| 15 | + |
|---|
| 16 | + if ( ! empty( $post ) && has_post_format( 'video' ) ) { |
|---|
| 17 | + $defaults['width'] = 724; |
|---|
| 18 | + $defautls['height'] = 1000; |
|---|
| 19 | + } |
|---|
| 20 | + |
|---|
| 21 | + return $defaults; |
|---|
| 22 | +} |
|---|
| 23 | +add_filter( 'embed_defaults', 'twentythirteen_embed_defaults' ); |
|---|
| 24 | + |
|---|
| 25 | +/** |
|---|
| 26 | * Adds entry date to aside posts after the content. |
|---|
| 27 | * |
|---|
| 28 | * |
|---|
| 29 | Index: wp-content/themes/twentythirteen/style.css |
|---|
| 30 | =================================================================== |
|---|
| 31 | --- wp-content/themes/twentythirteen/style.css (revision 23465) |
|---|
| 32 | +++ wp-content/themes/twentythirteen/style.css (working copy) |
|---|
| 33 | @@ -1735,6 +1735,14 @@ |
|---|
| 34 | background-color: #dd5625; |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | +.format-video .entry-content embed, |
|---|
| 38 | +.format-video .entry-content iframe, |
|---|
| 39 | +.format-video .entry-content object, |
|---|
| 40 | +.format-video .entry-content video { |
|---|
| 41 | + margin: 0 -60px; |
|---|
| 42 | + max-width: 724px; |
|---|
| 43 | +} |
|---|
| 44 | + |
|---|
| 45 | .format-video .entry-content a, |
|---|
| 46 | .single-format-video .entry-content a { |
|---|
| 47 | color: #fbfaf3; |
|---|