Coding standards cleanup in twentyten, see #9015. Props sivel
git-svn-id: https://develop.svn.wordpress.org/trunk@13720 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1bb04ed42a
commit
d504e9c257
@ -17,14 +17,48 @@ function twentyten_init() {
|
||||
add_custom_image_header( '', 'twentyten_admin_header_style' );
|
||||
// and thus ends the changeable header business
|
||||
|
||||
register_default_headers( array('berries' => array('url' => '%s/images/headers/berries.jpg', 'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg', 'description' => __('Berries')),
|
||||
'cherryblossom' => array( 'url' => '%s/images/headers/cherryblossoms.jpg', 'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg', 'description' => __('Cherry Blossoms')),
|
||||
'concave' => array('url' => '%s/images/headers/concave.jpg', 'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg', 'description' => __('Concave')),
|
||||
'fern' => array('url' => '%s/images/headers/fern.jpg', 'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg', 'description' => __('Fern')),
|
||||
'forestfloor' => array('url' => '%s/images/headers/forestfloor.jpg', 'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg', 'description' => __('Forest Floor')),
|
||||
'inkwell' => array('url' => '%s/images/headers/inkwell.jpg', 'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg', 'description' => __('Ink Well')),
|
||||
'path' => array('url' => '%s/images/headers/path.jpg', 'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg', 'description' => __('Path')),
|
||||
'sunset' => array('url' => '%s/images/headers/sunset.jpg', 'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg', 'description' => __('Sunset')) ) );
|
||||
register_default_headers( array (
|
||||
'berries' => array (
|
||||
'url' => '%s/images/headers/berries.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg',
|
||||
'description' => __( 'Berries' )
|
||||
),
|
||||
'cherryblossom' => array (
|
||||
'url' => '%s/images/headers/cherryblossoms.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg',
|
||||
'description' => __( 'Cherry Blossoms' )
|
||||
),
|
||||
'concave' => array (
|
||||
'url' => '%s/images/headers/concave.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg',
|
||||
'description' => __( 'Concave' )
|
||||
),
|
||||
'fern' => array (
|
||||
'url' => '%s/images/headers/fern.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg',
|
||||
'description' => __( 'Fern' )
|
||||
),
|
||||
'forestfloor' => array (
|
||||
'url' => '%s/images/headers/forestfloor.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg',
|
||||
'description' => __( 'Forest Floor' )
|
||||
),
|
||||
'inkwell' => array (
|
||||
'url' => '%s/images/headers/inkwell.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg',
|
||||
'description' => __( 'Ink Well' )
|
||||
),
|
||||
'path' => array (
|
||||
'url' => '%s/images/headers/path.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg',
|
||||
'description' => __( 'Path' )
|
||||
),
|
||||
'sunset' => array (
|
||||
'url' => '%s/images/headers/sunset.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg',
|
||||
'description' => __( 'Sunset' )
|
||||
)
|
||||
) );
|
||||
|
||||
add_custom_background();
|
||||
|
||||
|
@ -34,11 +34,11 @@
|
||||
<div id="site-description"><?php bloginfo( 'description' ); ?></div>
|
||||
|
||||
<?php
|
||||
if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
|
||||
if ( is_singular() && has_post_thumbnail( $post->ID ) ) :
|
||||
echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
|
||||
} else { ?>
|
||||
else : ?>
|
||||
<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
</div><!-- #branding -->
|
||||
|
||||
<div id="access">
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?php
|
||||
if ( is_active_sidebar('first-footer-widget-area') ||
|
||||
if (
|
||||
is_active_sidebar( 'first-footer-widget-area' ) ||
|
||||
is_active_sidebar( 'second-footer-widget-area' ) ||
|
||||
is_active_sidebar( 'third-footer-widget-area' ) ||
|
||||
is_active_sidebar('fourth-footer-widget-area') ) :
|
||||
is_active_sidebar( 'fourth-footer-widget-area' )
|
||||
) :
|
||||
?>
|
||||
<div id="footer-widget-area">
|
||||
<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
|
||||
|
Loading…
Reference in New Issue
Block a user