WordPress.org

Make WordPress Core

Ticket #10654: remove-classic-theme.diff

File remove-classic-theme.diff, 24.0 KB (added by technosailor, 9 years ago)
  • wp-content/themes/classic/sidebar.php

     
    1 <?php
    2 /**
    3  * @package WordPress
    4  * @subpackage Classic_Theme
    5  */
    6 ?>
    7 <!-- begin sidebar -->
    8 <div id="menu">
    9 
    10 <ul>
    11 <?php   /* Widgetized sidebar, if you have the plugin installed. */
    12                 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    13         <?php wp_list_pages('title_li=' . __('Pages:')); ?>
    14         <?php wp_list_bookmarks('title_after=&title_before='); ?>
    15         <?php wp_list_categories('title_li=' . __('Categories:')); ?>
    16  <li id="search">
    17    <label for="s"><?php _e('Search:'); ?></label>
    18    <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
    19         <div>
    20                 <input type="text" name="s" id="s" size="15" /><br />
    21                 <input type="submit" value="<?php esc_attr_e('Search'); ?>" />
    22         </div>
    23         </form>
    24  </li>
    25  <li id="archives"><?php _e('Archives:'); ?>
    26         <ul>
    27          <?php wp_get_archives('type=monthly'); ?>
    28         </ul>
    29  </li>
    30  <li id="meta"><?php _e('Meta:'); ?>
    31         <ul>
    32                 <?php wp_register(); ?>
    33                 <li><?php wp_loginout(); ?></li>
    34                 <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    35                 <li><a href="<?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>
    36                 <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>
    37                 <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    38                 <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>
    39                 <?php wp_meta(); ?>
    40         </ul>
    41  </li>
    42 <?php endif; ?>
    43 
    44 </ul>
    45 
    46 </div>
    47 <!-- end sidebar -->
  • wp-content/themes/classic/footer.php

    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
     
    1 <?php
    2 /**
    3  * @package WordPress
    4  * @subpackage Classic_Theme
    5  */
    6 ?>
    7 <!-- begin footer -->
    8 </div>
    9 
    10 <?php get_sidebar(); ?>
    11 
    12 <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>
    13 
    14 </div>
    15 
    16 <?php wp_footer(); ?>
    17 </body>
    18 </html>
    19  No newline at end of file
  • wp-content/themes/classic/style.css

     
    1 /*
    2 Theme Name: WordPress Classic
    3 Theme URI: http://wordpress.org/
    4 Description: The original WordPress theme that graced versions 1.2.x and prior.
    5 Version: 1.5
    6 Author: Dave Shea
    7 Tags: mantle color, variable width, two columns, widgets
    8 
    9 Default WordPress by Dave Shea || http://mezzoblue.com
    10 Modifications by Matthew Mullenweg || http://photomatt.net
    11 This is just a basic layout, with only the bare minimum defined.
    12 Please tweak this and make it your own. :)
    13 */
    14 
    15 .screen-reader-text {
    16      position: absolute;
    17      left: -1000em;
    18 }
    19 
    20 a {
    21         color: #675;
    22 }
    23 
    24 a img {
    25         border: none;
    26 }
    27 
    28 a:visited {
    29         color: #342;
    30 }
    31 
    32 a:hover {
    33         color: #9a8;
    34 }
    35 
    36 acronym, abbr {
    37         border-bottom: 1px dashed #333;
    38 }
    39 
    40 acronym, abbr, span.caps {
    41         font-size: 90%;
    42         letter-spacing: .07em;
    43 }
    44 
    45 acronym, abbr {
    46         cursor: help;
    47 }
    48 
    49 blockquote {
    50         border-left: 5px solid #ccc;
    51         margin-left: 1.5em;
    52         padding-left: 5px;
    53 }
    54 
    55 body {
    56         background: #fff;
    57         border: 2px solid #565;
    58         border-bottom: 1px solid #565;
    59         border-top: 3px solid #565;
    60         color: #000;
    61         font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    62         margin: 0;
    63         padding: 0;
    64 }
    65 
    66 cite {
    67         font-size: 90%;
    68         font-style: normal;
    69 }
    70 
    71 h2 {
    72         border-bottom: 1px dotted #ccc;
    73         font: 95% "Times New Roman", Times, serif;
    74         letter-spacing: 0.2em;
    75         margin: 15px 0 2px 0;
    76         padding-bottom: 2px;
    77 }
    78 
    79 h3 {
    80         border-bottom: 1px dotted #eee;
    81         font-family: "Times New Roman", Times, serif;
    82         margin-top: 0;
    83 }
    84 
    85 ol#comments li p {
    86         font-size: 100%;
    87 }
    88 
    89 p, li, .feedback {
    90         font: 90%/175% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    91         letter-spacing: -1px;
    92 }
    93 
    94 /* classes used by the_meta() */
    95 ul.post-meta {
    96         list-style: none;
    97 }
    98 
    99 ul.post-meta span.post-meta-key {
    100         font-weight: bold;
    101 }
    102 
    103 .credit {
    104         background: #90a090;
    105         border-top: 3px double #aba;
    106         color: #fff;
    107         font-size: 11px;
    108         margin: 10px 0 0 0;
    109         padding: 3px;
    110         text-align: center;
    111 }
    112 
    113 .credit a:link, .credit a:hover {
    114         color: #fff;
    115 }
    116 
    117 .feedback {
    118         color: #ccc;
    119         text-align: right;
    120         clear: both;
    121 }
    122 
    123 .meta {
    124         font-size: .75em;
    125 }
    126 
    127 .meta li, ul.post-meta li {
    128         display: inline;
    129 }
    130 
    131 .meta ul {
    132         display: inline;
    133         list-style: none;
    134         margin: 0;
    135         padding: 0;
    136 }
    137 
    138 .meta, .meta a {
    139         color: #808080;
    140         font-weight: normal;
    141         letter-spacing: 0;
    142 }
    143 
    144 .storytitle {
    145         margin: 0;
    146 }
    147 
    148 .storytitle a {
    149         text-decoration: none;
    150 }
    151 
    152 #commentform #author, #commentform #email, #commentform #url, #commentform textarea {
    153         background: #fff;
    154         border: 1px solid #333;
    155         padding: .2em;
    156 }
    157 
    158 #commentform textarea {
    159         width: 100%;
    160 }
    161 
    162 #commentlist li ul {
    163         border-left: 1px solid #ddd;
    164         font-size: 110%;
    165         list-style-type: none;
    166 }
    167 
    168 #commentlist li .avatar {
    169         float: right;
    170         margin-right: 25px;
    171         border: 1px dotted #ccc;
    172         padding: 2px;
    173 }
    174 
    175 #content {
    176         margin: 30px 13em 0 3em;
    177         padding-right: 60px;
    178 }
    179 
    180 #header {
    181         background: #90a090;
    182         border-bottom: 3px double #aba;
    183         border-left: 1px solid #9a9;
    184         border-right: 1px solid #565;
    185         border-top: 1px solid #9a9;
    186         font: italic normal 230% 'Times New Roman', Times, serif;
    187         letter-spacing: 0.2em;
    188         margin: 0;
    189         padding: 15px 10px 15px 60px;
    190 }
    191 
    192 #header a {
    193         color: #fff;
    194         text-decoration: none;
    195 }
    196 
    197 #header a:hover {
    198         text-decoration: underline;
    199 }
    200 
    201 #menu {
    202         background: #fff;
    203         border-left: 1px dotted #ccc;
    204         border-top: 3px solid #e0e6e0;
    205         padding: 20px 0 10px 30px;
    206         position: absolute;
    207         right: 2px;
    208         top: 0;
    209         width: 11em;
    210 }
    211 
    212 #menu form {
    213         margin: 0 0 0 13px;
    214 }
    215 
    216 #menu input#s {
    217         width: 80%;
    218         background: #eee;
    219         border: 1px solid #999;
    220         color: #000;
    221 }
    222 
    223 #menu ul {
    224         color: #ccc;
    225         font-weight: bold;
    226         list-style-type: none;
    227         margin: 0;
    228         padding-left: 3px;
    229         text-transform: lowercase;
    230 }
    231 
    232 #menu ul li {
    233         font: italic normal 110% 'Times New Roman', Times, serif;
    234         letter-spacing: 0.1em;
    235         margin-top: 10px;
    236         padding-bottom: 2px; /*border-bottom: dotted 1px #ccc;*/
    237 }
    238 
    239 #menu ul ul {
    240         font-variant: normal;
    241         font-weight: normal;
    242         line-height: 100%;
    243         list-style-type: none;
    244         margin: 0;
    245         padding: 0;
    246         text-align: left;
    247 }
    248 
    249 #menu ul ul li {
    250         border: 0;
    251         font: normal normal 12px/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    252         letter-spacing: 0;
    253         margin-top: 0;
    254         padding: 0;
    255         padding-left: 12px;
    256 }
    257 
    258 #menu ul ul li a {
    259         color: #000;
    260         text-decoration: none;
    261 }
    262 
    263 #menu ul ul li a:hover {
    264         border-bottom: 1px solid #809080;
    265 }
    266 
    267 #menu ul ul ul.children {
    268         font-size: 142%;
    269         padding-left: 4px;
    270 }
    271 
    272 #wp-calendar {
    273         border: 1px solid #ddd;
    274         empty-cells: show;
    275         font-size: 14px;
    276         margin: 0;
    277         width: 90%;
    278 }
    279 
    280 #wp-calendar #next a {
    281         padding-right: 10px;
    282         text-align: right;
    283 }
    284 
    285 #wp-calendar #prev a {
    286         padding-left: 10px;
    287         text-align: left;
    288 }
    289 
    290 #wp-calendar a {
    291         display: block;
    292         text-decoration: none;
    293 }
    294 
    295 #wp-calendar a:hover {
    296         background: #e0e6e0;
    297         color: #333;
    298 }
    299 
    300 #wp-calendar caption {
    301         color: #999;
    302         font-size: 16px;
    303         text-align: left;
    304 }
    305 
    306 #wp-calendar td {
    307         color: #ccc;
    308         font: normal 12px 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    309         letter-spacing: normal;
    310         padding: 2px 0;
    311         text-align: center;
    312 }
    313 
    314 #wp-calendar td.pad:hover {
    315         background: #fff;
    316 }
    317 
    318 #wp-calendar td:hover, #wp-calendar #today {
    319         background: #eee;
    320         color: #bbb;
    321 }
    322 
    323 #wp-calendar th {
    324         font-style: normal;
    325         text-transform: capitalize;
    326 }
    327 
    328 /* Captions & aligment */
    329 .aligncenter,
    330 div.aligncenter {
    331         display: block;
    332         margin-left: auto;
    333         margin-right: auto;
    334 }
    335 
    336 .alignleft {
    337         float: left;
    338 }
    339 
    340 .alignright {
    341         float: right;
    342 }
    343 
    344 .wp-caption {
    345         border: 1px solid #ddd;
    346         text-align: center;
    347         background-color: #f3f3f3;
    348         padding-top: 4px;
    349         margin: 10px;
    350         -moz-border-radius: 3px;
    351         -khtml-border-radius: 3px;
    352         -webkit-border-radius: 3px;
    353         border-radius: 3px;
    354 }
    355 
    356 .wp-caption img {
    357         margin: 0;
    358         padding: 0;
    359         border: 0 none;
    360 }
    361 
    362 .wp-caption p.wp-caption-text {
    363         font-size: 11px;
    364         line-height: 17px;
    365         padding: 0 4px 5px;
    366         margin: 0;
    367 }
    368 /* End captions & aligment */
  • wp-content/themes/classic/rtl.css

     
    1 /* Based on Arabic (RTL) version of WordPress Classic theme, converted by Serdal (Serdal.com) */
    2 
    3 #menu ul ul, #wp-calendar caption, #wp-calendar #prev a { text-align: right; }
    4 #wp-calendar #next a, .feedback { text-align: left; }
    5 
    6 blockquote {
    7         border-left: 0;
    8         border-right: 5px solid #ccc;
    9         margin-left: auto;
    10         margin-right: 1.5em;
    11         padding-left: 0;
    12         padding-right: 5px;
    13 }
    14 
    15 body { font-family: 'Geeza Pro', Tahoma, 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; }
    16 
    17 h2 { font: 95% 'Al Bayan', 'Traditional Arabic', "Times New Roman", Times, serif; }
    18 
    19 p, li, .feedback {
    20         font: 90%/175% 'Geeza Pro', Tahoma, 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    21         text-align: justify;
    22 }
    23 
    24 acronym, abbr, span.caps, h2, p, li, #header, #menu ul li, #menu ul ul li, #wp-calendar td, .feedback, .meta, .meta a { letter-spacing: normal; }
    25 
    26 #commentlist li ul {
    27         border-left: 0;
    28         border-right: 1px solid #ddd;
    29 }
    30 
    31 #commentlist li .avatar {
    32         margin-right: 0;
    33         margin-left: 12px;
    34 }
    35 
    36 #commentlist li .avatar {
    37         margin-right: 0;
    38         margin-left: 12px;
    39 }
    40 
    41 #content {
    42         margin: 30px 3em 0 13em;
    43         padding-right: 0;
    44         padding-left: 60px;
    45 }
    46 
    47 #header {
    48         border-left: solid 1px #9a9;
    49         border-right: solid 1px #565;
    50         font: normal normal 230% 'Al Bayan', 'Traditional Arabic', 'Times New Roman', Times, serif;
    51         padding: 15px 60px 15px 10px;
    52 }
    53 
    54 #menu {
    55         border-left: 0;
    56         border-right: 1px dotted #ccc;
    57         padding: 20px 30px 10px 0;
    58         right: auto;
    59         left: 2px;
    60 }
    61 
    62 #menu form { margin: 0 13px 0 0; }
    63 
    64 #menu ul {
    65         padding-left: 0;
    66         padding-right: 3px;
    67 }
    68 
    69 #menu ul li { font: normal normal 110% 'Geeza Pro', Tahoma, 'Times New Roman', Times, serif; }
    70 
    71 #menu ul ul li {
    72         font: normal normal 12px/115% 'Geeza Pro', Tahoma, 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    73         padding-left: 0;
    74         padding-right: 12px;
    75 }
    76 
    77 #menu ul ul ul.children {
    78         padding-left: 0;
    79         padding-right: 4px;
    80 }
    81 
    82 #wp-calendar #next a {
    83         padding-right: 0;
    84         padding-left: 10px;
    85 }
    86 
    87 #wp-calendar #prev a {
    88         padding-left: 0;
    89         padding-right: 10px;
    90 }
    91 
    92 #wp-calendar td { font: normal normal 12px 'Geeza Pro', Tahoma, 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; }
  • wp-content/themes/classic/comments.php

     
    1 <?php
    2 /**
    3  * @package WordPress
    4  * @subpackage Classic_Theme
    5  */
    6 
    7 if ( post_password_required() ) : ?>
    8 <p><?php _e('Enter your password to view comments.'); ?></p>
    9 <?php return; endif; ?>
    10 
    11 <h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
    12 <?php if ( comments_open() ) : ?>
    13         <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a>
    14 <?php endif; ?>
    15 </h2>
    16 
    17 <?php if ( have_comments() ) : ?>
    18 <ol id="commentlist">
    19 
    20 <?php foreach ($comments as $comment) : ?>
    21         <li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
    22         <?php echo get_avatar( $comment, 32 ); ?>
    23         <?php comment_text() ?>
    24         <p><cite><?php comment_type(_x('Comment', 'noun'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
    25         </li>
    26 
    27 <?php endforeach; ?>
    28 
    29 </ol>
    30 
    31 <?php else : // If there are no comments yet ?>
    32         <p><?php _e('No comments yet.'); ?></p>
    33 <?php endif; ?>
    34 
    35 <p><?php post_comments_feed_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
    36 <?php if ( pings_open() ) : ?>
    37         <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Universal Resource Locator">URL</abbr>'); ?></a>
    38 <?php endif; ?>
    39 </p>
    40 
    41 <?php if ( comments_open() ) : ?>
    42 <h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>
    43 
    44 <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
    45 <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() ) );?></p>
    46 <?php else : ?>
    47 
    48 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    49 
    50 <?php if ( is_user_logged_in() ) : ?>
    51 
    52 <p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account') ?>"><?php _e('Log out &raquo;'); ?></a></p>
    53 
    54 <?php else : ?>
    55 
    56 <p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" />
    57 <label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    58 
    59 <p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" />
    60 <label for="email"><small><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></small></label></p>
    61 
    62 <p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
    63 <label for="url"><small><?php _e('Website'); ?></small></label></p>
    64 
    65 <?php endif; ?>
    66 
    67 <!--<p><small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s'), allowed_tags()); ?></small></p>-->
    68 
    69 <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
    70 
    71 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />
    72 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    73 </p>
    74 <?php do_action('comment_form', $post->ID); ?>
    75 
    76 </form>
    77 
    78 <?php endif; // If registration required and not logged in ?>
    79 
    80 <?php else : // Comments are closed ?>
    81 <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
    82 <?php endif; ?>
  • wp-content/themes/classic/comments-popup.php

     
    1 <?php
    2 /**
    3  * @package WordPress
    4  * @subpackage Classic_Theme
    5  */
    6 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    7 <html xmlns="http://www.w3.org/1999/xhtml">
    8 <head>
    9      <title><?php echo get_option('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title>
    10 
    11         <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    12         <style type="text/css" media="screen">
    13                 @import url( <?php bloginfo('stylesheet_url'); ?> );
    14                 body { margin: 3px; }
    15         </style>
    16 
    17 </head>
    18 <body id="commentspopup">
    19 
    20 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1>
    21 
    22 <?php
    23 /* Don't remove these lines. */
    24 add_filter('comment_text', 'popuplinks');
    25 if ( have_posts() ) :
    26 while( have_posts()) : the_post();
    27 ?>
    28 
    29 <h2 id="comments"><?php _e("Comments"); ?></h2>
    30 
    31 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p>
    32 
    33 <?php if ( pings_open() ) { ?>
    34 <p><?php _e("The <abbr title=\"Universal Resource Locator\">URL</abbr> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p>
    35 <?php } ?>
    36 
    37 <?php
    38 // this line is WordPress' motor, do not delete it.
    39 $commenter = wp_get_current_commenter();
    40 extract($commenter);
    41 $comments = get_approved_comments($id);
    42 $commentstatus = get_post($id);
    43 if ( post_password_required($commentstatus) ) {  // and it doesn't match the cookie
    44         echo(get_the_password_form());
    45 } else { ?>
    46 
    47 <?php if ($comments) { ?>
    48 <ol id="commentlist">
    49 <?php foreach ($comments as $comment) { ?>
    50         <li id="comment-<?php comment_ID() ?>">
    51         <?php comment_text() ?>
    52         <p><cite><?php comment_type(_x('Comment', 'noun'), __('Trackback'), __('Pingback')); ?> <?php _e("by"); ?> <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
    53         </li>
    54 
    55 <?php } // end for each comment ?>
    56 </ol>
    57 <?php } else { // this is displayed if there are no comments so far ?>
    58         <p><?php _e("No comments yet."); ?></p>
    59 <?php } ?>
    60 
    61 <?php if ( comments_open($commentstatus) ) { ?>
    62 <h2><?php _e("Leave a comment"); ?></h2>
    63 <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>
    64 
    65 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    66 <?php if ( is_user_logged_in() ) : ?>
    67 <p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(); ?>" title="<?php echo esc_attr(__('Log out of this account')); ?>"><?php _e('Log out &raquo;'); ?></a></p>
    68 <?php else : ?>
    69         <p>
    70           <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" />
    71            <label for="author"><?php _e("Name"); ?></label>
    72         </p>
    73 
    74         <p>
    75           <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" />
    76            <label for="email"><?php _e("E-mail"); ?></label>
    77         </p>
    78 
    79         <p>
    80           <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" />
    81            <label for="url"><?php _e("<abbr title=\"Universal Resource Locator\">URL</abbr>"); ?></label>
    82         </p>
    83 <?php endif; ?>
    84 
    85         <p>
    86           <label for="comment"><?php _e("Your Comment"); ?></label>
    87         <br />
    88           <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
    89         </p>
    90 
    91         <p>
    92           <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    93           <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" />
    94           <input name="submit" type="submit" tabindex="5" value="<?php esc_attr_e("Say It!"); ?>" />
    95         </p>
    96         <?php do_action('comment_form', $post->ID); ?>
    97 </form>
    98 <?php } else { // comments are closed ?>
    99 <p><?php _e("Sorry, the comment form is closed at this time."); ?></p>
    100 <?php }
    101 } // end password check
    102 ?>
    103 
    104 <div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div>
    105 
    106 <?php // if you delete this the sky will fall on your head
    107 endwhile; //endwhile have_posts()
    108 else: //have_posts()
    109 ?>
    110 <p>Sorry, no posts matched your criteria.</p>
    111 <?php endif; ?>
    112 
    113 <!-- // this is just the end of the motor - don't touch that line either :) -->
    114 <?php //} ?>
    115 <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>
    116 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
    117 <script type="text/javascript">
    118 <!--
    119 document.onkeypress = function esc(e) {
    120         if(typeof(e) == "undefined") { e=event; }
    121         if (e.keyCode == 27) { self.close(); }
    122 }
    123 // -->
    124 </script>
    125 </body>
    126 </html>
  • wp-content/themes/classic/index.php

     
    1 <?php
    2 /**
    3  * @package WordPress
    4  * @subpackage Classic_Theme
    5  */
    6 get_header();
    7 ?>
    8 
    9 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    10 
    11 <?php the_date('','<h2>','</h2>'); ?>
    12 
    13 <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    14          <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    15         <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> &#8212; <?php the_tags(__('Tags: '), ', ', ' &#8212; '); ?> <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>
    16 
    17         <div class="storycontent">
    18                 <?php the_content(__('(more...)')); ?>
    19         </div>
    20 
    21         <div class="feedback">
    22                 <?php wp_link_pages(); ?>
    23                 <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    24         </div>
    25 
    26 </div>
    27 
    28 <?php comments_template(); // Get wp-comments.php template ?>
    29 
    30 <?php endwhile; else: ?>
    31 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    32 <?php endif; ?>
    33 
    34 <?php posts_nav_link(' &#8212; ', __('&laquo; Newer Posts'), __('Older Posts &raquo;')); ?>
    35 
    36 <?php get_footer(); ?>
  • wp-content/themes/classic/functions.php

     
    1 <?php
    2 /**
    3  * @package WordPress
    4  * @subpackage Classic_Theme
    5  */
    6 
    7 automatic_feed_links();
    8 
    9 if ( function_exists('register_sidebar') )
    10         register_sidebar(array(
    11                 'before_widget' => '<li id="%1$s" class="widget %2$s">',
    12                 'after_widget' => '</li>',
    13                 'before_title' => '',
    14                 'after_title' => '',
    15         ));
    16 
    17 ?>
  • wp-content/themes/classic/header.php

     
    1 <?php
    2 /**
    3  * @package WordPress
    4  * @subpackage Classic_Theme
    5  */
    6 ?>
    7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    8 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    9 
    10 <head profile="http://gmpg.org/xfn/11">
    11         <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    12 
    13         <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    14 
    15         <style type="text/css" media="screen">
    16                 @import url( <?php bloginfo('stylesheet_url'); ?> );
    17         </style>
    18 
    19         <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    20         <?php wp_get_archives('type=monthly&format=link'); ?>
    21         <?php //comments_popup_script(); // off by default ?>
    22         <?php wp_head(); ?>
    23 </head>
    24 
    25 <body <?php body_class(); ?>>
    26 <div id="rap">
    27 <h1 id="header"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
    28 
    29 <div id="content">
    30 <!-- end header -->