From b051e780e352dd5944db8bee3e5eb8d0da00aa4c Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 23 Apr 2013 16:57:32 +0000 Subject: [PATCH] Twenty Thirteen: avoid orphans in Aside date post meta. Props obenland, fixes #24166. git-svn-id: https://develop.svn.wordpress.org/trunk@24071 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentythirteen/content-aside.php | 21 ++++++++++--------- .../themes/twentythirteen/functions.php | 19 +---------------- wp-content/themes/twentythirteen/rtl.css | 13 ------------ wp-content/themes/twentythirteen/style.css | 20 +----------------- 4 files changed, 13 insertions(+), 60 deletions(-) diff --git a/wp-content/themes/twentythirteen/content-aside.php b/wp-content/themes/twentythirteen/content-aside.php index 4579646eb0..9949fdd882 100644 --- a/wp-content/themes/twentythirteen/content-aside.php +++ b/wp-content/themes/twentythirteen/content-aside.php @@ -14,17 +14,18 @@ '', 'link_before' => '', 'link_after' => '' ) ); ?> - - - - ', '' ); ?> - diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index c641b38f40..ae6e9fc895 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -375,7 +375,7 @@ function twentythirteen_entry_meta() { if ( is_sticky() && is_home() && ! is_paged() ) echo '' . __( 'Sticky', 'twentythirteen' ) . ''; - if ( ! has_post_format( 'aside' ) && ! has_post_format( 'link' ) && 'post' == get_post_type() ) + if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) twentythirteen_entry_date(); // Translators: used between list items, there is a space after the comma. @@ -528,23 +528,6 @@ function twentythirteen_video_width( $atts ) { add_action( 'embed_defaults', 'twentythirteen_video_width' ); add_action( 'shortcode_atts_video', 'twentythirteen_video_width' ); -/** - * Adds entry date to aside posts after the content. - * - * - * @since Twenty Thirteen 1.0 - * - * @param string $content Post content. - * @return string Post content. - */ -function twentythirteen_aside_date( $content ) { - if ( ! is_feed() && has_post_format( 'aside' ) ) { - $content .= twentythirteen_entry_date( false ); - } - return $content; -} -add_filter( 'the_content', 'twentythirteen_aside_date', 8 ); // After embeds, before everything else. - /** * Switches default core markup for search form to output valid HTML5. * diff --git a/wp-content/themes/twentythirteen/rtl.css b/wp-content/themes/twentythirteen/rtl.css index 66249b5df1..b2ed6891ad 100644 --- a/wp-content/themes/twentythirteen/rtl.css +++ b/wp-content/themes/twentythirteen/rtl.css @@ -323,19 +323,6 @@ div.nav-menu > ul { * ---------------------------------------------------------------------------- */ -.format-aside .entry-content .date { - margin-left: auto; - margin-right: 20px; -} - -.format-aside .entry-content .date a:before { - content: normal; -} - -.format-aside .entry-content .date a:after { - content: "\f303"; -} - .format-aside cite:before { content: normal; margin-right: auto; diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index 3e71814bd8..d681b2116f 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -1437,21 +1437,7 @@ footer.entry-meta { box-shadow: inset 0 2px 2px rgba(173, 165, 105, 0.2); } -.format-aside .entry-content .date { - color: #ca3c08; - font-size: 14px; - margin-left: 20px; -} - -.format-aside .entry-content .date a:hover { - color: #ea9629; -} - -.format-aside .entry-content .date a:before { - content: "\f303"; -} - -.format-aside footer.entry-meta { +.format-aside .entry-meta { margin-top: 0; } @@ -1470,10 +1456,6 @@ footer.entry-meta { margin-right: 5px; } -.blog .format-aside .entry-content p:last-child { - margin-bottom: 0; -} - /* Audio */ .format-audio { background-color: #db572f;