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

PHP get_screen_icon函数代码示例

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

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



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

示例1: sjs_PUbox_disp_options_page

    function sjs_PUbox_disp_options_page()
    {
        //the action options.php can be accessed by url manipulation,we have to make sure when we create options for the plugin it shows up here in the options.php page
        //enctype is used here to ensure that user can upload things
        ?>
		
				<div class="wrap">
						<?php 
        get_screen_icon();
        ?>
						<h2>PU box Options Settings</h2>


						<form method="post" action="options.php" enctype="multipart/form-data">

								<?php 
        settings_fields('sjs_PUbox_group');
        //provides hidden inputs and nonces for security@params:group name
        ?>
								<?php 
        do_settings_sections(__FILE__);
        ?>
								<p class="submit">
										<input type="submit" name="submit" class="button-primary" value="Apply Changes">

								</p>

						</form>	


				</div>

		<?php 
    }
开发者ID:sreejith910,项目名称:ModalBox,代码行数:34,代码来源:PUbox.php


示例2: render_settings_page

        /**
         * Render settings page. This function should echo the HTML form of the settings page.
         */
        public function render_settings_page($post)
        {
            ?>
			<div class="wrap">
				<?php 
            echo get_screen_icon('options-general');
            ?>
				<h2><?php 
            echo $this->page_title;
            ?>
</h2>
				<div class="intro">
					<p>This is the intro text</p>
				</div>
				<?php 
            settings_errors();
            print_r($this->get_settings_data());
            ?>
				
				<form method="post" action="options.php">
					<?php 
            echo $this->settings_fields($this->option_group);
            ?>
					<table class="form-table">
						<tr>
							<th><label for="<?php 
            echo esc_attr('footer');
            ?>
"><?php 
            echo esc_attr('Footer Text');
            ?>
</label></th>
							<td>
								<input type="text" id="<?php 
            echo esc_attr('footer');
            ?>
" name="<?php 
            echo esc_attr($this->option_name . "[footer]");
            ?>
" value="<?php 
            echo esc_attr($this->get_data('footer'));
            ?>
" />
							</td>
						</tr>
					</table>
					<?php 
            submit_button('Save Options', 'primary', 'submit', false);
            ?>
					<?php 
            submit_button('Restore Defaults', 'secondary', 'reset', false);
            ?>
				</form>
				
			</div><?php 
        }
开发者ID:jrbranaa,项目名称:pitchperspectives,代码行数:59,代码来源:class-codefleet-settings-page.php


示例3: get_screen_icon

 protected function get_screen_icon($icon)
 {
     global $wp_version;
     if (version_compare($wp_version, '3.7', '<=')) {
         // WP 3.7 and below
         return get_screen_icon($icon);
     }
     return '';
     // Screen icons are no longer used as of WordPress 3.8
 }
开发者ID:jonpalma,项目名称:bcc,代码行数:10,代码来源:WpSubPage.php


示例4: get_header

 /**
  * Generate header HTML.
  * @access  public
  * @since   1.0.0
  * @return  void
  */
 public static function get_header($token = 'woothemes-updater', $screen_icon = 'tools')
 {
     do_action('woothemes_updater_screen_before', $token, $screen_icon);
     $html = '<div class="wrap woothemes-updater-wrap">' . "\n";
     $html .= get_screen_icon($screen_icon);
     $html .= '<h2 class="nav-tab-wrapper">' . "\n";
     $html .= self::get_navigation_tabs();
     $html .= '</h2>' . "\n";
     echo $html;
     do_action('woothemes_updater_screen_header_before_content', $token, $screen_icon);
 }
开发者ID:lilweirdward,项目名称:blofishwordpress,代码行数:17,代码来源:class-woothemes-updater-screen.php


示例5: main

 function main()
 {
     if ($_POST) {
         self::save_settings($_POST);
     }
     global $mf_domain;
     print '<div class="wrap">';
     // the title needs a hat icon
     echo get_screen_icon('magic-fields');
     print '<h2>' . __('Magic Fields Settings', $mf_domain) . '</h2>';
     $options = self::fields_form();
     self::form_options($options);
     print '</div>';
 }
开发者ID:mark2me,项目名称:pressform,代码行数:14,代码来源:mf_settings.php


示例6: get_header

 /**
  * Generate header HTML.
  * @access  public
  * @since   6.0.0
  * @return  void
  */
 public static function get_header($token = 'woothemes', $screen_icon = 'themes')
 {
     do_action('wf_screen_before', $token, $screen_icon);
     do_action('wf_screen_before_' . esc_attr($token), $token, $screen_icon);
     $html = '<div class="wf-wrap wrap">' . "\n";
     $html .= get_screen_icon($screen_icon);
     $html .= '<h2 class="nav-tab-wrapper">' . "\n";
     $html .= self::get_navigation_tabs();
     $html .= self::get_admin_branding();
     $html .= '</h2>' . "\n";
     echo $html;
     do_action('wf_screen_header_before_content', $token, $screen_icon);
     do_action('wf_screen_header_before_content_' . esc_attr($token), $token, $screen_icon);
 }
开发者ID:jonpalma,项目名称:bcc,代码行数:20,代码来源:class-wf-screen.php


示例7: woo_help

    function woo_help()
    {
        ?>
        <div class='wrap'>
            <?php 
        get_screen_icon();
        ?>
            <h3>Use the shortcode [product-cat] inside any WordPress post or page to view category wise WooCommerce
                product listing. </h3>
            <h4>WooCommerce must be installed to use this plugin.</h4>
        </div>


    <?php 
    }
开发者ID:abdulahad16,项目名称:WooCommerce-Tabbed-Category-Wise-Product-Listing,代码行数:15,代码来源:woo-cat-product.php


示例8: render_settings_page

 /**
  * Render settings page. This function should echo the HTML form of the settings page.
  */
 public function render_settings_page($post)
 {
     $this->view->set_view_file(CYCLONE_PATH . 'views/settings-page.php');
     $settings_data = $this->get_settings_data();
     $templates = $this->templates_manager->get_all_templates();
     $settings_data['load_templates'] = $this->templates_manager->get_active_templates($settings_data);
     // Filter load templates
     $vars = array();
     $vars['page_title'] = $this->page_title;
     $vars['screen_icon'] = get_screen_icon('options-general');
     $vars['settings_fields'] = $this->settings_fields($this->option_group);
     $vars['option_name'] = $this->option_name;
     $vars['templates'] = $templates;
     $vars['settings_data'] = $settings_data;
     $vars['debug'] = CYCLONE_DEBUG ? cyclone_slider_debug($vars['settings_data']) : '';
     $this->view->set_vars($vars);
     $this->view->render();
 }
开发者ID:lundgren2,项目名称:cyclone-slider-2,代码行数:21,代码来源:class-cyclone-slider-settings-page.php


示例9: render_page

        /**
         * Render page. This function should output the HTML of the page.
         */
        public function render_page($post)
        {
            ?>
			<div class="wrap">
				<?php 
            echo get_screen_icon('options-general');
            ?>
				<h2><?php 
            echo $this->page_title;
            ?>
</h2>
				<div class="intro">
					<p>This is the intro text</p>
				</div>

				<form method="post" action="">

					<table class="form-table">
						<tr>
							<th><label for="<?php 
            echo esc_attr('sample_text');
            ?>
"><?php 
            echo esc_attr('Sample Text');
            ?>
</label></th>
							<td>
								<input type="text" id="sample_text" name="sample_text" value="" />
							</td>
						</tr>
					</table>
					<?php 
            submit_button('Save Options', 'primary', 'submit', false);
            ?>
					<?php 
            submit_button('Restore Defaults', 'secondary', 'reset', false);
            ?>
				</form>
				
			</div><?php 
        }
开发者ID:lundgren2,项目名称:cyclone-slider-2,代码行数:44,代码来源:class-codefleet-admin-page.php


示例10: render_settings_page

 /**
  * Render settings page. This function should echo the HTML form of the settings page.
  */
 public function render_settings_page($post)
 {
     global $wp_version;
     $vars = array();
     $vars['page_title'] = $this->page_title;
     $vars['textdomain'] = $this->plugin['textdomain'];
     if (version_compare($wp_version, '3.7', '<=')) {
         // WP 3.7 and below
         $vars['screen_icon'] = get_screen_icon('options-general');
     } else {
         // WP 3.8+
         $vars['screen_icon'] = '';
         // Screen icons are no longer used as of WordPress 3.8
     }
     $vars['settings_fields'] = $this->settings_fields($this->plugin['settings_page.option_group']);
     $vars['option_name'] = $this->plugin['settings_page.option_name'];
     $vars['settings_data'] = $this->get_settings_data();
     $debug = filter_var(trim(print_r($vars['settings_data'], true)), FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     $vars['debug'] = $this->plugin['debug'] ? '<pre>' . $debug . '</pre>' : '';
     $this->plugin['view']->render('settings-page.php', $vars);
 }
开发者ID:guysyml,项目名称:software,代码行数:24,代码来源:SettingsPage.php


示例11: options_page_tabs

 public function options_page_tabs($current = 'basic')
 {
     if (isset($_GET['tab'])) {
         $current = $_GET['tab'];
     } else {
         $current = 'basic';
     }
     $tabs = $this->get_settings_page_tabs();
     $links = array();
     foreach ($tabs as $tab => $name) {
         if ($tab == $current) {
             $links[] = "<a class=\"nav-tab nav-tab-active\" href=\"?page=mangapress-options-page&tab={$tab}\">{$name}</a>";
         } else {
             $links[] = "<a class=\"nav-tab\" href=\"?page=mangapress-options-page&tab={$tab}\">{$name}</a>";
         }
     }
     echo get_screen_icon();
     echo '<h2 class="nav-tab-wrapper">';
     foreach ($links as $link) {
         echo $link;
     }
     echo '</h2>';
 }
开发者ID:TheProjecter,项目名称:mangapress,代码行数:23,代码来源:options.php


示例12: screen_icon_link

 public function screen_icon_link($name = 'aaron')
 {
     $link = '<a href="http://aarondcampbell.com">';
     if (function_exists('get_screen_icon')) {
         $link .= get_screen_icon($name);
     } else {
         ob_start();
         screen_icon($name);
         $link .= ob_get_clean();
     }
     $link .= '</a>';
     echo apply_filters('rpf-screen_icon_link', $link, $name);
 }
开发者ID:RJRandell79,项目名称:RJRStudios,代码行数:13,代码来源:wp-twitter-widget.php


示例13: admin_screen

    /**
     * admin_screen()
     *
     * Load the admin screen.
     *
     * @since 1.0.0
     */
    function admin_screen()
    {
        $export_type = 'all';
        if (isset($_POST['export-type'])) {
            $export_type = esc_attr($_POST['export-type']);
        }
        ?>
    <div class="wrap">
        <?php 
        echo get_screen_icon($screen = 'import-export');
        ?>
        <h2><?php 
        _e('Import / Export');
        ?>
</h2>

        <div class="import">
            <h3><?php 
        _e('Import Settings');
        ?>
</h3>

            <p><?php 
        _e('If you have settings in a backup file on your computer, the Import / Export system can import those into this site. To get started, upload your backup file to import from below.');
        ?>
</p>


            <form enctype="multipart/form-data" method="post"
                  action="<?php 
        echo admin_url('admin.php?page=' . $this->token);
        ?>
">
                <?php 
        wp_nonce_field('OptionsFramework-backup-import');
        ?>
                <label for="OptionsFramework-import-file"><?php 
        printf(__('Upload File: (Maximum Size: %s)'), ini_get('post_max_size'));
        ?>
</label>
                <input type="file" id="OptionsFramework-import-file" name="OptionsFramework-import-file" size="25"/>
                <input type="hidden" name="OptionsFramework-backup-import" value="1"/>
                <input type="submit" class="button" value="<?php 
        _e('Upload File and Import');
        ?>
"/>
            </form>

        </div>

        <div class="export">
            <h3><?php 
        _e('Export Settings');
        ?>
</h3>

            <p><?php 
        _e('When you click the button below, the Import / Export system will create a text file for you to save to your computer.');
        ?>
</p>

            <p><?php 
        echo sprintf(__('This text file can be used to restore your settings here on "%s", or to easily setup another website with the same settings".'), get_bloginfo('name'));
        ?>
</p>

            <form method="post" action="<?php 
        echo admin_url('admin.php?page=' . $this->token);
        ?>
">
                <?php 
        wp_nonce_field('OptionsFramework-backup-export');
        ?>
                <input type="hidden" name="OptionsFramework-backup-export" value="1"/>
                <input type="submit" class="button"
                       value="<?php 
        _e('Download Export File', 'OptionsFramework');
        ?>
"/>
            </form>
        </div>

    </div><!--/.wrap-->
    <?php 
    }
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:92,代码来源:function.php


示例14: render_header

 /**
  * Display Plugin Title and if needed tabbed navigation.
  *
  * @since 2.0
  * @param string  $plugin_title Plugin title.
  * @param string  $tab_id       Page id. Manually set the active tab.
  * @return void
  */
 public function render_header($plugin_title = '', $tab_id = false)
 {
     if (!empty($plugin_title)) {
         echo get_screen_icon() . '<h2>' . (string) $plugin_title . '</h2>';
     }
     // if ( !$this->valid_pages )
     //  return;
     $page_title_count = 0;
     foreach ($this->pages as $page) {
         if (isset($page['title']) && $page['title']) {
             ++$page_title_count;
         }
     }
     $html = '';
     $current = $this->current_page;
     $page_ids = wp_list_pluck($this->pages, 'id');
     $cur_tab_id = $tab_id ? (string) $tab_id : $current['id'];
     $cur_tab_id = in_array($cur_tab_id, $page_ids) ? $cur_tab_id : $current['id'];
     $i = 0;
     foreach ($this->pages as $page) {
         if (isset($page['title']) && $page['title']) {
             if ($page_title_count > 1) {
                 $html .= 0 === $i ? '<h2 class="nav-tab-wrapper">' : '';
                 $active = '';
                 if ($cur_tab_id === $page['id']) {
                     $active = ' nav-tab-active';
                 }
                 // Get the url of the current settings page.
                 $tab_url = remove_query_arg(array('tab', 'settings-updated'));
                 // Add query arg 'tab' if it's not the first settings page.
                 if ($this->pages[0]['id'] !== $page['id']) {
                     $tab_url = add_query_arg('tab', $page['slug'], $tab_url);
                 }
                 $html .= sprintf('<a href="%1$s" class="nav-tab%2$s" id="%3$s-tab">%4$s</a>', esc_url($tab_url), $active, esc_attr($page['id']), $page['title']);
                 $html .= ++$i === $page_title_count ? '</h3>' : '';
             }
             if ($page_title_count === 1) {
                 if (isset($current['title']) && $current['title'] === $page['title']) {
                     $html .= '<h3>' . $page['title'] . '</h3>';
                     break;
                 }
             }
         }
     }
     echo $html;
 }
开发者ID:bestmazzo,项目名称:woocomerce-quick-donation,代码行数:54,代码来源:wp-settings.php


示例15: form

 /**
  * Output the settings page, if one has been hooked to the current admin page, and output
  * the settings sections hooked to the current admin page/tab.
  *
  * WordPress core icons that can be used for the page and tab icons.
  * 	- index
  * 	- tools
  * 	- edit
  * 	- upload
  * 	- link-manager
  * 	- edit-pages
  * 	- edit-comments
  * 	- themes
  * 	- plugins
  * 	- users
  * 	- options-general
  *
  * @author Steven A. Zahm
  * @since 0.7.3.0
  * @param string $pageHook
  * @param bool $return [optional]
  * @return string
  */
 public function form($pageHook, $args = array())
 {
     $defaults = array('page_title' => '', 'page_icon' => '', 'tab_icon' => '');
     $args = wp_parse_args($args, $defaults);
     //var_dump($args);
     $out = '';
     $sort = array();
     // Page icon.
     if (!empty($args['page_icon'])) {
         echo get_screen_icon($args['page_icon']);
     }
     // Page title.
     if (!empty($args['page_title'])) {
         echo '<h2>', $args['page_title'], '</h2>';
     }
     // Display any registered settings errors and success messages.
     settings_errors();
     // Display the tab icon
     if (!empty($args['tab_icon'])) {
         echo get_screen_icon($args['tab_icon']);
     }
     // If the page hook was not supplied echo an empty string.
     if (!empty($pageHook)) {
         $tabs = $this->tabs[$pageHook];
         //var_dump($this->tabs[$pageHook]);
         // If there were no tabs returned echo out an empty string.
         if (!empty($tabs)) {
             echo '<h2 class="nav-tab-wrapper">';
             // Store the position values so an array multi sort can be done to postion the tabs in the desired order.
             foreach ($tabs as $key => $tab) {
                 $sort[] = isset($tab['position']) && !empty($tab['position']) ? $tab['position'] : 0;
             }
             // Sort the tabs based on their position.
             array_multisort($sort, $tabs);
             // If the current tab isn't set, set the current tab to the intial tab in the array.
             $currentTab = isset($_GET['tab']) ? $_GET['tab'] : $tabs[0]['id'];
             foreach ($tabs as $tab) {
                 // Only show tabs registered to the current page.
                 if (!isset($tab['page_hook']) || $tab['page_hook'] !== $pageHook) {
                     continue;
                 }
                 echo '<a class="nav-tab' . ($currentTab === $tab['id'] ? ' nav-tab-active' : '') . '" href="' . add_query_arg('tab', $tab['id']) . '">' . $tab['title'] . '</a>';
             }
             echo '</h2>';
         }
     }
     echo '<form method="post" action="options.php">';
     /*
      * If tabs were registered to the current page, set the hidden fields with the current tab id
      * appended to the page hook. If this is not done the settings registered to the current tab will
      * not be saved.
      */
     //global $new_whitelist_options;print_r($new_whitelist_options);
     settings_fields(isset($currentTab) && !empty($currentTab) ? $pageHook . '-' . $currentTab : $pageHook);
     /*
      * Output any fields that were not registered to a specific section and defaulted to the default section.
      * Mimics default core WP behaviour.
      */
     echo '<table class="form-table">';
     do_settings_fields(isset($currentTab) && !empty($currentTab) ? $pageHook . '-' . $currentTab : $pageHook, 'default');
     echo '</table>';
     /*
      * Reference:
      * http://codex.wordpress.org/Function_Reference/do_settings_sections
      *
      * If the section is hooked into a tab add the current tab to the page hook
      * so only the settings registered to the current tab are displayed.
      */
     do_settings_sections(isset($currentTab) && !empty($currentTab) ? $pageHook . '-' . $currentTab : $pageHook);
     submit_button();
     echo '</form>';
 }
开发者ID:CybMeta,项目名称:duplicate-and-merge-posts,代码行数:95,代码来源:class.settings-api.php


示例16: connectionsShowTemplatesPage

function connectionsShowTemplatesPage()
{
    /*
     * Check whether user can edit Settings
     */
    if (!current_user_can('connections_manage_template')) {
        wp_die('<p id="error-page" style="-moz-background-clip:border;
				-moz-border-radius:11px;
				background:#FFFFFF none repeat scroll 0 0;
				border:1px solid #DFDFDF;
				color:#333333;
				display:block;
				font-size:12px;
				line-height:18px;
				margin:25px auto 20px;
				padding:1em 2em;
				text-align:center;
				width:700px">' . __('You do not have sufficient permissions to access this page.', 'connections') . '</p>');
    } else {
        global $connections;
        // Purge the transient so the page is freshly scanned by the template API.
        delete_transient('cn_legacy_templates');
        // cnTemplateFactory::$templates = new stdClass();
        cnTemplateFactory::registerLegacy();
        $form = new cnFormObjects();
        $type = isset($_GET['type']) ? esc_attr($_GET['type']) : 'all';
        $template = cnTemplateFactory::getCatalog($type);
        ?>
		<div class="wrap">
			<?php 
        echo get_screen_icon('connections');
        ?>

			<h2>Connections : <?php 
        _e('Templates', 'connections');
        ?>
 <a class="button add-new-h2" href="http://connections-pro.com/templates/" target="_blank"><?php 
        _e('Get More', 'connections');
        ?>
</a></h2>

			<ul class="subsubsub">
				<li><a <?php 
        if ($type === 'all') {
            echo 'class="current" ';
        }
        ?>
href="admin.php?page=connections_templates&type=all"><?php 
        _e('All', 'connections');
        ?>
</a> | </li>
				<li><a <?php 
        if ($type === 'individual') {
            echo 'class="current" ';
        }
        ?>
href="admin.php?page=connections_templates&type=individual"><?php 
        _e('Individual', 'connections');
        ?>
</a> | </li>
				<li><a <?php 
        if ($type === 'organization') {
            echo 'class="current" ';
        }
        ?>
href="admin.php?page=connections_templates&type=organization"><?php 
        _e('Organization', 'connections');
        ?>
</a> | </li>
				<li><a <?php 
        if ($type === 'family') {
            echo 'class="current" ';
        }
        ?>
href="admin.php?page=connections_templates&type=family"><?php 
        _e('Family', 'connections');
        ?>
</a> | </li>
				<li><a <?php 
        if ($type === 'anniversary') {
            echo 'class="current" ';
        }
        ?>
href="admin.php?page=connections_templates&type=anniversary"><?php 
        _e('Anniversary', 'connections');
        ?>
</a> | </li>
				<li><a <?php 
        if ($type === 'birthday') {
            echo 'class="current" ';
        }
        ?>
href="admin.php?page=connections_templates&type=birthday"><?php 
        _e('Birthday', 'connections');
        ?>
</a></li>
			</ul>

			<br class="clear">

//.........这里部分代码省略.........
开发者ID:kurainetto,项目名称:Connections,代码行数:101,代码来源:templates.php


示例17: cms_tpv_pages_page

/**
 * Pages page
 * A page with the tree. Good stuff.
 */
function cms_tpv_pages_page()
{
    $post_type = cms_tpv_get_selected_post_type();
    $post_type_object = get_post_type_object($post_type);
    if ('post' != $post_type) {
        $post_new_file = "post-new.php?post_type={$post_type}";
    } else {
        $post_new_file = 'post-new.php';
    }
    ?>
	<div class="wrap">
		<?php 
    echo get_screen_icon();
    ?>
		<h2><?php 
    $page_title = sprintf(_x('%1$s Tree View', "headline of page with tree", "cms-tree-page-view"), $post_type_object->labels->name);
    echo $page_title;
    // Add "add new" link the same way as the regular post page has
    if (current_user_can($post_type_object->cap->create_posts)) {
        echo ' <a href="' . esc_url($post_new_file) . '" class="add-new-h2">' . esc_html($post_type_object->labels->add_new) . '</a>';
    }
    ?>
</h2>

		<?php 
    cms_tpv_print_common_tree_stuff($post_type);
    ?>

	</div>
	<?php 
}
开发者ID:johnny-bit,项目名称:WordPress-CMS-Tree-Page-View,代码行数:35,代码来源:functions.php


示例18: render_settings_page

    /**
     * Settings page display.
     */
    function render_settings_page()
    {
        ?>
		<div class="wrap">
			<form action="options.php" method="post">
				<?php 
        echo wp_kses_post(get_screen_icon('livepress-settings'));
        ?>
<h2><?php 
        esc_html_e('LivePress Settings', 'livepress');
        ?>
</h2>
		<?php 
        $this->options = get_option(LivePress_Administration::$options_name);
        // If the API key is blank and the show=enetr-api-key toggle is not passed, prompt the user to register
        if (!(isset($_GET['show']) && 'enter-api-key' == $_GET['show']) && empty($this->options['api_key']) && !isset($_POST['submit'])) {
            echo '<div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
							<div class="livepress_admin_warning">
								<div class="aa_button_container" onclick="window.open(\'http://www.livepress.com/wordpress\', \'_blank\' );">
									<div class="aa_button_border">
										<div class="aa_button">' . esc_html__('Sign up for LivePress') . '</div>
									</div>
								</div>
								<div class="aa_description">
									<a href = "' . esc_url(add_query_arg(array('page' => 'livepress-settings'), admin_url('options-general.php'))) . '&show=enter-api-key">' . esc_html__('I have already activated my LivePress account', 'livepress') . '</a></div>
							</div>
					</div>
				';
        } else {
            // Otherwise, display the settings page as usual
            ?>
			<?php 
            settings_fields('livepress');
            ?>
			<?php 
            do_settings_sections('livepress-settings');
            ?>
			<?php 
            wp_nonce_field('activate_license', '_lp_nonce');
            ?>
			<?php 
            submit_button();
            ?>
		</form>
		</div>
		<?php 
        }
    }
开发者ID:gopinathshiva,项目名称:wordpress-vip-plugins,代码行数:51,代码来源:livepress-admin-settings.php


示例19: settingsHtml

    public function settingsHtml()
    {
        $alert = isset($_REQUEST['settings-updated']) ? '<div class="updated fade"><p><strong>Options Saved</strong></p></div>' : null;
        $icon = get_screen_icon();
        # Print out all the settings with the functions above.
        print <<<S
<script>
(function(\$) {
\t\$(function() {
\t\tvar curHash = null,
\t\t\t\$nav = jQuery('.nav-tab-wrapper'),
\t\t\t\$navA = \$nav.find('a'),
\t\t\t\$table = jQuery('.form-table');

\t\tfunction setTab(\$tab) {
\t\t\tif (
\t\t\t\t\$tab === curHash
\t\t\t\t|| \$tab === undefined
\t\t\t) return;

\t\t\tcurHash = \$tab;
\t\t\t\$a = \$nav.find('[href="'+curHash+'"]');

\t\t\t\$navA.removeClass('nav-tab-active');
\t\t\t\$a.addClass('nav-tab-active');

\t\t\t\$table.find('tbody').hide();
\t\t\t\$table.find('tbody[data-tab="'+\$tab+'"]').show();
\t\t};

\t\tif (!location.hash) setTab(\$navA.eq(0).attr('href'));

\t\tsetInterval(function() {
\t\t\tif (hash = location.hash) setTab(hash);
\t\t}, 50);
\t});
})(jQuery);
</script>

<div class="wrap">
\t{$icon} <h2>Theme Options</h2>

\t<form method="post" action="options.php">
\t\t<p class="submit">
\t\t\t<input type="submit" class="button-primary" value="Save Options" />
\t\t</p>

\t\t<h2 class="nav-tab-wrapper">
\t\t\t{$this->buildTabs()}
\t\t</h2>

\t\t{$alert}
S;
        # Break for the settings fields.
        settings_fields('nws_settings');
        # Continue on!
        print <<<S
\t\t<table class="form-table">
\t\t\t{$this->buildSettings()}
\t\t</table>

\t\t<p class="submit">
\t\t\t<input type="submit" class="button-primary" value="Save Options" />
\t\t</p>
\t</form>
</div>
S;
    }
开发者ID:OutThisLife,项目名称:HTW,代码行数:68,代码来源:Settings.class.php


示例20: cfct_settings_form

/**
 * Display a settings for for Carrington Framework
 *
**/
function cfct_settings_form()
{
    settings_errors();
    print '
<div class="wrap">
	' . get_screen_icon() . '<h2>' . apply_filters('cfct_admin_settings_form_title', __('Carrington Theme Settings', 'carrington')) . '</h2>
	<form action="' . admin_url('options.php') . '" method="post">
	';
    do_action('cfct_settings_form_top');
    do_settings_sections('cfct');
    do_action('cfct_settings_form_bottom');
    do_action('cfct_settings_form');
    settings_fields('cfct');
    print '
		<p class="submit" style="padding-left: 230px;">
			<input type="submit" name="submit_button" class="button-primary" value="' . __('Save', 'carrington') . '" />
		</p>
	</form>
</div>
	';
    do_action('cfct_settings_form_after');
}
开发者ID:dregula,项目名称:Annotum,代码行数:26,代码来源:admin.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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