Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/25/2009 08:38:56 PM (17 years ago)
Author:
apeatling
Message:

Activity stream commenting updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-widgets.php

    r2077 r2128  
    2323                   . $after_title; ?>
    2424
    25         <?php if ( bp_has_activities( 'type=sitewide&max=' . $instance['max_items'] . '&per_page=' . $instance['per_page'] ) ) : ?>
     25        <?php if ( bp_has_activities( 'type=sitewide&max=' . $instance['max_items'] . '&per_page=' . $instance['per_page'] . '&display_comments=threaded' ) ) : ?>
    2626
    2727                <?php if ( !file_exists( WP_CONTENT_DIR . '/bp-themes' ) ) : ?>
     
    4343                <ul id="site-wide-stream" class="activity-list">
    4444                <?php while ( bp_activities() ) : bp_the_activity(); ?>
    45                         <li class="<?php bp_activity_css_class() ?>">
    46                                 <?php if ( !file_exists( WP_CONTENT_DIR . '/bp-themes' ) ) : ?>
    47                                         <div class="activity-avatar">
    48                                                 <?php bp_activity_avatar() ?>
     45                        <li class="<?php bp_activity_css_class() ?>" id="activity-<?php bp_activity_id() ?>">
     46                                <div class="activity-avatar">
     47                                        <?php bp_activity_avatar('width=40&height=40') ?>
     48                                </div>
     49
     50                                <div class="activity-content">
     51                                        <?php bp_activity_content() ?>
     52
     53                                        <?php if ( is_user_logged_in() ) : ?>
     54                                        <div class="activity-meta">
     55                                                <a href="#acomment-<?php bp_activity_id() ?>" class="acomment-reply" id="acomment-comment-<?php bp_activity_id() ?>"><?php _e( 'Comment', 'buddypress' ) ?> (<?php bp_activity_comment_count() ?>)</a>
    4956                                        </div>
    50                                 <?php endif; ?>
     57                                        <?php endif; ?>
     58                                </div>
    5159
    52                                 <?php bp_activity_content() ?>
     60                                <div class="activity-comments">
     61                                        <?php bp_activity_comments() ?>
     62
     63                                        <?php if ( is_user_logged_in() ) : ?>
     64                                        <form action="" method="post" name="activity-comment-form" id="ac-form-<?php bp_activity_id() ?>" class="ac-form">
     65                                                <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=25&height=25' ) ?></div>
     66                                                <div class="ac-reply-content">
     67                                                        <textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac-input-<?php bp_activity_id() ?>"></textarea>
     68                                                        <input type="submit" name="ac-form-submit" value="<?php _e( 'Post', 'buddypress' ) ?> &rarr;" />
     69                                                </div>
     70                                                <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ) ?>
     71                                        </form>
     72                                        <?php endif; ?>
     73                                </div>
     74
    5375                        </li>
    5476                <?php endwhile; ?>
Note: See TracChangeset for help on using the changeset viewer.