- Timestamp:
- 04/28/2018 01:32:52 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r12002 r12008 117 117 } 118 118 119 /** 120 * Fires after all of the BuddyPress Nouveau includes have been loaded. Passed by reference. 121 * 122 * @since 3.0.0 123 * 124 * @param BP_Nouveau $value Current BP_Nouveau instance. 125 */ 119 126 do_action_ref_array( 'bp_nouveau_includes', array( &$this ) ); 120 127 } … … 128 135 $width = 1300; 129 136 $top_offset = 150; 137 138 /** This filter is documented in bp-core/bp-core-avatars.php. */ 130 139 $avatar_height = apply_filters( 'bp_core_avatar_full_height', $top_offset ); 131 140 … … 215 224 } 216 225 226 /** 227 * Filters the BuddyPress Nouveau CSS dependencies. 228 * 229 * @since 3.0.0 230 * 231 * @param array $value Array of style dependencies. Default Dashicons. 232 */ 217 233 $css_dependencies = apply_filters( 'bp_nouveau_css_dependencies', array( 'dashicons' ) ); 218 234 235 /** 236 * Filters the styles to enqueue for BuddyPress Nouveau. 237 * 238 * This filter provides a multidimensional array that will map to arguments used for wp_enqueue_style(). 239 * The primary index should have the stylesheet handle to use, and be assigned an array that has indexes for 240 * file location, dependencies, and version. 241 * 242 * @since 3.0.0 243 * 244 * @param array $value Array of styles to enqueue. 245 */ 219 246 $styles = apply_filters( 'bp_nouveau_enqueue_styles', array( 220 247 'bp-nouveau' => array( … … 270 297 unset( $dependencies[ $bp_confirm ] ); 271 298 299 /** 300 * Filters the scripts to enqueue for BuddyPress Nouveau. 301 * 302 * This filter provides a multidimensional array that will map to arguments used for wp_register_script(). 303 * The primary index should have the script handle to use, and be assigned an array that has indexes for 304 * file location, dependencies, version and if it should load in the footer or not. 305 * 306 * @since 3.0.0 307 * 308 * @param array $value Array of scripts to register. 309 */ 272 310 $scripts = apply_filters( 'bp_nouveau_register_scripts', array( 273 311 'bp-nouveau' => array( … … 337 375 } 338 376 377 /** 378 * Fires after all of the BuddyPress Nouveau scripts have been enqueued. 379 * 380 * @since 3.0.0 381 */ 339 382 do_action( 'bp_nouveau_enqueue_scripts' ); 340 383 } … … 390 433 } 391 434 392 // Set the supported components 435 /** 436 * Filters the supported BuddyPress Nouveau components. 437 * 438 * @since 3.0.0 439 * 440 * @param array $value Array of supported components. 441 */ 393 442 $supported_objects = (array) apply_filters( 'bp_nouveau_supported_components', bp_core_get_packaged_component_ids() ); 394 443 $object_nonces = array(); … … 421 470 * @since 3.0.0 422 471 * 423 * @param array $ valueArray of key/value pairs for AJAX usage.472 * @param array $params Array of key/value pairs for AJAX usage. 424 473 */ 425 474 wp_localize_script( 'bp-nouveau', 'BP_Nouveau', apply_filters( 'bp_core_get_js_strings', $params ) ); … … 442 491 * Filters whether or not we are looking at a directory to determine if to return early. 443 492 * 444 * @since 2.2.0493 * @since 3.0.0 445 494 * 446 495 * @param bool $value Whether or not we are viewing a directory.
Note: See TracChangeset
for help on using the changeset viewer.