Make WordPress Core


Ignore:
Timestamp:
02/14/2010 07:13:34 AM (15 years ago)
Author:
dd32
Message:

Move the Loop into a separate file. Reduces code duplication and adds Gallery/Aside styling to all archive views. See #9015

File:
1 edited

Legend:

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

    r13138 r13141  
    4040
    4141            <div id="branding">
    42                 <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>
     42                <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>
    4343                <div id="site-description"><?php bloginfo( 'description' ); ?></div>
    4444
    4545                <?php
    46                     global $post;
    47                     if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
    48                         echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    49                     } else { ?>
     46                if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
     47                    echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
     48                } else { ?>
    5049                    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    5150                <?php } ?>
Note: See TracChangeset for help on using the changeset viewer.