Changeset 13529
- Timestamp:
- 07/27/2023 11:01:08 AM (3 years ago)
- Location:
- trunk/src/bp-templates/bp-nouveau
- Files:
-
- 6 edited
-
common-styles/_bp_generic_and_typography.scss (modified) (1 diff)
-
css/buddypress-rtl.css (modified) (1 diff)
-
css/buddypress.css (modified) (1 diff)
-
includes/customizer.php (modified) (3 diffs)
-
includes/functions.php (modified) (2 diffs)
-
includes/template-tags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_generic_and_typography.scss
r12921 r13529 142 142 @include clearfix-element(".bp-wrap"); 143 143 144 // General site avatars round or square ?145 // User set146 .buddypress-wrap.round-avatars {147 148 .avatar {149 border-radius: 50%;150 }151 }152 153 144 // ====== BP Typographic Elements ====== 154 145 -
trunk/src/bp-templates/bp-nouveau/css/buddypress-rtl.css
r13485 r13529 132 132 .bp-wrap:after { 133 133 clear: both; 134 }135 136 .buddypress-wrap.round-avatars .avatar {137 border-radius: 50%;138 134 } 139 135 -
trunk/src/bp-templates/bp-nouveau/css/buddypress.css
r13485 r13529 132 132 .bp-wrap:after { 133 133 clear: both; 134 }135 136 .buddypress-wrap.round-avatars .avatar {137 border-radius: 50%;138 134 } 139 135 -
trunk/src/bp-templates/bp-nouveau/includes/customizer.php
r13145 r13529 4 4 * 5 5 * @since 3.0.0 6 * @version 1 0.0.06 * @version 12.0.0 7 7 */ 8 8 … … 83 83 */ 84 84 $settings = apply_filters( 'bp_nouveau_customizer_settings', array( 85 'bp_nouveau_appearance[avatar_style]' => array(86 'index' => 'avatar_style',87 'capability' => 'bp_moderate',88 'sanitize_callback' => 'absint',89 'transport' => 'refresh',90 'type' => 'option',91 ),92 85 'bp_nouveau_appearance[user_front_page]' => array( 93 86 'index' => 'user_front_page', … … 228 221 229 222 $controls = array( 230 'bp_site_avatars' => array(231 'label' => __( 'Use the round style for member and group avatars.', 'buddypress' ),232 'section' => 'bp_nouveau_general_settings',233 'settings' => 'bp_nouveau_appearance[avatar_style]',234 'type' => 'checkbox',235 ),236 223 'user_front_page' => array( 237 224 'label' => __( 'Enable default front page for member profiles.', 'buddypress' ), -
trunk/src/bp-templates/bp-nouveau/includes/functions.php
r13464 r13529 4 4 * 5 5 * @since 3.0.0 6 * @version 1 0.0.06 * @version 12.0.0 7 7 */ 8 8 … … 641 641 function bp_nouveau_get_appearance_settings( $option = '' ) { 642 642 $default_args = array( 643 'avatar_style' => 0,644 643 'global_alignment' => 'alignwide', 645 644 'user_front_page' => 0, -
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r13504 r13529 1513 1513 1514 1514 // Add classes according to site owners preferences. These are options set via Customizer. 1515 1516 // These are general site wide Cust options falling outside component checks1517 $general_settings = bp_nouveau_get_temporary_setting( 'avatar_style', bp_nouveau_get_appearance_settings( 'avatar_style' ) );1518 if ( $general_settings ) {1519 $classes[] = 'round-avatars';1520 }1521 1515 1522 1516 // Set via earlier switch for component check to provide correct option key.
Note: See TracChangeset
for help on using the changeset viewer.