Changeset 20010
- Timestamp:
- 02/28/2012 05:24:57 AM (13 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/comments.php
r19960 r20010 45 45 46 46 <ol class="commentlist"> 47 <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment' ) ); ?>48 </ol> 47 <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> 48 </ol><!-- .commentlist --> 49 49 50 50 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> -
trunk/wp-content/themes/twentytwelve/functions.php
r20007 r20010 262 262 case 'pingback' : 263 263 case 'trackback' : 264 ?> 265 <li class="post pingback"> 266 <p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?></p> 264 // Display trackbacks differently than normal comments. 265 ?> 266 <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>"> 267 <p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?></p> 267 268 <?php 268 269 break; 269 270 default : 271 // Proceed with normal comments. 270 272 ?> 271 273 <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 272 274 <article id="comment-<?php comment_ID(); ?>" class="comment"> 273 <footer class="comment-meta"> 274 <div class="comment-author vcard"> 275 <?php 276 $avatar_size = 68; 277 if ( '0' != $comment->comment_parent ) 278 $avatar_size = 39; 279 280 echo get_avatar( $comment, $avatar_size ); 281 282 /* translators: 1: comment author, 2: date and time */ 283 printf( __( '%1$s on %2$s <span class="says">said:</span>', 'twentytwelve' ), 284 sprintf( '<span class="fn">%s</span>', get_comment_author_link() ), 285 sprintf( '<a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a>', 286 esc_url( get_comment_link( $comment->comment_ID ) ), 287 get_comment_time( 'c' ), 288 /* translators: 1: date, 2: time */ 289 sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) 290 ) 291 ); 292 ?> 293 294 <?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 295 </div><!-- .comment-author .vcard --> 296 297 <?php if ( $comment->comment_approved == '0' ) : ?> 298 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></em> 299 <br /> 300 <?php endif; ?> 301 </footer> 302 303 <div class="comment-content"><?php comment_text(); ?></div> 275 <header class="comment-meta comment-author vcard"> 276 <?php 277 echo get_avatar( $comment, 44 ); 278 279 printf( '<cite class="fn">%s</cite>', get_comment_author_link() ); 280 printf( '<a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a>', 281 esc_url( get_comment_link( $comment->comment_ID ) ), 282 get_comment_time( 'c' ), 283 /* translators: 1: date, 2: time */ 284 sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) 285 ); 286 ?> 287 <?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 288 </header> 289 290 <?php if ( '0' == $comment->comment_approved ) : ?> 291 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p> 292 <?php endif; ?> 293 294 <section class="comment post-content"> 295 <?php comment_text(); ?> 296 </section> 304 297 305 298 <div class="reply"> … … 307 300 </div><!-- .reply --> 308 301 </article><!-- #comment-## --> 309 310 <?php 311 break; 312 endswitch; 302 <?php 303 break; 304 endswitch; // end comment_type check 313 305 } 314 306 endif; -
trunk/wp-content/themes/twentytwelve/style.css
r20007 r20010 559 559 } 560 560 561 /* comments.css.scss 562 * Comment styling 563 * ------------------------------------------------------------------ */ 564 #comments-title { 565 margin-bottom: 48px; 566 margin-bottom: 3.428571429rem; 567 font-size: 16px; 568 font-size: 1.142857143rem; 569 line-height: 1.5; 570 font-weight: normal; 571 } 572 573 #comments article { 574 zoom: 1; 575 margin: 24px 0; 576 margin: 1.714285714rem 0; 577 } 578 #comments article:before, #comments article:after { 579 display: table; 580 content: ""; 581 } 582 #comments article:after { 583 clear: both; 584 } 585 #comments article header { 586 position: relative; 587 zoom: 1; 588 margin: 0 0 48px 0; 589 margin: 0 0 3.428571429rem 0; 590 } 591 #comments article header:before, #comments article header:after { 592 display: table; 593 content: ""; 594 } 595 #comments article header:after { 596 clear: both; 597 } 598 #comments article header img { 599 float: left; 600 padding: 0; 601 line-height: 0; 602 } 603 #comments article header cite, 604 #comments article header time { 605 display: block; 606 margin-left: 85px; 607 margin-left: 6.071428571rem; 608 } 609 #comments article header cite { 610 font-style: normal; 611 font-size: 15px; 612 font-size: 1.071428571rem; 613 line-height: 1.6; 614 } 615 #comments article header time { 616 line-height: 1.714285714; 617 text-decoration: none; 618 font-size: 12px; 619 font-size: 0.857142857rem; 620 color: #5e5e5e; 621 } 622 #comments article header a { 623 text-decoration: none; 624 color: #5e5e5e; 625 } 626 #comments article header a:hover { 627 color: #13609e; 628 } 629 #comments article header cite a { 630 color: #444444; 631 } 632 #comments article header cite a:hover { 633 text-decoration: underline; 634 } 635 #comments article header h4 { 636 position: absolute; 637 top: 0; 638 right: 0; 639 padding: 6px 12px; 640 padding: 0.428571429rem 0.857142857rem; 641 font-size: 12px; 642 font-size: 0.857142857rem; 643 font-weight: normal; 644 color: #fff; 645 background-color: #0088d0; 646 background-repeat: repeat-x; 647 background-image: -khtml-gradient(linear, left top, left bottom, from(#009cee), to(#0088d0)); 648 background-image: -moz-linear-gradient(top, #009cee, #0088d0); 649 background-image: -ms-linear-gradient(top, #009cee, #0088d0); 650 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #009cee), color-stop(100%, #0088d0)); 651 background-image: -webkit-linear-gradient(top, #009cee, #0088d0); 652 background-image: -o-linear-gradient(top, #009cee, #0088d0); 653 background-image: linear-gradient(top, #009cee, #0088d0); 654 -webkit-border-radius: 3px; 655 -moz-border-radius: 3px; 656 border-radius: 3px; 657 border: 1px solid #007cbd; 658 } 659 #comments article p { 660 margin: 24px 0; 661 margin: 1.714285714rem 0; 662 line-height: 1.714285714; 663 } 664 665 a.comment-reply-link { 666 font-size: 13px; 667 font-size: 0.928571429rem; 668 line-height: 1.846153846; 669 color: #686868; 670 } 671 a.comment-reply-link:hover { 672 color: #13609e; 673 } 674 675 /*--------------------------------------------------------- 676 Form 677 ------------------------------------------------------------ */ 678 #respond { 679 margin-top: 48px; 680 margin-top: 3.428571429rem; 681 } 682 #respond h3#reply-title { 683 font-size: 16px; 684 font-size: 1.142857143rem; 685 line-height: 1.5; 686 } 687 #respond h3#reply-title #cancel-comment-reply-link { 688 margin-left: 10px; 689 margin-left: 0.714285714rem; 690 font-weight: normal; 691 font-size: 12px; 692 font-size: 0.857142857rem; 693 } 694 #respond form { 695 margin: 24px 0; 696 margin: 1.714285714rem 0; 697 } 698 #respond form p { 699 zoom: 1; 700 margin: 11px 0; 701 margin: 0.785714286rem 0; 702 } 703 #respond form p:before, #respond form p:after { 704 display: table; 705 content: ""; 706 } 707 #respond form p:after { 708 clear: both; 709 } 710 #respond form p.logged-in-as { 711 margin-bottom: 24px; 712 margin-bottom: 1.714285714rem; 713 } 714 #respond form label { 715 display: block; 716 line-height: 1.714285714; 717 } 718 #respond form input[type="text"], 719 #respond form textarea { 720 font-family: inherit; 721 line-height: 1.714285714; 722 padding: 10px; 723 padding: 0.714285714rem; 724 border: 1px solid #d5d2ca; 725 -webkit-border-radius: 3px; 726 -moz-border-radius: 3px; 727 border-radius: 3px; 728 width: 96%; 729 } 730 @media screen and (min-width: 600px) { 731 #respond form input[type="text"] { 732 width: 46.333333333%; 733 } 734 #respond form textarea.blog-textarea { 735 width: 79.666666667%; 736 } 737 } 738 #respond form p.form-allowed-tags { 739 margin: 0; 740 font-size: 12px; 741 font-size: 0.857142857rem; 742 line-height: 2; 743 color: #5e5e5e; 744 } 745 746 /* widgets.css.scss 747 * All widget styling 748 * ------------------------------------------------------------------ */ 749 #wp-calendar { 750 margin: 0; 751 width: 100%; 752 font-size: 13px; 753 font-size: 0.928571429rem; 754 line-height: 1.846153846; 755 color: #686868; 756 } 757 #wp-calendar th, 758 #wp-calendar td, 759 #wp-calendar caption { 760 text-align: left; 761 } 762 763 .widget_search label { 764 display: block; 765 font-size: 13px; 766 font-size: 0.928571429rem; 767 line-height: 1.846153846; 768 } 769 .widget_search input[type="text"] { 770 padding: 6px; 771 padding: 0.428571429rem; 772 border: 1px solid #ccc; 773 -webkit-border-radius: 3px; 774 -moz-border-radius: 3px; 775 border-radius: 3px; 776 } 777 561 778 /* archive.css.scss 562 779 * Styling for the archive view
Note: See TracChangeset
for help on using the changeset viewer.