Changeset 978
- Timestamp:
- 05/22/07 15:48:57 (2 years ago)
- Files:
-
- trunk/wp-content/themes/home/archive.php (modified) (2 diffs)
- trunk/wp-content/themes/home/archives.php (modified) (1 diff)
- trunk/wp-content/themes/home/attachment.php (modified) (1 diff)
- trunk/wp-content/themes/home/comments-popup.php (modified) (5 diffs)
- trunk/wp-content/themes/home/comments.php (modified) (7 diffs)
- trunk/wp-content/themes/home/footer.php (modified) (1 diff)
- trunk/wp-content/themes/home/header.php (modified) (1 diff)
- trunk/wp-content/themes/home/images/kubrickbg-ltr.jpg (added)
- trunk/wp-content/themes/home/images/kubrickbg-rtl.jpg (added)
- trunk/wp-content/themes/home/images/kubrickbg.jpg (deleted)
- trunk/wp-content/themes/home/page.php (modified) (2 diffs)
- trunk/wp-content/themes/home/rtl.css (added)
- trunk/wp-content/themes/home/searchform.php (modified) (1 diff)
- trunk/wp-content/themes/home/sidebar.php (modified) (5 diffs)
- trunk/wp-content/themes/home/single.php (modified) (3 diffs)
- trunk/wp-content/themes/home/style.css (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-content/themes/home/archive.php
r730 r978 5 5 <?php if (have_posts()) : ?> 6 6 7 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>8 <?php /* If this is a category archive */ if (is_category()) { ?>9 <h2 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>'Category</h2>7 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> 8 <?php /* If this is a category archive */ if (is_category()) { ?> 9 <h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h2> 10 10 11 11 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 12 12 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> 13 14 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 13 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 15 14 <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> 16 17 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 15 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 18 16 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> 19 20 <?php /* If this is a search */ } elseif (is_search()) { ?>21 <h2 class="pagetitle">Search Results</h2>22 23 17 <?php /* If this is an author archive */ } elseif (is_author()) { ?> 24 18 <h2 class="pagetitle">Author Archive</h2> 25 26 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 19 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 27 20 <h2 class="pagetitle">Blog Archives</h2> 28 29 <?php } ?> 21 <?php } ?> 30 22 31 23 … … 44 36 </div> 45 37 46 <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> 38 <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> 47 39 48 40 </div> trunk/wp-content/themes/home/archives.php
r730 r978 12 12 13 13 <h2>Archives by Month:</h2> 14 <ul>15 <?php wp_get_archives('type=monthly'); ?>16 </ul>14 <ul> 15 <?php wp_get_archives('type=monthly'); ?> 16 </ul> 17 17 18 18 <h2>Archives by Subject:</h2> 19 <ul>20 <?php wp_list_categories(); ?>21 </ul>19 <ul> 20 <?php wp_list_categories(); ?> 21 </ul> 22 22 23 23 </div> trunk/wp-content/themes/home/attachment.php
r730 r978 18 18 <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> 19 19 20 <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>20 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 21 21 22 22 <p class="postmetadata alt"> trunk/wp-content/themes/home/comments-popup.php
r730 r978 1 <?php 1 <?php 2 2 /* Don't remove these lines. */ 3 3 add_filter('comment_text', 'popuplinks'); 4 foreach ($posts as $post) { start_wp();4 while ( have_posts()) : the_post(); 5 5 ?> 6 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 22 22 <h2 id="comments">Comments</h2> 23 23 24 <p><a href="<?php echo get_ option('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>24 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p> 25 25 26 26 <?php if ('open' == $post->ping_status) { ?> … … 57 57 58 58 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 59 <?php if ( $user_ID ) : ?> 60 <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout »</a></p> 61 <?php else : ?> 59 62 <p> 60 63 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> 61 64 <label for="author">Name</label> 62 65 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 63 <input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER["REQUEST_URI"]); ?>" />66 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" /> 64 67 </p> 65 68 … … 73 76 <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label> 74 77 </p> 78 <?php endif; ?> 75 79 76 80 <p> … … 94 98 95 99 <?php // if you delete this the sky will fall on your head 96 } 100 endwhile; 97 101 ?> 98 102 99 103 <!-- // this is just the end of the motor - don't touch that line either :) --> 100 <?php //} ?> 104 <?php //} ?> 101 105 <p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>Wordpress</strong></a></cite></p> 102 106 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> trunk/wp-content/themes/home/comments.php
r730 r978 3 3 die ('Please do not load this page directly. Thanks!'); 4 4 5 if (!empty($post->post_password)) { // if there's a password6 if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie7 ?>5 if (!empty($post->post_password)) { // if there's a password 6 if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie 7 ?> 8 8 9 <p class="nocomments">This post is password protected. Enter the password to view comments.<p>9 <p class="nocomments">This post is password protected. Enter the password to view comments.</p> 10 10 11 <?php12 return;13 }14 }11 <?php 12 return; 13 } 14 } 15 15 16 /* This variable is for alternating comment background */17 $oddcomment = 'alt';16 /* This variable is for alternating comment background */ 17 $oddcomment = 'class="alt" '; 18 18 ?> 19 19 … … 21 21 22 22 <?php if ($comments) : ?> 23 <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3> 23 <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3> 24 24 25 25 <ol class="commentlist"> … … 27 27 <?php foreach ($comments as $comment) : ?> 28 28 29 <li class="<?php echo $oddcomment; ?>"id="comment-<?php comment_ID() ?>">29 <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> 30 30 <cite><?php comment_author_link() ?></cite> Says: 31 31 <?php if ($comment->comment_approved == '0') : ?> … … 34 34 <br /> 35 35 36 <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>36 <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('edit',' ',''); ?></small> 37 37 38 38 <?php comment_text() ?> … … 40 40 </li> 41 41 42 <?php /* Changes every other comment to a different class */43 if ('alt' == $oddcomment) $oddcomment = '';44 else $oddcomment = 'alt';42 <?php 43 /* Changes every other comment to a different class */ 44 $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : ''; 45 45 ?> 46 46 … … 51 51 <?php else : // this is displayed if there are no comments so far ?> 52 52 53 <?php if ('open' == $post->comment_status) : ?> 53 <?php if ('open' == $post->comment_status) : ?> 54 54 <!-- If comments are open, but there are no comments. --> 55 55 … … 89 89 <?php endif; ?> 90 90 91 <!--<p><small><strong>XHTML:</strong> You can use these tags: < ?php echo allowed_tags(); ?></small></p>-->91 <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>--> 92 92 93 93 <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> trunk/wp-content/themes/home/footer.php
r921 r978 3 3 <hr /> 4 4 <div id="footer"> 5 <!-- If you'd like to support WordPress, having the "powered by" link some one on your blog is the best way, it's our only promotion or advertising. -->5 <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way, it's our only promotion or advertising. --> 6 6 <p> 7 <?php bloginfo('name'); ?> is proudly powered by 7 <?php bloginfo('name'); ?> is proudly powered by 8 8 <a href="http://mu.wordpress.org/">WordPress MU</a> running on <a href="http://<?php echo $current_site->domain . $current_site->path ?>"><?php echo $current_site->site_name ?></a>. <a href="http://<?php echo $current_site->domain . $current_site->path ?>wp-signup.php" title="Create a new blog">Create a new blog</a> and join in the fun! 9 9 <br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> trunk/wp-content/themes/home/header.php
r732 r978 1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" >2 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 3 3 4 4 <head profile="http://gmpg.org/xfn/11"> trunk/wp-content/themes/home/page.php
r730 r978 3 3 <div id="content" class="narrowcolumn"> 4 4 5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 6 6 <div class="post" id="post-<?php the_ID(); ?>"> 7 7 <h2><?php the_title(); ?></h2> … … 9 9 <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> 10 10 11 <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>11 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 12 12 13 13 </div> 14 14 </div> 15 <?php endwhile; endif; ?>15 <?php endwhile; endif; ?> 16 16 <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> 17 17 </div> trunk/wp-content/themes/home/searchform.php
r730 r978 1 <form method="get" id="searchform" action="<?php bloginfo(' home'); ?>/">2 <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />1 <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/"> 2 <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> 3 3 <input type="submit" id="searchsubmit" value="Search" /> 4 4 </div> trunk/wp-content/themes/home/sidebar.php
r730 r978 1 1 <div id="sidebar"> 2 2 <ul> 3 <?php /* Widgetized sidebar, if you have the plugin installed. */ 4 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> 5 <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : ?> 3 6 7 </ul> 8 </div> 9 <?php return; ?> 10 11 <?php endif; ?> 12 4 13 <li> 5 14 <?php include (TEMPLATEPATH . '/searchform.php'); ?> … … 12 21 --> 13 22 14 <li> 23 <?php if ( is_404() || is_category() || is_day() || is_month() || 24 is_year() || is_search() || is_paged() ) { 25 ?> <li> 26 15 27 <?php /* If this is a 404 page */ if (is_404()) { ?> 16 28 <?php /* If this is a category archive */ } elseif (is_category()) { ?> … … 18 30 19 31 <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> 20 <p>You are currently browsing the <a href="<?php bloginfo(' home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives32 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 21 33 for the day <?php the_time('l, F jS, Y'); ?>.</p> 22 34 23 35 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 24 <p>You are currently browsing the <a href="<?php bloginfo(' home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives36 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 25 37 for <?php the_time('F, Y'); ?>.</p> 26 38 27 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>28 <p>You are currently browsing the <a href="<?php bloginfo(' home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives39 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 40 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 29 41 for the year <?php the_time('Y'); ?>.</p> 30 42 31 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>32 <p>You have searched the <a href="<?php echo bloginfo(' home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives33 for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>43 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> 44 <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 45 for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p> 34 46 35 47 <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 36 <p>You are currently browsing the <a href="<?php echo bloginfo(' home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>48 <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p> 37 49 38 50 <?php } ?> 39 </li> 51 52 </li> <?php }?> 40 53 41 54 <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> … … 47 60 </li> 48 61 49 <?php wp_list_categories(' optioncount=1&hierarchical=0&title_li=<h2>Categories</h2>'); ?>62 <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> 50 63 51 64 <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> … … 66 79 </li> 67 80 <?php } ?> 68 81 82 <?php endif; ?> 69 83 </ul> 70 84 </div> trunk/wp-content/themes/home/single.php
r730 r978 3 3 <div id="content" class="widecolumn"> 4 4 5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 6 6 7 7 <div class="navigation"> … … 16 16 <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> 17 17 18 <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>18 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 19 19 20 20 <p class="postmetadata alt"> … … 24 24 You'll need to download this plugin, and follow the instructions: 25 25 http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */ 26 /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> 26 /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> 27 27 on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> 28 28 and is filed under <?php the_category(', ') ?>. 29 You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 29 You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 30 30 31 31 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { trunk/wp-content/themes/home/style.css
r731 r978 1 1 /* 2 Theme Name: WordPress Default3 Theme URI: http:// wordpress.org/4 Description: The default WordPress theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>.2 Theme Name: WordPress mu Default 3 Theme URI: http://mu.wordpress.org/ 4 Description: The default WordPress mu theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>. 5 5 Version: 1.6 6 6 Author: Michael Heilemann … … 187 187 } 188 188 189 #wp-calendar #prev a {189 #wp-calendar #prev a, #wp-calendar #next a { 190 190 font-size: 9pt; 191 191 } … … 252 252 margin: 0 0 40px; 253 253 text-align: justify; 254 } 255 256 .post hr { 257 display: block; 254 258 } 255 259
