Ticket #4802: 4802.footer.patch
File 4802.footer.patch, 2.5 KB (added by , 12 years ago) |
---|
-
bp-templates/bp-legacy/buddypress-functions.php
class BP_Legacy extends BP_Theme_Compat { 126 126 127 127 } 128 128 129 /** Notices ***********************************************************/ 130 131 if ( bp_is_active( 'messages' ) ) { 132 add_action( 'wp_footer', array( $this, 'sitewide_notices' ), 9999 ); 133 } 134 129 135 /** Ajax **************************************************************/ 130 136 131 137 $actions = array( … … class BP_Legacy extends BP_Theme_Compat { 293 299 * @since BuddyPress (1.7) 294 300 */ 295 301 public function localize_scripts() { 302 } 303 304 /** 305 * Outputs sitewide notices markup in the footer. 306 * 307 * @since BuddyPress (1.7) 308 * 309 * @see https://buddypress.trac.wordpress.org/ticket/4802 310 */ 311 public function sitewide_notices() { 312 // Do not show notices if user is not logged in 313 if ( ! is_user_logged_in() ) 314 return; 315 316 // add a class to determine if the admin bar is on or not 317 $class = did_action( 'admin_bar_menu' ) ? 'admin-bar-on' : 'admin-bar-off'; 296 318 319 echo '<div id="sitewide-notice" class="' . $class . '">'; 320 bp_message_get_notices(); 321 echo '</div>'; 297 322 } 298 323 299 324 /** -
bp-templates/bp-legacy/css/buddypress.css
body.activity-permalink #buddypress div.activity-comments div.acomment-content { 506 506 #buddypress div#message.updated { 507 507 clear: both; 508 508 } 509 #buddypress div#message p { 509 #buddypress div#message p, 510 #sitewide-notice p { 510 511 font-size: 90%; 511 512 display: block; 512 513 padding: 10px 15px; … … body.activity-permalink #buddypress div.activity-comments div.acomment-content { 545 546 #buddypress ul.button-nav li.current a { 546 547 font-weight: bold; 547 548 } 548 549 #sitewide-notice #message { 550 left: 2%; 551 position: fixed; 552 top: 1em; 553 width: 96%; 554 z-index: 9999; 555 } 556 #sitewide-notice.admin-bar-on #message { 557 top: 3.3em; 558 } 559 #sitewide-notice strong { 560 display: block; 561 margin-bottom: -1em; 562 } 549 563 550 564 /*-------------------------------------------------------------- 551 565 6.5 - Forms … … a.bp-title-button { 1004 1018 font-weight: bold; 1005 1019 } 1006 1020 #buddypress span.activity, 1007 #buddypress div#message p { 1021 #buddypress div#message p, 1022 #sitewide-notice p { 1008 1023 border: 1px solid #e1ca82; 1009 1024 -moz-border-radius: 3px; 1010 1025 -webkit-border-radius: 3px;