Changeset 149
- Timestamp:
- Apr 2, 2009, 12:15:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/xpressme_class.php
r145 r149 406 406 $selected = ''; 407 407 } 408 if ($groupe->group_type != 'Admin' || !empty($selected)) {408 if ($groupe->group_type != 'Admin' || $groupe->groupid > 3 || !empty($selected)) { 409 409 $role_list .= "<option value=\"{$role}\"{$selected}>{$name}</option>\n"; 410 410 } 411 411 } 412 if ($groupe->group_type != 'Admin') { 413 if ( $group_has_role ) { 414 $role_list .= '<option value="default">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; 415 $role_list .= '<option value="">' . __('Group User Doesn\'t Register', 'xpressme') . "</option>\n"; 416 } else { 417 if ($select_value == 'default'){ 418 $role_list .= '<option value="default" selected="selected">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; 412 if ($groupe->group_type != 'Admin' || $groupe->groupid > 3) { 413 if ( $group_has_role ) { 414 $role_list .= '<option value="default">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; 419 415 $role_list .= '<option value="">' . __('Group User Doesn\'t Register', 'xpressme') . "</option>\n"; 420 416 } else { 421 $role_list .= '<option value="default">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; 422 $role_list .= '<option value="" selected="selected">' . __('Group User Doesn\'t Register', 'xpressme') . "</option>\n"; 417 if ($select_value == 'default'){ 418 $role_list .= '<option value="default" selected="selected">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; 419 $role_list .= '<option value="">' . __('Group User Doesn\'t Register', 'xpressme') . "</option>\n"; 420 } else { 421 $role_list .= '<option value="default">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; 422 $role_list .= '<option value="" selected="selected">' . __('Group User Doesn\'t Register', 'xpressme') . "</option>\n"; 423 } 423 424 } 424 }425 425 } 426 426 $form .= $role_list . "</select>\n</td>";
Note: See TracChangeset
for help on using the changeset viewer.