Changeset 978

Show
Ignore:
Timestamp:
05/22/07 15:48:57 (2 years ago)
Author:
donncha
Message:

Update the home theme

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-content/themes/home/archive.php

    r730 r978  
    55                <?php if (have_posts()) : ?> 
    66 
    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 &#8216;<?php single_cat_title(); ?>&#8217; Category</h2> 
    1010 
    1111          <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 
    1212                <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()) { ?> 
    1514                <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()) { ?> 
    1816                <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  
    2317          <?php /* If this is an author archive */ } elseif (is_author()) { ?> 
    2418                <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'])) { ?> 
    2720                <h2 class="pagetitle">Blog Archives</h2> 
    28  
    29                 <?php } ?> 
     21          <?php } ?> 
    3022 
    3123 
     
    4436                                </div> 
    4537 
    46                                 <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>  
     38                                <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> 
    4739 
    4840                        </div> 
  • trunk/wp-content/themes/home/archives.php

    r730 r978  
    1212 
    1313<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> 
    1717 
    1818<h2>Archives by Subject:</h2> 
    19   <ul> 
    20     <?php wp_list_categories(); ?> 
    21   </ul> 
     19       <ul> 
     20                <?php wp_list_categories(); ?> 
     21       </ul> 
    2222 
    2323</div> 
  • trunk/wp-content/themes/home/attachment.php

    r730 r978  
    1818                                <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?> 
    1919 
    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')); ?> 
    2121 
    2222                                <p class="postmetadata alt"> 
  • trunk/wp-content/themes/home/comments-popup.php

    r730 r978  
    1 <?php  
     1<?php 
    22/* Don't remove these lines. */ 
    33add_filter('comment_text', 'popuplinks'); 
    4 foreach ($posts as $post) { start_wp(); 
     4while ( have_posts()) : the_post(); 
    55?> 
    66<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    2222<h2 id="comments">Comments</h2> 
    2323 
    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> 
    2525 
    2626<?php if ('open' == $post->ping_status) { ?> 
     
    5757 
    5858<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 &raquo;</a></p> 
     61<?php else : ?>  
    5962        <p> 
    6063          <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> 
    6164           <label for="author">Name</label> 
    6265        <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"]); ?>" /> 
    6467        </p> 
    6568 
     
    7376           <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label> 
    7477        </p> 
     78<?php endif; ?> 
    7579 
    7680        <p> 
     
    9498 
    9599<?php // if you delete this the sky will fall on your head 
    96 
     100endwhile; 
    97101?> 
    98102 
    99103<!-- // this is just the end of the motor - don't touch that line either :) --> 
    100 <?php //} ?>  
     104<?php //} ?> 
    101105<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> 
    102106<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> 
  • trunk/wp-content/themes/home/comments.php

    r730 r978  
    33                die ('Please do not load this page directly. Thanks!'); 
    44 
    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                                ?> 
     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                        ?> 
    88 
    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> 
    1010 
    11                                <?php 
    12                                return; 
    13            
    14        
     11                        <?php 
     12                        return; 
     13               
     14       
    1515 
    16                /* This variable is for alternating comment background */ 
    17                $oddcomment = 'alt'; 
     16        /* This variable is for alternating comment background */ 
     17        $oddcomment = 'class="alt" '; 
    1818?> 
    1919 
     
    2121 
    2222<?php if ($comments) : ?> 
    23         <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>  
     23        <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3> 
    2424 
    2525        <ol class="commentlist"> 
     
    2727        <?php foreach ($comments as $comment) : ?> 
    2828 
    29                 <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> 
     29                <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> 
    3030                        <cite><?php comment_author_link() ?></cite> Says: 
    3131                        <?php if ($comment->comment_approved == '0') : ?> 
     
    3434                        <br /> 
    3535 
    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','&nbsp;&nbsp;',''); ?></small> 
    3737 
    3838                        <?php comment_text() ?> 
     
    4040                </li> 
    4141 
    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" ' : ''; 
    4545        ?> 
    4646 
     
    5151 <?php else : // this is displayed if there are no comments so far ?> 
    5252 
    53   <?php if ('open' == $post->comment_status) : ?>  
     53        <?php if ('open' == $post->comment_status) : ?> 
    5454                <!-- If comments are open, but there are no comments. --> 
    5555 
     
    8989<?php endif; ?> 
    9090 
    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>--> 
    9292 
    9393<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> 
  • trunk/wp-content/themes/home/footer.php

    r921 r978  
    33<hr /> 
    44<div id="footer"> 
    5 <!-- If you'd like to support WordPress, having the "powered by" link someone 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. --> 
    66        <p> 
    7                 <?php bloginfo('name'); ?> is proudly powered by  
     7                <?php bloginfo('name'); ?> is proudly powered by 
    88                <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! 
    99                <br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> 
  • trunk/wp-content/themes/home/header.php

    r732 r978  
    11<!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(); ?>
    33 
    44<head profile="http://gmpg.org/xfn/11"> 
  • trunk/wp-content/themes/home/page.php

    r730 r978  
    33        <div id="content" class="narrowcolumn"> 
    44 
    5     <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 
     5               <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 
    66                <div class="post" id="post-<?php the_ID(); ?>"> 
    77                <h2><?php the_title(); ?></h2> 
     
    99                                <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?> 
    1010 
    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')); ?> 
    1212 
    1313                        </div> 
    1414                </div> 
    15           <?php endwhile; endif; ?> 
     15               <?php endwhile; endif; ?> 
    1616        <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> 
    1717        </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" /> 
    33<input type="submit" id="searchsubmit" value="Search" /> 
    44</div> 
  • trunk/wp-content/themes/home/sidebar.php

    r730 r978  
    11        <div id="sidebar"> 
    22                <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() ) : ?> 
    36 
     7                </ul> 
     8        </div> 
     9<?php return; ?> 
     10 
     11<?php endif; ?> 
     12                         
    413                        <li> 
    514                                <?php include (TEMPLATEPATH . '/searchform.php'); ?> 
     
    1221                        --> 
    1322 
    14                         <li> 
     23                        <?php if ( is_404() || is_category() || is_day() || is_month() || 
     24                                                is_year() || is_search() || is_paged() ) { 
     25                        ?> <li> 
     26 
    1527                        <?php /* If this is a 404 page */ if (is_404()) { ?> 
    1628                        <?php /* If this is a category archive */ } elseif (is_category()) { ?> 
     
    1830 
    1931                        <?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 archives 
     32                        <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 
    2133                        for the day <?php the_time('l, F jS, Y'); ?>.</p> 
    2234 
    2335                        <?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 archives 
     36                        <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 
    2537                        for <?php the_time('F, Y'); ?>.</p> 
    2638 
    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 archives 
     39                       <?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 
    2941                        for the year <?php the_time('Y'); ?>.</p> 
    3042 
    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 archives 
    33                         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> 
    3446 
    3547                        <?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> 
    3749 
    3850                        <?php } ?> 
    39                         </li> 
     51                                 
     52                        </li> <?php }?> 
    4053 
    4154                        <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> 
     
    4760                        </li> 
    4861 
    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>'); ?> 
    5063 
    5164                        <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> 
     
    6679                                </li> 
    6780                        <?php } ?> 
    68  
     81                         
     82                        <?php endif; ?> 
    6983                </ul> 
    7084        </div> 
  • trunk/wp-content/themes/home/single.php

    r730 r978  
    33        <div id="content" class="widecolumn"> 
    44 
    5   <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 
     5       <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 
    66 
    77                <div class="navigation"> 
     
    1616                                <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?> 
    1717 
    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')); ?> 
    1919 
    2020                                <p class="postmetadata alt"> 
     
    2424                                                        You'll need to download this plugin, and follow the instructions: 
    2525                                                        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'; */ ?> 
    2727                                                on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> 
    2828                                                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. 
    3030 
    3131                                                <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 
  • trunk/wp-content/themes/home/style.css

    r731 r978  
    11/*   
    2 Theme Name: WordPress Default 
    3 Theme URI: http://wordpress.org/ 
    4 Description: The default WordPress theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>. 
     2Theme Name: WordPress mu Default 
     3Theme URI: http://mu.wordpress.org/ 
     4Description: The default WordPress mu theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>. 
    55Version: 1.6 
    66Author: Michael Heilemann 
     
    187187        } 
    188188 
    189 #wp-calendar #prev a
     189#wp-calendar #prev a, #wp-calendar #next a
    190190        font-size: 9pt; 
    191191        } 
     
    252252        margin: 0 0 40px; 
    253253        text-align: justify; 
     254        } 
     255 
     256.post hr { 
     257        display: block; 
    254258        } 
    255259