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-templates/bp-legacy/buddypress/members/single/messages/single.php

    r9830 r9846  
    7070                    <span class="activity"><?php bp_the_thread_message_time_since(); ?></span>
    7171
     72                    <?php if ( bp_is_active( 'messages', 'star' ) ) : ?>
     73                        <div class="message-star-actions">
     74                            <?php bp_the_message_star_action_link(); ?>
     75                        </div>
     76                    <?php endif; ?>
     77
    7278                    <?php
    7379
Note: See TracChangeset for help on using the changeset viewer.