Conditionally adding Kubrick
git-svn-id: http://svn.automattic.com/wordpress/trunk@2012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
@ -0,0 +1,10 @@
|
|||
<?php include "header.php"; ?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
|
||||
<h2 class="center">Error 404 - Not Found</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include "sidebar.php"; ?>
|
||||
<?php include "footer.php"; ?>
|
|
@ -0,0 +1,70 @@
|
|||
<?php include "header.php"; ?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
|
||||
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
||||
<?php /* If this is a category archive */ if (is_category()) { ?>
|
||||
<h2 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</h2>
|
||||
|
||||
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
|
||||
<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
|
||||
|
||||
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
|
||||
<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
|
||||
|
||||
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
|
||||
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
|
||||
|
||||
<?php /* If this is a search */ } elseif (is_search()) { ?>
|
||||
<h2 class="pagetitle">Search Results</h2>
|
||||
|
||||
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
|
||||
<h2 class="pagetitle">Author Archive</h2>
|
||||
|
||||
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
||||
<h2 class="pagetitle">Blog Archives</h2>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="navigation">
|
||||
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
|
||||
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
|
||||
</div>
|
||||
|
||||
<?php while (have_posts()) : the_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>
|
||||
<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 »', '1 Comment »', '% Comments »'); ?></p>
|
||||
|
||||
<!--
|
||||
<?php trackback_rdf(); ?>
|
||||
-->
|
||||
</div>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<div class="navigation">
|
||||
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
|
||||
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<h2 class="center">Not Found</h2>
|
||||
<?php include "searchform.php"; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include "sidebar.php"; ?>
|
||||
<?php include "footer.php"; ?>
|
|
@ -0,0 +1,23 @@
|
|||
<?php /*
|
||||
Template Name: Archives
|
||||
*/
|
||||
?>
|
||||
<?php include "header.php"; ?>
|
||||
|
||||
<div id="content" class="widecolumn">
|
||||
|
||||
<?php include "searchform.php"; ?>
|
||||
|
||||
<h2>Archives by Month:</h2>
|
||||
<ul>
|
||||
<?php wp_get_archives('type=monthly'); ?>
|
||||
</ul>
|
||||
|
||||
<h2>Archives by Subject:</h2>
|
||||
<ul>
|
||||
<?php wp_list_cats(); ?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include "footer.php"; ?>
|
|
@ -0,0 +1,90 @@
|
|||
<?php // Do not delete these lines
|
||||
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
||||
die ('Please do not load this page directly. Thanks!');
|
||||
|
||||
if (!empty($post->post_password)) { // if there's a password
|
||||
if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie
|
||||
?>
|
||||
|
||||
<p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments."); ?><p>
|
||||
|
||||
<?php
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* This variable is for alternating comment background */
|
||||
$oddcomment = "graybox";
|
||||
?>
|
||||
|
||||
<!-- You can start editing here. -->
|
||||
|
||||
<?php if ($comments) : ?>
|
||||
<a name="comments"></a><h3><?php comments_number('No Responses','One Response','% Responses' );?> to '<?php the_title(); ?>'</h3>
|
||||
|
||||
<ol class="commentlist">
|
||||
|
||||
<?php foreach ($comments as $comment) : ?>
|
||||
|
||||
<li class="<?=$oddcomment;?>">
|
||||
<a name="comment-<?php comment_ID() ?>"></a><cite><?php comment_author_link() ?></cite> Says:<br />
|
||||
<!--<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title="<?php comment_date('l, F jS, Y') ?> at <?php comment_time() ?>"><?php /* $entry_datetime = abs(strtotime($post->post_date)); $comment_datetime = abs(strtotime($comment->comment_date)); echo time_since($entry_datetime, $comment_datetime) */ ?></a> after publication. <?php edit_comment_link('e','',''); ?></small>-->
|
||||
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
|
||||
|
||||
<?php comment_text() ?>
|
||||
|
||||
</li>
|
||||
|
||||
<?php /* Changes every other comment to a different class */
|
||||
if("graybox" == $oddcomment) {$oddcomment="";}
|
||||
else { $oddcomment="graybox"; }
|
||||
?>
|
||||
|
||||
<?php endforeach; /* end for each comment */ ?>
|
||||
|
||||
</ol>
|
||||
|
||||
<?php else : // this is displayed if there are no comments so far ?>
|
||||
|
||||
<?php if ('open' == $post-> comment_status) : ?>
|
||||
<!-- If comments are open, but there are no comments. -->
|
||||
|
||||
<?php else : // comments are closed ?>
|
||||
<!-- If comments are closed. -->
|
||||
<p class="nocomments">Comments are closed.</p>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ('open' == $post-> comment_status) : ?>
|
||||
|
||||
<a name="respond"></a><h3>Leave a Comment</h3>
|
||||
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
|
||||
|
||||
<p><input type="text" name="author" id="author" class="styled" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
|
||||
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
|
||||
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
|
||||
<label for="author"><small>Name</small></label></p>
|
||||
|
||||
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
|
||||
<label for="email"><small>Mail (will not be published)</small></label></p>
|
||||
|
||||
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
|
||||
<label for="url"><small>Website</small></label></p>
|
||||
|
||||
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
|
||||
|
||||
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
|
||||
|
||||
<?php if ('none' != get_settings("comment_moderation")) { ?>
|
||||
<p><small><strong>Please note:</strong> Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.</small></p>
|
||||
<?php } ?>
|
||||
|
||||
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /></p>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<?php // if you delete this the sky will fall on your head
|
||||
endif; ?>
|
|
@ -0,0 +1,25 @@
|
|||
<? // Begin Footer ?>
|
||||
<hr />
|
||||
<div id="footer">
|
||||
<p>
|
||||
<?php bloginfo('name'); ?> is proudly powered by
|
||||
<a href="http://wordpress.org">WordPress <?php echo $wp_version; ?></a>
|
||||
<!--
|
||||
and valid <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional (most of the time)">XHTML</a> and
|
||||
<a href="http://jigsaw.w3.org/css-validator/check/referer" title="Valid CSS; hopefully...">CSS</a>.
|
||||
-->
|
||||
<br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
|
||||
and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
|
||||
<!-- Spawned in <?php timer_stop(1); ?> seconds. -->
|
||||
<a href="http://binarybonsai.com/kubrick/">Design by Michael Heilemann.</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<? // End Footer ?>
|
||||
|
||||
|
||||
<?php /* "Just what do you think you're doing Dave?" */ ?>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,66 @@
|
|||
<?php /* Don't remove this line. */ require(ABSPATH . 'wp-blog-header.php'); ?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head profile="http://gmpg.org/xfn/1">
|
||||
<title><?php bloginfo('name'); ?> <?php if (($withcomments) or ($single)) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
|
||||
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
|
||||
|
||||
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
|
||||
/* BEGIN IMAGE CSS */
|
||||
/* To accomodate differing install paths of WordPress, images are referred only here,
|
||||
and not in the wp-layout.css file. If you prefer to use only CSS for colors and what
|
||||
not, then go right ahead and delete the following lines, and the image files. */
|
||||
|
||||
body { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgcolor.jpg"); } <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! is_single()) && (! is_page())) { ?>
|
||||
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; } <?php } else { // No sidebar ?>
|
||||
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; } <?php } ?>
|
||||
#header { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickheader.jpg") no-repeat bottom center; }
|
||||
#footer { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickfooter.jpg") no-repeat bottom; border: none;}
|
||||
|
||||
|
||||
/* Because the template is slightly different, size-wise, with images, this needs to be set here
|
||||
If you don't want to use the template's images, you can also delete the following two lines. */
|
||||
|
||||
#header { padding: 1px; height: 198px; width: 758px; }
|
||||
#headerimg { margin: 7px 9px 0; height: 192px; width: 740px; }
|
||||
/* END IMAGE CSS */
|
||||
|
||||
|
||||
/* To ease the insertion of a personal header image, I have done it in such a way,
|
||||
that you simply drop in an image called 'personalheader.jpg' into your /images/
|
||||
directory. Dimensions should be at least 760px x 200px. Anything above that will
|
||||
get cropped off of the image. */
|
||||
|
||||
#headerimg { background: url('<?php bloginfo('stylesheet_directory'); ?>/images/personalheader.jpg') no-repeat top;}
|
||||
|
||||
</style>
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" 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'); ?>" />
|
||||
|
||||
<?php wp_get_archives('type=monthly&format=link'); ?>
|
||||
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
|
||||
<? // Begin Header ?>
|
||||
<div id="header">
|
||||
<div id="headerimg">
|
||||
<h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
|
||||
<div class="description"><?php bloginfo('description'); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<? // End Header ?>
|
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 558 B |
After Width: | Height: | Size: 1020 B |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 8.1 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 23 KiB |
|
@ -0,0 +1,42 @@
|
|||
<?php include "header.php"; ?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
|
||||
<div class="post">
|
||||
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
|
||||
|
||||
<div class="entry">
|
||||
<?php the_content('Read the rest of this entry »'); ?>
|
||||
</div>
|
||||
|
||||
<p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
|
||||
|
||||
<!--
|
||||
<?php trackback_rdf(); ?>
|
||||
-->
|
||||
</div>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<div class="navigation">
|
||||
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
|
||||
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<h2 class="center">Not Found</h2>
|
||||
<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
|
||||
<?php include "searchform.php"; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include "sidebar.php"; ?>
|
||||
<?php include "footer.php"; ?>
|
|
@ -0,0 +1,16 @@
|
|||
<?php /*
|
||||
Template Name: Links
|
||||
*/
|
||||
?>
|
||||
<?php include "header.php"; ?>
|
||||
|
||||
<div id="content" class="widecolumn">
|
||||
|
||||
<h2>Links:</h2>
|
||||
<ul>
|
||||
<?php get_links_list(); ?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include "footer.php"; ?>
|
|
@ -0,0 +1,17 @@
|
|||
<?php include "header.php"; ?>
|
||||
|
||||
<div id="content" class="widecolumn">
|
||||
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
<div class="post">
|
||||
<div class="entrytext">
|
||||
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
|
||||
|
||||
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endwhile; endif; ?>
|
||||
</div>
|
||||
|
||||
<?php include "footer.php"; ?>
|
|
@ -0,0 +1,49 @@
|
|||
<?php include "header.php"; ?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
|
||||
<h2 class="pagetitle">Search Results</h2>
|
||||
|
||||
<div class="navigation">
|
||||
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
|
||||
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php while (have_posts()) : the_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>
|
||||
<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 »', '1 Comment »', '% Comments »'); ?></p>
|
||||
|
||||
<!--
|
||||
<?php trackback_rdf(); ?>
|
||||
-->
|
||||
</div>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<div class="navigation">
|
||||
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
|
||||
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<h2 class="center">Not Found</h2>
|
||||
<?php include "searchform.php"; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include "sidebar.php"; ?>
|
||||
<?php include "footer.php"; ?>
|
|
@ -0,0 +1,4 @@
|
|||
<form method="get" id="searchform" action="<?php echo $PHP_SELF; ?>">
|
||||
<input type="text" value="<?=$s; ?>" name="s" id="s" />
|
||||
<input type="submit" id="searchsubmit" name="Submit" value="<?php _e('Go!'); ?>" />
|
||||
</form>
|
|
@ -0,0 +1,81 @@
|
|||
<div id="sidebar">
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<?php include "searchform.php"; ?>
|
||||
</li>
|
||||
|
||||
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
|
||||
<li><h2><?php _e('Author'); ?></h2>
|
||||
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
|
||||
</li>
|
||||
-->
|
||||
|
||||
<li>
|
||||
<?php /* If this is a category archive */ if (is_category()) { ?>
|
||||
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
|
||||
for the '<?php echo single_cat_title(); ?>' category.</p>
|
||||
|
||||
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
|
||||
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
|
||||
for the day <?php the_time('l, F jS, Y'); ?>.</p>
|
||||
|
||||
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
|
||||
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
|
||||
for <?php the_time('F, Y'); ?>.</p>
|
||||
|
||||
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
|
||||
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
|
||||
for the year <?php the_time('Y'); ?>.</p>
|
||||
|
||||
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
|
||||
<p>You have searched the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
|
||||
for <strong>'<?php echo $s; ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
|
||||
|
||||
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
||||
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
|
||||
|
||||
<?php } ?>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- The Calendar is disabled per default. Uncomment if you want to use it.
|
||||
<li><h2><?php _e('Calendar'); ?></h2>
|
||||
<?php get_calendar(); ?>
|
||||
</li>
|
||||
-->
|
||||
|
||||
<li><h2><?php _e('Archives'); ?></h2>
|
||||
<ul>
|
||||
<?php wp_get_archives('type=monthly'); ?>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><h2><?php _e('Categories'); ?></h2>
|
||||
<ul>
|
||||
<?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','28') ?>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<?php /* If this is the frontpage */ if (is_home()) { ?>
|
||||
<li><h2><?php _e('Links'); ?></h2>
|
||||
<ul>
|
||||
<?php get_links('-1', '<li>', '</li>', '<br />'); ?>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><h2><?php _e('Admin'); ?></h2>
|
||||
<ul>
|
||||
<li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php"><?php _e('Login'); ?></a></li>
|
||||
<!--
|
||||
<li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php"><?php _e('Register'); ?></a></li>
|
||||
-->
|
||||
</ul>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
<?php include "header.php"; ?>
|
||||
|
||||
<div id="content" class="widecolumn">
|
||||
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
|
||||
<div class="navigation">
|
||||
<div class="alignleft"><?php previous_post('« %','','yes') ?></div>
|
||||
<div class="alignright"><?php next_post(' % »','','yes') ?></div>
|
||||
</div>
|
||||
|
||||
<div class="post">
|
||||
<h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||
|
||||
<div class="entrytext">
|
||||
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
|
||||
|
||||
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
|
||||
|
||||
<p class="postmetadata graybox">
|
||||
<small>
|
||||
This entry was posted
|
||||
<?php /* This is uncommented, because it requires a little adjusting sometimes.
|
||||
You'll need to download this plugin, and follow the instructions:
|
||||
http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
|
||||
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
|
||||
on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
|
||||
and is filed under <?php the_category(', ') ?>.
|
||||
You can follow any responses to this entry through the <a href="<?php bloginfo_rss('comments_rss2_url'); ?>">RSS 2.0</a>
|
||||
feed.
|
||||
|
||||
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
|
||||
// Both Comments and Pings are open ?>
|
||||
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(display); ?>">trackback</a> from your own site.
|
||||
|
||||
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
|
||||
// Only Pings are Open ?>
|
||||
Responses are currently closed, but you can <a href="<?php trackback_url(display); ?> ">trackback</a> from your own site.
|
||||
|
||||
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
|
||||
// Comments are open, Pings are not ?>
|
||||
You can skip to the end and leave a response. Pinging is currently not allowed.
|
||||
|
||||
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
|
||||
// Neither Comments, nor Pings are open ?>
|
||||
Both comments and pings are currently closed.
|
||||
|
||||
<?php } edit_post_link('Edit this entry.','',''); ?>
|
||||
|
||||
</small>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php comments_template(); ?>
|
||||
|
||||
<?php endwhile; else: ?>
|
||||
|
||||
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include "footer.php"; ?>
|
|
@ -0,0 +1,611 @@
|
|||
/*
|
||||
Theme Name: Kubrick
|
||||
Theme URI: http://binarybonsai.com/kubrick/
|
||||
Description: The Kubrick theme.
|
||||
Version: 1.3.0-rc2
|
||||
Author: Michael Heilemann
|
||||
Author URI: http://binarybonsai.com/
|
||||
|
||||
This version of Kubrick was packaged by Ryan Boren for WordPress 1.3.
|
||||
Anything that does not work is probably his fault. Don't bug Michael.
|
||||
|
||||
Kubrick v1.3.0-rc1 for WordPress 1.3
|
||||
http://binarybonsai.com/kubrick/
|
||||
|
||||
This theme was designed and built by Michael Heilemann,
|
||||
whose blog you will find at http://binarybonsai.com/
|
||||
|
||||
The CSS, XHTML and design is released under GPL:
|
||||
http://www.opensource.org/licenses/gpl-license.php
|
||||
|
||||
|
||||
*** REGARDING IMAGES ***
|
||||
All CSS that involves the use of images, can be found in the 'index.php' file.
|
||||
This is to ease installation inside subdirectories of a server.
|
||||
|
||||
Have fun, and don't be afraid to contact me if you have questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/* Begin Typography & Colors */
|
||||
body {
|
||||
font-size: 62.5%; /* Resets 1em to 10px */
|
||||
font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
background-color: #d5d6d7;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
#page {
|
||||
background-color: white;
|
||||
border: 1px solid #959596;
|
||||
}
|
||||
|
||||
#header {
|
||||
background-color: #73a0c5;
|
||||
}
|
||||
|
||||
#content {
|
||||
font-size: 1.2em
|
||||
}
|
||||
|
||||
.widecolumn .entry p {
|
||||
font-size: 1.05em;
|
||||
}
|
||||
|
||||
.narrowcolumn .entry, .widecolumn .entry {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
.widecolumn {
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
.narrowcolumn .postmetadata {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.graybox {
|
||||
background-color: #f8f8f8;
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
#footer {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
small {
|
||||
font-family: Arial, Helvetica, Sans-Serif;
|
||||
font-size: 0.9em;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 4em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: 1.2em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
||||
h2.pagetitle {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
||||
#sidebar h2 {
|
||||
font-family: 'Lucida Grande', Verdana, Sans-Serif;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
h1, h1 a, h1 a:hover, h1 a:visited, .description {
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
}
|
||||
|
||||
h2, h2 a, h2 a:visited, h3, h3 a, h3 a:visited {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h2, h2 a, h2 a:hover, h2 a:visited, h3, h3 a, h3 a:hover, h3 a:visited, #sidebar h2, #wp-calendar caption, cite {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry p a:visited {
|
||||
color: #b85b5a;
|
||||
}
|
||||
|
||||
.commentlist li, #commentform input, #commentform textarea {
|
||||
font: 0.9em 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
}
|
||||
|
||||
.commentlist li {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.commentlist cite, .commentlist cite a {
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.commentlist p {
|
||||
font-weight: normal;
|
||||
line-height: 1.5em;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
#commentform p {
|
||||
font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
}
|
||||
|
||||
.commentmetadata {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
font: 1em 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
}
|
||||
|
||||
small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, blockquote, strike {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
code {
|
||||
font: 1.1em 'Courier New', Courier, Fixed;
|
||||
}
|
||||
|
||||
acronym, abbr, span.caps
|
||||
{
|
||||
font-size: 0.9em;
|
||||
letter-spacing: .07em;
|
||||
}
|
||||
|
||||
a, h2 a:hover, h3 a:hover {
|
||||
color: #06c;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #147;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#wp-calendar #prev a {
|
||||
font-size: 9pt;
|
||||
}
|
||||
|
||||
#wp-calendar a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#wp-calendar caption {
|
||||
font: bold 1.3em 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#wp-calendar th {
|
||||
font-style: normal;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
/* End Typography & Colors */
|
||||
|
||||
|
||||
|
||||
/* Begin Structure */
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#page {
|
||||
background-color: white;
|
||||
margin: 20px auto;
|
||||
padding: 0;
|
||||
width: 760px;
|
||||
border: 1px solid #959596;
|
||||
}
|
||||
|
||||
#header {
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
height: 200px;
|
||||
width: 100%;
|
||||
background-color: #73a0c5;
|
||||
}
|
||||
|
||||
#headerimg {
|
||||
margin: 0;
|
||||
height: 200px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.narrowcolumn {
|
||||
float: left;
|
||||
padding: 0 0 20px 45px;
|
||||
margin: 0px 0 0;
|
||||
width: 450px;
|
||||
}
|
||||
|
||||
.widecolumn {
|
||||
padding: 10px 0 20px 0;
|
||||
margin: 5px auto;
|
||||
width: 450px;
|
||||
}
|
||||
|
||||
.post {
|
||||
margin: 0 0 40px;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.widecolumn .post {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.narrowcolumn .postmetadata {
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.widecolumn .postmetadata {
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
#footer {
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
width: 760px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#footer p {
|
||||
margin: 0;
|
||||
padding: 20px 0;
|
||||
text-align: center;
|
||||
}
|
||||
/* End Structure */
|
||||
|
||||
|
||||
|
||||
/* Begin Headers */
|
||||
h1 {
|
||||
padding-top: 70px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.description {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 30px 0 0;
|
||||
}
|
||||
|
||||
h2.pagetitle {
|
||||
margin-top: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sidebar h2 {
|
||||
margin: 5px 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
padding: 0;
|
||||
margin: 30px 0 0;
|
||||
}
|
||||
|
||||
h3.comments {
|
||||
padding: 0;
|
||||
margin: 40px auto 20px ;
|
||||
}
|
||||
/* End Headers */
|
||||
|
||||
|
||||
|
||||
/* Begin Images */
|
||||
p img {
|
||||
padding: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Using 'class="alignright"' on an image will (who would've
|
||||
thought?!) align the image to the right. And using 'class="centered',
|
||||
will of course center the image. This is much better than using
|
||||
align="center", being much more futureproof (and valid) */
|
||||
|
||||
img.centered {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
img.alignright {
|
||||
padding: 4px;
|
||||
margin: 0 0 2px 7px;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
img.alignleft {
|
||||
padding: 4px;
|
||||
margin: 0 7px 2px 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.alignleft {
|
||||
float: left
|
||||
}
|
||||
/* End Images */
|
||||
|
||||
|
||||
|
||||
/* Begin Lists
|
||||
|
||||
Special stylized non-IE bullets
|
||||
Do not work in Internet Explorer, which merely default to normal bullets. */
|
||||
|
||||
html>body .entry ul {
|
||||
margin-left: 0px;
|
||||
padding: 0 0 0 30px;
|
||||
list-style: none;
|
||||
padding-left: 10px;
|
||||
text-indent: -10px;
|
||||
}
|
||||
|
||||
html>body .entry li {
|
||||
margin: 7px 0 8px 10px;
|
||||
}
|
||||
|
||||
.entry ul li:before, #sidebar ul ul li:before {
|
||||
content: "\00BB \0020";
|
||||
}
|
||||
|
||||
.entry ol {
|
||||
padding: 0 0 0 35px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.entry ol li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.postmetadata ul, .postmetadata li {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
#sidebar ul, #sidebar ul ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#sidebar ul li {
|
||||
list-style-type: none;
|
||||
list-style-image: none;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
#sidebar ul p, #sidebar ul select {
|
||||
margin: 5px 0 8px;
|
||||
}
|
||||
|
||||
#sidebar ul ul, #sidebar ul ol {
|
||||
margin: 5px 0 0 10px;
|
||||
}
|
||||
|
||||
#sidebar ul ul ul, #sidebar ul ol {
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
|
||||
ol li, #sidebar ul ol li {
|
||||
list-style: decimal outside;
|
||||
}
|
||||
|
||||
#sidebar ul ul li, #sidebar ul ol li {
|
||||
margin: 3px 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
/* End Entry Lists */
|
||||
|
||||
|
||||
|
||||
/* Begin Form Elements */
|
||||
#searchform {
|
||||
margin: 10px auto;
|
||||
padding: 5px 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sidebar #searchform #s {
|
||||
width: 130px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#sidebar #searchsubmit {
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.entry form { /* This is mainly for password protected posts, makes them look better. */
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
select {
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
#commentform input {
|
||||
width: 170px;
|
||||
padding: 2px;
|
||||
margin: 5px 5px 1px 0;
|
||||
}
|
||||
|
||||
#commentform textarea {
|
||||
width: 100%;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#commentform #submit {
|
||||
margin: 0;
|
||||
float: right;
|
||||
}
|
||||
/* End Form Elements */
|
||||
|
||||
|
||||
|
||||
/* Begin Comments*/
|
||||
.graybox {
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.commentlist {
|
||||
padding: 0;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.commentlist li {
|
||||
margin: 15px 0 3px;
|
||||
padding: 5px 10px 3px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.commentlist p {
|
||||
margin: 10px 5px 10px 0;
|
||||
}
|
||||
|
||||
#commentform p {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.nocomments {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.commentmetadata {
|
||||
margin: 0;
|
||||
display: block;
|
||||
}
|
||||
/* End Comments */
|
||||
|
||||
|
||||
|
||||
/* Begin Sidebar */
|
||||
#sidebar
|
||||
{
|
||||
padding: 20px 0 10px 0;
|
||||
margin-left: 545px;
|
||||
width: 190px;
|
||||
}
|
||||
|
||||
#sidebar form {
|
||||
margin: 0;
|
||||
}
|
||||
/* End Sidebar */
|
||||
|
||||
|
||||
|
||||
/* Begin Calendar */
|
||||
#wp-calendar {
|
||||
empty-cells: show;
|
||||
margin: 10px auto 0;
|
||||
width: 155px;
|
||||
}
|
||||
|
||||
#wp-calendar #next a {
|
||||
padding-right: 10px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#wp-calendar #prev a {
|
||||
padding-left: 10px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#wp-calendar a {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#wp-calendar caption {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#wp-calendar td {
|
||||
padding: 3px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#wp-calendar td.pad:hover { /* Doesn't work in IE */
|
||||
background-color: #fff; }
|
||||
/* End Calendar */
|
||||
|
||||
|
||||
|
||||
/* Begin Various Tags & Classes */
|
||||
acronym, abbr, span.caps {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
acronym, abbr {
|
||||
border-bottom: 1px dashed #999;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 15px 30px 0 10px;
|
||||
padding-left: 20px;
|
||||
border-left: 5px solid #ddd;
|
||||
}
|
||||
|
||||
blockquote cite {
|
||||
margin: 5px 0 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
|
||||
a img {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.navigation {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
/* End Various Tags & Classes*/
|
||||
|
||||
|
||||
|
||||
/* "Daisy, Daisy, give me your answer do. I'm half crazy all for the love of you.
|
||||
It won't be a stylish marriage, I can't afford a carriage.
|
||||
But you'll look sweet upon the seat of a bicycle built for two." */
|