- Timestamp:
- 04/03/2015 01:01:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php
r1263 r1468 23 23 } 24 24 25 /** 26 * Are we looking at a buddypress.org site? 27 * 28 * @return bool 29 */ 30 function bb_base_is_buddypress() { 31 $retval = (bool) strstr( $_SERVER['HTTP_HOST'], 'buddypress' ); 32 return (bool) apply_filters( 'bb_base_is_buddypress', $retval ); 33 } 34 35 /** 36 * Are we looking at a bbpress.org site? 37 * 38 * @return bool 39 */ 40 function bb_base_is_bbpress() { 41 $retval = (bool) strstr( $_SERVER['HTTP_HOST'], 'bbpress' ); 42 return (bool) apply_filters( 'bb_base_is_bbpress', $retval ); 43 } 44 45 25 46 // Include in Codex code on codex sites 26 47 if ( bb_base_is_codex() ) { … … 40 61 41 62 // Handle root styling for buddypress/bbpress 42 if ( strstr( $_SERVER['HTTP_HOST'], 'bbpress.org') ) {63 if ( bb_base_is_bbpress() ) { 43 64 $root = 'style-bbpress.css'; 44 } elseif ( strstr( $_SERVER['HTTP_HOST'], 'buddypress.org') ) {65 } elseif ( bb_base_is_buddypress() ) { 45 66 $root = 'style-buddypress.css'; 46 67 }
Note: See TracChangeset
for help on using the changeset viewer.