Changeset 6866 for trunk/bp-templates/bp-legacy/buddypress-functions.php
- Timestamp:
- 03/25/2013 08:00:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-templates/bp-legacy/buddypress-functions.php
r6850 r6866 46 46 */ 47 47 public function __construct() { 48 49 // Bail if theme is a derivative of bp-default 50 if ( in_array( 'bp-default', array( get_template(), get_stylesheet() ) ) ) { 51 return; 52 } 53 54 // Or if the theme supports 'buddypress' 55 if ( current_theme_supports( 'buddypress' ) ) { 56 return; 57 } 58 59 $this->setup_globals(); 60 $this->setup_actions(); 48 parent::start(); 61 49 } 62 50 63 51 /** 64 52 * Component global variables 65 *66 * Note that this function is currently commented out in the constructor.67 * It will only be used if you copy this file into your current theme and68 * uncomment the line above.69 53 * 70 54 * You'll want to customize the values in here, so they match whatever your … … 74 58 * @access private 75 59 */ 76 pr ivatefunction setup_globals() {60 protected function setup_globals() { 77 61 $bp = buddypress(); 78 62 $this->id = 'legacy'; … … 92 76 * @uses add_action() To add various actions 93 77 */ 94 pr ivatefunction setup_actions() {78 protected function setup_actions() { 95 79 96 80 // Template Output
Note: See TracChangeset
for help on using the changeset viewer.