本文整理汇总了PHP中screen_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP screen_icon函数的具体用法?PHP screen_icon怎么用?PHP screen_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了screen_icon函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
function header()
{
echo '<div class="wrap">';
screen_icon();
echo '<h2>' . __('Import Bunny’s Technorati Tags') . '</h2>';
echo '<p>' . __('Steps may take a few minutes depending on the size of your database. Please be patient.') . '<br /><br /></p>';
}
示例2: ysd_redirect_display
function ysd_redirect_display()
{
if(isset($_POST['ysd_redirect']))
{
update_option('ysd_redirect',$_POST['ysd_redirect']);
//更新你添加的数据库
?>
<div id="message" class="updated">保存成功!</div>
<?php
}
?>
<div class="wrap">
<?php screen_icon(); //显示图标 ?>
<h2>访问域名设置</h2>
<p>在这里设置需要调整到的一级域名,如果为空表示不进行跳转.</p>
<form action="" method="post">
<h3>
<label>输入你的一级域名:</label>
<input type="text" id="ysd_redirect" name="ysd_redirect" value="<?php echo esc_attr(get_option('ysd_redirect')); ?>" />
</h3>
<p>
<input type="submit" name="submit" value="保存" />
</p>
</form>
</div>
<?php
}
示例3: settings_screen
public function settings_screen()
{
global $NF_Pushover;
$tabs = $this->get_settings_tabs();
$current_tab = $this->get_current_tab();
?>
<div id="<?php
echo $NF_Pushover->token;
?>
" class="wrap">
<?php
screen_icon($this->args['screen_icon']);
?>
<h2 class="nav-tab-wrapper">
<?php
echo $this->get_settings_tabs_html($tabs, $current_tab);
do_action($NF_Pushover->token . '_after_settings_tabs');
?>
</h2>
<form action="options.php" method="post">
<?php
if (is_object($NF_Pushover->settings_objs[$current_tab])) {
$NF_Pushover->settings_objs[$current_tab]->settings_screen();
} else {
_e('Invalid Settings Class', 'nf-pushover');
}
?>
</form>
</div><!--/.wrap-->
<?php
}
示例4: wprss_help_page_display
/**
* Build the Help page
*
* @since 4.2
*/
function wprss_help_page_display()
{
?>
<div class="wrap">
<?php
screen_icon('wprss-aggregator');
?>
<h2><?php
_e('Help & Support', 'wprss');
?>
</h2>
<h3>Documentation</h3>
<p>In the <a href="www.wprssaggregator.com/documentation/">documentation area</a> on the WP RSS Aggregator website you will find comprehensive details on how to use the core plugin
and all the add-ons.</p><p>There are also some videos to help you make a quick start to setting up and enjoying this plugin.</p>
<h3>Frequently Asked Questions (FAQ)</h3>
<p>If after going through the documentation you still have questions, please take a look at the <a href="http://www.wprssaggregator.com/faq/">FAQ page</a> on the site, we set this
up purposely to answer the most commonly asked questions by our users.</p>
<h3>Support Forums - Core (free version) Plugin Users Only</h3>
<p>If you're using the free version of the plugin found on WordPress.org, you can ask questions on the <a href="http://wordpress.org/support/plugin/wp-rss-aggregator">support forum</a>.</p>
<h3>Email Ticketing System - Premium Add-on Users Only</h3>
<p>If you still can't find an answer to your query after reading the documentation and going through the FAQ, just <a href="http://www.wprssaggregator.com/contact/">open a support request ticket</a>.<br>
We'll be happy to help you out.</p>
</div>
<?php
}
示例5: jr_mt_settings_page
/**
* Settings page for plugin
*
* Display and Process Settings page for this plugin.
*
*/
function jr_mt_settings_page()
{
echo '<div class="wrap">';
screen_icon('plugins');
echo '<h2>jonradio Multiple Themes</h2>';
// Required because it is only called automatically for Admin Pages in the Settings section
settings_errors('jr_mt_settings');
$theme = wp_get_theme()->Name;
global $jr_mt_options_cache;
?>
<p>This plugin allows you to selectively change the Theme you have selected as your <b>Current Theme</b> in <b>Appearance-Themes</b> on the Admin panels.
You can choose from any of the <b>Available Themes</b> listed on the Appearance-Themes Admin panel for:
<ul>
<li> » All Pages</li>
<li> » All Posts</li>
<li> » The Site Home</li>
<li> » A Specific Page</li>
<li> » A Specific Post</li>
<li> » Any other non-Admin page that has its own Permalink; for example, a specific Archive or Category page</li>
</ul>
<?php
if (function_exists('is_multisite') && is_multisite()) {
echo "In a WordPress Network (AKA Multisite), Themes must be <b>Network Enabled</b> before they will appear as Available Themes on individual sites' Appearance-Themes panel.";
}
echo '</p>';
echo '<p>';
echo "The Current Theme is <b>{$theme}</b>. You will not normally need to specify it in any of the Settings on this page. The only exception would be if you specify a different Theme for All Pages or All Posts and wish to use the Current Theme for a specific Page, Post or other non-Admin page.";
echo '</p>';
echo '<form action="options.php" method="POST">';
// Plugin Settings are displayed and entered here:
settings_fields('jr_mt_settings');
do_settings_sections('jr_mt_settings_page');
echo '<p><input name="save" type="submit" value="Save Changes" class="button-primary" /></p></form>';
}
示例6: et_shortcodes_options_render_page
function et_shortcodes_options_render_page()
{
?>
<div class="wrap">
<?php
screen_icon();
?>
<h2><?php
esc_html_e('ET Shortcodes Plugin Options');
?>
</h2>
<?php
settings_errors();
?>
<form method="post" action="options.php">
<?php
settings_fields('et_shortcodes_options');
do_settings_sections('et_shortcodes_plugin_options');
submit_button();
?>
</form>
</div>
<?php
}
示例7: cccomm_option_page
function cccomm_option_page()
{
// first...process form data?
if ($_POST['cccomm_hidden'] == 'Y') {
update_option('cccomm_cc_email', $_POST['cc_email']);
?>
<div id="message" class="updated">Email was saved for CC Comments</div>
<?php
}
?>
<div class="wrap"><?php
screen_icon();
?>
<h2>CC Comments Option Page</h2>
<p>Welcome to the CC Comments Plugin. Here you can edit the email(s) you
wish to have your comments CC'd to.</p>
<form action="" method="post" id="cc-comments-email-options-form">
<h3><label for="cc_email">Email to send CC to: </label> <input
type="text" id="cc_email" name="cc_email"
value="<?php
echo esc_attr(get_option('cccomm_cc_email'));
?>
" /></h3>
<p><input type="submit" name="submit" value="Update Email" /></p>
<input type="hidden" name="cccomm_hidden" value="Y" />
</form>
</div>
<?php
}
示例8: sga_ranking_options_page
function sga_ranking_options_page()
{
?>
<div class="wrap">
<?php
screen_icon();
?>
<h2><?php
_e('Simple GA Ranking', SGA_RANKING_DOMAIN);
?>
</h2>
<form action="options.php" method="post">
<?php
settings_fields('sga_ranking_options');
do_settings_sections('sga_ranking');
?>
<p class="submit"><input name="Submit" type="submit" value="<?php
_e('save', SGA_RANKING_DOMAIN);
?>
" class="button-primary" /></p>
</form>
</div>
<?php
}
示例9: admin
/**
* Callback for displaying the Genesis Readme admin page.
*
* Checks if the file contents are readable, and echoes out HTML.
*
* @since 1.3.0
*
* @uses CHILD_DIR
*/
public function admin()
{
/** Assume we cannot find the file */
$file = false;
/** Get the file contents */
$file = @file_get_contents(CHILD_DIR . '/README.txt');
/** If we can't find file contents, show a message */
if (!$file || empty($file)) {
$file = '<div class="error"><p>' . sprintf(__('The %s file was not found in the child theme, or it was empty.', 'genesis'), '<code>README.txt</code>') . '</p></div>';
}
?>
<div id="genesis-readme-file" class="wrap">
<?php
screen_icon('edit-pages');
?>
<h2><?php
echo esc_html(get_admin_page_title());
?>
</h2>
<?php
echo wpautop($file);
?>
</div>
<?php
}
示例10: UserEngageScript__panel
function UserEngageScript__panel()
{
?>
<div class="wrap">
<?php
screen_icon();
?>
<h2>UserEngage.io Plugin - Options</h2>
<hr />
<div class="UserEngageScript__wrap">
<div class="UserEngageScript__brand"></div>
<form name="dofollow" action="options.php" method="post">
<?php
settings_fields('UserEngageScript-apiKey');
?>
<h3 for="UserEngageScript__apiKey">Your Api Key:</h3>
<input type="text" id="apiKey" name="UserEngageScript__apiKey" value="<?php
echo esc_html(get_option('UserEngageScript__apiKey'));
?>
" required><br>
Please enter your application key which has been sent to your email address.<br>
The api key is a 64 letter and number key.
<p class="submit">
<input class="button button-primary" type="submit" name="Submit" value="Submit Api Key" />
</p>
</form>
</div>
</div>
<?php
}
示例11: display_screen
function display_screen()
{
?>
<div class='wrap'>
<?php
screen_icon('options-general');
?>
<h2>SitePush Options</h2>
<?php
//show errors/notices
//validation doesn't add errors if we haven't set anything yet, in which case nothing will show here
SitePushErrors::errors();
//show debug info if in debug mode
if (SITEPUSH_DEBUG) {
echo "<p class='sitepush-debug-info'>{$this->options->get_server_info()}</p>";
}
if ($this->plugin->abort) {
return FALSE;
}
?>
<form action='options.php' method='post'>
<?php
settings_fields('sitepush_options');
do_settings_sections('sitepush_options');
?>
<input name="Submit" type='submit' value='Save Changes' class='button-primary' />
</form>
</div>
<?php
return TRUE;
}
示例12: admin_page
/**
* Admin page
*/
public function admin_page()
{
?>
<div class="wrap">
<?php
screen_icon('plugins');
?>
<h2><?php
_e('Help Scout Happiness Report', 'help-scout-happiness-report');
?>
</h2>
<form action="options.php" method="POST">
<?php
settings_fields('help-scout-happiness-report');
do_settings_sections('help-scout-happiness-report');
?>
<?php
submit_button();
?>
</form>
</div>
<?php
}
示例13: optionsframework_page_notice
function optionsframework_page_notice()
{
?>
<div class="wrap">
<?php
screen_icon('themes');
?>
<h2><?php
_e("Theme Options", 'organicthemes');
?>
</h2>
<p><b><?php
_e("This theme requires the Options Framework plugin installed and activated to manage your theme options.", 'organicthemes');
?>
<a href="<?php
echo admin_url('plugin-install.php?tab=plugin-information&plugin=options-framework&TB_iframe=true&width=640&height=517');
?>
" class="thickbox onclick"><?php
_e("Install Now", 'organicthemes');
?>
</a></b></p>
</div>
<?php
}
示例14: espw_plugin_settings
function espw_plugin_settings()
{
echo '<div class="wrap">';
screen_icon();
echo '<h2>';
_e('Enable Shortcode and PHP support in Text widget', 'espw-plugin');
echo '</h2>';
echo '<form action="options.php" method="post">';
do_settings_sections('espw-short-code-php-widget');
settings_fields('espw_settings_group');
submit_button();
?>
<br>
<br>
<table>
<tr>
<td>
<a href="https://twitter.com/w3guy" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @tech4sky</a>
<script>
!function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js, fjs);
}
}(document, 'script', 'twitter-wjs');
</script>
</td>
<td>
<div id="fb-root"></div>
<script>
( function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id))
return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=399748413426161&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class="fb-like" data-href="https://facebook.com/tech4sky" data-layout="standard" data-action="like" data-show-faces="false" data-share="false"></div>
</tr>
</table>
<br/><br/><br/>
<h2><?php
_e('Built with <3 and coffee by', 'espw-plugin');
?>
<strong><a href="http://w3guy.com" target="_blank">Agbonghama Collins</a></strong></h2>
<div style="width: 600px; text-align: center; margin: 10px auto; padding: 2px; background-color: #e3e3e3; border: 1px solid #DDDDDD">
<p>
<h3>See Also</h3>
<strong><a target="_blank" href="https://wordpress.org/plugins/ppress/">ProfilePress</a></strong>: A shortcode based WordPress form builder that makes building custom login, registration and password reset forms stupidly simple.
</p>
</div>
<?php
}
示例15: manage_formats
/**
* manage post formats
*/
public function manage_formats()
{
$selects = get_option("uf_formats", array());
if (empty($selects)) {
$selects = $this->_defaults;
}
?>
<div class="wrap">
<?php
screen_icon();
?>
<h2>投稿フォーマット</h2>
<p>サポートする投稿フォーマットを指定します。</p>
<p>投稿フォーマットについての詳しい情報は<a href="http://codex.wordpress.org/Post_Formats">WordPress.com</a>を参考にしてください。</p>
<form action="" method="post">
<div class="metabox-holder">
<div class="postbox-container" style="width: 99%;">
<div class="meta-box-sortables ui-sortable">
<?php
$this->render_checkbox_fields("投稿フォーマット", $this->_formats, "formats", $selects, "サポートする投稿フォーマットを選択します。");
?>
<!-- End meta box sortables --></div>
<!-- End postbox container --></div>
<!-- End metabox holder --></div>
<p>
<input type="submit" name="save_formats" value="保存" class="button-primary" />
</p>
</form>
<!-- End wrap --></div>
<?php
}