Changeset 3925
- Timestamp:
- 06/26/2006 07:33:36 PM (18 years ago)
- 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 6 6 7 7 <?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()) { ?> 9 9 <h2 class="pagetitle">Archive for the '<?php echo 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 13 14 14 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 15 15 <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> … … 17 17 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 18 18 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> 19 19 20 20 <?php /* If this is a search */ } elseif (is_search()) { ?> 21 21 <h2 class="pagetitle">Search Results</h2> 22 22 23 23 <?php /* If this is an author archive */ } elseif (is_author()) { ?> 24 24 <h2 class="pagetitle">Author Archive</h2> … … 39 39 <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> 40 40 <small><?php the_time('l, F jS, Y') ?></small> 41 41 42 42 <div class="entry"> 43 43 <?php the_content() ?> 44 44 </div> 45 45 46 46 <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> 47 47 48 48 </div> 49 49 50 50 <?php endwhile; ?> 51 51 … … 54 54 <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> 55 55 </div> 56 56 57 57 <?php else : ?> 58 58 … … 61 61 62 62 <?php endif; ?> 63 63 64 64 </div> 65 65 -
branches/2.0/wp-content/themes/default/archives.php
r2040 r3925 21 21 </ul> 22 22 23 </div> 23 </div> 24 24 25 25 <?php get_footer(); ?> -
branches/2.0/wp-content/themes/default/attachment.php
r3328 r3925 2 2 3 3 <div id="content" class="widecolumn"> 4 4 5 5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 6 6 7 7 <div class="navigation"> 8 8 <div class="alignleft"> </div> … … 17 17 18 18 <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> 19 19 20 20 <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> 21 21 22 22 <p class="postmetadata alt"> 23 23 <small> … … 30 30 and is filed under <?php the_category(', ') ?>. 31 31 You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 32 32 33 33 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 34 34 // Both Comments and Pings are open ?> 35 35 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 37 37 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 38 38 // Only Pings are Open ?> 39 39 Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site. 40 40 41 41 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 42 42 // Comments are open, Pings are not ?> 43 43 You can skip to the end and leave a response. Pinging is currently not allowed. 44 44 45 45 <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 46 46 // Neither Comments, nor Pings are open ?> 47 Both comments and pings are currently closed. 48 47 Both comments and pings are currently closed. 48 49 49 <?php } edit_post_link('Edit this entry.','',''); ?> 50 50 51 51 </small> 52 52 </p> 53 53 54 54 </div> 55 55 </div> 56 56 57 57 <?php comments_template(); ?> 58 58 59 59 <?php endwhile; else: ?> 60 60 61 61 <p>Sorry, no attachments matched your criteria.</p> 62 62 63 63 <?php endif; ?> 64 64 65 65 </div> 66 66 -
branches/2.0/wp-content/themes/default/comments-popup.php
r3903 r3925 103 103 <script type="text/javascript"> 104 104 <!-- 105 document.onkeypress = function esc(e) { 105 document.onkeypress = function esc(e) { 106 106 if(typeof(e) == "undefined") { e=event; } 107 107 if (e.keyCode == 27) { self.close(); } -
branches/2.0/wp-content/themes/default/comments.php
r2530 r3925 6 6 if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie 7 7 ?> 8 8 9 9 <p class="nocomments">This post is password protected. Enter the password to view comments.<p> 10 10 11 11 <?php 12 12 return; … … 40 40 </li> 41 41 42 <?php /* Changes every other comment to a different class */ 42 <?php /* Changes every other comment to a different class */ 43 43 if ('alt' == $oddcomment) $oddcomment = ''; 44 44 else $oddcomment = 'alt'; … … 53 53 <?php if ('open' == $post->comment_status) : ?> 54 54 <!-- If comments are open, but there are no comments. --> 55 55 56 56 <?php else : // comments are closed ?> 57 57 <!-- If comments are closed. --> 58 58 <p class="nocomments">Comments are closed.</p> 59 59 60 60 <?php endif; ?> 61 61 <?php endif; ?> -
branches/2.0/wp-content/themes/default/footer.php
r3115 r3925 2 2 <hr /> 3 3 <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. --> 4 5 <p> 5 6 <?php bloginfo('name'); ?> is proudly powered by -
branches/2.0/wp-content/themes/default/functions.php
r3451 r3925 58 58 if ( false === $color ) 59 59 return 'white'; 60 60 61 61 return $color; 62 62 } … … 101 101 } 102 102 } else { 103 103 104 104 if ( isset($_REQUEST['headerimage']) ) { 105 105 if ( '' == $_REQUEST['headerimage'] ) … … 108 108 update_option('kubrick_header_image', $_REQUEST['headerimage']); 109 109 } 110 110 111 111 if ( isset($_REQUEST['fontcolor']) ) { 112 112 if ( '' == $_REQUEST['fontcolor'] ) … … 115 115 update_option('kubrick_header_color', $_REQUEST['fontcolor']); 116 116 } 117 117 118 118 if ( isset($_REQUEST['fontdisplay']) ) { 119 119 if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] ) … … 269 269 font-size: 1.2em; 270 270 text-align: center; 271 } 271 } 272 272 #kubrick-header #header { 273 273 text-decoration: none; -
branches/2.0/wp-content/themes/default/header.php
r3134 r3925 14 14 15 15 <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 19 if ( !$withcomments && !is_single() ) { 20 ?> 22 21 #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; } 23 22 <?php } else { // No sidebar ?> 24 23 #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; } 25 24 <?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;}28 25 29 /* Because the template is slightly different, size-wise, with images, this needs to be set here30 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 will38 get cropped off of the image. */39 /*40 #headerimg { background: url('<?php bloginfo('stylesheet_directory'); ?>/images/personalheader.jpg') no-repeat top;}41 */42 26 </style> 43 27 -
branches/2.0/wp-content/themes/default/index.php
r3006 r3925 4 4 5 5 <?php if (have_posts()) : ?> 6 6 7 7 <?php while (have_posts()) : the_post(); ?> 8 8 9 9 <div class="post" id="post-<?php the_ID(); ?>"> 10 10 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> 11 11 <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> 12 12 13 13 <div class="entry"> 14 14 <?php the_content('Read the rest of this entry »'); ?> 15 15 </div> 16 16 17 17 <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> 18 18 </div> 19 19 20 20 <?php endwhile; ?> 21 21 … … 24 24 <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> 25 25 </div> 26 26 27 27 <?php else : ?> 28 28 -
branches/2.0/wp-content/themes/default/links.php
r2040 r3925 14 14 </ul> 15 15 16 </div> 16 </div> 17 17 18 18 <?php get_footer(); ?> -
branches/2.0/wp-content/themes/default/page.php
r2577 r3925 8 8 <div class="entrytext"> 9 9 <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> 10 10 11 11 <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> 12 12 13 13 </div> 14 14 </div> -
branches/2.0/wp-content/themes/default/search.php
r3006 r3925 6 6 7 7 <h2 class="pagetitle">Search Results</h2> 8 8 9 9 <div class="navigation"> 10 10 <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div> … … 14 14 15 15 <?php while (have_posts()) : the_post(); ?> 16 16 17 17 <div class="post"> 18 18 <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> 19 19 <small><?php the_time('l, F jS, Y') ?></small> 20 20 21 21 <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> 22 22 </div> 23 23 24 24 <?php endwhile; ?> 25 25 … … 28 28 <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> 29 29 </div> 30 30 31 31 <?php else : ?> 32 32 … … 35 35 36 36 <?php endif; ?> 37 37 38 38 </div> 39 39 -
branches/2.0/wp-content/themes/default/sidebar.php
r3134 r3925 1 1 <div id="sidebar"> 2 2 <ul> 3 3 4 4 <li> 5 5 <?php include (TEMPLATEPATH . '/searchform.php'); ?> … … 16 16 <?php /* If this is a category archive */ } elseif (is_category()) { ?> 17 17 <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p> 18 18 19 19 <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> 20 20 <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 21 21 for the day <?php the_time('l, F jS, Y'); ?>.</p> 22 22 23 23 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 24 24 <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives … … 28 28 <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 29 29 for the year <?php the_time('Y'); ?>.</p> 30 30 31 31 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> 32 32 <p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives … … 53 53 </li> 54 54 55 <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> 55 <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> 56 56 <?php get_links_list(); ?> 57 57 58 58 <li><h2>Meta</h2> 59 59 <ul> … … 67 67 </li> 68 68 <?php } ?> 69 69 70 70 </ul> 71 71 </div> -
branches/2.0/wp-content/themes/default/single.php
r2591 r3925 2 2 3 3 <div id="content" class="widecolumn"> 4 4 5 5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 6 6 7 7 <div class="navigation"> 8 8 <div class="alignleft"><?php previous_post_link('« %link') ?></div> 9 9 <div class="alignright"><?php next_post_link('%link »') ?></div> 10 10 </div> 11 11 12 12 <div class="post" id="post-<?php the_ID(); ?>"> 13 13 <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2> 14 14 15 15 <div class="entrytext"> 16 16 <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> 17 17 18 18 <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> 19 19 20 20 <p class="postmetadata alt"> 21 21 <small> … … 28 28 and is filed under <?php the_category(', ') ?>. 29 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)) { 32 32 // Both Comments and Pings are open ?> 33 33 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 35 35 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 36 36 // Only Pings are Open ?> 37 37 Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site. 38 38 39 39 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 40 40 // Comments are open, Pings are not ?> 41 41 You can skip to the end and leave a response. Pinging is currently not allowed. 42 42 43 43 <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 44 44 // Neither Comments, nor Pings are open ?> 45 Both comments and pings are currently closed. 46 45 Both comments and pings are currently closed. 46 47 47 <?php } edit_post_link('Edit this entry.','',''); ?> 48 48 49 49 </small> 50 50 </p> 51 51 52 52 </div> 53 53 </div> 54 54 55 55 <?php comments_template(); ?> 56 56 57 57 <?php endwhile; else: ?> 58 58 59 59 <p>Sorry, no posts matched your criteria.</p> 60 60 61 61 <?php endif; ?> 62 62 63 63 </div> 64 64 -
branches/2.0/wp-content/themes/default/style.css
r3461 r3925 3 3 Theme URI: http://wordpress.org/ 4 4 Description: The default WordPress theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>. 5 Version: 1. 55 Version: 1.6 6 6 Author: Michael Heilemann 7 7 Author URI: http://binarybonsai.com/ … … 15 15 The CSS, XHTML and design is released under GPL: 16 16 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 24 18 */ 25 19 … … 30 24 font-size: 62.5%; /* Resets 1em to 10px */ 31 25 font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; 32 background -color: #d5d6d7;26 background: #d5d6d7 url('images/kubrickbgcolor.jpg'); 33 27 color: #333; 34 28 text-align: center; … … 42 36 43 37 #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 } 46 46 47 47 #content { … … 60 60 line-height: 1.6em; 61 61 } 62 62 63 63 .narrowcolumn .postmetadata { 64 64 text-align: center; … … 72 72 73 73 #footer { 74 background-color: #eee; 74 background: #eee url('images/kubrickfooter.jpg') no-repeat top; 75 border: none; 75 76 } 76 77 … … 133 134 font: 0.9em 'Lucida Grande', Verdana, Arial, Sans-Serif; 134 135 } 135 136 136 137 .commentlist li { 137 138 font-weight: bold; … … 165 166 color: #777; 166 167 } 167 168 168 169 code { 169 170 font: 1.1em 'Courier New', Courier, Fixed; … … 185 186 text-decoration: underline; 186 187 } 187 188 188 189 #wp-calendar #prev a { 189 190 font-size: 9pt; … … 209 210 /* Begin Structure */ 210 211 body { 211 margin: 0 ;212 margin: 0 0 20px 0; 212 213 padding: 0; 213 214 } … … 220 221 border: 1px solid #959596; 221 222 } 222 223 223 224 #header { 224 padding: 0;225 margin: 0 auto;226 height: 200px;227 width: 100%;228 225 background-color: #73a0c5; 226 margin: 0 0 0 1px; 227 padding: 0; 228 height: 200px; 229 width: 758px; 229 230 } 230 231 … … 247 248 width: 450px; 248 249 } 249 250 250 251 .post { 251 252 margin: 0 0 40px; … … 282 283 283 284 #footer { 284 padding: 0 0 0 1px;285 padding: 0; 285 286 margin: 0 auto; 286 287 width: 760px; … … 340 341 will of course center the image. This is much better than using 341 342 align="center", being much more futureproof (and valid) */ 342 343 343 344 img.centered { 344 345 display: block; … … 346 347 margin-right: auto; 347 348 } 348 349 349 350 img.alignright { 350 351 padding: 4px; … … 362 363 float: right; 363 364 } 364 365 365 366 .alignleft { 366 367 float: left … … 406 407 list-style-image: none; 407 408 } 408 409 409 410 #sidebar ul, #sidebar ul ol { 410 411 margin: 0; … … 450 451 451 452 #sidebar #searchform #s { 452 width: 1 15px;453 width: 108px; 453 454 padding: 2px; 454 455 }
Note: See TracChangeset
for help on using the changeset viewer.