• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wp_dropdown_roles函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wp_dropdown_roles函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_dropdown_roles函数的具体用法?PHP wp_dropdown_roles怎么用?PHP wp_dropdown_roles使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wp_dropdown_roles函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: callback

    public function callback($term = null)
    {
        if (!empty($term)) {
            $mp_term = \Morepress\Term::forge($term);
            ?>
			<tr class="form-field">
				<th scope="row" valign="top">
					<label for="term_meta_<?php 
            echo $this->_slug;
            ?>
"><?php 
            echo $this->_params['label'];
            ?>
</label>
				</th>
				<td>
                    <select id="term_meta_<?php 
            echo $this->_slug;
            ?>
" name="term_meta[<?php 
            echo $this->_slug;
            ?>
]"  id="term_meta_<?php 
            echo $this->_slug;
            ?>
">
                        <?php 
            wp_dropdown_roles($mp_term->getMeta($this->_slug));
            ?>
                    </select>
					<?php 
            if (!empty($this->_params['description'])) {
                ?>
						<p class="description"><?php 
                echo $this->_params['description'];
                ?>
</p>
					<?php 
            }
            ?>
				</td>
			</tr>
			<?php 
        }
    }
开发者ID:adriend,项目名称:morepress,代码行数:45,代码来源:Role.php


示例2: msum_options

function msum_options()
{
    $blogs = msum_get_blog_list(0, 'all');
    echo '<h3>' . __('Multisite User Management', 'msum') . '</h3>';
    if (empty($blogs)) {
        echo '<p><b>' . __('No public, safe sites available.', 'msum') . '</b></p>';
    } else {
        echo '<p>' . __('Select the default role for each of your sites.', 'msum') . '</p>';
        echo '<p>' . __('New users will receive these roles when activating their account. Existing users will receive these roles only if they have the current default role or no role at all for each particular site.', 'msum') . '</p>';
        echo '<table class="form-table">';
        foreach ($blogs as $key => $blog) {
            switch_to_blog($blog['blog_id']);
            ?>
			<tr valign="top">
				<th scope="row"><?php 
            echo get_bloginfo('name');
            ?>
</th>
				<td>
					<select name="msum_default_user_role[<?php 
            echo $blog['blog_id'];
            ?>
]" id="msum_default_user_role[<?php 
            echo $blog['blog_id'];
            ?>
]">
						<option value="none"><?php 
            _e('-- None --', 'msum');
            ?>
</option>
						<?php 
            wp_dropdown_roles(get_option('msum_default_user_role'));
            ?>
					</select>
				</td> 
			</tr>
		<?php 
            restore_current_blog();
        }
        echo '</table>';
    }
    echo '<p>' . __('<b>Note:</b> only public, non-mature and non-dashboard sites appear here. Set the default role for the dashboard site above under <b>Dashboard Settings</b>.', 'msum') . '</p>';
}
开发者ID:howardlei82,项目名称:IGSM-Website,代码行数:43,代码来源:ms-user-management.php


示例3: if

<?php if ( $wp_user_search->results_are_paged() ) : ?>
	<div class="tablenav-pages"><?php $wp_user_search->page_links(); ?></div>
<?php endif; ?>

<div class="alignleft actions">
<select name="action">
<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
<?php if ( !is_multisite() && current_user_can('delete_users') ) { ?>
<option value="delete"><?php _e('Delete'); ?></option>
<?php } else { ?>
<option value="remove"><?php _e('Remove'); ?></option>
<?php } ?>
</select>
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
<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 wp_dropdown_roles(); ?></select>
<input type="submit" value="<?php esc_attr_e('Change'); ?>" name="changeit" class="button-secondary" />
<?php wp_nonce_field('bulk-users'); ?>
</div>

<br class="clear" />
</div>

	<?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?>
		<div class="error">
			<ul>
			<?php
				foreach ( $wp_user_search->search_errors->get_error_messages() as $message )
					echo "<li>$message</li>";
			?>
			</ul>
开发者ID:realfluid,项目名称:umbaugh,代码行数:30,代码来源:users.php


示例4: _e

</tr>
<tr valign="top"> 
<th scope="row"><?php _e('Membership:') ?></th> 
<td> <label for="users_can_register"> 
<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> /> 
<?php _e('Anyone can register') ?></label><br />
<label for="comment_registration">
<input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_option('comment_registration')); ?> /> 
<?php _e('Users must be registered and logged in to comment') ?>
</label>
</td> 
</tr> 
<tr valign="top"> 
<th scope="row"><?php _e('New User Default Role:') ?></th> 
<td><label for="default_role"> 
<select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select></label>
</td> 
</tr> 
</table> 
<fieldset class="options"> 
<legend><?php _e('Date and Time') ?></legend> 
<table class="optiontable"> 
<tr> 
<th scope="row"><?php _e('<abbr title="Coordinated Universal Time">UTC</abbr> time is:') ?> </th> 
<td><code><?php echo gmdate(__('Y-m-d g:i:s a')); ?></code></td> 
</tr>
<tr>
<th scope="row"><?php _e('Times in the weblog should differ by:') ?> </th>
<td><input name="gmt_offset" type="text" id="gmt_offset" size="2" value="<?php form_option('gmt_offset'); ?>" /> 
<?php _e('hours') ?> (<?php _e('Your timezone offset, for example <code>-6</code> for Central Time.'); ?>)</td>
</tr>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:options-general.php


示例5: extra_tablenav

    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 
        wp_dropdown_roles();
        ?>
		</select>
		<?php 
        submit_button(__('Change'), 'small', 'changeit', false);
        ?>
	</div>
<?php 
    }
开发者ID:rkglug,项目名称:WordPress,代码行数:29,代码来源:class-wp-users-list-table.php


示例6: _e

_e('Members may only sign up for active subscription levels.', 'rcp');
?>
</p>
				</td>
			</tr>
			<tr class="form-field">
				<th scope="row" valign="top">
					<label for="rcp-role"><?php 
_e('User Role', 'rcp');
?>
</label>
				</th>
				<td>
					<select name="role" id="rcp-role">
						<?php 
wp_dropdown_roles($level->role);
?>
					</select>
					<p class="description"><?php 
_e('The user role given to the member after signing up.', 'rcp');
?>
</p>
				</td>
			</tr>
			<?php 
do_action('rcp_edit_subscription_form', $level);
?>
		</tbody>
	</table>
	<p class="submit">
		<input type="hidden" name="rcp-action" value="edit-subscription"/>
开发者ID:ramiy,项目名称:restrict-content-pro,代码行数:31,代码来源:edit-subscription.php


示例7: _e

        _e('Delete');
        ?>
</option>
</select>
<input type="submit" value="<?php 
        _e('Apply');
        ?>
" name="doaction" id="doaction" class="button-secondary action" />
<label class="hidden" 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 
        wp_dropdown_roles();
        ?>
</select>
<input type="submit" value="<?php 
        _e('Change');
        ?>
" name="changeit" class="button-secondary" />
<?php 
        wp_nonce_field('bulk-users');
        ?>
</div>

<br class="clear" />
</div>

	<?php 
开发者ID:blowery,项目名称:wordpress,代码行数:31,代码来源:users.php


示例8: nggallery_admin_roles

function nggallery_admin_roles()
{
    if (isset($_POST['update_cap'])) {
        check_admin_referer('ngg_addroles');
        // now set or remove the capability
        ngg_set_capability($_POST['general'], "NextGEN Gallery overview");
        ngg_set_capability($_POST['tinymce'], "NextGEN Use TinyMCE");
        ngg_set_capability($_POST['add_gallery'], "NextGEN Upload images");
        ngg_set_capability($_POST['manage_gallery'], "NextGEN Manage gallery");
        ngg_set_capability($_POST['manage_others'], "NextGEN Manage others gallery");
        ngg_set_capability($_POST['manage_tags'], "NextGEN Manage tags");
        ngg_set_capability($_POST['edit_album'], "NextGEN Edit album");
        ngg_set_capability($_POST['change_style'], "NextGEN Change style");
        ngg_set_capability($_POST['change_options'], "NextGEN Change options");
        nggGallery::show_message(__('Updated capabilities', "nggallery"));
    }
    ?>
	<div class="wrap">
    <?php 
    screen_icon('nextgen-gallery');
    ?>
	<h2><?php 
    _e('Roles / capabilities', 'nggallery');
    ?>
</h2>
	<p><?php 
    _e('Select the lowest role which should be able to access the following capabilities. NextCellent Gallery supports the standard roles from WordPress.', 'nggallery');
    ?>
 <br />
	   <?php 
    _e('For a more flexible user management you can use the', 'nggallery');
    ?>
 <a href="http://wordpress.org/extend/plugins/capsman/" target="_blank">Capability Manager</a>.</p>
	<form name="addroles" id="addroles" method="POST" accept-charset="utf-8" >
		<?php 
    wp_nonce_field('ngg_addroles');
    ?>
			<table class="form-table">
			<tr valign="top">
				<th scope="row"><label for="general"><?php 
    _e('NextCellent Gallery overview', 'nggallery');
    ?>
</label></th>
				<td><select name="general" id="general"><?php 
    wp_dropdown_roles(ngg_get_role('NextGEN Gallery overview'));
    ?>
</select></td>
			</tr>
			<tr valign="top">
				<th scope="row"><label for="tinymce"><?php 
    _e('Use TinyMCE Button / Add Media', 'nggallery');
    ?>
</label></th>
				<td><select name="tinymce" id="tinymce"><?php 
    wp_dropdown_roles(ngg_get_role('NextGEN Use TinyMCE'));
    ?>
</select></td>
			</tr>
			<tr valign="top">
				<th scope="row"><label for="add_gallery"><?php 
    _e('Add gallery / Upload images', 'nggallery');
    ?>
</label></th>
				<td><select name="add_gallery" id="add_gallery"><?php 
    wp_dropdown_roles(ngg_get_role('NextGEN Upload images'));
    ?>
</select></td>
			</tr>
			<tr valign="top">
				<th scope="row"><label for="manage_gallery"><?php 
    _e('Manage gallery', 'nggallery');
    ?>
</label></th>
				<td><select name="manage_gallery" id="manage_gallery"><?php 
    wp_dropdown_roles(ngg_get_role('NextGEN Manage gallery'));
    ?>
</select></td>
			</tr>
			<tr valign="top">
				<th scope="row"><label for="manage_others"><?php 
    _e('Manage others gallery', 'nggallery');
    ?>
</label></th>
				<td><select name="manage_others" id="manage_others"><?php 
    wp_dropdown_roles(ngg_get_role('NextGEN Manage others gallery'));
    ?>
</select></td>
			</tr>
			<tr valign="top">
				<th scope="row"><label for="manage_tags"><?php 
    _e('Manage tags', 'nggallery');
    ?>
</label></th>
				<td><select name="manage_tags" id="manage_tags"><?php 
    wp_dropdown_roles(ngg_get_role('NextGEN Manage tags'));
    ?>
</select></td>
			</tr>
			<tr valign="top">
				<th scope="row"><label for="edit_album"><?php 
//.........这里部分代码省略.........
开发者ID:valerol,项目名称:korpus,代码行数:101,代码来源:roles.php


示例9: user_primary_role_dropdown_list

    public function user_primary_role_dropdown_list($user_roles)
    {
        ?>
        
        <select name="primary_role" id="primary_role">
<?php 
        // Compare user role against currently editable roles
        $user_roles = array_intersect(array_values($user_roles), array_keys(get_editable_roles()));
        $user_primary_role = array_shift($user_roles);
        // print the full list of roles with the primary one selected.
        wp_dropdown_roles($user_primary_role);
        // print the 'no role' option. Make it selected if the user has no role yet.
        $selected = empty($user_primary_role) ? 'selected="selected"' : '';
        echo '<option value="" ' . $selected . '>' . esc_html__('&mdash; No role for this site &mdash;') . '</option>';
        ?>
        </select>
<?php 
    }
开发者ID:pwsclau,项目名称:kurastar_dev,代码行数:18,代码来源:class-ure-lib.php


示例10: wp_dropdown_roles

?>
</label></th>
			<td><select name="access_post" class="tzn_option_select">
				<?php 
echo wp_dropdown_roles($this->options['access_post']);
?>
			</select></td>
		</tr>
		<tr>
			<th><label><?php 
_e('Who can moderate the project', 'taskfreak');
?>
</label></th>
			<td><select name="access_manage" class="tzn_option_select">
				<?php 
echo wp_dropdown_roles($this->options['access_manage']);
?>
			</select></td>
		</tr>
		</table>
		<h3><?php 
_e('Security options', 'taskfreak');
?>
</h3>
		<table class="form-table">
		<tr>
			<th><label><?php 
_e('Allow uploads in task comments', 'taskfreak');
?>
</label></th>
			<td>
开发者ID:tomzt,项目名称:tfwp,代码行数:31,代码来源:settings.php


示例11: wp_dropdown_roles

 <span class="description"><?php 
echo SwpmUtils::_('(required)');
?>
</span></label></th>
            <td><input class="regular-text validate[required]" name="alias" type="text" id="alias" value="" aria-required="true" /></td>
	</tr>
	<tr class="form-field form-required">
            <th scope="row"><label for="role"><?php 
echo SwpmUtils::_('Default WordPress Role');
?>
 <span class="description"><?php 
echo SwpmUtils::_('(required)');
?>
</span></label></th>
            <td><select  class="regular-text" name="role"><?php 
wp_dropdown_roles('subscriber');
?>
</select></td>
	</tr>
        <tr>
            <th scope="row"><label for="subscription_period"><?php 
echo SwpmUtils::_('Access Duration');
?>
 <span class="description"><?php 
echo SwpmUtils::_('(required)');
?>
</span></label>
            </th>
            <td>
                <p><input type="radio" checked="checked" value="<?php 
echo SwpmMembershipLevel::NO_EXPIRY;
开发者ID:kevinotsuka,项目名称:coffeecircle,代码行数:31,代码来源:admin_add_level.php


示例12: wp_dropdown_roles

?>
:</label>
        <select name="capability[gmedia_module_manage]" class="form-control input-sm"><?php 
wp_dropdown_roles($gmDB->get_role('gmedia_module_manage'));
?>
</select>

        <p class="help-block"><?php 
_e('Who can manage modules', 'grand-media');
?>
</p>
    </div>

    <div class="form-group">
        <label><?php 
_e('Settings', 'grand-media');
?>
:</label>
        <select name="capability[gmedia_settings]" class="form-control input-sm"><?php 
wp_dropdown_roles($gmDB->get_role('gmedia_settings'));
?>
</select>

        <p class="help-block"><?php 
_e('Who can change settings. Note: Capabilites can be changed only by administrator', 'grand-media');
?>
</p>
    </div>

</fieldset>
开发者ID:pasyuk,项目名称:grand-media,代码行数:30,代码来源:roles.php


示例13: clean_login_options


//.........这里部分代码省略.........
    echo __('User role', 'cleanlogin');
    ?>
</th>
					<td>
						<label><input name="standby" type="checkbox" id="standby" <?php 
    if ($standby == 'on') {
        echo 'checked="checked"';
    }
    ?>
><?php 
    echo __('Enable Standby role?', 'cleanlogin');
    ?>
</label>
						<p class="description"><?php 
    echo __('Standby role disables all the capabilities for new users, until the administrator changes. It usefull for site with restricted components.', 'cleanlogin');
    ?>
</p>
						<br>
						<label><input name="chooserole" type="checkbox" id="chooserole" <?php 
    if ($chooserole == 'on') {
        echo 'checked="checked"';
    }
    ?>
><?php 
    echo __('Choose the role(s) in the registration form?', 'cleanlogin');
    ?>
</label>
						<p class="description"><?php 
    echo __('This feature allows you to choose the role from the frontend, with the selected roles you want to show. You can also define an standard predefined role through a shortcode parameter, e.g. [clean-login-register role="contributor"]. Anyway, you need to choose only the role(s) you want to accept to avoid security/infiltration issues.', 'cleanlogin');
    ?>
</p>
						<p>
							<select name="newuserroles[]" id="newuserroles" multiple size="5"><?php 
    wp_dropdown_roles();
    ?>
</select>
							<?php 
    //print_r($newuserroles);
    ?>
						</p>
					</td>
				</tr>
				<tr>
					<th scope="row"><?php 
    echo __('Hide username', 'cleanlogin');
    ?>
</th>
					<td>
						<label><input name="hideuser" type="checkbox" id="hideuser" <?php 
    if ($hideuser == 'on') {
        echo 'checked="checked"';
    }
    ?>
><?php 
    echo __('Hide username?', 'cleanlogin');
    ?>
</label>
						<p class="description"><?php 
    echo __('Hide username from the preview form.', 'cleanlogin');
    ?>
</p>
					</td>
				</tr>
				<tr>
					<th scope="row"><?php 
    echo __('Password complexity', 'cleanlogin');
开发者ID:seanlon,项目名称:profile-page,代码行数:67,代码来源:clean-login.php


示例14: display


//.........这里部分代码省略.........
" size="8" />
				<?php 
                if ($i < $ilim - 1) {
                    ?>
				&nbsp;<span class="pp-usermeta-field-more" <?php 
                    if (empty($_GET["pp_search_user_meta_key_{$i}_{$id_suffix}"])) {
                        echo 'style="display:none"';
                    }
                    ?>
>+</span>
				<?php 
                }
                ?>
				</div>
			<?php 
            }
            ?>
		<?php 
        }
        ?>
		
		<?php 
        if ('user' == $agent_type && pp_get_option('user_search_by_role')) {
            ?>
			<select id="pp_search_role_<?php 
            echo $id_suffix;
            ?>
" class="pp-search-role">
			<option value=""><?php 
            _e('(any WP role)', 'pp');
            ?>
</option>
			<?php 
            wp_dropdown_roles();
            ?>
			</select>
		<?php 
        }
        ?>
		</td>
		
		<?php 
        if ($display_stored_selections) {
            ?>
			<td style="vertical-align:top" class="pp-members-current">
			</td>
		<?php 
        }
        ?>
		
		</tr>
		
		<tr><td>
		<h4><?php 
        _e('Search Results:', 'pp');
        ?>
<img class="waiting" style="display:none;float:right" src="<?php 
        echo esc_url(admin_url('images/wpspin_light.gif'));
        ?>
" alt="" /></h4>
		
		<select id="agent_results_<?php 
        echo $id_suffix;
        ?>
" class="pp_agent_results" <?php 
        if ($multi_select) {
开发者ID:severnrescue,项目名称:web,代码行数:67,代码来源:agents-ajax_pp.php


示例15: render_default_wp_role

 public function render_default_wp_role()
 {
     echo '<select style="min-width: 200px;" name="aad-settings[default_wp_role]" id="new_role">';
     echo '<option value="">No Role</option>';
     wp_dropdown_roles($this->default_wp_role);
     echo '</select>';
     // echo '<p class="description">If no role is selected, a user will not be added.</p>';
 }
开发者ID:VirtualClarity,项目名称:aad-sso-wordpress,代码行数:8,代码来源:Settings.php


示例16: special_actions

    /**
     * Sidebar metabox for administrative user actions
     *
     *
     * @todo Fix delete link to be handled internally and not depend on built-in user management
     * @since 0.01
     *
     */
    function special_actions($object)
    {
        global $current_user, $wpdb, $wp_filter, $user_id;
        $current_user_id = $current_user->ID;
        $user_id = $object['ID']['default'][0];
        $profileuser = get_user_to_edit($user_id);
        if ($user_id == $current_user_id) {
            $own_profile = true;
        }
        ?>
   
  <div id="minor-publishing">
  
  <ul class="wp_crm_advanced_user_actions_wrapper">

    <li class="wp_crm_advanced_user_actions">
      <div class="wp_crm_toggle_advanced_user_actions wp_crm_link"><?php 
        _e('Toggle Settings');
        ?>
</div>
      <div class="wp_crm_advanced_user_actions wp-tab-panel">

      <?php 
        if (current_user_can('edit_users')) {
            ?>

      <?php 
            if (current_user_can('WP-CRM: Change Passwords')) {
                ?>
      <?php 
                _e('Set Password:', 'wp_crm');
                ?>
      <ul class="wp_crm_edit_password">
        <li>
          <input type="password" autocomplete="off" value="" size="16" class="wp_crm_user_password" id="wp_crm_password_1" name="wp_crm[user_data][user_pass][<?php 
                echo rand(1000, 9999);
                ?>
][value]" />
          <span class="description"><?php 
                _e('Type in new password twice to change.');
                ?>
</span>
        </li>

        <li>
          <input type="password" autocomplete="off" value="" size="16" class="wp_crm_user_password" id="wp_crm_password_2" />
          <span class="description"><?php 
                _e('Type your new password again.');
                ?>
</span>
        </li>

      </ul>
      <?php 
            }
            ?>

      <ul>
        <?php 
            if (current_user_can('edit_roles')) {
                ?>
        <li class="wp_crm_edit_roles">
          <label for="wp_crm_role"><?php 
                _e('Capability Role:', 'wp_crm');
                ?>
</label>
          <select id="wp_crm_role" <?php 
                echo $own_profile ? ' disabled="true" ' : '';
                ?>
 name="wp_crm[user_data][role][<?php 
                echo rand(1000, 9999);
                ?>
][value]">
            <option value=""></option>
            <?php 
                wp_dropdown_roles($object['role']['default'][0]);
                ?>
          </select>
        </li>
        <?php 
            }
            ?>

        <li class="wp_crm_capability_bar">
          <input name="show_admin_bar_front" type="hidden" value="false"  />
          <input name="show_admin_bar_front" type="checkbox" id="show_admin_bar_front" value="true" <?php 
            checked(_get_admin_bar_pref('front', $profileuser->ID));
            ?>
 />
          <label for="show_admin_bar_front"><?php 
            _e('Show Admin Bar when viewing site.');
            ?>
//.........这里部分代码省略.........
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:101,代码来源:crm_metaboxes.php


示例17: settings_page_tab_content


//.........这里部分代码省略.........
              <li>
                <label><?php 
            _e('Shortcode:', 'wp_crm');
            ?>
</label>
                <input type="text" READONLY class='regular-text wp_crm_contact_form_shortcode'   name="wp_crm[wp_crm_contact_system_data][<?php 
            echo $contact_form_slug;
            ?>
][full_shortcode]"   value="<?php 
            echo $data['full_shortcode'];
            ?>
" />
                <input type="hidden" class='regular-text wp_crm_contact_form_current_form_slug'   name="wp_crm[wp_crm_contact_system_data][<?php 
            echo $contact_form_slug;
            ?>
][current_form_slug]"   value="<?php 
            echo $data['current_form_slug'];
            ?>
" />
              </li>


              <li>
                <label for=""><?php 
            _e('Role:');
            ?>
</label>
                <select id="" name="wp_crm[wp_crm_contact_system_data][<?php 
            echo $contact_form_slug;
            ?>
][new_user_role]">
                  <option value=""> - </option>
                  <?php 
            wp_dropdown_roles($data['new_user_role']);
            ?>
                </select>
                <span class="description"><?php 
            _e('If new user created, assign this role.');
            ?>
</span>
             </li>


              <li class="wp_crm_checkbox_on_left">
                <input <?php 
            checked($data['message_field'], 'on');
            ?>
 id="message_<?php 
            echo $row_hash;
            ?>
" type="checkbox"  name="wp_crm[wp_crm_contact_system_data][<?php 
            echo $contact_form_slug;
            ?>
][message_field]"  value="on"  value="<?php 
            echo $data['message_field'];
            ?>
" />
                <label for="message_<?php 
            echo $row_hash;
            ?>
"><?php 
            _e('Display textarea for custom message.', 'wp_crm');
            ?>
</label>
              </li>
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:66,代码来源:class_contact_messages.php


示例18: _e

				                				<strong><?php 
_e('Who can create tasks', 'taskfreak');
?>
</strong><br />
				                				<select name="who_post"><?php 
echo wp_dropdown_roles($this->data->get('who_post'));
?>
</select>
				                			</li>
				                			<li style="line-height:1.75em">
				                				<strong><?php 
_e('Who can moderate the project', 'taskfreak');
?>
</strong><br />
				                				<select name="who_manage"><?php 
echo wp_dropdown_roles($this->data->get('who_manage'));
?>
</select>
				                			</li>
				                		</ul>
				                		<a href="javascript:{}" class="tzn_option_save hide-if-no-js button"><?php 
_e('OK', 'taskfreak');
?>
</a>
				                		<a href="javascript:{}" class="tzn_option_cancel hide-if-no-js"><?php 
_e('Cancel', 'taskfreak');
?>
</a>
				                	</div>
				                </div>
								<div class="clear"></div>
开发者ID:tomzt,项目名称:tfwp,代码行数:31,代码来源:project_edit.php


示例19: flag_admin_options


//.........这里部分代码省略.........
				</tr>
			</table>
			<div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php 
    _e('Save Changes', 'flag');
    ?>
"/></div>
		</form>
	</div>
	
<?php 
    if (flagGallery::flag_wpmu_enable_function('wpmuRoles')) {
        ?>
	<div id="roles" class="cptab">
		<form method="POST" name="addroles" id="addroles" accept-charset="utf-8">
			<?php 
        wp_nonce_field('flag_addroles');
        ?>
			<h2><?php 
        _e('Roles / capabilities', 'flag');
        ?>
</h2>
			<div>&nbsp;</div>
			<p><?php 
        _e('Select the lowest role which should be able to access the follow capabilities. Flash Album Gallery supports the standard roles from WordPress.', 'flag');
        ?>
</p>
			<table class="form-table"> 
			<tr valign="top"> 
				<th scope="row" style="white-space: nowrap"><?php 
        _e('Main Flash Album Gallery overview', 'flag');
        ?>
:</th> 
				<td><label for="general"><select style="width: 150px;" name="general" id="general"><?php 
        wp_dropdown_roles(flag_get_role('FlAG overview'));
        ?>
</select></label></td>
			</tr>
			<tr valign="top"> 
				<th scope="row" style="white-space: nowrap"><?php 
        _e('View TinyMCE Button / GRAND Pages', 'flag');
        ?>
:</th>
				<td><label for="tinymce"><select style="width: 150px;" name="tinymce" id="tinymce"><?php 
        wp_dropdown_roles(flag_get_role('FlAG Use TinyMCE'));
        ?>
</select></label></td>
			</tr>
			<tr valign="top"> 
				<th scope="row" style="white-space: nowrap"><?php 
        _e('Add gallery / Upload images', 'flag');
        ?>
:</th> 
				<td><label for="add_gallery"><select style="width: 150px;" name="add_gallery" id="add_gallery"><?php 
        wp_dropdown_roles(flag_get_role('FlAG Upload images'));
        ?>
</select></label></td>
			</tr>
			<tr valign="top"> 
				<th scope="row" style="white-space: nowrap"><?php 
        _e('Import images folder', 'flag');
        ?>
:</th> 
				<td><label for="add_gallery"><select style="width: 150px;" name="import_gallery" id="import_gallery"><?php 
        wp_dropdown_roles(flag_get_role('FlAG Import folder'));
        ?>
</select></label></td>
开发者ID:vadia007,项目名称:acoustics,代码行数:67,代码来源:settings.php


示例20: _e

?>
" class="regular-text" />
					<br />
					<?php 
_e('Site path (&#8220;dashboard&#8221;, &#8220;control&#8221;, &#8220;manager&#8221;, etc.) or blog ID.<br />New users are added to this site as the user role defined below if they don&#8217;t have a site. Leave blank for the main site. Users with the Subscriber role on the old site will be moved to the new site if changed. The new site will be created if it does not exist.');
?>
				</td>
			</tr>
			<tr valign="top">
				<th scope="row"><label for="default_user_role"><?php 
_e('Dashboard User Default Role');
?>
</label></th>
				<td>
					<select name="default_user_role" id="default_user_role"><?php 
wp_dropdown_roles(get_site_option('default_user_role', 'subscriber'));
?>
					</select>
					<br />
					<?php 
_e('The default role for new users on the Dashboard site. &#8220;Subscriber&#8221; or &#8220;Contributor&#8221; roles are recommended.');
?>
				</td>
			</tr>
			<tr valign="top">
				<th scope="row"><label for="admin_notice_feed"><?php 
_e('Admin Notice Feed');
?>
</label></th>
				<td><input name="admin_notice_feed" class="large-text" type="text" id="admin_notice_feed" value="<?php 
echo esc_attr(get_site_option('admin_notice_feed'));
开发者ID:junxuan,项目名称:wordpress,代码行数:31,代码来源:settings.php



注:本文中的wp_dropdown_roles函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wp_dropdown_users函数代码示例发布时间:2022-05-23
下一篇:
PHP wp_dropdown_pages函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap