Ticket #24166: 24166.diff
File 24166.diff, 4.5 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentythirteen/content-aside.php
14 14 <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> 15 15 </div><!-- .entry-content --> 16 16 17 <?php if ( is_single() ) : ?> 17 18 18 <footer class="entry-meta"> 19 <?php twentythirteen_entry_meta(); ?> 20 <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> 19 <?php if ( is_single() ) : ?> 20 <?php twentythirteen_entry_meta(); ?> 21 <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> 21 22 22 <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : ?> 23 <?php get_template_part( 'author-bio' ); ?> 24 <?php endif; ?> 25 </footer><!-- .entry-meta --> 23 <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : ?> 24 <?php get_template_part( 'author-bio' ); ?> 25 <?php endif; ?> 26 26 27 <?php else : ?> 28 <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer><!-- .entry-meta -->' ); ?> 29 <?php endif; // is_single() ?> 27 <?php else : ?> 28 <?php twentythirteen_entry_date(); ?> 29 <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> 30 <?php endif; // is_single() ?> 31 </footer><!-- .entry-meta --> 30 32 </article><!-- #post --> -
wp-content/themes/twentythirteen/rtl.css
323 323 * ---------------------------------------------------------------------------- 324 324 */ 325 325 326 .format-aside .entry-content .date {327 margin-left: auto;328 margin-right: 20px;329 }330 331 .format-aside .entry-content .date a:before {332 content: normal;333 }334 335 .format-aside .entry-content .date a:after {336 content: "\f303";337 }338 339 326 .format-aside cite:before { 340 327 content: normal; 341 328 margin-right: auto; -
wp-content/themes/twentythirteen/style.css
1437 1437 box-shadow: inset 0 2px 2px rgba(173, 165, 105, 0.2); 1438 1438 } 1439 1439 1440 .format-aside .entry-content .date { 1441 color: #ca3c08; 1442 font-size: 14px; 1443 margin-left: 20px; 1444 } 1445 1446 .format-aside .entry-content .date a:hover { 1447 color: #ea9629; 1448 } 1449 1450 .format-aside .entry-content .date a:before { 1451 content: "\f303"; 1452 } 1453 1454 .format-aside footer.entry-meta { 1440 .format-aside .entry-meta { 1455 1441 margin-top: 0; 1456 1442 } 1457 1443 … … 1470 1456 margin-right: 5px; 1471 1457 } 1472 1458 1473 .blog .format-aside .entry-content p:last-child {1474 margin-bottom: 0;1475 }1476 1477 1459 /* Audio */ 1478 1460 .format-audio { 1479 1461 background-color: #db572f; -
wp-content/themes/twentythirteen/functions.php
375 375 if ( is_sticky() && is_home() && ! is_paged() ) 376 376 echo '<span class="featured-post">' . __( 'Sticky', 'twentythirteen' ) . '</span>'; 377 377 378 if ( ! has_post_format( ' aside' ) && ! has_post_format( 'link' ) && 'post' == get_post_type() )378 if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) 379 379 twentythirteen_entry_date(); 380 380 381 381 // Translators: used between list items, there is a space after the comma. … … 529 529 add_action( 'shortcode_atts_video', 'twentythirteen_video_width' ); 530 530 531 531 /** 532 * Adds entry date to aside posts after the content.533 *534 *535 * @since Twenty Thirteen 1.0536 *537 * @param string $content Post content.538 * @return string Post content.539 */540 function twentythirteen_aside_date( $content ) {541 if ( ! is_feed() && has_post_format( 'aside' ) ) {542 $content .= twentythirteen_entry_date( false );543 }544 return $content;545 }546 add_filter( 'the_content', 'twentythirteen_aside_date', 8 ); // After embeds, before everything else.547 548 /**549 532 * Switches default core markup for search form to output valid HTML5. 550 533 * 551 534 * @param string $format Expected markup format, default is `xhtml`