Add basic post thumbnail support to Default theme.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2009-11-01 08:12:21 +00:00
parent a8c96db902
commit 22ae6f36c0
3 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,9 @@ get_header();
<small><?php the_time('l, F jS, Y') ?></small>
<div class="entry">
<?php if ( has_post_image() ) : ?>
<a href="<?php the_permalink(); ?>"><?php the_post_image( array( 75, 75 ), array( 'class' => 'alignleft' ) ); ?></a>
<?php endif; ?>
<?php the_content() ?>
</div>

View File

@ -17,6 +17,9 @@ if ( function_exists('register_sidebar') ) {
));
}
if ( function_exists( 'add_theme_support' ) )
add_theme_support( 'post-thumbnails' );
/** @ignore */
function kubrick_head() {
$head = "<style type='text/css'>\n<!--";

View File

@ -17,6 +17,9 @@ get_header(); ?>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
<div class="entry">
<?php if ( has_post_image() ) : ?>
<a href="<?php the_permalink(); ?>"><?php the_post_image( array( 75, 75 ), array( 'class' => 'alignleft' ) ); ?></a>
<?php endif; ?>
<?php the_content('Read the rest of this entry &raquo;'); ?>
</div>