WordPress.org

Make WordPress Core

Changeset 3925


Ignore:
Timestamp:
06/26/2006 07:33:36 PM (15 years ago)
Author:
ryan
Message:

Default theme updates. fixes #1941

Location:
branches/2.0/wp-content/themes/default
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-content/themes/default/archive.php

    r3006 r3925  
    66
    77         <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    8 <?php /* If this is a category archive */ if (is_category()) { ?>               
     8<?php /* If this is a category archive */ if (is_category()) { ?>
    99        <h2 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</h2>
    10        
     10
    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        
     13
    1414     <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    1515        <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
     
    1717        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    1818        <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
    19        
     19
    2020      <?php /* If this is a search */ } elseif (is_search()) { ?>
    2121        <h2 class="pagetitle">Search Results</h2>
    22        
     22
    2323      <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    2424        <h2 class="pagetitle">Author Archive</h2>
     
    3939                <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>
    4040                <small><?php the_time('l, F jS, Y') ?></small>
    41                
     41
    4242                <div class="entry">
    4343                    <?php the_content() ?>
    4444                </div>
    45        
     45
    4646                <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>
    4747
    4848            </div>
    49    
     49
    5050        <?php endwhile; ?>
    5151
     
    5454            <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    5555        </div>
    56    
     56
    5757    <?php else : ?>
    5858
     
    6161
    6262    <?php endif; ?>
    63        
     63
    6464    </div>
    6565
  • branches/2.0/wp-content/themes/default/archives.php

    r2040 r3925  
    2121  </ul>
    2222
    23 </div> 
     23</div>
    2424
    2525<?php get_footer(); ?>
  • branches/2.0/wp-content/themes/default/attachment.php

    r3328 r3925  
    22
    33    <div id="content" class="widecolumn">
    4                
     4
    55  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    6    
     6
    77        <div class="navigation">
    88            <div class="alignleft">&nbsp;</div>
     
    1717
    1818                <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    19    
     19
    2020                <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    21    
     21
    2222                <p class="postmetadata alt">
    2323                    <small>
     
    3030                        and is filed under <?php the_category(', ') ?>.
    3131                        You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
    32                        
     32
    3333                        <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3434                            // Both Comments and Pings are open ?>
    3535                            You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
    36                        
     36
    3737                        <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3838                            // Only Pings are Open ?>
    3939                            Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
    40                        
     40
    4141                        <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4242                            // Comments are open, Pings are not ?>
    4343                            You can skip to the end and leave a response. Pinging is currently not allowed.
    44            
     44
    4545                        <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4646                            // Neither Comments, nor Pings are open ?>
    47                             Both comments and pings are currently closed.           
    48                        
     47                            Both comments and pings are currently closed.
     48
    4949                        <?php } edit_post_link('Edit this entry.','',''); ?>
    50                        
     50
    5151                    </small>
    5252                </p>
    53    
     53
    5454            </div>
    5555        </div>
    56        
     56
    5757    <?php comments_template(); ?>
    58    
     58
    5959    <?php endwhile; else: ?>
    60    
     60
    6161        <p>Sorry, no attachments matched your criteria.</p>
    62    
     62
    6363<?php endif; ?>
    64    
     64
    6565    </div>
    6666
  • branches/2.0/wp-content/themes/default/comments-popup.php

    r3903 r3925  
    103103<script type="text/javascript">
    104104<!--
    105 document.onkeypress = function esc(e) { 
     105document.onkeypress = function esc(e) {
    106106    if(typeof(e) == "undefined") { e=event; }
    107107    if (e.keyCode == 27) { self.close(); }
  • branches/2.0/wp-content/themes/default/comments.php

    r2530 r3925  
    66            if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
    77                ?>
    8                
     8
    99                <p class="nocomments">This post is password protected. Enter the password to view comments.<p>
    10                
     10
    1111                <?php
    1212                return;
     
    4040        </li>
    4141
    42     <?php /* Changes every other comment to a different class */   
     42    <?php /* Changes every other comment to a different class */
    4343        if ('alt' == $oddcomment) $oddcomment = '';
    4444        else $oddcomment = 'alt';
     
    5353  <?php if ('open' == $post->comment_status) : ?>
    5454        <!-- If comments are open, but there are no comments. -->
    55        
     55
    5656     <?php else : // comments are closed ?>
    5757        <!-- If comments are closed. -->
    5858        <p class="nocomments">Comments are closed.</p>
    59        
     59
    6060    <?php endif; ?>
    6161<?php endif; ?>
  • branches/2.0/wp-content/themes/default/footer.php

    r3115 r3925  
    22<hr />
    33<div id="footer">
     4<!-- 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. -->
    45    <p>
    56        <?php bloginfo('name'); ?> is proudly powered by
  • branches/2.0/wp-content/themes/default/functions.php

    r3451 r3925  
    5858    if ( false === $color )
    5959        return 'white';
    60        
     60
    6161    return $color;
    6262}
     
    101101                }
    102102            } else {
    103    
     103
    104104                if ( isset($_REQUEST['headerimage']) ) {
    105105                    if ( '' == $_REQUEST['headerimage'] )
     
    108108                        update_option('kubrick_header_image', $_REQUEST['headerimage']);
    109109                }
    110    
     110
    111111                if ( isset($_REQUEST['fontcolor']) ) {
    112112                    if ( '' == $_REQUEST['fontcolor'] )
     
    115115                        update_option('kubrick_header_color', $_REQUEST['fontcolor']);
    116116                }
    117    
     117
    118118                if ( isset($_REQUEST['fontdisplay']) ) {
    119119                    if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] )
     
    269269        font-size: 1.2em;
    270270        text-align: center;
    271     }   
     271    }
    272272    #kubrick-header #header {
    273273        text-decoration: none;
  • branches/2.0/wp-content/themes/default/header.php

    r3134 r3925  
    1414
    1515<style type="text/css" media="screen">
    16 /*  To accomodate differing install paths of WordPress, images are referred only here,
    17     and not in the wp-layout.css file. If you prefer to use only CSS for colors and what
    18     not, then go right ahead and delete the following lines, and the image files. */
    19        
    20     body { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgcolor.jpg"); }   
    21 <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! is_single())) { ?>
     16
     17<?php
     18// Checks to see whether it needs a sidebar or not
     19if ( !$withcomments && !is_single() ) {
     20?>
    2221    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; }
    2322<?php } else { // No sidebar ?>
    2423    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    2524<?php } ?>
    26     #header { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickheader.jpg") no-repeat bottom center; }
    27     #footer { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickfooter.jpg") no-repeat bottom; border: none;}
    2825
    29 /*  Because the template is slightly different, size-wise, with images, this needs to be set here
    30     If you don't want to use the template's images, you can also delete the following two lines. */
    31        
    32     #header     { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; }
    33     #headerimg  { margin: 7px 9px 0; height: 192px; width: 740px; }
    34 
    35 /*  To ease the insertion of a personal header image, I have done it in such a way,
    36     that you simply drop in an image called 'personalheader.jpg' into your /images/
    37     directory. Dimensions should be at least 760px x 200px. Anything above that will
    38     get cropped off of the image. */
    39     /*
    40     #headerimg { background: url('<?php bloginfo('stylesheet_directory'); ?>/images/personalheader.jpg') no-repeat top;}
    41     */
    4226</style>
    4327
  • branches/2.0/wp-content/themes/default/index.php

    r3006 r3925  
    44
    55    <?php if (have_posts()) : ?>
    6        
     6
    77        <?php while (have_posts()) : the_post(); ?>
    8                
     8
    99            <div class="post" id="post-<?php the_ID(); ?>">
    1010                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    1111                <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    12                
     12
    1313                <div class="entry">
    1414                    <?php the_content('Read the rest of this entry &raquo;'); ?>
    1515                </div>
    16        
     16
    1717                <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>
    1818            </div>
    19    
     19
    2020        <?php endwhile; ?>
    2121
     
    2424            <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    2525        </div>
    26        
     26
    2727    <?php else : ?>
    2828
  • branches/2.0/wp-content/themes/default/links.php

    r2040 r3925  
    1414</ul>
    1515
    16 </div> 
     16</div>
    1717
    1818<?php get_footer(); ?>
  • branches/2.0/wp-content/themes/default/page.php

    r2577 r3925  
    88            <div class="entrytext">
    99                <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    10    
     10
    1111                <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    12    
     12
    1313            </div>
    1414        </div>
  • branches/2.0/wp-content/themes/default/search.php

    r3006 r3925  
    66
    77        <h2 class="pagetitle">Search Results</h2>
    8        
     8
    99        <div class="navigation">
    1010            <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
     
    1414
    1515        <?php while (have_posts()) : the_post(); ?>
    16                
     16
    1717            <div class="post">
    1818                <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>
    1919                <small><?php the_time('l, F jS, Y') ?></small>
    20        
     20
    2121                <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>
    2222            </div>
    23    
     23
    2424        <?php endwhile; ?>
    2525
     
    2828            <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    2929        </div>
    30    
     30
    3131    <?php else : ?>
    3232
     
    3535
    3636    <?php endif; ?>
    37        
     37
    3838    </div>
    3939
  • branches/2.0/wp-content/themes/default/sidebar.php

    r3134 r3925  
    11    <div id="sidebar">
    22        <ul>
    3            
     3
    44            <li>
    55                <?php include (TEMPLATEPATH . '/searchform.php'); ?>
     
    1616            <?php /* If this is a category archive */ } elseif (is_category()) { ?>
    1717            <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
    18            
     18
    1919            <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    2020            <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    2121            for the day <?php the_time('l, F jS, Y'); ?>.</p>
    22            
     22
    2323            <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    2424            <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
     
    2828            <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    2929            for the year <?php the_time('Y'); ?>.</p>
    30            
     30
    3131         <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    3232            <p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
     
    5353            </li>
    5454
    55             <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>             
     55            <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    5656                <?php get_links_list(); ?>
    57                
     57
    5858                <li><h2>Meta</h2>
    5959                <ul>
     
    6767                </li>
    6868            <?php } ?>
    69            
     69
    7070        </ul>
    7171    </div>
  • branches/2.0/wp-content/themes/default/single.php

    r2591 r3925  
    22
    33    <div id="content" class="widecolumn">
    4                
     4
    55  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    6    
     6
    77        <div class="navigation">
    88            <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    99            <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
    1010        </div>
    11    
     11
    1212        <div class="post" id="post-<?php the_ID(); ?>">
    1313            <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    14    
     14
    1515            <div class="entrytext">
    1616                <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    17    
     17
    1818                <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    19    
     19
    2020                <p class="postmetadata alt">
    2121                    <small>
     
    2828                        and is filed under <?php the_category(', ') ?>.
    2929                        You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
    30                        
     30
    3131                        <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3232                            // Both Comments and Pings are open ?>
    3333                            You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
    34                        
     34
    3535                        <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3636                            // Only Pings are Open ?>
    3737                            Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
    38                        
     38
    3939                        <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4040                            // Comments are open, Pings are not ?>
    4141                            You can skip to the end and leave a response. Pinging is currently not allowed.
    42            
     42
    4343                        <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4444                            // Neither Comments, nor Pings are open ?>
    45                             Both comments and pings are currently closed.           
    46                        
     45                            Both comments and pings are currently closed.
     46
    4747                        <?php } edit_post_link('Edit this entry.','',''); ?>
    48                        
     48
    4949                    </small>
    5050                </p>
    51    
     51
    5252            </div>
    5353        </div>
    54        
     54
    5555    <?php comments_template(); ?>
    56    
     56
    5757    <?php endwhile; else: ?>
    58    
     58
    5959        <p>Sorry, no posts matched your criteria.</p>
    60    
     60
    6161<?php endif; ?>
    62    
     62
    6363    </div>
    6464
  • branches/2.0/wp-content/themes/default/style.css

    r3461 r3925  
    33Theme URI: http://wordpress.org/
    44Description: The default WordPress theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>.
    5 Version: 1.5
     5Version: 1.6
    66Author: Michael Heilemann
    77Author URI: http://binarybonsai.com/
     
    1515    The CSS, XHTML and design is released under GPL:
    1616    http://www.opensource.org/licenses/gpl-license.php
    17    
    18 
    19     *** REGARDING IMAGES ***
    20     All CSS that involves the use of images, can be found in the 'index.php' file.
    21     This is to ease installation inside subdirectories of a server.
    22 
    23     Have fun, and don't be afraid to contact me if you have questions.
     17
    2418*/
    2519
     
    3024    font-size: 62.5%; /* Resets 1em to 10px */
    3125    font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
    32     background-color: #d5d6d7;
     26    background: #d5d6d7 url('images/kubrickbgcolor.jpg');
    3327    color: #333;
    3428    text-align: center;
     
    4236
    4337#header {
    44     background-color: #73a0c5;
    45     }
     38    background: #73a0c5 url('images/kubrickheader.jpg') no-repeat bottom center;
     39    }
     40
     41#headerimg  {
     42    margin: 7px 9px 0;
     43    height: 192px;
     44    width: 740px;
     45    }
    4646
    4747#content {
     
    6060    line-height: 1.6em;
    6161    }
    62    
     62
    6363.narrowcolumn .postmetadata {
    6464    text-align: center;
     
    7272
    7373#footer {
    74     background-color: #eee;
     74    background: #eee url('images/kubrickfooter.jpg') no-repeat top;
     75    border: none;
    7576    }
    7677
     
    133134    font: 0.9em 'Lucida Grande', Verdana, Arial, Sans-Serif;
    134135    }
    135    
     136
    136137.commentlist li {
    137138    font-weight: bold;
     
    165166    color: #777;
    166167    }
    167    
     168
    168169code {
    169170    font: 1.1em 'Courier New', Courier, Fixed;
     
    185186    text-decoration: underline;
    186187    }
    187    
     188
    188189#wp-calendar #prev a {
    189190    font-size: 9pt;
     
    209210/* Begin Structure */
    210211body {
    211     margin: 0;
     212    margin: 0 0 20px 0;
    212213    padding: 0;
    213214    }
     
    220221    border: 1px solid #959596;
    221222    }
    222    
     223
    223224#header {
    224     padding: 0;
    225     margin: 0 auto;
    226     height: 200px;
    227     width: 100%;
    228225    background-color: #73a0c5;
     226    margin: 0 0 0 1px;
     227    padding: 0;
     228    height: 200px;
     229    width: 758px;
    229230    }
    230231
     
    247248    width: 450px;
    248249    }
    249    
     250
    250251.post {
    251252    margin: 0 0 40px;
     
    282283
    283284#footer {
    284     padding: 0 0 0 1px;
     285    padding: 0;
    285286    margin: 0 auto;
    286287    width: 760px;
     
    340341    will of course center the image. This is much better than using
    341342    align="center", being much more futureproof (and valid) */
    342    
     343
    343344img.centered {
    344345    display: block;
     
    346347    margin-right: auto;
    347348    }
    348    
     349
    349350img.alignright {
    350351    padding: 4px;
     
    362363    float: right;
    363364    }
    364    
     365
    365366.alignleft {
    366367    float: left
     
    406407    list-style-image: none;
    407408    }
    408    
     409
    409410#sidebar ul, #sidebar ul ol {
    410411    margin: 0;
     
    450451
    451452#sidebar #searchform #s {
    452     width: 115px;
     453    width: 108px;
    453454    padding: 2px;
    454455    }
Note: See TracChangeset for help on using the changeset viewer.