- Timestamp:
- 08/23/2021 12:12:09 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r13087 r13089 4 4 * 5 5 * @since 3.0.0 6 * @package BuddyPress 6 7 * @version 10.0.0 7 8 * … … 33 34 */ 34 35 class BP_Nouveau extends BP_Theme_Compat { 36 35 37 /** 36 38 * Instance of this class. 39 * 40 * @var BP_Nouveau|null 37 41 */ 38 42 protected static $instance = null; … … 42 46 * 43 47 * @since 3.0.0 48 * 49 * @return BP_Nouveau 44 50 */ 45 51 public static function get_instance() { … … 134 140 */ 135 141 protected function setup_support() { 136 $width 137 $top_offset 142 $width = 1300; 143 $top_offset = 150; 138 144 139 145 /** This filter is documented in bp-core/bp-core-avatars.php. */ … … 339 345 * @param array $value Array of scripts to register. 340 346 */ 341 $scripts = apply_filters( 'bp_nouveau_register_scripts', array( 342 'bp-nouveau' => array( 343 'file' => 'js/buddypress-nouveau%s.js', 344 'dependencies' => $dependencies, 345 'version' => $this->version, 346 'footer' => true, 347 ), 348 ) ); 347 $scripts = apply_filters( 348 'bp_nouveau_register_scripts', 349 array( 350 'bp-nouveau' => array( 351 'file' => 'js/buddypress-nouveau%s.js', 352 'dependencies' => $dependencies, 353 'version' => $this->version, 354 'footer' => true, 355 ), 356 ) 357 ); 349 358 350 359 // Bail if no scripts. … … 654 663 * @since 3.0.0 655 664 * 656 * @param string $path the BP Uri.657 * @return string the BP Uri.665 * @param string $path The BP Uri. 666 * @return string The BP Uri. 658 667 */ 659 668 public function customizer_set_uri( $path ) { … … 680 689 return $path; 681 690 } 691 682 692 /** 683 693 * Modify "registration disabled" message in Nouveau template pack. … … 690 700 * @return array $messages 691 701 */ 692 function filter_registration_messages( $messages ) {702 public function filter_registration_messages( $messages ) { 693 703 // Change the "registration is disabled" message. 694 704 $disallowed_message = bp_members_invitations_get_modified_registration_disabled_message();
Note: See TracChangeset
for help on using the changeset viewer.