- Timestamp:
- 01/18/2020 11:32:41 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r12397 r12524 171 171 add_action( 'bp_actions', array( $this, 'neutralize_core_template_notices' ), 6 ); 172 172 173 // Scripts 174 add_action( 'bp_enqueue_scripts', array( $this, 'register_scripts' ), 2 ); // Register theme JS 173 // Scripts. 174 add_action( 'bp_enqueue_scripts', array( $this, 'register_scripts' ), 2 ); // Register theme JS. 175 175 remove_action( 'bp_enqueue_scripts', 'bp_core_confirmation_js' ); 176 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Enqueue theme CSS 177 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS 178 add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization 179 180 // Body no-js class 176 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Enqueue theme CSS. 177 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS. 178 add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization. 179 180 // Body no-js class. 181 181 add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 ); 182 182 183 // Ajax querystring 183 // Ajax querystring. 184 184 add_filter( 'bp_ajax_querystring', 'bp_nouveau_ajax_querystring', 10, 2 ); 185 185 186 // Register directory nav items 186 // Register directory nav items. 187 187 add_action( 'bp_screens', array( $this, 'setup_directory_nav' ), 15 ); 188 188 189 // Register the Default front pages Dynamic Sidebars 189 // Register the Default front pages Dynamic Sidebars. 190 190 add_action( 'widgets_init', 'bp_nouveau_register_sidebars', 11 ); 191 191 192 // Register the Primary Object nav widget 192 // Register the Primary Object nav widget. 193 193 add_action( 'bp_widgets_init', array( 'BP_Nouveau_Object_Nav_Widget', 'register_widget' ) ); 194 194 195 // Set the BP Uri for the Ajax customizer preview 195 // Set the BP Uri for the Ajax customizer preview. 196 196 add_filter( 'bp_uri', array( $this, 'customizer_set_uri' ), 10, 1 ); 197 197 … … 318 318 ) ); 319 319 320 // Bail if no scripts 320 // Bail if no scripts. 321 321 if ( empty( $scripts ) ) { 322 322 return; … … 431 431 ); 432 432 433 // If the Object/Item nav are in the sidebar 433 // If the Object/Item nav are in the sidebar. 434 434 if ( bp_nouveau_is_object_nav_in_sidebar() ) { 435 435 $params['object_nav_parent'] = '.buddypress_object_nav'; … … 460 460 } 461 461 462 // Add components & nonces 462 // Add components & nonces. 463 463 $params['objects'] = $supported_objects; 464 464 $params['nonces'] = $object_nonces; 465 465 466 // Used to transport the settings inside the Ajax requests 466 // Used to transport the settings inside the Ajax requests. 467 467 if ( is_customize_preview() ) { 468 468 $params['customizer_settings'] = bp_nouveau_get_temporary_setting( 'any' ); … … 603 603 } 604 604 605 // Define the primary nav for the current component's directory 605 // Define the primary nav for the current component's directory. 606 606 $this->directory_nav->add_nav( $nav_item ); 607 607 }
Note: See TracChangeset
for help on using the changeset viewer.