Make WordPress Core

Ticket #21675: twentytwelve-misc.diff

File twentytwelve-misc.diff, 8.9 KB (added by DrewAPicture, 13 years ago)
  • wp-content/themes/twentytwelve/search.php

     
    1010get_header(); ?>
    1111
    1212        <section id="primary" class="site-content">
     13
    1314                <div id="content" role="main">
    1415
    1516                <?php if ( have_posts() ) : ?>
     
    4344                <?php endif; ?>
    4445
    4546                </div><!-- #content -->
     47
    4648        </section><!-- #primary -->
    4749
    4850<?php get_sidebar(); ?>
  • wp-content/themes/twentytwelve/404.php

     
    1010get_header(); ?>
    1111
    1212        <div id="primary" class="site-content">
     13
    1314                <div id="content" role="main">
    1415
    1516                        <article id="post-0" class="post error404 no-results not-found">
     17
    1618                                <header class="entry-header">
    1719                                        <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'twentytwelve' ); ?></h1>
    18                                 </header>
     20                                </header><!-- .entry-header -->
    1921
    2022                                <div class="entry-content">
    2123                                        <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentytwelve' ); ?></p>
    2224                                        <?php get_search_form(); ?>
    2325                                </div><!-- .entry-content -->
     26
    2427                        </article><!-- #post-0 -->
    2528
    2629                </div><!-- #content -->
     30
    2731        </div><!-- #primary -->
    2832
    29 <?php get_footer(); ?>
    30  No newline at end of file
     33<?php get_footer(); ?>
  • wp-content/themes/twentytwelve/single.php

     
    1010get_header(); ?>
    1111
    1212        <div id="primary" class="site-content">
     13
    1314                <div id="content" role="main">
    1415
    1516                        <?php while ( have_posts() ) : the_post(); ?>
     
    1819
    1920                                <nav class="nav-single">
    2021                                        <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
     22
    2123                                        <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span>
    2224                                        <span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span>
    2325                                </nav><!-- .nav-single -->
     
    3133                        <?php endwhile; // end of the loop. ?>
    3234
    3335                </div><!-- #content -->
     36
    3437        </div><!-- #primary -->
    3538
    3639<?php get_sidebar(); ?>
  • wp-content/themes/twentytwelve/page.php

     
    1515get_header(); ?>
    1616
    1717        <div id="primary" class="site-content">
     18
    1819                <div id="content" role="main">
    1920
    2021                        <?php while ( have_posts() ) : the_post(); ?>
     
    2324                        <?php endwhile; // end of the loop. ?>
    2425
    2526                </div><!-- #content -->
     27
    2628        </div><!-- #primary -->
    2729
    2830<?php get_sidebar(); ?>
  • wp-content/themes/twentytwelve/image.php

     
    1212get_header(); ?>
    1313
    1414        <div id="primary" class="site-content">
     15
    1516                <div id="content" role="main">
    1617
    1718                <?php while ( have_posts() ) : the_post(); ?>
    1819
    1920                                <article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
     21
    2022                                        <header class="entry-header">
    2123                                                <h1 class="entry-title"><?php the_title(); ?></h1>
    2224
     
    5961endforeach;
    6062
    6163$k++;
     64
    6265// If there is more than 1 attachment in a gallery
    6366if ( count( $attachments ) > 1 ) :
    6467        if ( isset( $attachments[ $k ] ) ) :
     
    7376        $next_attachment_url = wp_get_attachment_url();
    7477endif;
    7578?>
    76                                                                 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
    77                                                                 $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) );
    78                                                                 echo wp_get_attachment_image( $post->ID, $attachment_size );
    79                                                                 ?></a>
     79                                                                <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment">
     80                                                                        <?php
     81                                                                        $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) );
     82                                                                        echo wp_get_attachment_image( $post->ID, $attachment_size );
     83                                                                        ?>
     84                                                                </a>
    8085
    8186                                                                <?php if ( ! empty( $post->post_excerpt ) ) : ?>
    82                                                                 <div class="entry-caption">
    83                                                                         <?php the_excerpt(); ?>
    84                                                                 </div>
     87                                                                        <div class="entry-caption">
     88                                                                                <?php the_excerpt(); ?>
     89                                                                        </div><!-- .entry-caption -->
    8590                                                                <?php endif; ?>
     91
    8692                                                        </div><!-- .attachment -->
    8793
    8894                                                </div><!-- .entry-attachment -->
  • wp-content/themes/twentytwelve/inc/custom-header.php

     
    9494function twentytwelve_admin_header_style() {
    9595?>
    9696        <style type="text/css">
    97         .appearance_page_custom-header #headimg {
    98                 border: none;
    99         }
    100         #headimg h1,
    101         #headimg h2 {
    102                 line-height: 1.6;
    103                 margin: 0;
    104                 padding: 0;
    105         }
    106         #headimg h1 {
    107                 font-size: 30px;
    108         }
    109         #headimg h1 a {
    110                 color: #515151;
    111                 text-decoration: none;
    112         }
    113         #headimg h1 a:hover {
    114                 color: #21759b;
    115         }
    116         #headimg h2 {
    117                 color: #777;
    118                 font: normal 13px/1.8 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
    119                 margin-bottom: 24px;
    120         }
    121         #headimg img {
    122                 max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px;
    123         }
     97                .appearance_page_custom-header #headimg {
     98                        border: none;
     99                }
     100                #headimg h1,
     101                #headimg h2 {
     102                        line-height: 1.6;
     103                        margin: 0;
     104                        padding: 0;
     105                }
     106                #headimg h1 {
     107                        font-size: 30px;
     108                }
     109                #headimg h1 a {
     110                        color: #515151;
     111                        text-decoration: none;
     112                }
     113                #headimg h1 a:hover {
     114                        color: #21759b;
     115                }
     116                #headimg h2 {
     117                        color: #777;
     118                        font: normal 13px/1.8 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
     119                        margin-bottom: 24px;
     120                }
     121                #headimg img {
     122                        max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px;
     123                }
    124124        </style>
    125125<?php
    126126}
     
    141141                        $style = ' style="color:#' . get_header_textcolor() . ';"';
    142142                ?>
    143143                <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
     144
    144145                <h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
     146
    145147                <?php $header_image = get_header_image();
     148
    146149                if ( ! empty( $header_image ) ) : ?>
    147150                        <img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
    148151                <?php endif; ?>
    149         </div>
    150 <?php }
    151  No newline at end of file
     152        </div><!-- #heading -->
     153<?php }
  • wp-content/themes/twentytwelve/comments.php

     
    3131                                printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve' ),
    3232                                        number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
    3333                        ?>
    34                 </h2>
     34                </h2><!-- .comments-title -->
    3535
    3636                <ol class="commentlist">
    3737                        <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?>
    3838                </ol><!-- .commentlist -->
    3939
    4040                <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
    41                 <nav id="comment-nav-below" class="navigation" role="navigation">
    42                         <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
    43                         <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentytwelve' ) ); ?></div>
    44                         <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentytwelve' ) ); ?></div>
    45                 </nav>
     41                        <nav id="comment-nav-below" class="navigation" role="navigation">
     42                                <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
     43                                <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentytwelve' ) ); ?></div>
     44                                <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentytwelve' ) ); ?></div>
     45                        </nav><!-- #comment-nav-below -->
    4646                <?php endif; // check for comment navigation ?>
    4747
    4848        <?php // If comments are closed and there are comments, let's leave a little note.