Make WordPress Core


Ignore:
Timestamp:
02/14/2012 03:54:46 AM (13 years ago)
Author:
lancewillett
Message:

Twenty Twelve template changes and fixes ... see #19978.

  • Add custom header support
  • header.php: use get_stylesheet_uri() to load stylesheet, props Mamaduka
  • Add full-width template, including adding relevant body_class value as a CSS hook
  • Hide sidebar on all views if no active widgets exist
  • Fix site title output (was missing site title)
  • Remove "featured" title for sticky posts
  • Add content template files for aside, image, link, and quote post formats
  • Indent content-single.php to match content.php
  • Remove sample JPG since Twenty Twelve ships with no default header images

... and style updates, props drewstrojny

  • Better footer styles
  • Styling for full-width layouts
  • Add basic styles for archive views
  • Refine post header/footer styles a bit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/sidebar.php

    r19842 r19915  
    22/**
    33 * The Sidebar containing the main widget area.
     4 *
     5 * If no active widgets in sidebar, hide it completely.
    46 *
    57 * @package WordPress
     
    810 */
    911?>
     12
     13    <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
    1014    <div id="secondary" class="widget-area" role="complementary">
    11         <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
    12 
    13             <aside id="archives" class="widget">
    14                 <h3 class="widget-title"><?php _e( 'Archives', 'twentytwelve' ); ?></h3>
    15                 <ul>
    16                     <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
    17                 </ul>
    18             </aside>
    19 
    20             <aside id="meta" class="widget">
    21                 <h3 class="widget-title"><?php _e( 'Meta', 'twentytwelve' ); ?></h3>
    22                 <ul>
    23                     <?php wp_register(); ?>
    24                     <li><?php wp_loginout(); ?></li>
    25                     <?php wp_meta(); ?>
    26                 </ul>
    27             </aside>
    28 
    29         <?php endif; // end sidebar widget area ?>
     15        <?php dynamic_sidebar( 'sidebar-1' ); ?>
    3016    </div><!-- #secondary .widget-area -->
     17    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.