Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/06/2015 11:42:53 PM (9 years ago)
Author:
r-a-y
Message:

Messages: Introduce starring private messages feature.

This commit:

  • Registers the 'star' feature into the BP Messages component and dynamically loads the bp-messages-star.php file if the feature is active. By default, the feature is active, but can be disabled with the following snippet: 'bp_is_messages_star_active', '__return_false' );
  • Adds a 'Starred' box to the messages user subnav
  • Adds an icon to star or unstar a message in a message or message thread loop
  • Adds the 'Add star' and 'Remove star' options to the message thread 'Bulk Actions' dropdown menu
  • Adds accompanying CSS and JS to the bp-legacy template pack.

Fixes #6331.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-template.php

    r9830 r9846  
    12911291        <option value="unread"><?php _e( 'Mark unread', 'buddypress' ); ?></option>
    12921292        <option value="delete"><?php _e( 'Delete', 'buddypress' ); ?></option>
     1293        <?php
     1294            /**
     1295             * Action to add additional options to the messages bulk management dropdown.
     1296             *
     1297             * @since BuddyPress (2.3.0)
     1298             */
     1299            do_action( 'bp_messages_bulk_management_dropdown' );
     1300        ?>
    12931301    </select>
    12941302    <input type="submit" id="messages-bulk-manage" class="button action" value="<?php esc_attr_e( 'Apply', 'buddypress' ); ?>">
Note: See TracChangeset for help on using the changeset viewer.