Changeset 9757
- Timestamp:
- 04/16/2015 10:36:38 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 7 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r9755 r9757 1438 1438 return apply_filters( 'bp_avatar_use_webcam', true ); 1439 1439 } 1440 1441 /** 1442 * Template function to load the Avatar UI javascript templates 1443 * 1444 * @since BuddyPress (2.3.0) 1445 */ 1446 function bp_avatar_get_templates() { 1447 if ( ! bp_avatar_is_front_edit() ) { 1448 return; 1449 } 1450 1451 bp_attachments_get_template_part( 'avatars/index' ); 1452 } 1453 1454 /** 1455 * Trick to check if the theme's BuddyPress templates are up to date 1456 * 1457 * If the "avatar templates" are not including the new template tag, this will 1458 * help users to get the avatar UI and inform the most curious that their 1459 * templates are out of date. 1460 * 1461 * @since BuddyPress (2.3.0) 1462 */ 1463 function bp_avatar_template_check() { 1464 if ( ! bp_avatar_is_front_edit() ) { 1465 return; 1466 } 1467 1468 if ( ! did_action( 'bp_attachments_avatar_check_template' ) ) { 1469 bp_attachments_get_template_part( 'avatars/index' ); 1470 } 1471 } -
trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php
r9604 r9757 61 61 62 62 <label> 63 <input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 63 <input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 64 64 <strong><?php _e( 'This is a private group', 'buddypress' ); ?></strong> 65 65 </label> … … 72 72 73 73 <label> 74 <input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 74 <input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 75 75 <strong><?php _e('This is a hidden group', 'buddypress' ); ?></strong> 76 76 </label> … … 153 153 <p><?php _e( 'To skip the group profile photo upload process, hit the "Next Step" button.', 'buddypress' ); ?></p> 154 154 </div><!-- .main-column --> 155 156 <?php 157 /** 158 * Load the Avatar UI templates 159 * 160 * @since BuddyPress (2.3.0) 161 */ 162 bp_avatar_get_templates(); ?> 155 163 156 164 <?php endif; ?> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php
r9604 r9757 140 140 141 141 <?php endif; ?> 142 143 <?php 144 /** 145 * Load the Avatar UI templates 146 * 147 * @since BuddyPress (2.3.0) 148 */ 149 bp_avatar_get_templates(); ?> 142 150 143 151 <?php wp_nonce_field( 'bp_avatar_upload' ); ?> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php
r9604 r9757 51 51 </form> 52 52 53 <?php 54 /** 55 * Load the Avatar UI templates 56 * 57 * @since BuddyPress (2.3.0) 58 */ 59 bp_avatar_get_templates(); ?> 60 53 61 <?php else : ?> 54 62
Note: See TracChangeset
for help on using the changeset viewer.