Skip to:
Content

BuddyPress.org

Changeset 7430


Ignore:
Timestamp:
10/15/2013 06:28:53 PM (13 years ago)
Author:
boonebgorges
Message:

Introduce Sitewide Notices widget

This widget allows the administrator to display sitewide notices in a sidebar.
When enabled, the automatic sitewide notices overlay is turned off.

Fixes #5143

Props hnla

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-loader.php

    r7347 r7430  
    5151                        'template',
    5252                        'functions',
    53                         'notifications'
     53                        'notifications',
     54                        'widgets',
    5455                );
    5556
  • trunk/bp-templates/bp-legacy/buddypress-functions.php

    r7347 r7430  
    122122                /** Notices ***********************************************************/
    123123
    124                 if ( bp_is_active( 'messages' ) ) {
     124                // Only hook the 'sitewide_notices' overlay if the Sitewide
     125                // Notices widget is not in use (to avoid duplicate content).
     126                if ( bp_is_active( 'messages' ) && ! is_active_widget( false, false, 'bp_messages_sitewide_notices_widget', true ) ) {
    125127                        add_action( 'wp_footer', array( $this, 'sitewide_notices' ), 9999 );
    126128                }
Note: See TracChangeset for help on using the changeset viewer.