diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
commit | d48e85e0ac5e675ca33fac173f30c75403d1033f (patch) | |
tree | 1164430fa3b83a4d9283961b09c1576f2885e6b2 /wp-content/themes/classic | |
parent | 086dcde66603301531efc6d8087bd06d0546f148 (diff) | |
download | wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.tar.gz wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.tar.xz wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.zip |
Moved everything in wp-inst down a directory.
Uses's Ryan Boren's htaccess rules and mods
If you're upgrading, try this on a test server first!
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@591 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-content/themes/classic')
-rw-r--r-- | wp-content/themes/classic/comments-popup.php | 113 | ||||
-rw-r--r-- | wp-content/themes/classic/comments.php | 75 | ||||
-rw-r--r-- | wp-content/themes/classic/footer.php | 12 | ||||
-rw-r--r-- | wp-content/themes/classic/header.php | 30 | ||||
-rw-r--r-- | wp-content/themes/classic/index.php | 32 | ||||
-rw-r--r-- | wp-content/themes/classic/screenshot.png | bin | 0 -> 8412 bytes | |||
-rw-r--r-- | wp-content/themes/classic/sidebar.php | 43 | ||||
-rw-r--r-- | wp-content/themes/classic/style.css | 313 |
8 files changed, 618 insertions, 0 deletions
diff --git a/wp-content/themes/classic/comments-popup.php b/wp-content/themes/classic/comments-popup.php new file mode 100644 index 0000000..7a209a2 --- /dev/null +++ b/wp-content/themes/classic/comments-popup.php @@ -0,0 +1,113 @@ +<?php +/* Don't remove these lines. */ +add_filter('comment_text', 'popuplinks'); +foreach ($posts as $post) { start_wp(); +?> +<!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> + <title><?php echo get_settings('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title> + + <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> + <style type="text/css" media="screen"> + @import url( <?php bloginfo('stylesheet_url'); ?> ); + body { margin: 3px; } + </style> + +</head> +<body id="commentspopup"> + +<h1 id="header"><a href="" title="<?php echo get_settings('blogname'); ?>"><?php echo get_settings('blogname'); ?></a></h1> + +<h2 id="comments"><?php _e("Comments"); ?></h2> + +<p><a href="<?php echo get_settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p> + +<?php if ('open' == $post->ping_status) { ?> +<p><?php _e("The <acronym title=\"Uniform Resource Identifier\">URI</acronym> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p> +<?php } ?> + +<?php +// this line is WordPress' motor, do not delete it. +$comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : ''; +$comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : ''; +$comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : ''; +$comments = get_approved_comments($id); +$commentstatus = get_post($id); +if (!empty($commentstatus->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $commentstatus->post_password) { // and it doesn't match the cookie + echo(get_the_password_form()); +} else { ?> + +<?php if ($comments) { ?> +<ol id="commentlist"> +<?php foreach ($comments as $comment) { ?> + <li id="comment-<?php comment_ID() ?>"> + <?php comment_text() ?> + <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e("by"); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p> + </li> + +<?php } // end for each comment ?> +</ol> +<?php } else { // this is displayed if there are no comments so far ?> + <p><?php _e("No comments yet."); ?></p> +<?php } ?> + +<?php if ('open' == $commentstatus->comment_status) { ?> +<h2><?php _e("Leave a comment"); ?></h2> +<p><?php _e("Line and paragraph breaks automatic, e-mail address never displayed, <acronym title=\"Hypertext Markup Language\">HTML</acronym> allowed:"); ?> <code><?php echo allowed_tags(); ?></code></p> + +<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> + <p> + <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> + <label for="author"><?php _e("Name"); ?></label> + <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> + <input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER["REQUEST_URI"]); ?>" /> + </p> + + <p> + <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" /> + <label for="email"><?php _e("E-mail"); ?></label> + </p> + + <p> + <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /> + <label for="url"><?php _e("<acronym title=\"Uniform Resource Identifier\">URI</acronym>"); ?></label> + </p> + + <p> + <label for="comment"><?php _e("Your Comment"); ?></label> + <br /> + <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> + </p> + + <p> + <input name="submit" type="submit" tabindex="5" value="<?php _e("Say It!"); ?>" /> + </p> + <?php do_action('comment_form', $post->ID); ?> +</form> +<?php } else { // comments are closed ?> +<p><?php _e("Sorry, the comment form is closed at this time."); ?></p> +<?php } +} // end password check +?> + +<div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div> + +<?php // if you delete this the sky will fall on your head +} +?> + +<!-- // this is just the end of the motor - don't touch that line either :) --> +<?php //} ?> +<p class="credit"><?php timer_stop(1); ?> <?php echo sprintf(__("<cite>Powered by <a href=\"http://wordpress.org\" title=\"%s\"><strong>Wordpress</strong></a></cite>"),__("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></p> +<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> +<script type="text/javascript"> +<!-- +document.onkeypress = function esc(e) { + if(typeof(e) == "undefined") { e=event; } + if (e.keyCode == 27) { self.close(); } +} +// --> +</script> +</body> +</html> diff --git a/wp-content/themes/classic/comments.php b/wp-content/themes/classic/comments.php new file mode 100644 index 0000000..6222f1a --- /dev/null +++ b/wp-content/themes/classic/comments.php @@ -0,0 +1,75 @@ +<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?> +<p><?php _e('Enter your password to view comments.'); ?></p> +<?php return; endif; ?> + +<h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?> +<?php if ( comments_open() ) : ?> + <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a> +<?php endif; ?> +</h2> + +<?php if ( $comments ) : ?> +<ol id="commentlist"> + +<?php foreach ($comments as $comment) : ?> + <li id="comment-<?php comment_ID() ?>"> + <?php comment_text() ?> + <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p> + </li> + +<?php endforeach; ?> + +</ol> + +<?php else : // If there are no comments yet ?> + <p><?php _e('No comments yet.'); ?></p> +<?php endif; ?> + +<p><?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?> +<?php if ( pings_open() ) : ?> + <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?></a> +<?php endif; ?> +</p> + +<?php if ( comments_open() ) : ?> +<h2 id="postcomment"><?php _e('Leave a comment'); ?></h2> + +<?php if ( get_option('comment_registration') && !$user_ID ) : ?> +<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p> +<?php else : ?> + +<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> + +<?php if ( $user_ID ) : ?> + +<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="<?php _e('Log out of this account') ?>">Logout »</a></p> + +<?php else : ?> + +<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> +<label for="author"><small>Name <?php if ($req) _e('(required)'); ?></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) <?php if ($req) _e('(required)'); ?></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> + +<?php endif; ?> + +<!--<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> + +<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> +<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> +</p> +<?php do_action('comment_form', $post->ID); ?> + +</form> + +<?php endif; // If registration required and not logged in ?> + +<?php else : // Comments are closed ?> +<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p> +<?php endif; ?> diff --git a/wp-content/themes/classic/footer.php b/wp-content/themes/classic/footer.php new file mode 100644 index 0000000..53ab958 --- /dev/null +++ b/wp-content/themes/classic/footer.php @@ -0,0 +1,12 @@ +<!-- begin footer --> +</div> + +<?php get_sidebar(); ?> + +<p class="credit"><!--<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org/' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></cite></p> + +</div> + +<?php wp_footer(); ?> +</body> +</html> diff --git a/wp-content/themes/classic/header.php b/wp-content/themes/classic/header.php new file mode 100644 index 0000000..7052ae7 --- /dev/null +++ b/wp-content/themes/classic/header.php @@ -0,0 +1,30 @@ +<!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/11"> + <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> + + <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> + + <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please --> + + <style type="text/css" media="screen"> + @import url( <?php bloginfo('stylesheet_url'); ?> ); + </style> + + <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 //comments_popup_script(); // off by default ?> + <?php wp_head(); ?> +</head> + +<body> +<div id="rap"> +<h1 id="header"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1> + +<div id="content"> +<!-- end header --> diff --git a/wp-content/themes/classic/index.php b/wp-content/themes/classic/index.php new file mode 100644 index 0000000..2760bff --- /dev/null +++ b/wp-content/themes/classic/index.php @@ -0,0 +1,32 @@ +<?php +get_header(); +?> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<?php the_date('','<h2>','</h2>'); ?> + +<div class="post" id="post-<?php the_ID(); ?>"> + <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> + <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div> + + <div class="storycontent"> + <?php the_content(__('(more...)')); ?> + </div> + + <div class="feedback"> + <?php wp_link_pages(); ?> + <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> + </div> + +</div> + +<?php comments_template(); // Get wp-comments.php template ?> + +<?php endwhile; else: ?> +<p><?php _e('Sorry, no posts matched your criteria.'); ?></p> +<?php endif; ?> + +<?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?> + +<?php get_footer(); ?> diff --git a/wp-content/themes/classic/screenshot.png b/wp-content/themes/classic/screenshot.png Binary files differnew file mode 100644 index 0000000..6692130 --- /dev/null +++ b/wp-content/themes/classic/screenshot.png diff --git a/wp-content/themes/classic/sidebar.php b/wp-content/themes/classic/sidebar.php new file mode 100644 index 0000000..24a1cdd --- /dev/null +++ b/wp-content/themes/classic/sidebar.php @@ -0,0 +1,43 @@ + +<!-- begin sidebar --> +<div id="menu"> + +<ul> + <?php wp_list_pages(); ?> + <?php get_links_list(); ?> + <li id="categories"><?php _e('Categories:'); ?> + <ul> + <?php wp_list_cats(); ?> + </ul> + </li> + <li id="search"> + <label for="s"><?php _e('Search:'); ?></label> + <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> + <div> + <input type="text" name="s" id="s" size="15" /><br /> + <input type="submit" value="<?php _e('Search'); ?>" /> + </div> + </form> + </li> + <li id="archives"><?php _e('Archives:'); ?> + <ul> + <?php wp_get_archives('type=monthly'); ?> + </ul> + </li> + <li id="meta"><?php _e('Meta:'); ?> + <ul> + <?php wp_register(); ?> + <li><?php wp_loginout(); ?></li> + <li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li> + <li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li> + <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li> + <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> + <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li> + <?php wp_meta(); ?> + </ul> + </li> + +</ul> + +</div> +<!-- end sidebar --> diff --git a/wp-content/themes/classic/style.css b/wp-content/themes/classic/style.css new file mode 100644 index 0000000..e09122d --- /dev/null +++ b/wp-content/themes/classic/style.css @@ -0,0 +1,313 @@ +/* +Theme Name: WordPress Classic +Theme URI: http://wordpress.org/ +Description: The original WordPress theme that graced versions 1.2.x and prior. +Version: 1.5 +Author: Dave Shea + +Default WordPress by Dave Shea || http://mezzoblue.com +Modifications by Matthew Mullenweg || http://photomatt.net +This is just a basic layout, with only the bare minimum defined. +Please tweak this and make it your own. :) +*/ + +a { + color: #675; +} + +a img { + border: none; +} + +a:visited { + color: #342; +} + +a:hover { + color: #9a8; +} + +acronym, abbr { + border-bottom: 1px dashed #333; +} + +acronym, abbr, span.caps { + font-size: 90%; + letter-spacing: .07em; +} + +acronym, abbr { + cursor: help; +} + +blockquote { + border-left: 5px solid #ccc; + margin-left: 1.5em; + padding-left: 5px; +} + +body { + background: #fff; + border: solid 2px #565; + border-bottom: solid 1px #565; + border-top: solid 3px #565; + color: #000; + font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; + margin: 0; + padding: 0; +} + +cite { + font-size: 90%; + font-style: normal; +} + +h2 { + border-bottom: 1px dotted #ccc; + font: 95% "Times New Roman", Times, serif; + letter-spacing: 0.2em; + margin: 15px 0 2px 0; + padding-bottom: 2px; +} + +h3 { + border-bottom: dotted 1px #eee; + font-family: "Times New Roman", Times, serif; + margin-top: 0; +} + +ol#comments li p { + font-size: 100%; +} + +p, li, .feedback { + font: 90%/175% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; + letter-spacing: -1px; +} + +/* classes used by the_meta() */ +ul.post-meta { + list-style: none; +} + +ul.post-meta span.post-meta-key { + font-weight: bold; +} + +.credit { + background: #90a090; + border-top: double 3px #aba; + color: #fff; + font-size: 11px; + margin: 10px 0 0 0; + padding: 3px; + text-align: center; +} + +.credit a:link, .credit a:hover { + color: #fff; +} + +.feedback { + color: #ccc; + text-align: right; + clear: both; +} + +.meta { + font-size: .75em; +} + +.meta li, ul.post-meta li { + display: inline; +} + +.meta ul { + display: inline; + list-style: none; + margin: 0; + padding: 0; +} + +.meta, .meta a { + color: #808080; + font-weight: normal; + letter-spacing: 0; +} + +.storytitle { + margin: 0; +} + +.storytitle a { + text-decoration: none; +} + +#commentform #author, #commentform #email, #commentform #url, #commentform textarea { + background: #fff; + border: 1px solid #333; + padding: .2em; +} + +#commentform textarea { + width: 100%; +} + +#commentlist li ul { + border-left: 1px solid #ddd; + font-size: 110%; + list-style-type: none; +} + +#content { + margin: 30px 13em 0 3em; + padding-right: 60px; +} + +#header { + background: #90a090; + border-bottom: double 3px #aba; + border-left: solid 1px #9a9; + border-right: solid 1px #565; + border-top: solid 1px #9a9; + font: italic normal 230% 'Times New Roman', Times, serif; + letter-spacing: 0.2em; + margin: 0; + padding: 15px 10px 15px 60px; +} + +#header a { + color: #fff; + text-decoration: none; +} + +#header a:hover { + text-decoration: underline; +} + +#menu { + background: #fff; + border-left: 1px dotted #ccc; + border-top: solid 3px #e0e6e0; + padding: 20px 0 10px 30px; + position: absolute; + right: 2px; + top: 0; + width: 11em; +} + +#menu form { + margin: 0 0 0 13px; +} + +#menu input#s { + width: 80%; + background: #eee; + border: 1px solid #999; + color: #000; +} + +#menu ul { + color: #ccc; + font-weight: bold; + list-style-type: none; + margin: 0; + padding-left: 3px; + text-transform: lowercase; +} + +#menu ul li { + font: italic normal 110% 'Times New Roman', Times, serif; + letter-spacing: 0.1em; + margin-top: 10px; + padding-bottom: 2px; /*border-bottom: dotted 1px #ccc;*/ +} + +#menu ul ul { + font-variant: normal; + font-weight: normal; + line-height: 100%; + list-style-type: none; + margin: 0; + padding: 0; + text-align: left; +} + +#menu ul ul li { + border: 0; + font: normal normal 12px/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; + letter-spacing: 0; + margin-top: 0; + padding: 0; + padding-left: 12px; +} + +#menu ul ul li a { + color: #000; + text-decoration: none; +} + +#menu ul ul li a:hover { + border-bottom: 1px solid #809080; +} + +#menu ul ul ul.children { + font-size: 142%; + padding-left: 4px; +} + +#wp-calendar { + border: 1px solid #ddd; + empty-cells: show; + font-size: 14px; + margin: 0; + width: 90%; +} + +#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; + text-decoration: none; +} + +#wp-calendar a:hover { + background: #e0e6e0; + color: #333; +} + +#wp-calendar caption { + color: #999; + font-size: 16px; + text-align: left; +} + +#wp-calendar td { + color: #ccc; + font: normal 12px 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; + letter-spacing: normal; + padding: 2px 0; + text-align: center; +} + +#wp-calendar td.pad:hover { + background: #fff; +} + +#wp-calendar td:hover, #wp-calendar #today { + background: #eee; + color: #bbb; +} + +#wp-calendar th { + font-style: normal; + text-transform: capitalize; +} |