Skip to:
Content

BuddyPress.org


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.