WordPress.org

Make WordPress Core

Changeset 12133


Ignore:
Timestamp:
11/01/09 08:12:21 (4 years ago)
Author:
markjaquith
Message:

Add basic post thumbnail support to Default theme.

Location:
trunk/wp-content/themes/default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/archive.php

    r10945 r12133  
    4141 
    4242                <div class="entry"> 
     43                    <?php if ( has_post_image() ) : ?> 
     44                        <a href="<?php the_permalink(); ?>"><?php the_post_image( array( 75, 75 ), array( 'class' => 'alignleft' ) ); ?></a> 
     45                    <?php endif; ?> 
    4346                    <?php the_content() ?> 
    4447                </div> 
  • trunk/wp-content/themes/default/functions.php

    r12011 r12133  
    1717    )); 
    1818} 
     19 
     20if ( function_exists( 'add_theme_support' ) ) 
     21    add_theme_support( 'post-thumbnails' ); 
    1922 
    2023/** @ignore */ 
  • trunk/wp-content/themes/default/index.php

    r12038 r12133  
    1818 
    1919                <div class="entry"> 
     20                    <?php if ( has_post_image() ) : ?> 
     21                        <a href="<?php the_permalink(); ?>"><?php the_post_image( array( 75, 75 ), array( 'class' => 'alignleft' ) ); ?></a> 
     22                    <?php endif; ?> 
    2023                    <?php the_content('Read the rest of this entry &raquo;'); ?> 
    2124                </div> 
Note: See TracChangeset for help on using the changeset viewer.