当前位置: 首页>>代码示例>>PHP>>正文


PHP wp_original_referer_field函数代码示例

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


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

示例1: handle_addons_panel

        function handle_addons_panel()
        {
            global $action, $page;
            wp_reset_vars(array('action', 'page'));
            $messages = array();
            $messages[1] = __('Add-on updated.', 'popover');
            $messages[2] = __('Add-on not updated.', 'popover');
            $messages[3] = __('Add-on activated.', 'popover');
            $messages[4] = __('Add-on not activated.', 'popover');
            $messages[5] = __('Add-on deactivated.', 'popover');
            $messages[6] = __('Add-on not deactivated.', 'popover');
            $messages[7] = __('Add-on activation toggled.', 'popover');
            ?>
            <div class='wrap'>
                <div class="icon32" id="icon-plugins"><br></div>
                <h2><?php 
            _e('Edit Add-ons', 'popover');
            ?>
</h2>

            <?php 
            if (isset($_GET['msg'])) {
                echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
                $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
            }
            ?>

                <form method="get" action="?page=<?php 
            echo esc_attr($page);
            ?>
" id="posts-filter">

                    <input type='hidden' name='page' value='<?php 
            echo esc_attr($page);
            ?>
' />

                    <div class="tablenav">

                        <div class="alignleft actions">
                            <select name="action">
                                <option selected="selected" value=""><?php 
            _e('Bulk Actions', 'popover');
            ?>
</option>
                                <option value="toggle"><?php 
            _e('Toggle activation', 'popover');
            ?>
</option>
                            </select>
                            <input type="submit" class="button-secondary action" id="doaction" name="doaction" value="<?php 
            _e('Apply', 'popover');
            ?>
">

                        </div>

                        <div class="alignright actions"></div>

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

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

            <?php 
            wp_original_referer_field(true, 'previous');
            wp_nonce_field('bulk-addons');
            $columns = array("name" => __('Add-on Name', 'popover'), "file" => __('Add-on File', 'popover'), "active" => __('Active', 'popover'));
            $columns = apply_filters('popover_addoncolumns', $columns);
            $addons = get_popover_addons();
            $active = get_option('popover_activated_addons', array());
            ?>

                    <table cellspacing="0" class="widefat fixed">
                        <thead>
                            <tr>
                                <th style="" class="manage-column column-cb check-column" id="cb" scope="col"><input type="checkbox"></th>
            <?php 
            foreach ($columns as $key => $col) {
                ?>
                                    <th style="" class="manage-column column-<?php 
                echo $key;
                ?>
" id="<?php 
                echo $key;
                ?>
" scope="col"><?php 
                echo $col;
                ?>
</th>
                        <?php 
            }
            ?>
                            </tr>
                        </thead>

                        <tfoot>
                            <tr>
                                <th style="" class="manage-column column-cb check-column" scope="col"><input type="checkbox"></th>
                    <?php 
//.........这里部分代码省略.........
开发者ID:newmight2015,项目名称:psmpsm,代码行数:101,代码来源:popoveradmin.php

示例2: wpjam_form

function wpjam_form($form_fields, $form_url, $nonce_action = '', $submit_text = '')
{
    global $plugin_page;
    $nonce_action = $nonce_action ? $nonce_action : $plugin_page;
    wpjam_admin_errors();
    // 显示错误
    ?>
	<form method="post" action="<?php 
    echo $form_url;
    ?>
" enctype="multipart/form-data" id="form">
		<?php 
    wpjam_form_fields($form_fields);
    ?>
		<?php 
    wp_nonce_field($nonce_action);
    ?>
		<?php 
    wp_original_referer_field(true, 'previous');
    ?>
		<?php 
    if ($submit_text !== false) {
        submit_button($submit_text);
    }
    ?>
	</form>
	<?php 
}
开发者ID:ryandong82,项目名称:colorfulladysite,代码行数:28,代码来源:wpjam-setting-api.php

示例3: print_configure_view

        /**
         * Prepare and display the configuration view for editorial metadata.
         * There are four primary components:
         * - Form to add a new Editorial Metadata term
         * - Form generated by the settings API for managing Editorial Metadata options
         * - Table of existing Editorial Metadata terms with ability to take actions on each
         * - Full page width view for editing a single Editorial Metadata term
         *
         * @since 0.7
         */
        function print_configure_view()
        {
            global $edit_flow;
            $wp_list_table = new EF_Editorial_Metadata_List_Table();
            $wp_list_table->prepare_items();
            ?>
		<script type="text/javascript">
			var ef_confirm_delete_term_string = "<?php 
            echo esc_js(__('Are you sure you want to delete this term? Any metadata for this term will remain but will not be visible unless this term is re-added.', 'edit-flow'));
            ?>
";
		</script>
		<?php 
            if (!isset($_GET['action']) || isset($_GET['action']) && $_GET['action'] != 'edit-term') {
                ?>
		<div id="col-right">
		<div class="col-wrap">
		<form id="posts-filter" action="" method="post">
			<?php 
                $wp_list_table->display();
                ?>
			<?php 
                wp_nonce_field('editorial-metadata-sortable', 'editorial-metadata-sortable');
                ?>
		</form>
		</div>
		</div><!-- /col-right -->
		<?php 
                $wp_list_table->inline_edit();
                ?>
		<?php 
            }
            ?>
	
		
		<?php 
            if (isset($_GET['action'], $_GET['term-id']) && $_GET['action'] == 'edit-term') {
                ?>
		<?php 
                /** Full page width view for editing a given editorial metadata term **/
                ?>
		<?php 
                // Check whether the term exists
                $term_id = (int) $_GET['term-id'];
                $term = $this->get_editorial_metadata_term_by('id', $term_id);
                if (!$term) {
                    echo '<div class="error"><p>' . $this->module->messages['term-missing'] . '</p></div>';
                    return;
                }
                $metadata_types = $this->get_supported_metadata_types();
                $type = $term->type;
                $edit_term_link = $this->get_link(array('action' => 'edit-term', 'term-id' => $term->term_id));
                $name = isset($_POST['name']) ? stripslashes($_POST['name']) : $term->name;
                $description = isset($_POST['description']) ? stripslashes($_POST['description']) : $term->description;
                if ($term->viewable) {
                    $viewable = 'yes';
                } else {
                    $viewable = 'no';
                }
                $viewable = isset($_POST['viewable']) ? stripslashes($_POST['viewable']) : $viewable;
                ?>
		
		<form method="post" action="<?php 
                echo esc_url($edit_term_link);
                ?>
" >
		<input type="hidden" name="action" value="editedtag" />
		<input type="hidden" name="tag_id" value="<?php 
                echo esc_attr($term->term_id);
                ?>
" />
		<input type="hidden" name="taxonomy" value="<?php 
                echo esc_attr(self::metadata_taxonomy);
                ?>
" />
		<?php 
                wp_original_referer_field();
                wp_nonce_field('editorial-metadata-edit-nonce');
                ?>
		<table class="form-table">
			<tr class="form-field form-required">
				<th scope="row" valign="top"><label for="name"><?php 
                _e('Name');
                ?>
</label></th>
				<td><input name="name" id="name" type="text" value="<?php 
                echo esc_attr($name);
                ?>
" size="40" aria-required="true" />
				<?php 
//.........这里部分代码省略.........
开发者ID:Mamaduka,项目名称:Edit-Flow,代码行数:101,代码来源:editorial-metadata.php

示例4: login_form

 /**
  * Adds "_wp_original_referer" field to login form
  *
  * Callback for "tml_login_form" hook in file "login-form.php", included by method Theme_My_Login_Template::display()
  *
  * @see Theme_My_Login_Template::display()
  * @since 6.0
  * @access public
  *
  * @param object $template Reference to $theme_my_login_template object
  */
 function login_form(&$template)
 {
     $jump_back_to = empty($template->instance) ? 'previous' : 'current';
     wp_original_referer_field(true, $jump_back_to);
     echo "\n";
 }
开发者ID:JerryXie96,项目名称:PBSMUNC2013WebSite,代码行数:17,代码来源:custom-redirection.php

示例5: handle_gateways_panel

        function handle_gateways_panel()
        {
            global $action, $page, $M_Gateways;
            wp_reset_vars(array('action', 'page'));
            switch (addslashes($action)) {
                case 'edit':
                    if (isset($M_Gateways[addslashes($_GET['gateway'])])) {
                        $M_Gateways[addslashes($_GET['gateway'])]->settings();
                    }
                    return;
                    // so we don't show the list below
                    break;
                case 'transactions':
                    if (isset($M_Gateways[addslashes($_GET['gateway'])])) {
                        $M_Gateways[addslashes($_GET['gateway'])]->transactions();
                    }
                    return;
                    // so we don't show the list below
                    break;
            }
            $messages = array();
            $messages[1] = __('Gateway updated.', 'membership');
            $messages[2] = __('Gateway not updated.', 'membership');
            $messages[3] = __('Gateway activated.', 'membership');
            $messages[4] = __('Gateway not activated.', 'membership');
            $messages[5] = __('Gateway deactivated.', 'membership');
            $messages[6] = __('Gateway not deactivated.', 'membership');
            $messages[7] = __('Gateway activation toggled.', 'membership');
            ?>
			<div class='wrap'>
				<div class="icon32" id="icon-plugins"><br></div>
				<h2><?php 
            _e('Edit Gateways', 'membership');
            ?>
</h2>

				<?php 
            if (isset($_GET['msg'])) {
                echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
                $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
            }
            if ($this->show_user_help($page)) {
                ?>
					<div class='screenhelpheader'>
						<a href="admin.php?page=<?php 
                echo $page;
                ?>
&amp;action=removeheader" class="welcome-panel-close"><?php 
                _e('Dismiss', 'membership');
                ?>
</a>
						<?php 
                ob_start();
                include_once membership_dir('membershipincludes/help/header.gateways.php');
                echo ob_get_clean();
                ?>
					</div>
					<?php 
            }
            ?>

				<form method="get" action="?page=<?php 
            echo esc_attr($page);
            ?>
" id="posts-filter">

				<input type='hidden' name='page' value='<?php 
            echo esc_attr($page);
            ?>
' />

				<div class="tablenav">

				<div class="alignleft actions">
				<select name="action">
				<option selected="selected" value=""><?php 
            _e('Bulk Actions', 'membership');
            ?>
</option>
				<option value="toggle"><?php 
            _e('Toggle activation', 'membership');
            ?>
</option>
				</select>
				<input type="submit" class="button-secondary action" id="doaction" name="doaction" value="<?php 
            _e('Apply', 'membership');
            ?>
">

				</div>

				<div class="alignright actions"></div>

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

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

				<?php 
            wp_original_referer_field(true, 'previous');
//.........这里部分代码省略.........
开发者ID:shimion,项目名称:member-BMH-,代码行数:101,代码来源:membershipadmin_27012015.php

示例6: __

	$heading = __('Add Tag');
	$submit_text = __('Add Tag');
	$form = '<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">';
	$action = 'addtag';
	$nonce_action = 'add-tag';
	do_action('add_tag_form_pre', $tag);
}
?>

<div class="wrap">
<h2><?php echo $heading ?></h2>
<div id="ajax-response"></div>
<?php echo $form ?>
<input type="hidden" name="action" value="<?php echo $action ?>" />
<input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" />
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?>
	<table class="form-table">
		<tr class="form-field form-required">
			<th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th>
			<td><input name="name" id="name" type="text" value="<?php echo attribute_escape($tag->name); ?>" size="40" />
            <p><?php _e('The name is how the tag appears on your site.'); ?></p></td>
		</tr>
		<tr class="form-field">
			<th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th>
			<td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape($tag->slug); ?>" size="40" />
            <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
		</tr>
	</table>
<p class="submit"><input type="submit" class="button" name="submit" value="<?php echo $submit_text ?>" /></p>
<?php do_action('edit_tag_form', $tag); ?>
</form>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-tag-form.php

示例7: handle_gateways_panel

        static function handle_gateways_panel()
        {
            global $action, $page, $EM_Gateways, $EM_Pro;
            wp_reset_vars(array('action', 'page'));
            switch (addslashes($action)) {
                case 'edit':
                    if (isset($EM_Gateways[addslashes($_GET['gateway'])])) {
                        $EM_Gateways[addslashes($_GET['gateway'])]->settings();
                    }
                    return;
                    // so we don't show the list below
                    break;
                case 'transactions':
                    if (isset($EM_Gateways[addslashes($_GET['gateway'])])) {
                        global $EM_Gateways_Transactions;
                        $EM_Gateways_Transactions->output();
                    }
                    return;
                    // so we don't show the list below
                    break;
            }
            $messages = array();
            $messages[1] = __('Gateway updated.');
            $messages[2] = __('Gateway not updated.');
            $messages[3] = __('Gateway activated.');
            $messages[4] = __('Gateway not activated.');
            $messages[5] = __('Gateway deactivated.');
            $messages[6] = __('Gateway not deactivated.');
            $messages[7] = __('Gateway activation toggled.');
            ?>
		<div class='wrap'>
			<div class="icon32" id="icon-plugins"><br></div>
			<h2><?php 
            _e('Edit Gateways', 'em-pro');
            ?>
</h2>
			<?php 
            if (isset($_GET['msg'])) {
                echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
                $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
            }
            ?>
			<form method="post" action="" id="posts-filter">
				<div class="tablenav">
					<div class="alignleft actions">
						<select name="action">
							<option selected="selected" value=""><?php 
            _e('Bulk Actions');
            ?>
</option>
							<option value="toggle"><?php 
            _e('Toggle activation');
            ?>
</option>
						</select>
						<input type="submit" class="button-secondary action" value="<?php 
            _e('Apply', 'em-pro');
            ?>
">		
					</div>		
					<div class="alignright actions"></div>		
					<br class="clear">
				</div>	
				<div class="clear"></div>	
				<?php 
            wp_original_referer_field(true, 'previous');
            wp_nonce_field('emp-gateways');
            $columns = array("name" => __('Gateway Name', 'em-pro'), "active" => __('Active', 'em-pro'), "transactions" => __('Transactions', 'em-pro'));
            $columns = apply_filters('em_gateways_columns', $columns);
            $gateways = self::gateways_list();
            $active = self::active_gateways();
            ?>
	
				<table class="widefat fixed">
					<thead>
					<tr>
					<th style="" class="manage-column column-cb check-column" id="cb" scope="col"><input type="checkbox"></th>
						<?php 
            foreach ($columns as $key => $col) {
                ?>
							<th style="" class="manage-column column-<?php 
                echo $key;
                ?>
" id="<?php 
                echo $key;
                ?>
" scope="col"><?php 
                echo $col;
                ?>
</th>
							<?php 
            }
            ?>
					</tr>
					</thead>	
					<tfoot>
					<tr>
					<th style="" class="manage-column column-cb check-column" scope="col"><input type="checkbox"></th>
						<?php 
            reset($columns);
//.........这里部分代码省略.........
开发者ID:shieldsdesignstudio,项目名称:trilogic,代码行数:101,代码来源:gateways.php

示例8: show_tag_edit_form

 function show_tag_edit_form($tagid)
 {
     global $taxonomy;
     $tag = get_term($tagid, $taxonomy, OBJECT, 'edit');
     echo '<div class="wrap">';
     echo '<div class="icon32" id="icon-edit"><br></div>';
     echo '<h2>' . __('Edit Tag') . '</h2>';
     echo '<div id="ajax-response"></div>';
     echo '<form name="edittag" id="edittag" method="post" action="" class="validate">';
     echo '<input type="hidden" name="action" value="editedtag" />';
     echo '<input type="hidden" name="tag_ID" value="' . esc_attr($tag->term_id) . '" />';
     echo '<input type="hidden" name="taxonomy" value="' . esc_attr($taxonomy) . '" />';
     wp_original_referer_field(true, 'previous');
     wp_nonce_field('update-tag_' . $tagid);
     echo '<table class="form-table">';
     echo '<tr class="form-field form-required">';
     echo '<th scope="row" valign="top"><label for="name">' . __('Tag name') . '</label></th>';
     echo '<td><input name="name" id="name" type="text" value="';
     if (isset($tag->name)) {
         echo esc_attr($tag->name);
     }
     echo '" size="40" aria-required="true" />';
     echo '<p class="description">' . __('The name is how the tag appears on your site.') . '</p></td>';
     echo '</tr>';
     echo '<tr class="form-field">';
     echo '<th scope="row" valign="top"><label for="slug">' . __('Slug') . '</label></th>';
     echo '<td><input name="slug" id="slug" type="text" value="';
     if (isset($tag->slug)) {
         echo esc_attr(apply_filters('editable_slug', $tag->slug));
     }
     echo '" size="40" />';
     echo '<p class="description">' . __('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.') . '</p></td>';
     echo '</tr>';
     echo '<tr class="form-field">';
     echo '<th scope="row" valign="top"><label for="description">' . __('Description') . '</label></th>';
     echo '<td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;">' . esc_html($tag->description) . '</textarea><br />';
     echo '<span class="description">' . __('The description is not prominent by default, however some themes may show it.') . '</span></td>';
     echo '</tr>';
     echo '</table>';
     echo '<p class="submit"><input type="submit" class="button-primary" name="submit" value="' . esc_attr('Update Tag') . '" />';
     echo '&nbsp;';
     echo '<a href="' . wp_get_referer() . '" style="margin-left: 20px;">' . __('Cancel edit', 'property') . '</a>';
     echo '</p>';
     echo '</form>';
     echo '</div>';
 }
开发者ID:voodoobettie,项目名称:staypressproperty,代码行数:46,代码来源:administration.php

示例9: print_configure_view

        /**
         * Build a configuration view so we can manage our usergroups
         *
         * @since 0.7
         */
        function print_configure_view()
        {
            global $edit_flow;
            if (isset($_GET['action'], $_GET['usergroup-id']) && $_GET['action'] == 'edit-usergroup') {
                /** Full page width view for editing a given usergroup **/
                // Check whether the usergroup exists
                $usergroup_id = (int) $_GET['usergroup-id'];
                $usergroup = $this->get_usergroup_by('id', $usergroup_id);
                if (!$usergroup) {
                    echo '<div class="error"><p>' . $this->module->messages['usergroup-missing'] . '</p></div>';
                    return;
                }
                $name = isset($_POST['name']) ? stripslashes($_POST['name']) : $usergroup->name;
                $description = isset($_POST['description']) ? stripslashes($_POST['description']) : $usergroup->description;
                ?>
		<form method="post" action="<?php 
                echo esc_url($this->get_link(array('action' => 'edit-usergroup', 'usergroup-id' => $usergroup_id)));
                ?>
">
		<div id="col-right"><div class="col-wrap"><div id="ef-usergroup-users" class="form-wrap">
			<h4><?php 
                _e('Users', 'edit-flow');
                ?>
</h4>
			<?php 
                $select_form_args = array('list_class' => 'ef-post_following_list', 'input_id' => 'usergroup_users');
                ?>
			<?php 
                $this->users_select_form($usergroup->user_ids, $select_form_args);
                ?>
		</div></div></div>
		<div id="col-left"><div class="col-wrap"><div class="form-wrap">		
			<input type="hidden" name="form-action" value="edit-usergroup" />
			<input type="hidden" name="usergroup_id" value="<?php 
                echo esc_attr($usergroup_id);
                ?>
" />
			<?php 
                wp_original_referer_field();
                wp_nonce_field('edit-usergroup');
                ?>
			<div class="form-field form-required">
				<label for="name"><?php 
                _e('Name', 'edit-flow');
                ?>
</label>
				<input name="name" id="name" type="text" value="<?php 
                echo esc_attr($name);
                ?>
" size="40" maxlength="40" aria-required="true" />
				<?php 
                $edit_flow->settings->helper_print_error_or_description('name', __('The name is used to identify the user group.', 'edit-flow'));
                ?>
			</div>
			<div class="form-field">
				<label for="description"><?php 
                _e('Description', 'edit-flow');
                ?>
</label>
				<textarea name="description" id="description" rows="5" cols="40"><?php 
                echo esc_html($description);
                ?>
</textarea>
				<?php 
                $edit_flow->settings->helper_print_error_or_description('description', __('The description is primarily for administrative use, to give you some context on what the user group is to be used for.', 'edit-flow'));
                ?>
			</div>
			<p class="submit">
			<?php 
                submit_button(__('Update User Group', 'edit-flow'), 'primary', 'submit', false);
                ?>
			<a class="cancel-settings-link" href="<?php 
                echo esc_url($this->get_link());
                ?>
"><?php 
                _e('Cancel', 'edit-flow');
                ?>
</a>
			</p>
		</div></div></div>
		</form>
		
		<?php 
            } else {
                /** Full page width view to allow adding a usergroup and edit the existing ones **/
                $wp_list_table = new EF_Usergroups_List_Table();
                $wp_list_table->prepare_items();
                ?>
			<script type="text/javascript">
				var ef_confirm_delete_usergroup_string = "<?php 
                _e('Are you sure you want to delete the user group?', 'edit-flow');
                ?>
";
			</script>
			<div id="col-right"><div class="col-wrap">
//.........这里部分代码省略.........
开发者ID:adisonc,项目名称:MaineLearning,代码行数:101,代码来源:user-groups.php

示例10: show_options_page

        function show_options_page()
        {
            $messages = array();
            $messages[1] = __('Settings updated.', 'expirepassword');
            $messages[2] = __('Settings could not be updated.', 'expirepassword');
            ?>
			<div class="wrap">
			<div class="icon32" id="icon-options-general"><br></div>
			<h2><?php 
            _e('Expire Password Settings', 'expirepassword');
            ?>
</h2>

			<?php 
            if (isset($_GET['msg'])) {
                echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
                $_SERVER['REQUEST_URI'] = remove_query_arg(array('msg'), $_SERVER['REQUEST_URI']);
            }
            ?>

			<form action="?page=<?php 
            echo esc_attr($_GET['page']);
            ?>
" method="post">
				<input type='hidden' name='action' value='updateexpirepassword' />
				<?php 
            wp_original_referer_field(true, 'previous');
            wp_nonce_field('update-expirespasswordsettings');
            if (is_network_admin()) {
                // Add in network admin specific options here
                ?>
					<h3><?php 
                _e('Restrict Settings Access', 'expirepassword');
                ?>
</h3>
					<table class="form-table">
						<tbody>
							<tr valign="top">
								<th scope="row">
									<label for="expirepassword_limittonetworkadmin"><?php 
                _e('Limit Settings to Network Admin', 'expirepassword');
                ?>
</label>
								</th>
								<td>
									<?php 
                $limittonetworkadmin = get_site_option('_shrkey_limit_expirepasswords_to_networkadmin', 'no');
                ?>
									<select name='expirepassword_limittonetworkadmin'>
										<option value='no' <?php 
                selected('no', $limittonetworkadmin);
                ?>
><?php 
                _e('No, thanks', 'expirepassword');
                ?>
</option>
										<option value='yes' <?php 
                selected('yes', $limittonetworkadmin);
                ?>
><?php 
                _e('Yes, please', 'expirepassword');
                ?>
</option>
									</select>
									<br>
									<?php 
                _e('Set this to <strong>Yes, please</strong> if you do not want individual site admin pages.', 'expirepassword');
                ?>
								</td>
							</tr>
						</tbody>
					</table>
					<?php 
            }
            ?>
					<h3><?php 
            _e('Registration Settings', 'expirepassword');
            ?>
</h3>
					<p><?php 
            _e('You can use this option to force a new user to change their password from the system generated one when they first sign in.', 'expirepassword');
            ?>
</p>
					<table class="form-table">
						<tbody>
							<tr valign="top">
								<th scope="row">
									<label for="expirepassword_expireimmediately"><?php 
            _e('Force change on first sign in', 'expirepassword');
            ?>
</label>
								</th>
								<td>
									<?php 
            $expireimmediately = shrkey_get_option('_shrkey_expirepassword_expireimmediately', 'no');
            ?>
									<select name='expirepassword_expireimmediately'>
										<option value='no' <?php 
            selected('no', $expireimmediately);
            ?>
//.........这里部分代码省略.........
开发者ID:newball,项目名称:expirepassword,代码行数:101,代码来源:admin.expirepassword.php

示例11: gmediaLib


//.........这里部分代码省略.........
				<?php 
        if ($gmCore->caps['gmedia_upload']) {
            ?>
					<p>
						<a href="<?php 
            echo admin_url('admin.php?page=GrandMedia_AddMedia');
            ?>
" class="btn btn-success"><span class="glyphicon glyphicon-plus"></span> <?php 
            _e('Add Media', 'gmLang');
            ?>
						</a></p>
				<?php 
        }
        ?>
			</div>
		</div>
	<?php 
    }
    ?>
	</div>

	<div class="panel-footer clearfix">
		<?php 
    echo $gmDB->query_pager();
    ?>

		<a href="#top" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-arrow-up"></span> <?php 
    _e('Back to top', 'gmLang');
    ?>
</a>
	</div>

	<?php 
    wp_original_referer_field(true, 'previous');
    wp_nonce_field('GmediaGallery');
    ?>
	</div>

	<div class="modal fade gmedia-modal" id="libModal" tabindex="-1" role="dialog" aria-hidden="true">
		<div class="modal-dialog"></div>
	</div>
	<?php 
    if ($gmCore->caps['gmedia_edit_media']) {
        ?>
		<div class="modal fade gmedia-modal" id="gmeditModal" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="modal-dialog modal-lg">
				<div class="modal-content"></div>
			</div>
		</div>
	<?php 
    }
    ?>
	<div class="modal fade gmedia-modal" id="previewModal" tabindex="-1" role="dialog" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title"></h4>
				</div>
				<div class="modal-body"></div>
			</div>
		</div>
	</div>
	<div class="modal fade gmedia-modal" id="shareModal" tabindex="-1" role="dialog" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
开发者ID:HugoLS,项目名称:Variation,代码行数:67,代码来源:gmedia.php

示例12: do_action

		$category->description = '';
}

do_action('edit_category_form_pre', $category);

_fill_empty_category($category);
?>

<div class="wrap">
<?php screen_icon(); ?>
<h2><?php _e('Edit Category'); ?></h2>
<div id="ajax-response"></div>
<form name="editcat" id="editcat" method="post" action="categories.php" class="validate">
<input type="hidden" name="action" value="editedcat" />
<input type="hidden" name="cat_ID" value="<?php echo esc_attr($category->term_id) ?>" />
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-category_' . $cat_ID); ?>
	<table class="form-table">
		<tr class="form-field form-required">
			<th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th>
			<td><input name="cat_name" id="cat_name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /><br />
            <span class="description"><?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></span></td>
		</tr>
		<tr class="form-field">
			<th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
			<td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo esc_attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
            <span class="description"><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></span></td>
		</tr>
		<tr class="form-field">
			<th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
			<td>
	  			<?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-category-form.php

示例13: gmediaGalleries


//.........这里部分代码省略.........
                    foreach ($tabs as $t) {
                        $terms_source[] = sprintf('<a class="tag" href="%s">%s</a>', esc_url(add_query_arg(array('tag_id' => $t->term_id), $lib_url)), esc_html($t->name));
                    }
                } elseif ('gmedia_filter' == $tax_tabs) {
                    _e('Filters', 'gmLang');
                    foreach ($tabs as $t) {
                        $terms_source[] = sprintf('<a class="filter" href="%s">%s</a>', esc_url(add_query_arg(array('stack_id' => $t->term_id), $lib_url)), esc_html($t->name));
                    }
                }
                if (!empty($terms_source)) {
                    echo ' (' . join(', ', $terms_source) . ')';
                }
            }
            ?>
							</p>
						</div>
					</div>
				<?php 
        }
    } else {
        ?>
				<div class="list-group-item">
					<div class="well well-lg text-center">
						<h4><?php 
        _e('No items to show.', 'gmLang');
        ?>
</h4>
					</div>
				</div>
			<?php 
    }
    ?>
			<?php 
    wp_original_referer_field(true, 'previous');
    wp_nonce_field('GmediaTerms');
    ?>
		</form>
	</div>

	<!-- Modal -->
	<div class="modal fade gmedia-modal" id="chooseModuleModal" tabindex="-1" role="dialog" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title"><?php 
    _e('Choose Module for Gallery');
    ?>
</h4>
				</div>
				<div class="modal-body linkblock">
					<?php 
    if (!empty($modules)) {
        foreach ($modules as $m) {
            /**
             * @var $module_name
             * @var $module_url
             * @var $module_path
             */
            extract($m);
            if (!file_exists($module_path . '/index.php')) {
                continue;
            }
            $module_info = array();
            include $module_path . '/index.php';
            if (empty($module_info)) {
开发者ID:HugoLS,项目名称:Variation,代码行数:67,代码来源:galleries.php

示例14: handle_addons_panel

    function handle_addons_panel()
    {
        global $action, $page, $subpage;
        wp_reset_vars(array('action', 'page', 'subpage'));
        $messages = array();
        $messages[1] = __('Addon updated.', 'affiliate');
        $messages[2] = __('Addon not updated.', 'affiliate');
        $messages[3] = __('Addon activated.', 'affiliate');
        $messages[4] = __('Addon not activated.', 'affiliate');
        $messages[5] = __('Addon deactivated.', 'affiliate');
        $messages[6] = __('Addon not deactivated.', 'affiliate');
        $messages[7] = __('Addon activation toggled.', 'affiliate');
        if (!empty($action)) {
            $msg = $this->handle_addons_panel_updates();
        }
        //$mu_plugins = get_mu_plugins();
        //echo "mu_plugins<pre>"; print_r($mu_plugins); echo "</pre>";
        //$active_sitewide_plugins = get_site_option( 'active_sitewide_plugins');
        //echo "network active plugins<pre>"; print_r($active_sitewide_plugins); echo "</pre>";
        //$active_plugins = get_option( 'active_plugins', array());
        //echo "active plugins<pre>"; print_r($active_plugins); echo "</pre>";
        if (!empty($msg)) {
            echo '<div id="message" class="updated fade"><p>' . $messages[(int) $msg] . '</p></div>';
            $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
        }
        ?>

			<form method="get" action="?page=<?php 
        echo esc_attr($page);
        ?>
&amp;subpage=<?php 
        echo esc_attr($subpage);
        ?>
" id="posts-filter">

			<input type='hidden' name='page' value='<?php 
        echo esc_attr($page);
        ?>
' />
			<input type='hidden' name='subpage' value='<?php 
        echo esc_attr($subpage);
        ?>
' />

			<div class="tablenav">

			<div class="alignleft actions">
			<select name="action">
			<option selected="selected" value=""><?php 
        _e('Bulk Actions', 'affiliate');
        ?>
</option>
			<option value="toggle"><?php 
        _e('Toggle activation', 'affiliate');
        ?>
</option>
			</select>
			<input type="submit" class="button-secondary action" id="doaction" name="doaction" value="<?php 
        _e('Apply', 'affiliate');
        ?>
">

			</div>

			<div class="alignright actions"></div>

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

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

			<?php 
        wp_original_referer_field(true, 'previous');
        wp_nonce_field('bulk-addon');
        $columns = array("name" => __('Addon Name', 'affiliate'), "active" => __('Addon Status', 'affiliate'));
        $columns = apply_filters('affiliate_plugincolumns', $columns);
        $plugins = get_affiliate_addons();
        $active = aff_get_option('affiliate_activated_addons', array());
        ?>

			<table cellspacing="0" class="widefat fixed">
				<thead>
				<tr>
				<th style="" class="manage-column column-cb check-column" id="cb" scope="col"><input type="checkbox"></th>
				<?php 
        foreach ($columns as $key => $col) {
            ?>
						<th style="" class="manage-column column-<?php 
            echo $key;
            ?>
" id="<?php 
            echo $key;
            ?>
" scope="col"><?php 
            echo $col;
            ?>
</th>
						<?php 
        }
        ?>
//.........这里部分代码省略.........
开发者ID:vilmark,项目名称:vilmark_main,代码行数:101,代码来源:affiliateadmin.php

示例15: wp_nonce_field

<?php
wp_nonce_field($nonce_action);

if (isset($mode) && 'bookmarklet' == $mode)
	echo '<input type="hidden" name="mode" value="bookmarklet" />';
?>
<input type="hidden" id="user-id" name="user_ID" value="<?php echo $user_ID ?>" />
<input type="hidden" id="hiddenaction" name="action" value='<?php echo $form_action ?>' />
<input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />
<input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
<?php echo $form_extra ?>
<input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
<input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>

<div id="poststuff">

<div class="submitbox" id="submitpage">

<div id="previewview">
<?php if ( 'publish' == $post->post_status ) { ?>
<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank"  tabindex="4"><?php _e('View this Page'); ?></a>
<?php } elseif ( 'edit' == $action ) { ?>
<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Page'); ?></a>
<?php } ?>
</div>

<div class="inside">
<p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:30,代码来源:edit-page-form.php


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