/** * Add Search Help * * Add help tab to search screen * * @since 2.0 * * @uses ace_search_help Return help text */ function ace_add_search_help() { global $ace_search_hook; $screen = get_current_screen(); if ($screen->id != $ace_search_hook) { return; } $screen->add_help_tab(array('id' => 'ace-search-help-tab', 'title' => __('Help'), 'content' => ace_search_help())); }
* @package Artiss-Code-Embed * @since 1.6 * * @uses ace_get_embed_paras Get the options */ ?> <div class="wrap"> <div class="icon32"><img src="<?php echo plugins_url(); ?> /simple-embed-code/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div> <h2>Artiss Code Embed Search</h2> <?php if (!ace_contextual_help_type()) { _e(ace_search_help()); } else { echo '<p>' . __('Enter the suffix to search for below and press the \'Search\' button to view the results. Further help can be found by clicking on the Help tab at the top right-hand of the screen.') . '</p>'; } ?> <?php // Get the suffix - either from the submitted field or via the URL line if (isset($_GET['suffix'])) { $suffix = htmlspecialchars($_GET['suffix']); } else { if (!empty($_POST) && check_admin_referer('code-embed-search', 'code_embed_search_nonce')) { $suffix = htmlspecialchars($_POST['ace_suffix']); } else { $suffix = ''; }