Make WordPress Core


Ignore:
Timestamp:
03/16/2010 08:17:22 PM (16 years ago)
Author:
iammattthomas
Message:

Coding standards cleanup in twentyten, see #9015. Props sivel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/header.php

    r13704 r13720  
    22<html <?php language_attributes(); ?>>
    33<head>
    4         <meta charset="<?php bloginfo('charset'); ?>" />
     4        <meta charset="<?php bloginfo( 'charset' ); ?>" />
    55    <title><?php
    66        if ( is_single() ) {
    7                         single_post_title(); echo ' | '; bloginfo('name');
     7                        single_post_title(); echo ' | '; bloginfo( 'name' );
    88                } elseif ( is_home() || is_front_page() ) {
    9                         bloginfo('name'); echo ' | '; bloginfo('description'); twentyten_the_page_number();
     9                        bloginfo( 'name' ); echo ' | '; bloginfo( 'description' ); twentyten_the_page_number();
    1010                } elseif ( is_page() ) {
    11                         single_post_title(''); echo ' | '; bloginfo('name');
     11                        single_post_title( '' ); echo ' | '; bloginfo( 'name' );
    1212                } elseif ( is_search() ) {
    13                         printf(__('Search results for "%s"', 'twentyten'), esc_html($s)); twentyten_the_page_number(); echo ' | '; bloginfo('name');
     13                        printf( __( 'Search results for "%s"', 'twentyten' ), esc_html( $s ) ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
    1414                } elseif ( is_404() ) {
    15                         _e('Not Found', 'twentyten'); echo ' | '; bloginfo('name');
     15                        _e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
    1616                } else {
    17                         wp_title(''); echo ' | '; bloginfo('name'); twentyten_the_page_number();
     17                        wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number();
    1818                }
    1919    ?></title>
    2020        <link rel="profile" href="http://gmpg.org/xfn/11" />
    21         <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
    22         <link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" />
     21        <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
     22        <link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo( 'stylesheet_directory' ); ?>/print.css" />
    2323        <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    2424        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
     
    3131                <div id="masthead">
    3232                        <div id="branding">
    33                                 <div id="site-title"><span><a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></div>
     33                                <div id="site-title"><span><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></div>
    3434                                <div id="site-description"><?php bloginfo( 'description' ); ?></div>
    3535
    3636                                <?php
    37                                 if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
     37                                if ( is_singular() && has_post_thumbnail( $post->ID ) ) :
    3838                                        echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    39                                 } else { ?>
     39                                else : ?>
    4040                                        <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    41                                 <?php } ?>
     41                                <?php endif; ?>
    4242                        </div><!-- #branding -->
    4343
Note: See TracChangeset for help on using the changeset viewer.