Twenty Fourteen: general cleanup for spacing, inline comments. Props obenland, see #25946.

Built from https://develop.svn.wordpress.org/trunk@26227


git-svn-id: http://core.svn.wordpress.org/trunk@26134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-11-15 21:20:09 +00:00
parent 433c648e1d
commit 3c0f497fad
9 changed files with 13 additions and 26 deletions

View File

@ -97,24 +97,18 @@ function twentyfourteen_setup() {
'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery',
) );
/*
* This theme allows users to set a custom background.
*/
// This theme allows users to set a custom background.
add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array(
'default-color' => 'f5f5f5',
) ) );
/*
* Add support for featured content.
*/
// Add support for featured content.
add_theme_support( 'featured-content', array(
'featured_content_filter' => 'twentyfourteen_get_featured_posts',
'max_posts' => 6,
) );
/*
* This theme uses its own gallery styles.
*/
// This theme uses its own gallery styles.
add_filter( 'use_default_gallery_style', '__return_false' );
}
endif; // twentyfourteen_setup

View File

@ -32,8 +32,6 @@
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<?php do_action( 'before' ); ?>
<?php if ( get_header_image() ) : ?>
<div id="site-header">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">

View File

@ -73,8 +73,8 @@ get_header();
<nav id="image-navigation" class="navigation image-navigation">
<div class="nav-links">
<?php previous_image_link( false, __( '<div class="previous-image">Previous Image</div>', 'twentyfourteen' ) ); ?>
<?php next_image_link( false, __( '<div class="next-image">Next Image</div>', 'twentyfourteen' ) ); ?>
<div class="previous-image"><?php previous_image_link( false, __( 'Previous Image', 'twentyfourteen' ) ); ?></div>
<div class="next-image"><?php next_image_link( false, __( 'Next Image', 'twentyfourteen' ) ); ?></div>
</div><!-- .nav-links -->
</nav><!-- #image-navigation -->

View File

@ -317,7 +317,6 @@ function twentyfourteen_customizer_styles() {
color: ' . $accent_light . ';
}';
wp_add_inline_style( 'twentyfourteen-style', $css );
}
add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' );

View File

@ -162,6 +162,8 @@ add_action( 'save_post', 'twentyfourteen_category_transient_flusher' );
* Displays an optional post thumbnail, with an anchor element
* when on index views, and a div element when on a single view.
*
* @since Twenty Fourteen 1.0
*
* @return void
*/
function twentyfourteen_post_thumbnail() {

View File

@ -39,4 +39,3 @@ get_header(); ?>
get_sidebar( 'content' );
get_sidebar();
get_footer();

View File

@ -11,7 +11,5 @@ if ( ! is_active_sidebar( 'sidebar-2' ) )
return;
?>
<div id="content-sidebar" class="content-sidebar widget-area" role="complementary">
<?php do_action( 'before_sidebar' ); ?>
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</div><!-- #content-sidebar -->

View File

@ -23,10 +23,7 @@
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
<?php
do_action( 'before_sidebar' );
dynamic_sidebar( 'sidebar-1' );
?>
</div><!-- #primary-sidebar .primary-sidebar -->
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div><!-- #primary-sidebar -->
<?php endif; ?>
</div><!-- #secondary -->