function extra_tablenav($which)
    {
        if ('top' != $which) {
            return;
        }
        if (!current_user_can('promote_users')) {
            return;
        }
        ?>
	<div class="alignleft actions">
		<label class="screen-reader-text" for="new_role"><?php 
        _e('Change role to&hellip;');
        ?>
</label>
		<select name="new_role" id="new_role">
			<option value=''><?php 
        _e('Change role to&hellip;');
        ?>
</option>
			<?php 
        nxt_dropdown_roles();
        ?>
		</select>
		<?php 
        submit_button(__('Change'), 'secondary', 'changeit', false);
        ?>
	</div>
<?php 
    }
Exemplo n.º 2
0
    ?>
 />
<?php 
    _e('Anyone can register');
    ?>
</label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label for="default_role"><?php 
    _e('New User Default Role');
    ?>
</label></th>
<td>
<select name="default_role" id="default_role"><?php 
    nxt_dropdown_roles(get_option('default_role'));
    ?>
</select>
</td>
</tr>
<?php 
} else {
    ?>
<tr valign="top">
<th scope="row"><label for="new_admin_email"><?php 
    _e('E-mail Address');
    ?>
 </label></th>
<td><input name="new_admin_email" type="text" id="new_admin_email" value="<?php 
    form_option('admin_email');
    ?>
Exemplo n.º 3
0
?>
</select></td>
		</tr>
		<tr valign="top">
			<th scope="row"><?php 
_e('Folder Delete');
?>
</th><td><select name="options[ckfinder][permissions][folderDelete]"><?php 
nxt_dropdown_roles($this->get_role('ckeditor_ckfinder_folderDelete'));
?>
</select></td>
			<th scope="row"><?php 
_e('File Delete');
?>
</th><td><select name="options[ckfinder][permissions][fileDelete]"><?php 
nxt_dropdown_roles($this->get_role('ckeditor_ckfinder_fileDelete'));
?>
</select></td>
		</tr>
		</tbody>
		</table>

		<table class="widefat" style="width:560px;margin-top:10px">
		<thead>
		<tr>
			<th colspan="2"><?php 
_e('Images');
?>
</th><th colspan="2"><?php 
_e('Thumbnails');
?>
Exemplo n.º 4
0
<?php 
        }
    }
    // !is_multisite
    ?>
	<tr class="form-field">
		<th scope="row"><label for="role"><?php 
    _e('Role');
    ?>
</label></th>
		<td><select name="role" id="role">
			<?php 
    if (!$new_user_role) {
        $new_user_role = !empty($current_role) ? $current_role : get_option('default_role');
    }
    nxt_dropdown_roles($new_user_role);
    ?>
			</select>
		</td>
	</tr>
	<?php 
    if (is_multisite() && is_super_admin()) {
        ?>
	<tr>
		<th scope="row"><label for="noconfirmation"><?php 
        _e('Skip Confirmation Email');
        ?>
</label></th>
		<td><label for="noconfirmation"><input type="checkbox" name="noconfirmation" id="noconfirmation" value="1"  <?php 
        checked($new_user_ignore_pass);
        ?>
Exemplo n.º 5
0
<?php 
        if (!IS_PROFILE_PAGE && !is_network_admin()) {
            ?>
<tr><th><label for="role"><?php 
            _e('Role:');
            ?>
</label></th>
<td><select name="role" id="role">
<?php 
            // Get the highest/primary role for this user
            // TODO: create a function that does this: nxt_get_user_role()
            $user_roles = $profileuser->roles;
            $user_role = array_shift($user_roles);
            // print the full list of roles with the primary one selected.
            nxt_dropdown_roles($user_role);
            // print the 'no role' option. Make it selected if the user has no role yet.
            if ($user_role) {
                echo '<option value="">' . __('&mdash; No role for this site &mdash;') . '</option>';
            } else {
                echo '<option value="" selected="selected">' . __('&mdash; No role for this site &mdash;') . '</option>';
            }
            ?>
</select></td></tr>
<?php 
        }
        //!IS_PROFILE_PAGE
        if (is_multisite() && is_network_admin() && !IS_PROFILE_PAGE && current_user_can('manage_network_options') && !isset($super_admins)) {
            ?>
<tr><th><label for="role"><?php 
            _e('Super Admin');