WordPress.org

Make WordPress Core

Ticket #21675: twentytwelve-head-foot-side.diff

File twentytwelve-head-foot-side.diff, 5.8 KB (added by DrewAPicture, 9 years ago)
  • wp-content/themes/twentytwelve/footer.php

     
    1111 */
    1212?>
    1313        </div><!-- #main .wrapper -->
     14
    1415        <footer id="colophon" role="contentinfo">
    1516                <div class="site-info">
    1617                        <?php do_action( 'twentytwelve_credits' ); ?>
    1718                        <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a>
    1819                </div><!-- .site-info -->
    1920        </footer><!-- #colophon -->
     21
    2022</div><!-- #page -->
    2123
    2224<?php wp_footer(); ?>
  • wp-content/themes/twentytwelve/header.php

     
    1616<html <?php language_attributes(); ?>>
    1717<!--<![endif]-->
    1818<head>
    19 <meta charset="<?php bloginfo( 'charset' ); ?>" />
    20 <meta name="viewport" content="width=device-width" />
    21 <title><?php wp_title( '|', true, 'right' ); ?></title>
    22 <link rel="profile" href="http://gmpg.org/xfn/11" />
    23 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    24 <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
    25 <!--[if lt IE 9]>
    26 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    27 <![endif]-->
    28 <?php wp_head(); ?>
     19        <meta charset="<?php bloginfo( 'charset' ); ?>" />
     20        <meta name="viewport" content="width=device-width" />
     21
     22        <title><?php wp_title( '|', true, 'right' ); ?></title>
     23
     24        <link rel="profile" href="http://gmpg.org/xfn/11" />
     25        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
     26
     27        <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
     28        <!--[if lt IE 9]>
     29        <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
     30        <![endif]-->
     31
     32        <?php wp_head(); ?>
    2933</head>
    3034
    3135<body <?php body_class(); ?>>
    32 <div id="page" class="hfeed site">
    33         <header id="masthead" class="site-header" role="banner">
    34                 <hgroup>
    35                         <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    36                         <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    37                 </hgroup>
     36        <div id="page" class="hfeed site">
     37                <header id="masthead" class="site-header" role="banner">
     38                        <hgroup>
     39                                <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
     40                                <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
     41                        </hgroup>
    3842
    39                 <nav id="site-navigation" class="main-navigation" role="navigation">
    40                         <h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
    41                         <div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div>
    42                         <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
    43                 </nav><!-- #site-navigation -->
     43                        <nav id="site-navigation" class="main-navigation" role="navigation">
     44                                <h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
    4445
    45                 <?php $header_image = get_header_image();
    46                 if ( ! empty( $header_image ) ) : ?>
    47                         <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><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="" /></a>
    48                 <?php endif; ?>
    49         </header><!-- #masthead -->
     46                                <div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div>
     47                                <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
     48                        </nav><!-- #site-navigation -->
    5049
    51         <div id="main" class="wrapper">
    52  No newline at end of file
     50                        <?php $header_image = get_header_image();
     51
     52                        if ( ! empty( $header_image ) ) : ?>
     53                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><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="" /></a>
     54                        <?php endif; ?>
     55                </header><!-- #masthead -->
     56
     57                <div id="main" class="wrapper">
  • wp-content/themes/twentytwelve/sidebar-front.php

     
    2121// If we get this far, we have widgets. Let do this.
    2222?>
    2323<div id="secondary" class="widget-area" role="complementary">
     24
    2425        <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
    25         <div class="first front-widgets">
    26                 <?php dynamic_sidebar( 'sidebar-2' ); ?>
    27         </div><!-- .first -->
     26                <div class="first front-widgets">
     27                        <?php dynamic_sidebar( 'sidebar-2' ); ?>
     28                </div><!-- .first -->
    2829        <?php endif; ?>
    2930
    3031        <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
    31         <div class="second front-widgets">
    32                 <?php dynamic_sidebar( 'sidebar-3' ); ?>
    33         </div><!-- .second -->
     32                <div class="second front-widgets">
     33                        <?php dynamic_sidebar( 'sidebar-3' ); ?>
     34                </div><!-- .second -->
    3435        <?php endif; ?>
    35 </div><!-- #secondary -->
    36  No newline at end of file
     36
     37</div><!-- #secondary -->