Some tweaks to the default theme, fixes #1847 and the custom header validation error.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-11-07 09:31:05 +00:00
parent 725cc84302
commit 415b23c88b
5 changed files with 9 additions and 17 deletions

View File

@ -40,10 +40,10 @@
<small><?php the_time('l, F jS, Y') ?></small> <small><?php the_time('l, F jS, Y') ?></small>
<div class="entry"> <div class="entry">
<?php the_excerpt() ?> <?php the_content() ?>
</div> </div>
<p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p> <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
</div> </div>

View File

@ -1,10 +1,10 @@
<?php <?php
function kubrick_head() { function kubrick_head() {
$head = "<style type=\"text/css\">\n"; $head = "<style type='text/css'>\n<!--";
$output = ''; $output = '';
if ( kubrick_header_image() ) { if ( kubrick_header_image() ) {
$url = kubrick_header_image_url(); $url = kubrick_header_image_url() ;
$output .= "#header { background: url('$url') no-repeat bottom center; }\n"; $output .= "#header { background: url('$url') no-repeat bottom center; }\n";
} }
if ( false !== ( $color = kubrick_header_color() ) ) { if ( false !== ( $color = kubrick_header_color() ) ) {
@ -13,7 +13,7 @@ function kubrick_head() {
if ( false !== ( $display = kubrick_header_display() ) ) { if ( false !== ( $display = kubrick_header_display() ) ) {
$output .= "#headerimg { display: $display }\n"; $output .= "#headerimg { display: $display }\n";
} }
$foot = "</style>\n"; $foot = "--></style>\n";
if ( '' != $output ) if ( '' != $output )
echo $head . $output . $foot; echo $head . $output . $foot;
} }

View File

@ -9,9 +9,7 @@
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<style type="text/css" media="screen"> <style type="text/css" media="screen">
@ -43,8 +41,6 @@
*/ */
</style> </style>
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php wp_head(); ?> <?php wp_head(); ?>
</head> </head>
<body> <body>

View File

@ -14,7 +14,7 @@
<?php the_content('Read the rest of this entry &raquo;'); ?> <?php the_content('Read the rest of this entry &raquo;'); ?>
</div> </div>
<p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p> <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>

View File

@ -17,12 +17,8 @@
<div class="post"> <div class="post">
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<small><?php the_time('l, F jS, Y') ?></small> <small><?php the_time('l, F jS, Y') ?></small>
<div class="entry">
<?php the_excerpt() ?>
</div>
<p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p> <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>
@ -34,7 +30,7 @@
<?php else : ?> <?php else : ?>
<h2 class="center">Not Found</h2> <h2 class="center">No posts found. Try a different search?</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?> <?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?> <?php endif; ?>