Ticket #10654: classic_as_child.diff
| File classic_as_child.diff, 29.2 KB (added by , 16 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"> 1 <div id="primary" class="widget-area"> 2 <ul class="xoxo"> 3 <?php if ( !dynamic_sidebar('primary-widget-area') ) : // begin primary widget area ?> 4 <?php wp_list_pages('title_li=' . __('Pages:')); ?> 5 <?php wp_list_bookmarks('title_after=&title_before='); ?> 6 <?php wp_list_categories('title_li=' . __('Categories:')); ?> 7 <li id="search"> 8 <label for="s"><?php _e('Search:'); ?></label> 9 <form id="searchform" method="get" action="<?php bloginfo('url'); ?>"> 10 <div> 11 <input type="text" name="s" id="s" size="15" /><br /> 12 <input type="submit" value="<?php esc_attr_e('Search'); ?>" /> 13 </div> 14 </form> 15 </li> 16 <li id="archives"><?php _e('Archives:'); ?> 17 <ul> 18 <?php wp_get_archives(array('type' => 'monthly')); ?> 19 </ul> 20 </li> 21 <li id="meta"><?php _e('Meta:'); ?> 22 <ul> 23 <?php wp_register(); ?> 24 <li><?php wp_loginout(); ?></li> 25 <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> 26 <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> 27 <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> 28 <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> 29 <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> 30 <?php wp_meta(); ?> 31 </ul> 32 </li> 33 <?php endif; // end primary widget area ?> 34 </ul> 35 </div><!-- #primary .widget-area --> 9 36 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('url'); ?>"> 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(array('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 --> 37 <?php if ( is_active_sidebar('secondary-widget-area') ) : // Nothing here by default and design ?> 38 <div id="secondary" class="widget-area"> 39 <ul class="xoxo"> 40 <?php dynamic_sidebar( 'secondary-widget-area' ); ?> 41 </ul> 42 </div><!-- #secondary .widget-area --> 43 <?php endif; ?> 44 No newline at end of file -
wp-content/themes/classic/footer.php
1 <?php2 /**3 * @package WordPress4 * @subpackage Classic_Theme5 */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 1 /* 2 2 Theme Name: WordPress Classic 3 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 4 Description: The original WordPress theme that graced versions 1.2.x and prior. Now updated as a twentyten child theme 5 Version: 2.0 6 Author: Dave Shea, Aaron Brazell 7 Tags: mantle color, variable width, two columns, widgets, child theme 8 Template: twentyten 8 9 9 10 Default WordPress by Dave Shea || http://mezzoblue.com 10 11 Modifications by Matthew Mullenweg || http://photomatt.net 12 Child Theming by Aaron Brazell || http://technosailor.com 11 13 This is just a basic layout, with only the bare minimum defined. 12 14 Please tweak this and make it your own. :) 13 15 */ 14 16 17 15 18 .screen-reader-text { 16 19 position: absolute; 17 20 left: -1000em; … … 100 103 font-weight: bold; 101 104 } 102 105 103 .credit{106 #footer { 104 107 background: #90a090; 105 108 border-top: 3px double #aba; 106 109 color: #fff; … … 110 113 text-align: center; 111 114 } 112 115 113 .credit a:link, .credita:hover {116 #footer a:link, #footer a:hover { 114 117 color: #fff; 115 118 } 116 119 … … 198 201 text-decoration: underline; 199 202 } 200 203 201 # menu{204 #primary { 202 205 background: #fff; 203 206 border-left: 1px dotted #ccc; 204 207 border-top: 3px solid #e0e6e0; … … 209 212 width: 11em; 210 213 } 211 214 212 # menuform {215 #primary form { 213 216 margin: 0 0 0 13px; 214 217 } 215 218 216 # menuinput#s {219 #primary input#s { 217 220 width: 80%; 218 221 background: #eee; 219 222 border: 1px solid #999; 220 223 color: #000; 221 224 } 222 225 223 # menuul {226 #primary ul { 224 227 color: #ccc; 225 228 font-weight: bold; 226 229 list-style-type: none; … … 229 232 text-transform: lowercase; 230 233 } 231 234 232 # menuul li {235 #primary ul li { 233 236 font: italic normal 110% 'Times New Roman', Times, serif; 234 237 letter-spacing: 0.1em; 235 238 margin-top: 10px; 236 239 padding-bottom: 2px; /*border-bottom: dotted 1px #ccc;*/ 237 240 } 238 241 239 # menuul ul {242 #primary ul ul { 240 243 font-variant: normal; 241 244 font-weight: normal; 242 245 line-height: 100%; … … 246 249 text-align: left; 247 250 } 248 251 249 # menuul ul li {252 #primary ul ul li { 250 253 border: 0; 251 254 font: normal normal 12px/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; 252 255 letter-spacing: 0; … … 255 258 padding-left: 12px; 256 259 } 257 260 258 # menuul ul li a {261 #primary ul ul li a { 259 262 color: #000; 260 263 text-decoration: none; 261 264 } 262 265 263 # menuul ul li a:hover {266 #primary ul ul li a:hover { 264 267 border-bottom: 1px solid #809080; 265 268 } 266 269 267 # menuul ul ul.children {270 #primary ul ul ul.children { 268 271 font-size: 142%; 269 272 padding-left: 4px; 270 273 } … … 366 369 margin: 0; 367 370 } 368 371 /* End captions & aligment */ 372 373 .screen-reader-text { 374 position: absolute; 375 left: -1000em; 376 } 377 378 a { 379 color: #675; 380 } 381 382 a img { 383 border: none; 384 } 385 386 a:visited { 387 color: #342; 388 } 389 390 a:hover { 391 color: #9a8; 392 } 393 394 acronym, abbr { 395 border-bottom: 1px dashed #333; 396 } 397 398 acronym, abbr, span.caps { 399 font-size: 90%; 400 letter-spacing: .07em; 401 } 402 403 acronym, abbr { 404 cursor: help; 405 } 406 407 blockquote { 408 border-left: 5px solid #ccc; 409 margin-left: 1.5em; 410 padding-left: 5px; 411 } 412 413 body { 414 background: #fff; 415 border: 2px solid #565; 416 border-bottom: 1px solid #565; 417 border-top: 3px solid #565; 418 color: #000; 419 font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; 420 margin: 0; 421 padding: 0; 422 } 423 424 cite { 425 font-size: 90%; 426 font-style: normal; 427 } 428 429 h2 { 430 border-bottom: 1px dotted #ccc; 431 font: 95% "Times New Roman", Times, serif; 432 letter-spacing: 0.2em; 433 margin: 15px 0 2px 0; 434 padding-bottom: 2px; 435 } 436 437 h3 { 438 border-bottom: 1px dotted #eee; 439 font-family: "Times New Roman", Times, serif; 440 margin-top: 0; 441 } 442 443 ol#comments li p { 444 font-size: 100%; 445 } 446 447 p, li, .feedback { 448 font: 90%/175% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; 449 letter-spacing: -1px; 450 } 451 452 /* classes used by the_meta() */ 453 ul.post-meta { 454 list-style: none; 455 } 456 457 ul.post-meta span.post-meta-key { 458 font-weight: bold; 459 } 460 461 #footer { 462 background: #90a090; 463 border-top: 3px double #aba; 464 color: #fff; 465 font-size: 11px; 466 margin: 10px 0 0 0; 467 padding: 3px; 468 text-align: center; 469 } 470 471 #footer a:link, #footer a:hover { 472 color: #fff; 473 } 474 475 .feedback { 476 color: #ccc; 477 text-align: right; 478 clear: both; 479 } 480 481 .meta { 482 font-size: .75em; 483 } 484 485 .meta li, ul.post-meta li { 486 display: inline; 487 } 488 489 .meta ul { 490 display: inline; 491 list-style: none; 492 margin: 0; 493 padding: 0; 494 } 495 496 .meta, .meta a { 497 color: #808080; 498 font-weight: normal; 499 letter-spacing: 0; 500 } 501 502 .storytitle { 503 margin: 0; 504 } 505 506 .storytitle a { 507 text-decoration: none; 508 } 509 510 #commentform #author, #commentform #email, #commentform #url, #commentform textarea { 511 background: #fff; 512 border: 1px solid #333; 513 padding: .2em; 514 } 515 516 #commentform textarea { 517 width: 100%; 518 } 519 520 #commentlist li ul { 521 border-left: 1px solid #ddd; 522 font-size: 110%; 523 list-style-type: none; 524 } 525 526 #commentlist li .avatar { 527 float: right; 528 margin-right: 25px; 529 border: 1px dotted #ccc; 530 padding: 2px; 531 } 532 533 #content { 534 margin: 30px 13em 0 3em; 535 padding-right: 60px; 536 } 537 538 #header { 539 background: #90a090; 540 border-bottom: 3px double #aba; 541 border-left: 1px solid #9a9; 542 border-right: 1px solid #565; 543 border-top: 1px solid #9a9; 544 font: italic normal 230% 'Times New Roman', Times, serif; 545 letter-spacing: 0.2em; 546 margin: 0; 547 padding: 15px 10px 15px 60px; 548 } 549 550 #header a { 551 color: #fff; 552 text-decoration: none; 553 } 554 555 #header a:hover { 556 text-decoration: underline; 557 } 558 559 #primary { 560 background: #fff; 561 border-left: 1px dotted #ccc; 562 border-top: 3px solid #e0e6e0; 563 padding: 20px 0 10px 30px; 564 position: absolute; 565 right: 2px; 566 top: 0; 567 width: 11em; 568 } 569 570 #primary form { 571 margin: 0 0 0 13px; 572 } 573 574 #primary input#s { 575 width: 80%; 576 background: #eee; 577 border: 1px solid #999; 578 color: #000; 579 } 580 581 #primary ul { 582 color: #ccc; 583 font-weight: bold; 584 list-style-type: none; 585 margin: 0; 586 padding-left: 3px; 587 text-transform: lowercase; 588 } 589 590 #primary ul li { 591 font: italic normal 110% 'Times New Roman', Times, serif; 592 letter-spacing: 0.1em; 593 margin-top: 10px; 594 padding-bottom: 2px; /*border-bottom: dotted 1px #ccc;*/ 595 } 596 597 #primary ul ul { 598 font-variant: normal; 599 font-weight: normal; 600 line-height: 100%; 601 list-style-type: none; 602 margin: 0; 603 padding: 0; 604 text-align: left; 605 } 606 607 #primary ul ul li { 608 border: 0; 609 font: normal normal 12px/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; 610 letter-spacing: 0; 611 margin-top: 0; 612 padding: 0; 613 padding-left: 12px; 614 } 615 616 #primary ul ul li a { 617 color: #000; 618 text-decoration: none; 619 } 620 621 #primary ul ul li a:hover { 622 border-bottom: 1px solid #809080; 623 } 624 625 #primary ul ul ul.children { 626 font-size: 142%; 627 padding-left: 4px; 628 } 629 630 #wp-calendar { 631 border: 1px solid #ddd; 632 empty-cells: show; 633 font-size: 14px; 634 margin: 0; 635 width: 90%; 636 } 637 638 #wp-calendar #next a { 639 padding-right: 10px; 640 text-align: right; 641 } 642 643 #wp-calendar #prev a { 644 padding-left: 10px; 645 text-align: left; 646 } 647 648 #wp-calendar a { 649 display: block; 650 text-decoration: none; 651 } 652 653 #wp-calendar a:hover { 654 background: #e0e6e0; 655 color: #333; 656 } 657 658 #wp-calendar caption { 659 color: #999; 660 font-size: 16px; 661 text-align: left; 662 } 663 664 #wp-calendar td { 665 color: #ccc; 666 font: normal 12px 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; 667 letter-spacing: normal; 668 padding: 2px 0; 669 text-align: center; 670 } 671 672 #wp-calendar td.pad:hover { 673 background: #fff; 674 } 675 676 #wp-calendar td:hover, #wp-calendar #today { 677 background: #eee; 678 color: #bbb; 679 } 680 681 #wp-calendar th { 682 font-style: normal; 683 text-transform: capitalize; 684 } 685 686 /* Captions & aligment */ 687 .aligncenter, 688 div.aligncenter { 689 display: block; 690 margin-left: auto; 691 margin-right: auto; 692 } 693 694 .alignleft { 695 float: left; 696 } 697 698 .alignright { 699 float: right; 700 } 701 702 .wp-caption { 703 border: 1px solid #ddd; 704 text-align: center; 705 background-color: #f3f3f3; 706 padding-top: 4px; 707 margin: 10px; 708 -moz-border-radius: 3px; 709 -khtml-border-radius: 3px; 710 -webkit-border-radius: 3px; 711 border-radius: 3px; 712 } 713 714 .wp-caption img { 715 margin: 0; 716 padding: 0; 717 border: 0 none; 718 } 719 720 .wp-caption p.wp-caption-text { 721 font-size: 11px; 722 line-height: 17px; 723 padding: 0 4px 5px; 724 margin: 0; 725 } 726 /* End captions & aligment */ 727 No newline at end of file -
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 <?php2 /**3 * @package WordPress4 * @subpackage Classic_Theme5 */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"); ?>">»</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() ?> — <?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 »'); ?></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="58" 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 <?php2 /**3 * @package WordPress4 * @subpackage Classic_Theme5 */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 <?php23 /* 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 <?php38 // 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 cookie44 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() ?> — <?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 »'); ?></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 check102 ?>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 head107 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 <?php2 /**3 * @package WordPress4 * @subpackage Classic_Theme5 */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(',') ?> — <?php the_tags(__('Tags: '), ', ', ' — '); ?> <?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(' — ', __('« Newer Posts'), __('Older Posts »')); ?>35 36 <?php get_footer(); ?> -
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(); ?>> 1 <!DOCTYPE html> 2 <html <?php language_attributes(); ?>> 3 <head> 4 <title><?php 5 if ( is_single() ) { 6 single_post_title(); echo ' | '; bloginfo('name'); 7 } elseif ( is_home() || is_front_page() ) { 8 bloginfo('name'); echo ' | '; bloginfo('description'); twentyten_the_page_number(); 9 } elseif ( is_page() ) { 10 single_post_title(''); echo ' | '; bloginfo('name'); 11 } elseif ( is_search() ) { 12 printf(__('Search results for "%s"', 'twentyten'), esc_html($s)); twentyten_the_page_number(); echo ' | '; bloginfo('name'); 13 } elseif ( is_404() ) { 14 _e('Not Found', 'twentyten'); echo ' | '; bloginfo('name'); 15 } else { 16 wp_title(''); echo ' | '; bloginfo('name'); twentyten_the_page_number(); 17 } 18 ?></title> 9 19 10 <head profile="http://gmpg.org/xfn/11"> 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 20 <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 12 21 13 <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> 22 <link rel="profile" href="http://gmpg.org/xfn/11" /> 23 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" /> 24 <link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" /> 14 25 15 <style type="text/css" media="screen"> 16 @import url( <?php bloginfo('stylesheet_url'); ?> ); 17 </style> 26 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 18 27 19 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> 20 <?php wp_get_archives(array('type' => 'monthly', 'format' => 'link')); ?> 21 <?php //comments_popup_script(); // off by default ?> 28 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 29 22 30 <?php wp_head(); ?> 23 31 </head> 24 32 25 33 <body <?php body_class(); ?>> 26 <div id="rap"> 27 <h1 id="header"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1> 34 <div id="wrapper" class="hfeed"> 28 35 29 <div id="content"> 30 <!-- end header --> 36 <div id="header"> 37 <div id="masthead"> 38 39 <div id="branding"> 40 <div id="site-title"><span><a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></div> 41 42 </div><!-- #branding --> 43 44 </div><!-- #masthead --> 45 </div><!-- #header --> 46 47 <div id="main">