Changeset 12048
- Timestamp:
- 05/03/2018 04:29:34 PM (8 years ago)
- Location:
- trunk/src/bp-templates/bp-nouveau/includes
- Files:
-
- 5 edited
-
activity/functions.php (modified) (1 diff)
-
activity/loader.php (modified) (1 diff)
-
blogs/functions.php (modified) (1 diff)
-
customizer.php (modified) (5 diffs)
-
groups/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php
r12008 r12048 500 500 } 501 501 } 502 503 /** 504 * Add controls for the settings of the customizer for the activity component. 505 * 506 * @since 3.0.0 507 * 508 * @param array $controls Optional. The controls to add. 509 * 510 * @return array the controls to add. 511 */ 512 function bp_nouveau_activity_customizer_controls( $controls = array() ) { 513 return array_merge( $controls, array( 514 'act_dir_layout' => array( 515 'label' => __( 'Use column navigation for the Activity directory.', 'buddypress' ), 516 'section' => 'bp_nouveau_dir_layout', 517 'settings' => 'bp_nouveau_appearance[activity_dir_layout]', 518 'type' => 'checkbox', 519 ), 520 'act_dir_tabs' => array( 521 'label' => __( 'Use tab styling for Activity directory navigation.', 'buddypress' ), 522 'section' => 'bp_nouveau_dir_layout', 523 'settings' => 'bp_nouveau_appearance[activity_dir_tabs]', 524 'type' => 'checkbox', 525 ), 526 ) ); 527 } -
trunk/src/bp-templates/bp-nouveau/includes/activity/loader.php
r12002 r12048 88 88 */ 89 89 protected function setup_filters() { 90 // Register customizer controls. 91 add_filter( 'bp_nouveau_customizer_controls', 'bp_nouveau_activity_customizer_controls', 10, 1 ); 90 92 91 93 // Register activity scripts -
trunk/src/bp-templates/bp-nouveau/includes/blogs/functions.php
r11899 r12048 171 171 'choices' => bp_nouveau_customizer_grid_choices(), 172 172 ), 173 'sites_dir_layout' => array( 174 'label' => __( 'Use column navigation for the Sites directory.', 'buddypress' ), 175 'section' => 'bp_nouveau_dir_layout', 176 'settings' => 'bp_nouveau_appearance[sites_dir_layout]', 177 'type' => 'checkbox', 178 ), 179 'sites_dir_tabs' => array( 180 'label' => __( 'Use tab styling for Sites directory navigation.', 'buddypress' ), 181 'section' => 'bp_nouveau_dir_layout', 182 'settings' => 'bp_nouveau_appearance[sites_dir_tabs]', 183 'type' => 'checkbox', 184 ), 173 185 ) ); 174 186 } -
trunk/src/bp-templates/bp-nouveau/includes/customizer.php
r12047 r12048 186 186 'type' => 'option', 187 187 ), 188 'bp_nouveau_appearance[groups_dir_tabs]' => array(189 'index' => 'groups_dir_tabs',190 'capability' => 'bp_moderate',191 'sanitize_callback' => 'absint',192 'transport' => 'refresh',193 'type' => 'option',194 ),195 188 'bp_nouveau_appearance[sites_dir_layout]' => array( 196 189 'index' => 'sites_dir_layout', … … 222 215 } 223 216 224 /** 225 * Filters the BuddyPress Nouveau customizer controls and their arguments. 226 * 227 * @since 3.0.0 228 * 229 * @param array $value Array of Customizer controls. 230 */ 231 $controls = apply_filters( 'bp_nouveau_customizer_controls', array( 217 $controls = array( 232 218 'bp_site_avatars' => array( 233 219 'label' => __( 'Use the round style for member and group avatars.', 'buddypress' ), … … 280 266 'choices' => bp_nouveau_customizer_grid_choices(), 281 267 ), 282 'members_group_layout' => array(283 'label' => __( 'Group > Members', 'buddypress' ),284 'section' => 'bp_nouveau_loops_layout',285 'settings' => 'bp_nouveau_appearance[members_group_layout]',286 'type' => 'select',287 'choices' => bp_nouveau_customizer_grid_choices(),288 ),289 268 'members_friends_layout' => array( 290 269 'label' => __( 'Member > Friends', 'buddypress' ), … … 294 273 'choices' => bp_nouveau_customizer_grid_choices(), 295 274 ), 296 'act_dir_layout' => array(297 'label' => __( 'Use column navigation for the Activity directory.', 'buddypress' ),298 'section' => 'bp_nouveau_dir_layout',299 'settings' => 'bp_nouveau_appearance[activity_dir_layout]',300 'type' => 'checkbox',301 ),302 'act_dir_tabs' => array(303 'label' => __( 'Use tab styling for Activity directory navigation.', 'buddypress' ),304 'section' => 'bp_nouveau_dir_layout',305 'settings' => 'bp_nouveau_appearance[activity_dir_tabs]',306 'type' => 'checkbox',307 ),308 275 'members_dir_layout' => array( 309 276 'label' => __( 'Use column navigation for the Members directory.', 'buddypress' ), … … 318 285 'type' => 'checkbox', 319 286 ), 320 'group_dir_layout' => array( 321 'label' => __( 'Use column navigation for the Groups directory.', 'buddypress' ), 322 'section' => 'bp_nouveau_dir_layout', 323 'settings' => 'bp_nouveau_appearance[groups_dir_layout]', 324 'type' => 'checkbox', 325 ), 326 'group_dir_tabs' => array( 327 'label' => __( 'Use tab styling for Groups directory navigation.', 'buddypress' ), 328 'section' => 'bp_nouveau_dir_layout', 329 'settings' => 'bp_nouveau_appearance[groups_dir_tabs]', 330 'type' => 'checkbox', 331 ), 332 'sites_dir_layout' => array( 333 'label' => __( 'Use column navigation for the Sites directory.', 'buddypress' ), 334 'section' => 'bp_nouveau_dir_layout', 335 'settings' => 'bp_nouveau_appearance[sites_dir_layout]', 336 'type' => 'checkbox', 337 ), 338 'sites_dir_tabs' => array( 339 'label' => __( 'Use tab styling for Sites directory navigation.', 'buddypress' ), 340 'section' => 'bp_nouveau_dir_layout', 341 'settings' => 'bp_nouveau_appearance[sites_dir_tabs]', 342 'type' => 'checkbox', 343 ), 344 ) ); 287 ); 288 289 /** 290 * Filters the BuddyPress Nouveau customizer controls and their arguments. 291 * 292 * @since 3.0.0 293 * 294 * @param array $value Array of Customizer controls. 295 */ 296 $controls = apply_filters( 'bp_nouveau_customizer_controls', $controls ); 345 297 346 298 // Add the controls to the customizer's section -
trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php
r12047 r12048 752 752 'type' => 'option', 753 753 ), 754 'bp_nouveau_appearance[groups_dir_tabs]' => array( 755 'index' => 'groups_dir_tabs', 756 'capability' => 'bp_moderate', 757 'sanitize_callback' => 'absint', 758 'transport' => 'refresh', 759 'type' => 'option', 760 ), 754 761 ) ); 755 762 } … … 821 828 'type' => 'select', 822 829 'choices' => bp_nouveau_customizer_grid_choices(), 830 ), 831 'members_group_layout' => array( 832 'label' => __( 'Group > Members', 'buddypress' ), 833 'section' => 'bp_nouveau_loops_layout', 834 'settings' => 'bp_nouveau_appearance[members_group_layout]', 835 'type' => 'select', 836 'choices' => bp_nouveau_customizer_grid_choices(), 837 ), 838 'group_dir_layout' => array( 839 'label' => __( 'Use column navigation for the Groups directory.', 'buddypress' ), 840 'section' => 'bp_nouveau_dir_layout', 841 'settings' => 'bp_nouveau_appearance[groups_dir_layout]', 842 'type' => 'checkbox', 843 ), 844 'group_dir_tabs' => array( 845 'label' => __( 'Use tab styling for Groups directory navigation.', 'buddypress' ), 846 'section' => 'bp_nouveau_dir_layout', 847 'settings' => 'bp_nouveau_appearance[groups_dir_tabs]', 848 'type' => 'checkbox', 823 849 ), 824 850 ) );
Note: See TracChangeset
for help on using the changeset viewer.