Make WordPress Core

Ticket #24166: 24166.diff

File 24166.diff, 4.5 KB (added by obenland, 12 years ago)
  • wp-content/themes/twentythirteen/content-aside.php

     
    1414                <?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>' ) ); ?>
    1515        </div><!-- .entry-content -->
    1616
    17         <?php if ( is_single() ) : ?>
     17
    1818        <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>' ); ?>
    2122
    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; ?>
    2626
    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 -->
    3032</article><!-- #post -->
  • wp-content/themes/twentythirteen/rtl.css

     
    323323 * ----------------------------------------------------------------------------
    324324 */
    325325
    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 
    339326.format-aside cite:before {
    340327        content: normal;
    341328        margin-right: auto;
  • wp-content/themes/twentythirteen/style.css

     
    14371437        box-shadow: inset 0 2px 2px rgba(173, 165, 105, 0.2);
    14381438}
    14391439
    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 {
    14551441        margin-top: 0;
    14561442}
    14571443
     
    14701456        margin-right: 5px;
    14711457}
    14721458
    1473 .blog .format-aside .entry-content p:last-child {
    1474         margin-bottom: 0;
    1475 }
    1476 
    14771459/* Audio */
    14781460.format-audio {
    14791461        background-color: #db572f;
  • wp-content/themes/twentythirteen/functions.php

     
    375375        if ( is_sticky() && is_home() && ! is_paged() )
    376376                echo '<span class="featured-post">' . __( 'Sticky', 'twentythirteen' ) . '</span>';
    377377
    378         if ( ! has_post_format( 'aside' ) && ! has_post_format( 'link' ) && 'post' == get_post_type() )
     378        if ( ! has_post_format( 'link' ) && 'post' == get_post_type() )
    379379                twentythirteen_entry_date();
    380380
    381381        // Translators: used between list items, there is a space after the comma.
     
    529529add_action( 'shortcode_atts_video', 'twentythirteen_video_width' );
    530530
    531531/**
    532  * Adds entry date to aside posts after the content.
    533  *
    534  *
    535  * @since Twenty Thirteen 1.0
    536  *
    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 /**
    549532 * Switches default core markup for search form to output valid HTML5.
    550533 *
    551534 * @param string $format Expected markup format, default is `xhtml`