Make WordPress Core


Ignore:
Timestamp:
02/14/2012 03:54:46 AM (12 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/header.php

    r19845 r19915  
    1414<meta charset="<?php bloginfo( 'charset' ); ?>" />
    1515<meta name="viewport" content="width=device-width" />
    16 <title><?php wp_title( '|', true, 'right' ); ?></title>
     16<title><?php wp_title( '|', true, 'right' ); ?> <?php bloginfo( 'name' ); ?></title>
    1717<link rel="profile" href="http://gmpg.org/xfn/11" />
    1818<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
     
    2828    wp_enqueue_script( 'comment-reply' );
    2929
    30 wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) );
     30wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
    3131?>
    3232<?php wp_head(); ?>
     
    4747            <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    4848        </nav>
     49
     50        <?php $header_image = get_header_image();
     51        if ( ! empty( $header_image ) ) : ?>
     52            <img src="<?php echo esc_url( $header_image ); ?>" alt="" />
     53        <?php endif; ?>
    4954    </header><!-- #masthead -->
    5055
Note: See TracChangeset for help on using the changeset viewer.