From a87c00edeef23ad65d05fcff98d1a098df667046 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 27 Mar 2013 18:51:47 +0000 Subject: [PATCH] Twenty Thirteen: take full advantage of new structured post format template functions, see r23819. Extract first video or image from Video and Image post format posts, and place the item above the title within its own HTML wrapper with `the_video()` and `the_image()'. Also, remove the item from the post content with `the_extra_content()`. This allows us to meet the design requirements for Twenty Thirteen with minimal changes to the theme template files. Fixes #23620. git-svn-id: http://core.svn.wordpress.org/trunk@23820 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentythirteen/content-image.php | 6 +++++- wp-content/themes/twentythirteen/content-video.php | 6 +++++- wp-content/themes/twentythirteen/style.css | 13 +++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentythirteen/content-image.php b/wp-content/themes/twentythirteen/content-image.php index 31fd4843ca..28d048f44b 100644 --- a/wp-content/themes/twentythirteen/content-image.php +++ b/wp-content/themes/twentythirteen/content-image.php @@ -10,6 +10,10 @@
>
+
+ +
+

@@ -20,7 +24,7 @@
- →', 'twentythirteen' ) ); ?> + →', 'twentythirteen' ) ); ?> '', 'link_before' => '', 'link_after' => '' ) ); ?>
diff --git a/wp-content/themes/twentythirteen/content-video.php b/wp-content/themes/twentythirteen/content-video.php index 97265b9455..bee5da1567 100644 --- a/wp-content/themes/twentythirteen/content-video.php +++ b/wp-content/themes/twentythirteen/content-video.php @@ -10,6 +10,10 @@
>
+
+ +
+

@@ -20,7 +24,7 @@
- →', 'twentythirteen' ) ); ?> + →', 'twentythirteen' ) ); ?> '', 'link_before' => '', 'link_after' => '' ) ); ?>
diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index a16d56a832..48a1a2f5b7 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -1659,6 +1659,15 @@ footer.entry-meta { font-weight: bold; } +.format-image .entry-header { + max-width: 724px; +} + +.format-image .entry-header img { + height: auto; + max-width: 724px; +} + .format-image .entry-content .size-full { margin: 0 -60px; max-width: 724px; @@ -1873,6 +1882,10 @@ footer.entry-meta { font-weight: 400; } +.format-video .entry-header { + max-width: 724px; +} + .format-video .entry-meta { color: #220e10; }