Ticket #955: enhancement-bp_body_class.patch
File enhancement-bp_body_class.patch, 1.1 KB (added by , 15 years ago) |
---|
-
bp-core/bp-core-templatetags.php
1581 1581 /* Use the above is_() functions to output a body class for each page */ 1582 1582 1583 1583 function bp_the_body_class() { 1584 echo bp_get_the_body_class(); 1584 $bp_body_class = apply_filters( 'bp_body_class', bp_get_the_body_class() ); 1585 1586 if ( bp_is_blog_page() ) 1587 body_class( $bp_body_class ); 1588 else 1589 echo 'class="' . $bp_body_class . '"'; 1585 1590 } 1586 add_action( 'bp_body_class', 'bp_the_body_class' );1587 1591 1588 1592 function bp_get_the_body_class() { 1589 1593 if ( bp_is_blog_page() || bp_is_activation_page() || bp_is_register_page() ) -
bp-themes/bp-sn-framework/header.php
27 27 28 28 </head> 29 29 30 <body class="<?php do_action( 'bp_body_class' ) ?>">30 <body <?php bp_the_body_class() ?>> 31 31 32 32 <div id="search-login-bar"> 33 33