BP_Legacy::sitewide_notices()
Outputs sitewide notices markup in the footer.
Description Description
See also See also
Source Source
File: bp-templates/bp-legacy/buddypress-functions.php
public function sitewide_notices() { // Do not show notices if user is not logged in. if ( ! is_user_logged_in() ) return; // Add a class to determine if the admin bar is on or not. $class = did_action( 'admin_bar_menu' ) ? 'admin-bar-on' : 'admin-bar-off'; echo '<div id="sitewide-notice" class="' . $class . '">'; bp_message_get_notices(); echo '</div>'; }
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |