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


PHP add_contextual_help函数代码示例

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


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

示例1: mt_add_pages

function mt_add_pages()
{
    $custombranding_admin = add_options_page('Custom Admin Branding', 'Custom Admin Branding', 8, 'brandingoptions', 'admin_branding_options_page');
    //add help instructions for WordPress sliding help menu
    $admin_branding_help = "\r\n<style>\r\nh6 {\r\n\tfont-size:0.85em;\r\n\tborder-bottom:1px solid #d1d1d1;\r\n\tpadding-bottom:3px;\r\n\tmargin:2.33em 0 10px;}\r\n\r\nul.help_list {\r\n\tmargin-top:10px;}\r\n\t\r\nul.help_list li {\r\n\tlist-style-type:disc;\r\n\tmargin-left:20px;}\r\n</style>\r\n\r\n<p>Well, you obviously have the plugin activated so thats out of the way.  Now on to the customization of your WordPress Admin.</p>\r\n<p>Nearly every visual feature in the login screen, header section, and footer section can be modified to fit your custom color and image scheme.</p>\r\n\r\n<h6>Changing Colors</h6>\r\n<p>The options that support color change have a swatch next to the form field.  You can either click the color swatch or click into the form field.  Doing so will bring up a palette of color options.  You are not restricited by the choices in the palette.  You can enter any 6 figure hexidecimal color code.  You must however precede your code with the pound sign (#).</p>\r\n\r\n<h6>Customizing Images</h6>\r\nThere are five images that you can customize:\r\n<ul class='help_list'>\r\n\t<li>Login Form Background</li>\r\n\t<li>Login Form Login Button Background</li>\r\n\t<li>Admin Header Logo</li>\r\n\t<li>Favorite Actions Button Background</li>\r\n\t<li>Footer Logo</li>\r\n</ul>\r\n\r\n<p>All of the default images are in the images folder which is in the custom-admin-branding plugin folder.\r\nTo change an image:</p>\r\n<ol>\r\n\t<li>Create your custom images with the provided Photoshop templates. (They are in the psd_image_templates folder)</li>\r\n\t<li>Upload your custom image(s) to the images folder.</li>\r\n\t<li>Enter the file name of the image you wish to use in the proper form field in the options page.</li>\r\n\t<li>Click the save changes button at the bottom of options page and you will see your changes immediately.</li>\r\n</ol>\r\n\r\n<p>*********Important***********</p>\r\nTo avoid having your custom images overwritten when you upgrade the plugin, you'll need to name them something different than the default names which are:\r\n<ul class='help_list'>\r\n\t<li>wordpress_blue.jpg</li>\r\n\t<li>button-grad.png</li>\r\n\t<li>logo_wordpress_gray.png</li>\r\n\t<li>fav.png</li>\r\n\t<li>footer_wordpress_gray.png</li>\r\n</ul>\r\n\r\n\r\n<h6>Advanced Header Customization</h6>\r\n<p>The form field for the Admin Header Background Color will accept a full css properties for the background selector.  So if you wanted to have a repeating image for your admin header you would enter in:<br />\r\n<blockquote>transparent url(http://yoursitename.com/wp-content/plugins/custom-admin-branding/images/header_bg_wordpress_gray.png) repeat-x</blockquote></p>\r\n\r\n<h6>Changing the Admin Footer Link</h6>\r\n<p>You can have the image in the footer link back to your site, another site, or no site if you wish.  Just fill in full url in the Footer Link form field.</p>\r\n\r\n";
    add_contextual_help($custombranding_admin, $admin_branding_help);
}
开发者ID:ahsaeldin,项目名称:projects,代码行数:7,代码来源:custom_branding.php

示例2: capa_add_pages

function capa_add_pages()
{
    // Rolle/User -> no manage options right -> No go
    if (!current_user_can('manage_options')) {
        return NULL;
    }
    global $menu;
    // Add CaPa CSS Style
    wp_enqueue_style('capa', plugins_url($path = '/capa/css/capa-style.css'), array());
    wp_enqueue_script('capa', plugins_url($path = '/capa/js/capa.js'), array());
    // DEV Variable
    define('CAPA_DBUG', FALSE);
    $menu_slug = CAPA_DBUG ? __FILE__ : 'capa/capa-options';
    /**
    	TODO 
    	- 26.0001 verhindert, dass ein anderes Plugin den Platz stiehlt. - Notloesung; Aendern
    */
    // Add Capa Separator
    $menu['26.0001'] = array('', 'manage_options', 'separator-capa', '', 'wp-menu-separator');
    // Add CaPa Menu ( after the CaPa Separator and before Appearance) :
    add_menu_page(__('CaPa', 'capa'), 'CaPa', 'manage_options', $menu_slug, 'capa_global_page', 'div', '26.0002');
    // Global Subpage
    $page['global'] = add_submenu_page($menu_slug, __('CaPa &rsaquo; General Settings', 'capa'), __('CaPa Settings', 'capa'), 'manage_options', $menu_slug, 'capa_global_page');
    // Roles Subpage
    $page['roles'] = add_submenu_page($menu_slug, __('CaPa &rsaquo; User Roles', 'capa'), __('User Roles', 'capa'), 'manage_options', 'capa/capa-roles-page', 'capa_sublevel_roles');
    // Support Subpage
    $page['help'] = add_submenu_page($menu_slug, __('CaPa &rsaquo; Support', 'capa'), __('CaPa Support', 'capa'), 'manage_options', 'capa/capa-support-page', 'capa_sublevel_support');
    // Add Help
    if (function_exists('add_contextual_help')) {
        add_contextual_help($page['global'], '<br />' . @file_get_contents(WP_PLUGIN_DIR . "/capa/help/global." . (WPLANG == '' ? 'EN' : (file_exists(WP_PLUGIN_DIR . "/capa/help/global." . strtoupper(substr(WPLANG, 0, 2))) ? strtoupper(substr(WPLANG, 0, 2)) : 'EN')), "r"));
        add_contextual_help($page['roles'], '<br />' . @file_get_contents(WP_PLUGIN_DIR . "/capa/help/roles." . (WPLANG == '' ? 'EN' : (file_exists(WP_PLUGIN_DIR . "/capa/help/roles." . strtoupper(substr(WPLANG, 0, 2))) ? strtoupper(substr(WPLANG, 0, 2)) : 'EN')), "r"));
        add_contextual_help($page['help'], '<br />' . @file_get_contents(WP_PLUGIN_DIR . "/capa/help/help." . (WPLANG == '' ? 'EN' : (file_exists(WP_PLUGIN_DIR . "/capa/help/help." . strtoupper(substr(WPLANG, 0, 2))) ? strtoupper(substr(WPLANG, 0, 2)) : 'EN')), "r"));
    }
}
开发者ID:DarussalamTech,项目名称:aims_prj,代码行数:34,代码来源:capa-options.php

示例3: register_menu

 public function register_menu()
 {
     add_action('admin_init', array(&$this, 'register_options'));
     if (isset($this->help)) {
         add_contextual_help(get_plugin_page_hookname($this->slug, ''), $this->help);
     }
 }
开发者ID:billyprice1,项目名称:website,代码行数:7,代码来源:CustomPageBase.php

示例4: admin_load

 /**
  * Set up the enqueue for the CSS & JavaScript files.
  *
  * @since 3.0.0
  */
 function admin_load()
 {
     add_contextual_help($this->page, '<p>' . __('You can customize the look of your site without touching any of your theme&#8217;s code by using a custom background. Your background can be an image or a color.') . '</p>' . '<p>' . __('To use a background image, simply upload it, then choose your display options below. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.') . '</p>' . '<p>' . __('You can also choose a background color. If you know the hexadecimal code for the color you want, enter it in the Color field. If not, click on the Select a Color link, and a color picker will allow you to choose the exact shade you want.') . '</p>' . '<p>' . __('Don&#8217;t forget to click on the Save Changes button when you are finished.') . '</p>');
     get_current_screen()->set_help_sidebar('<p><strong>' . __('For more information:') . '</strong></p>' . '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Background_Screen" target="_blank">Documentation on Custom Background</a>') . '</p>' . '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>');
     wp_enqueue_script('custom-background');
     wp_enqueue_style('farbtastic');
 }
开发者ID:redteam,项目名称:wordpress-,代码行数:12,代码来源:custom-background.php

示例5: filebrowser_menu_entry

function filebrowser_menu_entry()
{
    $hook = add_management_page(__('FileBrowser', 'filebrowser'), __('FileBrowser', 'filebrowser'), '10', 'FileBrowser', 'filebrowser_options_page');
    add_action('load-' . $hook, 'filebrowser_options_load');
    register_column_headers($hook, array('cb' => '<input type="checkbox" />', 'name' => __('Name', 'filebrowser'), 'size' => __('Size', 'filebrowser'), 'mdate' => __('Date', 'filebrowser'), 'premissions' => __('Permissions', 'filebrowser')));
    add_contextual_help($hook, filebrowser_show_help());
}
开发者ID:patrickouc,项目名称:wordpress2,代码行数:7,代码来源:functions.php

示例6: add_post_views_contextual_help

function add_post_views_contextual_help()
{
    add_contextual_help('dashboard_page_post-views', '<p><strong>Donation:</strong></p> 
   		<p>PayPal Account ( Global ): <a href="https://www.paypal.com/" target="_blank"> message@ziming.org</a>
   		&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; AliPay Account ( China ): <a href="https://www.alipay.com//" target="_blank"> message@ziming.org</a></p>
   	');
}
开发者ID:liangwei1988,项目名称:wordpress,代码行数:7,代码来源:post-views.php

示例7: hybrid_settings_page_init

/**
 * Initializes all the theme settings page functionality. This function is used to create the theme settings 
 * page, then use that as a launchpad for specific actions that need to be tied to the settings page.
 *
 * @since 0.7.0
 * @global string $hybrid The global theme object.
 */
function hybrid_settings_page_init()
{
    global $hybrid;
    /* Get theme information. */
    $theme = hybrid_get_theme_data();
    $prefix = hybrid_get_prefix();
    $domain = hybrid_get_textdomain();
    /* Register theme settings. */
    register_setting("{$prefix}_theme_settings", "{$prefix}_theme_settings", 'hybrid_save_theme_settings');
    /* Create the theme settings page. */
    $hybrid->settings_page = add_theme_page(sprintf(esc_html__('%1$s Theme Settings', $domain), $theme['Name']), esc_html__('Theme Settings', $domain), hybrid_settings_page_capability(), 'theme-settings', 'hybrid_settings_page');
    /* Check if the settings page is being shown before running any functions for it. */
    if (!empty($hybrid->settings_page)) {
        /* Filter the settings page capability so that it recognizes the 'edit_theme_options' cap. */
        add_filter("option_page_capability_{$prefix}_theme_settings", 'hybrid_settings_page_capability');
        /* Add contextual help to the theme settings page. */
        add_contextual_help($hybrid->settings_page, hybrid_settings_page_contextual_help());
        /* Load the theme settings meta boxes. */
        add_action("load-{$hybrid->settings_page}", 'hybrid_load_settings_page_meta_boxes');
        /* Create a hook for adding meta boxes. */
        add_action("load-{$hybrid->settings_page}", 'hybrid_settings_page_add_meta_boxes');
        /* Load the JavaScript and stylesheets needed for the theme settings screen. */
        add_action('admin_enqueue_scripts', 'hybrid_settings_page_enqueue_scripts');
        add_action('admin_enqueue_scripts', 'hybrid_settings_page_enqueue_styles');
        add_action("admin_head-{$hybrid->settings_page}", 'hybrid_settings_page_load_scripts');
    }
}
开发者ID:rdbartlett,项目名称:kellyspencer.co.nz,代码行数:34,代码来源:theme-settings.php

示例8: exploitscanner_menu

function exploitscanner_menu()
{
    $page_hook = add_management_page('Exploit Scanner', 'Exploit Scanner', 'manage_options', 'exploit-scanner', 'exploitscanner_admin_page');
    $help = '<p><strong>Interpreting the Results</strong></p>
	<p>It is likely that this scanner will find false positives (i.e. files which do not contain malicious code). However, it is best to err
	on the side of caution; if you are unsure then ask in the <a href="http://wordpress.org/support/" target="_blank">Support Forums</a>,
	download a fresh copy of a plugin, search the Internet for similar situations, et cetera. You should be most concerned if the scanner is:
	making matches around unknown external links; finding base64 encoded text in modified core files or the <code>wp-config.php</code> file;
	listing extra admin accounts; or finding content in posts which you did not put there.</p>
	<p>Understanding the three different result levels:</p>
	<ul>
		<li><strong>Severe:</strong> results that are often strong indicators of a hack (though they are not definitive proof)</li>
		<li><strong>Warning:</strong> these results are more commonly found in innocent circumstances than Severe matches, but they should
			still be treated with caution</li>
		<li><strong>Note:</strong> lowest priority, showing results that are very commonly used in legitimate code or notifications about events
			such as skipped files</li>
	</ul>
	
	<p><strong>Help! I think I have been hacked!</strong></p>
	<p>Follow the guides from the Codex:</p>
	<ul>
		<li><a href="http://codex.wordpress.org/FAQ_My_site_was_hacked">Codex: FAQ - My site was hacked</a></li>
		<li><a href="http://codex.wordpress.org/Hardening_WordPress">Codex: Hardening WordPress</a></li>
	</ul>
	<p>Ensure that you change <strong>all</strong> of your WordPress related passwords (site, FTP, MySQL, etc.). A regular backup routine
	(either manual or plugin powered) is extremely useful; if you ever find that your site has been hacked you can easily restore your site from
	a clean backup and fresh set of files and, of course, use a new set of passwords.</p>';
    add_contextual_help($page_hook, $help);
}
开发者ID:exploit86,项目名称:Devoncha,代码行数:29,代码来源:exploit-scanner.php

示例9: mandisphotography_theme_options_add_page

/**
 * Add the theme options page to the admin menu.
 *
 * Function attached to the admin_menu action hook.
 */
function mandisphotography_theme_options_add_page()
{
    $theme_page = add_theme_page('Theme Options', 'Theme Options', 'edit_theme_options', 'theme_options', 'theme_options_render_page');
    if (!$theme_page) {
        return;
    }
    $help = '<p>Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Mandi\'s Photography, provides the following Theme Options:"</p>' . '<ol>' . '<li><strong>Facebook Link</strong>: You can add your Facebook page link and have the Facebook icon in the footer link to it.</li>' . '</ol>' . '<p>Remember to clic "Save Changes" to save any changes you have made to the theme options.</p>';
    add_contextual_help($theme_page, $help);
}
开发者ID:royens,项目名称:mandisphotography,代码行数:14,代码来源:theme-options.php

示例10: jqmobile_theme_options_add_page

function jqmobile_theme_options_add_page()
{
    $theme_page = add_theme_page(__('Theme Options', 'jqmobile'), __('Theme Options', 'jqmobile'), 'edit_theme_options', 'theme_options', 'jqmobile_theme_options_render_page');
    if (!$theme_page) {
        return;
    }
    $help = '<p>' . __('Your current theme, jQMobile, provides Basic and Advanced settings. See descriptions below.', 'jqmobile') . '</p>' . '<p><strong>Basic Settings</strong></p>' . '<ol>' . '<li>' . __('<strong>Color Scheme</strong>: Here you can choose one of the available color schemes for your website. By default three schemes are available: "Default", "Valencia" and "Green".', 'jqmobile') . '</li>' . '<li>' . __('<strong>Upload Scheme</strong>: Optionally you may create your own color scheme using <a href="http://jquerymobile.com/themeroller/" target="_blank">ThemeRoller Mobile</a>. Once your custom scheme is created and downloaded you may upload it here by clicking "Upload" button.', 'jqmobile') . '</li>' . '<li>' . __('<strong>Mobile Layout</strong>: Here you may control the position of the sidebar. It can be left- or right-side aligned.', 'jqmobile') . '</li>' . '</ol>' . '<p><strong>' . __('Advanced Settings', 'jqmobile') . '</strong></p>' . '<p>' . __('You may use advanced settings for tuning up your custom created color scheme downloaded from <a href="http://jquerymobile.com/themeroller/" target="_blank">ThemeRoller Mobile</a>.', 'jqmobile') . '</p>' . '<p>' . __('ThemeRoller Mobile allows you to create up to 26 unique color "swatches" marked by letters from "a" to "z". Each swatch defines the look and feel for a bar, content block and a button with normal, hover and pressed interaction states. Within your site, you may assign swatch letters to the elements on a page to mix and match swatch colors for really rich designs. The elements available for customizing are: "Header", "Body", "Footer", "Post Teaser", "Sticky Post", "Widget", "Widget Content", "Comments" and "Comment Form".', 'jqmobile') . '</p>' . '<p>' . __('Don\'t forget to click "Save Changes" to save all the updates have made to the jQMobile theme options.', 'jqmobile') . '</p>' . '<p><strong>' . __('For more information:', 'jqmobile') . '</strong></p>' . '<p>' . __('<a href="http://jquerymobile.com/" target="_blank">jQuery Mobile</a>', 'jqmobile') . '</p>' . '<p>' . __('<a href="http://jquerymobile.com/themeroller/" target="_blank">ThemeRoller</a>', 'jqmobile') . '</p>' . '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Theme_Options_Screen" target="_blank">Documentation on Theme Options</a>', 'jqmobile') . '</p>';
    add_contextual_help($theme_page, $help);
}
开发者ID:Bencheci,项目名称:blueRavenStudiosProject,代码行数:9,代码来源:theme-options.php

示例11: wpm_add_pages

function wpm_add_pages()
{
    add_menu_page('Manual', 'Manual', 0, __FILE__, 'wpm_toplevel_page', plugins_url('video-user-manuals/images/vum-logo.png'));
    add_submenu_page(__FILE__, 'Videos', 'Videos', 0, __FILE__, 'wpm_toplevel_page');
    add_submenu_page(__FILE__, 'User Manual', 'User Manual', 0, 'online-manual', 'wpm_online_manual');
    $wpm_administration = add_submenu_page(__FILE__, 'Manual Options', 'Manual Options', 10, 'manual-options', 'wpm_admin');
    $wpm_help = "\n\t<style>\n\tul.help_list {\n\t\tmargin-top:10px;}\n\t\t\n\tul.help_list li {\n\t\tlist-style-type:disc;\n\t\tmargin-left:20px;}\n\t</style>\n\t\t\n\t<p>For more details of how to use this plugin please refer to our FAQ section.  <a href=\"http://www.videousermanuals.com/faq/\">http://www.videousermanuals.com/faq/</a></p>\n\t\n\t<p>In order to use this plugin, you must have a serial number, which should have been emailed to you when you first subscribed to the plugin.</p>\n\t\n\t<p>If you have any issues with the plugin, please put in a support ticket: <a href=\"http://www.videousermanuals.com/support-desk/\">http://www.videousermanuals.com/support-desk/</a>.</p>\n\t\n\t<p style=\"font-size:9px; margin-bottom:10px;\">Icons: <a href=\"http://www.woothemes.com/2009/09/woofunction/\">WooFunction</a></p>\t\n\t\n\t<p>Please note the links below are not actually related to this plugin (we could not figure out how to remove them. If anyone knows how to, please let us know!)</p>\n\t";
    add_contextual_help($wpm_administration, $wpm_help);
}
开发者ID:aaronfrey,项目名称:PepperLillie-FiveVirtues,代码行数:9,代码来源:plugin.php

示例12: dusktodawn_theme_options_add_page

/**
 * Add our theme options page to the admin menu, including some help documentation.
 * This function is attached to the admin_menu action hook.
 */
function dusktodawn_theme_options_add_page()
{
    $theme_page = add_theme_page(__('Theme Options', 'dusktodawn'), __('Theme Options', 'dusktodawn'), 'edit_theme_options', 'theme_options', 'theme_options_render_page');
    if (!$theme_page) {
        return;
    }
    $help = '<p>' . __('Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Dusk To Dawn, provides the following Theme Options:', 'dusktodawn') . '</p>' . '<ol>' . '<li>' . __('<strong>Accent Color</strong>: You can choose the color used for text links and the top line on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the "Select a Color" button to pick from a color wheel.', 'dusktodawn') . '</li>' . '<li>' . __('<strong>Layout</strong>: You can choose if you want your site&#8217;s layout to have a sidebar on the left, or the right.', 'dusktodawn') . '</li>' . '</ol>' . '<p>' . __('Remember to click "Save Changes" to save any changes you have made to the theme options.', 'dusktodawn') . '</p>' . '<p><strong>' . __('For more information:', 'dusktodawn') . '</strong></p>' . '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Theme_Options_Screen" target="_blank">Documentation on Theme Options</a>', 'dusktodawn') . '</p>' . '<p>' . __('<a href="http://wordpress.com/support/" target="_blank">Support Forums</a>', 'dusktodawn') . '</p>';
    add_contextual_help($theme_page, $help);
}
开发者ID:kevinreilly,项目名称:mendelements.com,代码行数:13,代码来源:theme-options.php

示例13: twentyeleven_theme_options_add_page

/**
 * Add our theme options page to the admin menu, including some help documentation.
 *
 * This function is attached to the admin_menu action hook.
 *
 * @since Twenty Eleven 1.0
 */
function twentyeleven_theme_options_add_page()
{
    $theme_page = add_theme_page(__('Theme Options', 'twentyeleven'), __('Theme Options', 'twentyeleven'), 'edit_theme_options', 'theme_options', 'twentyeleven_theme_options_render_page');
    if (!$theme_page) {
        return;
    }
    $help = '<p>' . __('Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Twenty Eleven, provides the following Theme Options:', 'twentyeleven') . '</p>' . '<ol>' . '<li>' . __('<strong>Color Scheme</strong>: You can choose a color palette of "Light" (light background with dark text) or "Dark" (dark background with light text) for your site.', 'twentyeleven') . '</li>' . '<li>' . __('<strong>Link Color</strong>: You can choose the color used for text links on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the "Select a Color" button to pick from a color wheel.', 'twentyeleven') . '</li>' . '<li>' . __('<strong>Default Layout</strong>: You can choose if you want your site&#8217;s default layout to have a sidebar on the left, the right, or not at all.', 'twentyeleven') . '</li>' . '</ol>' . '<p>' . __('Remember to click "Save Changes" to save any changes you have made to the theme options.', 'twentyeleven') . '</p>' . '<p><strong>' . __('For more information:', 'twentyeleven') . '</strong></p>' . '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Theme_Options_Screen" target="_blank">Documentation on Theme Options</a>', 'twentyeleven') . '</p>' . '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>', 'twentyeleven') . '</p>';
    add_contextual_help($theme_page, $help);
}
开发者ID:nhemsley,项目名称:wordpress,代码行数:16,代码来源:theme-options.php

示例14: shibboleth_admin_panels

/**
 * Setup admin menus for Shibboleth options.
 *
 * @action: admin_menu
 **/
function shibboleth_admin_panels()
{
    // global options page
    if (function_exists('is_site_admin')) {
        $hookname = add_submenu_page('settings.php', __('Shibboleth Options', 'shibboleth'), __('Shibboleth', 'shibboleth'), 8, 'shibboleth-options', 'shibboleth_options_page');
    } else {
        $hookname = add_options_page(__('Shibboleth options', 'shibboleth'), __('Shibboleth', 'shibboleth'), 8, 'shibboleth-options', 'shibboleth_options_page');
    }
    add_contextual_help($hookname, shibboleth_help_text());
}
开发者ID:HirotoKagotani,项目名称:shibboleth-wordpress,代码行数:15,代码来源:options-admin.php

示例15: screen_help

 /**
  * screen_help()
  * 
  * Handles the screen() help
  */
 function screen_help()
 {
     global $current_screen;
     // If it's not Courseware Screen
     if (!stristr($current_screen->id, 'courseware')) {
         return;
     }
     $vars['name'] = 'contextual_help';
     add_contextual_help($current_screen, self::load_template($vars));
 }
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:15,代码来源:nxtclass.class.php


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