Changeset 4705
- Timestamp:
- 07/18/2011 09:17:15 PM (14 years ago)
- Location:
- trunk/bp-themes/bp-default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/css/default-rtl.css
r4685 r4705 335 335 margin: 0 0 0 10px; 336 336 } 337 .commentlist ul.children div.comment-options {338 margin-right: auto;339 margin-left: 0;340 }341 337 #comments ol.commentlist ol { 342 338 margin: 0 2.5em 18px 0; 343 339 } 344 div.comment-meta {345 float: right;346 }347 div.comment-meta em {348 float: left;349 }350 div.comment-meta p {351 float: right;352 }353 div.comment-meta .comment-options {354 float: left;355 margin-right: auto;356 margin-left: 10px;357 }358 .comment-entry {359 float: right;360 }361 340 #reply-title small { 362 341 float: left; … … 374 353 margin-right: 30px; 375 354 margin-left: auto; 355 } 356 .comment-options .comment-reply-link, 357 .comment-options .comment-edit-link { 358 margin-left: 5px; 359 margin-right: auto; 376 360 } 377 361 -
trunk/bp-themes/bp-default/_inc/css/default.css
r4704 r4705 739 739 overflow: hidden; 740 740 } 741 .comment-entry {742 float: left;743 }744 741 ul.children .comment-entry { 745 742 margin-bottom: 10px; … … 747 744 div.comment-meta { 748 745 color: #888; 749 float: left;750 746 font-size: 11px; 751 747 margin: 15px 0; 752 748 width: 100%; 753 }754 div.comment-meta p {755 float: left;756 margin-bottom: 0;757 }758 div.comment-meta .comment-options {759 float: right;760 margin-right: 10px;761 749 } 762 750 div.comment-meta em { … … 796 784 margin: 0 0 10px 0; 797 785 } 798 .commentlist ul.children div.comment-options {799 margin-right: 0;800 }801 786 .commentlist ul.children li { 802 787 border-top: 2px solid #fffeff; … … 850 835 padding: 0; 851 836 } 837 .comment-options { 838 margin: 10px 0 1px; 839 } 840 .comment-options .comment-reply-link, 841 .comment-options .comment-edit-link { 842 font: normal 11px/20px Arial, Tahoma, Verdana, sans-serif; 843 margin-right: 5px; 844 padding: 4px 8px; 845 } 846 .commentlist ul.children div.comment-options { 847 margin-bottom: 10px; 848 } 849 852 850 853 851 /*-------------------------------------------------------------- … … 1287 1285 } 1288 1286 a.bp-primary-action, 1289 .comment-reply-link,1290 1287 #reply-title small a { 1291 1288 font-size: 11px; … … 1294 1291 } 1295 1292 a.bp-primary-action span, 1296 .comment-reply-link span,1297 1293 #reply-title small a span { 1298 1294 background: #999; … … 1306 1302 } 1307 1303 a.bp-primary-action:hover span, 1308 .comment-reply-link:hover span,1309 1304 #reply-title small a:hover span { 1310 1305 background: #555; … … 1704 1699 input[type=reset], 1705 1700 ul.button-nav li a, 1706 div.generic-button a { 1701 div.generic-button a, 1702 .comment-reply-link { 1707 1703 background: #fff; 1708 1704 background: -webkit-gradient(linear, left top, left bottom, from(white), to(#ededed)); … … 1730 1726 ul.button-nav li a:hover, 1731 1727 ul.button-nav li.current a, 1732 div.generic-button a:hover { 1728 div.generic-button a:hover, 1729 .comment-reply-link:hover { 1733 1730 background: #ededed; 1734 1731 background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); -
trunk/bp-themes/bp-default/functions.php
r4687 r4705 434 434 <p> 435 435 <?php 436 if ( comments_open() ) 437 $links = get_comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ); 438 else 439 $links = ''; 440 441 /* translators: 1: comment author url, 2: comment author name, 3: comment permalink, 4: comment date/timestamp, 5: view/reply & edit comment links */ 442 printf( __( '<a href="%1$s" rel="nofollow">%2$s</a> said on <a href="%3$s"><span class="time-since">%4$s</span></a> %5$s', 'buddypress' ), get_comment_author_url(), get_comment_author(), get_comment_link(), get_comment_date(), $links ); 436 /* translators: 1: comment author url, 2: comment author name, 3: comment permalink, 4: comment date/timestamp*/ 437 printf( __( '<a href="%1$s" rel="nofollow">%2$s</a> said on <a href="%3$s"><span class="time-since">%4$s</span></a>', 'buddypress' ), get_comment_author_url(), get_comment_author(), get_comment_link(), get_comment_date() ); 443 438 ?> 444 439 </p> 445 446 <?php if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) : ?>447 <div class="comment-options"><?php printf( '<a class="comment-edit-link bp-secondary-action" href="%1$s" title="%2$s">%3$s</a> ', get_edit_comment_link( $comment->comment_ID ), esc_attr__( 'Edit comment', 'buddypress' ), __( 'Edit', 'buddypress' ) ) ?></div>448 <?php endif; ?>449 440 </div> 450 441 … … 455 446 456 447 <?php comment_text() ?> 448 </div> 449 450 <div class="comment-options"> 451 <?php if ( comments_open() ) : ?> 452 <?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ); ?> 453 <?php endif; ?> 454 455 <?php if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) : ?> 456 <?php printf( '<a class="button comment-edit-link bp-secondary-action" href="%1$s" title="%2$s">%3$s</a> ', get_edit_comment_link( $comment->comment_ID ), esc_attr__( 'Edit comment', 'buddypress' ), __( 'Edit', 'buddypress' ) ) ?> 457 <?php endif; ?> 458 457 459 </div> 458 460
Note: See TracChangeset
for help on using the changeset viewer.