Skip to:
Content

BuddyPress.org

Changeset 4705


Ignore:
Timestamp:
07/18/2011 09:17:15 PM (15 years ago)
Author:
djpaul
Message:

Update comment style to new activity stream look

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  
    335335        margin: 0 0 0 10px;
    336336}
    337 .commentlist ul.children div.comment-options {
    338         margin-right: auto;
    339         margin-left: 0;
    340 }
    341337#comments ol.commentlist ol {
    342338        margin: 0 2.5em 18px 0;
    343339}
    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 }
    361340#reply-title small {
    362341        float: left;
    … …  
    374353        margin-right: 30px;
    375354        margin-left: auto;
     355}
     356.comment-options .comment-reply-link,
     357.comment-options .comment-edit-link {
     358        margin-left: 5px;
     359        margin-right: auto;
    376360}
    377361
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r4704 r4705  
    739739        overflow: hidden;
    740740}
    741 .comment-entry {
    742         float: left;
    743 }
    744741ul.children .comment-entry {
    745742        margin-bottom: 10px;
    … …  
    747744div.comment-meta {
    748745        color: #888;
    749         float: left;
    750746        font-size: 11px;
    751747        margin: 15px 0;
    752748        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;
    761749}
    762750div.comment-meta em {
    … …  
    796784        margin: 0 0 10px 0;
    797785}
    798 .commentlist ul.children div.comment-options {
    799         margin-right: 0;
    800 }
    801786.commentlist ul.children li {
    802787        border-top: 2px solid #fffeff;
    … …  
    850835        padding: 0;
    851836}
     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
    852850
    853851/*--------------------------------------------------------------
    … …  
    12871285}
    12881286a.bp-primary-action,
    1289 .comment-reply-link,
    12901287#reply-title small a {
    12911288        font-size: 11px;
    … …  
    12941291}
    12951292a.bp-primary-action span,
    1296 .comment-reply-link span,
    12971293#reply-title small a span {
    12981294        background: #999;
    … …  
    13061302}
    13071303a.bp-primary-action:hover span,
    1308 .comment-reply-link:hover span,
    13091304#reply-title small a:hover span {
    13101305        background: #555;
    … …  
    17041699input[type=reset],
    17051700ul.button-nav li a,
    1706 div.generic-button a {
     1701div.generic-button a,
     1702.comment-reply-link {
    17071703        background: #fff;
    17081704        background: -webkit-gradient(linear, left top, left bottom, from(white), to(#ededed));
    … …  
    17301726ul.button-nav li a:hover,
    17311727ul.button-nav li.current a,
    1732 div.generic-button a:hover {
     1728div.generic-button a:hover,
     1729.comment-reply-link:hover {
    17331730        background: #ededed;
    17341731        background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
  • trunk/bp-themes/bp-default/functions.php

    r4687 r4705  
    434434                                <p>
    435435                                        <?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() );
    443438                                        ?>
    444439                                </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; ?>
    449440                        </div>
    450441
    … …  
    455446
    456447                                <?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
    457459                        </div>
    458460
Note: See TracChangeset for help on using the changeset viewer.