Changeset 9639 for trunk/src/bp-xprofile/bp-xprofile-admin.php
- Timestamp:
- 03/24/2015 03:02:10 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-admin.php
r9471 r9639 73 73 </h2> 74 74 75 <p><?php echo sprintf( __( 'Fields in the "%s" group will appear on the signup page.', 'buddypress' ), esc_html( stripslashes( bp_get_option( 'bp-xprofile-base-group-name' ) ) ) ) ?></p>76 77 75 <form action="" id="profile-field-form" method="post"> 78 76 … … 86 84 87 85 <div id="message" class="<?php echo $type; ?> fade"> 88 <p><?php echo esc_html( esc_attr( $message )); ?></p>86 <p><?php echo esc_html( $message ); ?></p> 89 87 </div> 90 88 … … 96 94 <?php if ( !empty( $groups ) ) : foreach ( $groups as $group ) : ?> 97 95 98 <li id="group_<?php echo $group->id; ?>"><a href="#tabs-<?php echo $group->id; ?>" class="ui-tab"><?php echo esc_attr( $group->name ); ?><?php if ( !$group->can_delete ) : ?> <?php _e( '(Primary)', 'buddypress'); endif; ?></a></li> 96 <li id="group_<?php echo esc_attr( $group->id ); ?>"> 97 <a href="#tabs-<?php echo esc_attr( $group->id ); ?>" class="ui-tab"> 98 <?php echo esc_attr( $group->name ); ?> 99 100 <?php if ( !$group->can_delete ) : ?> 101 <?php _e( '(Primary)', 'buddypress'); ?> 102 <?php endif; ?> 103 104 <span class="spinner"></span> 105 </a> 106 </li> 99 107 100 108 <?php endforeach; endif; ?> … … 108 116 </noscript> 109 117 110 <div id="tabs-<?php echo $group->id; ?>" class="tab-wrapper">118 <div id="tabs-<?php echo esc_attr( $group->id ); ?>" class="tab-wrapper"> 111 119 <div class="tab-toolbar"> 112 120 <div class="tab-toolbar-left"> … … 116 124 <?php if ( $group->can_delete ) : ?> 117 125 118 <a class="confirm submitdelete deletion ajax-option-delete" href="users.php?page=bp-profile-setup&mode=delete_group&group_id=<?php echo esc_attr( $group->id ); ?>"><?php _e( 'Delete Group', 'buddypress' ); ?></a> 126 <div class="delete-button"> 127 <a class="confirm submitdelete deletion ajax-option-delete" href="users.php?page=bp-profile-setup&mode=delete_group&group_id=<?php echo esc_attr( $group->id ); ?>"><?php _e( 'Delete Group', 'buddypress' ); ?></a> 128 </div> 119 129 120 130 <?php endif; ?> … … 135 145 </div> 136 146 137 <fieldset id="<?php echo $group->id; ?>" class="connectedSortable field-group"> 138 139 <?php if ( $group->description ) : ?> 140 141 <legend><?php echo esc_attr( $group->description ) ?></legend> 142 143 <?php endif; 147 <?php if ( ! empty( $group->description ) ) : ?> 148 149 <p><?php echo esc_html( $group->description ); ?></p> 150 151 <?php endif; ?> 152 153 <fieldset id="<?php echo esc_attr( $group->id ); ?>" class="connectedSortable field-group"> 154 <legend class="screen-reader-text"><?php printf( esc_html__( 'Fields for "%s" Group', 'buddypress' ), $group->name ); ?></legend> 155 156 <?php 144 157 145 158 if ( !empty( $group->fields ) ) : … … 150 163 151 164 $class = ''; 152 if ( !$field->can_delete )165 if ( empty( $field->can_delete ) ) { 153 166 $class = ' core nodrag'; 154 155 /* This function handles the WYSIWYG profile field 156 * display for the xprofile admin setup screen 157 */ 167 } 168 169 /** 170 * This function handles the WYSIWYG profile field 171 * display for the xprofile admin setup screen 172 */ 158 173 xprofile_admin_field( $field, $group, $class ); 159 174 … … 167 182 168 183 </fieldset> 184 185 <?php if ( empty( $group->can_delete ) ) : ?> 186 187 <p><?php esc_html_e( '* Fields in this group appear on the signup page.', 'buddypress' ); ?></p> 188 189 <?php endif; ?> 190 169 191 </div> 170 192 … … 176 198 <?php endif; ?> 177 199 178 <div id="tabs-bottom"> </div>179 200 </div> 180 201 </form>
Note: See TracChangeset
for help on using the changeset viewer.