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>'; }
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 }
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 }
/** * 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 }
/** * 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>'; }
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 }
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 }
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 }
/** * 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 }
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 }
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; }
/** * 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 }
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 }
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 }
/** * 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 }
/** * Options page html elements */ function mgop_options_page() { ?> <div class="wrap mgop-wrap"> <?php screen_icon(); ?> <h2>Multiple Gallery on Post Settings</h2> <br/> <form action="options.php" method="post" class="mgop-form"> <?php settings_fields('mgop_options'); ?> <?php echo mgop_setting_string(); ?> <br/> <input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes'); ?> " /> </form> <div class="mgop_logo" style="float:left;margin-left: 20px;"></div> </div> <?php }
public function create_settings_page() { ?> <div class="wrap"> <?php screen_icon(); ?> <h2>Mixpanel Settings</h2> <?php settings_errors(); ?> <form method="post" action="options.php"> <?php // This prints out all hidden setting fields settings_fields('mixpanel_settings_group'); do_settings_sections('mixpanel_options'); ?> <?php submit_button(); ?> </form> </div> <?php }
function cfp_opinion_share_admin_page_screen() { global $submenu; // access page settings $page_data = array(); foreach ($submenu['options-general.php'] as $i => $menu_item) { if ($submenu['options-general.php'][$i][2] == 'cfp_opinionshare') { $page_data = $submenu['options-general.php'][$i]; } } // output ?> <div class="wrap"> <?php screen_icon(); ?> <h2><?php echo $page_data[3]; ?> </h2> <form id="cfp_opinionshare_options" action="options.php" method="post"> <?php settings_fields('cfp_opinionshare_options'); do_settings_sections('cfp_opinionshare'); submit_button('Save options', 'primary', 'cfp_opinionshare_options_submit'); ?> </form> </div> <?php }
function header() { echo '<div class="wrap">'; screen_icon(); echo '<h2>' . __('Import Textpattern') . '</h2>'; echo '<p>' . __('Steps may take a few minutes depending on the size of your database. Please be patient.') . '</p>'; }
public function create_admin_page() { ?> <div class="wrap" style="position:relative;"> <?php $this->get_donate_button(); ?> <?php screen_icon(); ?> <h2><?php echo $this->plugin_label; ?> </h2> <form method="post" action="options.php"> <?php // This prints out all hidden setting fields settings_fields($this->plugin_slug . '_option_group'); do_settings_sections($this->plugin_slug . '-setting-admin'); ?> <?php submit_button(); ?> </form> </div> <?php }
/** * renders plugin settings page */ function renderSettingsPage() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ?> <div class="wrap"> <?php screen_icon(); ?> <h2><?php echo __('OnPage Post SEO Settings', 'wtb_seo'); ?> </h2> <form method="post" action="options.php"> <?php settings_fields('wtb_seo_settings_main_group'); do_settings_sections('wtb_seo_settings'); ?> <?php submit_button(); ?> </form> </div> <?php }
function wc_display_yotpo_register() { $email = isset($_POST['yotpo_user_email']) ? $_POST['yotpo_user_email'] : ''; $user_name = isset($_POST['yotpo_user_name']) ? $_POST['yotpo_user_name'] : ''; $register_html = "<div class='wrap'>" . screen_icon() . "<h2>Yotpo Registration</h2>\n\t\t<form method='post'>\n\t\t<table class='form-table'>" . wp_nonce_field('yotpo_registration_form') . "<fieldset>\n\t\t\t <h2 class='y-register-title'>Fill out the form below and click register to get started with Yotpo.</h2></br></br> \n\t\t\t <tr valign='top'>\n\t\t\t <th scope='row'><div>Email address:</div></th>\t\t\t \t\t\t \n\t\t\t <td><div><input type='text' name='yotpo_user_email' value='{$email}' /></div></td>\n\t\t\t </tr>\n\t\t\t <tr valign='top'>\n\t\t\t <th scope='row'><div>Name:</div></th>\t\t\t \t\t\t \n\t\t\t <td><div><input type='text' name='yotpo_user_name' value='{$user_name}' /></div></td>\n\t\t\t </tr>\n\t\t\t <tr valign='top'>\n\t\t\t <th scope='row'><div>Password:</div></th>\t\t\t \t\t\t \n\t\t\t <td><div><input type='password' name='yotpo_user_password' /></div></td>\n\t\t\t </tr>\n\t\t\t <tr valign='top'>\n\t\t\t <th scope='row'><div>Confirm password:</div></th>\t\t\t \t\t\t \n\t\t\t <td><div><input type='password' name='yotpo_user_confirm_password' /></div></td>\n\t\t\t </tr>\n\t\t\t <tr valign='top'>\n\t\t\t <th scope='row'></th>\n\t\t\t <td><div><input type='submit' name='yotpo_register' value='Register' class='button-primary submit-btn' /></div></td>\n\t\t\t </tr>\t\t\t \n\t\t\t</fieldset>\t\t\t\n\t\t\t<table/>\n\t\t</form>\n\t\t<form method='post'>\n\t\t <div>Already registered to Yotpo?<input type='submit' name='log_in_button' value='click here' class='button-secondary not-user-btn' /></div>\n\t\t</form></br><p class='description'>*Learn <a href='http://support.yotpo.com/entries/24454261-Exporting-reviews-for-Woocommerce'>how to export your existing reviews</a> into Yotpo.</p></br></br>\n\t\t<div class='yotpo-terms'>By registering I accept the <a href='https://www.yotpo.com/terms-of-service' target='_blank'>Terms of Use</a> and recognize that a 'Powered by Yotpo' link will appear on the bottom of my Yotpo widget.</div>\n </div>"; echo $register_html; }
function jeweltheme_rpi_option_page() { ?> <div class="wrap"> <?php screen_icon(); ?> <h2>H2CWEB Related Post Inside</h2> <form action="options.php" method="post"> <?php settings_fields('jeweltheme_rpi_options'); ?> <?php do_settings_sections('jeweltheme_rpi'); ?> <input name="Submit" class="button button-primary" type="submit" value="Save Changes" /> </form> </div> <?php }
/** * Shows The Import Page and import form for step 1. * Calls the parsing and importing function for step 2. * * @since 3.3 * @return void */ public function opml_import() { // Show the Icon and Title echo '<div class="wrap">'; screen_icon(); echo '<h2>Import OPML</h2>'; // Get the current step from URL query string $step = empty($_GET['step']) ? 0 : (int) $_GET['step']; // Check the current step switch ($step) { default: case 0: // Show the Import Message and the import upload form echo '<p>' . __('Howdy! Import your feeds here from an OPML (.xml) export file.', 'wprss') . '</p>'; echo '<p>' . __("Click the button below, choose your file, and click 'Upload'.", 'wprss') . '</p>'; echo '<p>' . __('We will take care of the rest.', 'wprss') . '</p>'; // Show an import upload form that submits to the same page, with GET parameter step=1 wp_import_upload_form('admin.php?import=wprss_opml_importer&step=1'); break; case 1: // Check referer check_admin_referer('import-upload'); // If the handle_upload function returns true if ($this->handle_upload()) { // Get the uploaded file $file = get_attached_file($this->id); set_time_limit(0); // Parse the File and Import the feeds $this->parse_and_import($file); } break; } echo '</div>'; }
function admin_page() { ?> <?php screen_icon(); ?> <h2><?php _e('eCommerce Support', 'bre-bootstrap-ecommerce'); ?> </h2> <?php bre_ecommerce_upgrade(); ?> <h2>TheCartPress eCommerce plugin support</h2> To enable eCommerce features you need to install <a title="eCommerce pluygin for WordPress" href="http://wordpress.org/plugins/thecartpress/" target="_blank">ThecartPress eCommerce Plugin</a>, you have 2 options to install: <h3>1- From your WordPress backend:</h3> <ul> <li>Plugins > Add plugin</li> <li>Search "thecartpress"</li> <li>Install the plugin</li> <li>Activate the plugin</li> <li>Re-save permalink settings (Settings > permalinks)</li> </ul> <h3>2- FTP</h3> <ul> <ul> <li><a title="Download TheCartPress eCommerce plugin" href="http://wordpress.org/plugins/thecartpress/" target="_blank">Download TheCartPress plugin</a> from WordPress repository</li> <li>Upload TheCartpress E-commerce plugin to the '/wp-content/plugins/' directory</li> <li>Activate the plugin through the 'Plugins' menu in WordPress</li> <li>Re-save permalink settings (Settings > permalinks)</li> </ul> </ul> <h4>After activating the plugin, you can start working on your store. Take a look at the widgets section, you will see there a lot of power and flexibility to develop and structure your store and site</h4> <?php }
/** * Network Settings page for plugin * * Display and Process Settings page for this plugin. * */ function jr_ps_network_settings_page() { global $jr_ps_plugin_data; add_thickbox(); echo '<div class="wrap">'; screen_icon('plugins'); echo '<h2>' . $jr_ps_plugin_data['Name'] . '</h2>'; ?> <p> This Plugin has been <b>Network Activated</b> in a WordPress Multisite ("Network") installation. Since all of this plugin's Settings can be specified separately for each individual WordPress site, you will need to go to the Admin pages for each Site, and review the plugin's Settings page, making changes appropriate for that Site. The plugin's Settings page can be found by opening the <b>Settings</b> submenu on the left sidebar of each Admin page for the Site and selecting <b>Private Site</b>. Or from the <b>Settings</b> link in the plugin's entry on the <b>Installed Plugins</b> page for the Site <i>(WordPress does not list Network Activated plugins on each Site's Installed Plugins page, but this plugin has added its own entry for your convenience)</i>. </p> <p> Alternatively, you can <b>Network Deactivate</b> this plugin and <b>Activate</b> it individually on each Site where you wish to use it. </p> <p> If you would prefer, when this plugin is Network Activated, to have a single set of Settings that would apply to all Sites in a WordPress network, and/or be able to view and change all of the Settings for all Sites from this one Network Settings page that you are now viewing, <a href="http://zatzlabs.com/contact-us/">please contact the Plugin author</a> and this will be added to a future version of this plugin if there is enough interest expressed by webmasters such as you. </p> <?php }
function display_settings_page() { $wpvl_plugin_tabs = array('wp_video_lightbox' => __('General', 'wp-video-lightbox'), 'wp_video_lightbox&action=prettyPhoto' => __('prettyPhoto', 'wp-video-lightbox')); echo '<div class="wrap">' . screen_icon() . '<h2>WP Video Lightbox v' . WP_VIDEO_LIGHTBOX_VERSION . '</h2>'; echo '<div id="poststuff"><div id="post-body">'; if (isset($_GET['page'])) { $current = $_GET['page']; if (isset($_GET['action'])) { $current .= "&action=" . $_GET['action']; } } $content = ''; $content .= '<h2 class="nav-tab-wrapper">'; foreach ($wpvl_plugin_tabs as $location => $tabname) { if ($current == $location) { $class = ' nav-tab-active'; } else { $class = ''; } $content .= '<a class="nav-tab' . $class . '" href="?page=' . $location . '">' . $tabname . '</a>'; } $content .= '</h2>'; echo $content; if (isset($_GET['action'])) { switch ($_GET['action']) { case 'prettyPhoto': $this->prettyPhoto_settings_section(); break; } } else { $this->general_settings_section(); } echo '</div></div>'; echo '</div>'; }
/** * Tools * * Shows the tools panel which contains QUADS-specific tools including the * built-in import/export system. * * @since 0.9.0 * @author Daniel J Griffiths, René Hermenau * @return void */ function quads_tools_page() { $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'import_export'; ?> <div class="wrap"> <?php screen_icon(); ?> <h2 class="nav-tab-wrapper"> <?php foreach (quads_get_tools_tabs() as $tab_id => $tab_name) { $tab_url = add_query_arg(array('tab' => $tab_id)); $tab_url = remove_query_arg(array('quads-message'), $tab_url); $active = $active_tab == $tab_id ? ' nav-tab-active' : ''; echo '<a href="' . esc_url($tab_url) . '" title="' . esc_attr($tab_name) . '" class="nav-tab' . $active . '">' . esc_html($tab_name) . '</a>'; } ?> </h2> <div class="metabox-holder"> <?php do_action('quads_tools_tab_' . $active_tab); ?> </div><!-- .metabox-holder --> </div><!-- .wrap --> <?php }
/** * Renders the page mapping admin panel. * * @since 1.6.0 * @todo Use settings API * @uses bp_core_admin_component_options() */ function bp_core_admin_slugs_settings() { ?> <div class="wrap"> <?php screen_icon('buddypress'); ?> <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs(__('Pages', 'buddypress')); ?> </h2> <form action="" method="post" id="bp-admin-page-form"> <?php bp_core_admin_slugs_options(); ?> <p class="submit clear"> <input class="button-primary" type="submit" name="bp-admin-pages-submit" id="bp-admin-pages-submit" value="<?php esc_attr_e('Save Settings', 'buddypress'); ?> "/> </p> <?php wp_nonce_field('bp-admin-pages-setup'); ?> </form> </div> <?php }
public function config_page() { global $ef_activation_license_manager; $settings_tabs = array('ef_activation_dashboard' => __('License Activation', $ef_activation_license_manager->text_domain)); $current_tab = isset($_GET['tab']) ? $_GET['tab'] : 'ef_activation_dashboard'; $tab = isset($_GET['tab']) ? $_GET['tab'] : 'ef_activation_dashboard'; ?> <div class='wrap'> <?php screen_icon(); ?> <h2><?php _e('Theme Activation', $ef_activation_license_manager->text_domain); ?> </h2> <form action='options.php' method='post'> <div class="main"> <?php if ($tab == 'ef_activation_dashboard') { settings_fields('ef_activation_license_options'); do_settings_sections('ef_activation_dashboard'); $wc_am_save_changes = __('Save Changes', $ef_activation_license_manager->text_domain); submit_button($wc_am_save_changes); } }