Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/24/2014 08:09:13 PM (10 years ago)
Author:
djpaul
Message:

Groups, Suggestions: add support for @mentions UI in Group Activity screens.

This is achieved by adding support for a new data-suggestions-group-id property to the relevant textarea/input element.
See also r9242:9245 for incremental changes that support this new functionality.

Fixes #5934. Props m@rk, imath, DJPaul.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/post-form.php

    r8754 r9276  
    2828    <div id="whats-new-content">
    2929        <div id="whats-new-textarea">
    30             <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>
     30            <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
     31            <?php
     32            if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif;
     33            if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif;
     34            ?>
     35            ></textarea>
    3136        </div>
    3237
Note: See TracChangeset for help on using the changeset viewer.