mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
a8c96db902
commit
22ae6f36c0
@ -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>
|
||||
|
||||
|
@ -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<!--";
|
||||
|
@ -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 »'); ?>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user