Twenty Fourteen: first pass at CSS revamp, props iamtakashi. See #25592.

git-svn-id: https://develop.svn.wordpress.org/trunk@25788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2013-10-15 16:45:42 +00:00
parent fa79184a7d
commit 6e1c7ec0bc
3 changed files with 1761 additions and 1143 deletions

View File

@ -100,6 +100,11 @@ function twentyfourteen_setup() {
add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array( add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array(
'default-color' => 'f5f5f5', 'default-color' => 'f5f5f5',
) ) ); ) ) );
/*
* This theme uses its own gallery styles.
*/
add_filter( 'use_default_gallery_style', '__return_false' );
} }
endif; // twentyfourteen_setup endif; // twentyfourteen_setup
add_action( 'after_setup_theme', 'twentyfourteen_setup' ); add_action( 'after_setup_theme', 'twentyfourteen_setup' );
@ -112,7 +117,7 @@ add_action( 'after_setup_theme', 'twentyfourteen_setup' );
* @return void * @return void
*/ */
function twentyfourteen_content_width() { function twentyfourteen_content_width() {
if ( is_page_template( 'full-width-page.php' ) || is_attachment() ) if ( is_attachment() )
$GLOBALS['content_width'] = 810; $GLOBALS['content_width'] = 810;
} }
add_action( 'template_redirect', 'twentyfourteen_content_width' ); add_action( 'template_redirect', 'twentyfourteen_content_width' );

View File

@ -17,16 +17,18 @@
<?php endif; ?> <?php endif; ?>
<?php if ( has_nav_menu( 'secondary' ) ) : ?> <?php if ( has_nav_menu( 'secondary' ) ) : ?>
<nav role="navigation" class="navigation secondary-navigation"> <nav role="navigation" class="navigation site-navigation secondary-navigation">
<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?> <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
</nav> </nav>
<?php endif; ?> <?php endif; ?>
</div><!-- #secondary-top --> </div><!-- #secondary-top -->
<div id="secondary-bottom" class="widget-area" role="complementary"> <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
<?php <?php
do_action( 'before_sidebar' ); do_action( 'before_sidebar' );
dynamic_sidebar( 'sidebar-1' ); dynamic_sidebar( 'sidebar-1' );
?> ?>
</div><!-- #secondary-bottom --> </div><!-- #secondary-bottom -->
<?php endif; ?>
</div><!-- #secondary --> </div><!-- #secondary -->

File diff suppressed because it is too large Load Diff