- Timestamp:
- 03/18/2018 10:51:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r11899 r11900 38 38 protected static $instance = null; 39 39 40 /** Functions *************************************************************/41 42 40 /** 43 41 * Return the instance of this class. … … 46 44 */ 47 45 public static function get_instance() { 48 49 // If the single instance hasn't been set, set it now.50 46 if ( null === self::$instance ) { 51 47 self::$instance = new self; … … 63 59 parent::start(); 64 60 65 // Include needed files66 61 $this->includes(); 67 68 // Setup features support69 62 $this->setup_support(); 70 63 } … … 83 76 84 77 $this->includes_dir = trailingslashit( $this->dir ) . 'includes/'; 85 $this->lang_dir = trailingslashit( $this->dir ) . 'languages';86 $this->domain = 'bp-nouveau';87 78 $this->directory_nav = new BP_Core_Nav(); 88 79 } … … 175 166 add_action( 'bp_actions', array( $this, 'neutralize_core_template_notices' ), 6 ); 176 167 177 /** Scripts ***********************************************************/ 178 168 // Scripts 179 169 add_action( 'bp_enqueue_scripts', array( $this, 'register_scripts' ), 2 ); // Register theme JS 180 181 // We won't use this.182 170 remove_action( 'bp_enqueue_scripts', 'bp_core_confirmation_js' ); 183 184 171 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Enqueue theme CSS 185 172 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS 186 173 add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization 187 174 188 /** Body no-js Class **************************************************/ 189 175 // Body no-js class 190 176 add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 ); 191 177 … … 367 353 * 368 354 * @param array $classes Array of classes to append to body tag. 355 * 369 356 * @return array $classes 370 357 */ … … 549 536 * @see bp_buffer_template_part() 550 537 * 551 * @param string $retval Current template part contents. 538 * @param string $retval Current template part contents. 539 * 552 540 * @return string 553 541 */
Note: See TracChangeset
for help on using the changeset viewer.