function ct_apex_options_content(){ $customizer_url = add_query_arg( array( 'url' => site_url(), 'return' => admin_url('themes.php?page=apex-options') ), admin_url('customize.php') ); ?> <div id="apex-dashboard-wrap" class="wrap"> <h2><?php _e('Apex Dashboard', 'apex'); ?></h2> <?php hybrid_do_atomic( 'theme_options_before' ); ?> <div class="content content-customization"> <h3><?php _e('Customization', 'apex'); ?></h3> <p><?php _e('Click the "Customize" link in your menu, or use the button below to get started customizing Apex', 'apex'); ?>.</p> <p> <a class="button-primary" href="<?php echo esc_url( $customizer_url ); ?>"><?php _e('Use Customizer', 'apex') ?></a> </p> </div> <div class="content content-support"> <h3><?php _e('Support', 'apex'); ?></h3> <p><?php _e("You can find the knowledgebase, changelog, support forum, and more in the Apex Support Center", "apex"); ?>.</p> <p> <a target="_blank" class="button-primary" href="https://www.competethemes.com/documentation/apex-support-center/"><?php _e('Visit Support Center', 'apex'); ?></a> </p> </div> <div class="content content-premium-upgrade"> <h3><?php _e('Get More Features & Flexibility', 'apex'); ?></h3> <p><?php _e('Download the Apex Pro plugin and unlock custom colors, new layouts, a flexible header image, and more', 'apex'); ?>...</p> <p> <a target="_blank" class="button-primary" href="https://www.competethemes.com/apex-pro/"><?php _e('See Full Feature List', 'apex'); ?></a> </p> </div> <div class="content content-resources"> <h3><?php _e('WordPress Resources', 'apex'); ?></h3> <p><?php _e('Save time and money searching for WordPress products by following our recommendations', 'apex'); ?>.</p> <p> <a target="_blank" class="button-primary" href="https://www.competethemes.com/wordpress-resources/"><?php _e('View Resources', 'apex'); ?></a> </p> </div> <div class="content content-delete-settings"> <h3><?php _e('Reset Customizer Settings', 'apex'); ?></h3> <p> <?php printf( __( '<strong>Warning:</strong> Clicking this button will erase your current settings in the <a href="%s">Customizer</a>', 'apex' ), esc_url( $customizer_url ) ); ?> </p> <form method="post"> <input type="hidden" name="apex_reset_customizer" value="apex_reset_customizer_settings" /> <p> <?php wp_nonce_field( 'apex_reset_customizer_nonce', 'apex_reset_customizer_nonce' ); ?> <?php submit_button( __( 'Reset Customizer Settings', 'apex' ), 'delete', 'delete', false ); ?> </p> </form> </div> <?php hybrid_do_atomic( 'theme_options_after' ); ?> </div> <?php } ?>
/** * Display the system info tab * * @since 1.0 * @return void */ function gmb_system_info_callback() { if (!current_user_can('install_plugins')) { return; } ?> <textarea readonly="readonly" onclick="this.focus(); this.select()" id="system-info-textarea" name="gmb-sysinfo" title="To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac)."><?php echo gmb_tools_sysinfo_get(); ?> </textarea> <p class="submit"> <input type="hidden" name="gmb_action" value="download_sysinfo" /> <?php submit_button(__('Download System Info File', 'google-maps-builder'), 'secondary', 'gmb-download-sysinfo', false); ?> </p> <style> .gmb_forms_page_gmb-settings .gmb-submit-wrap { display: none; /* Hide Save settings button on System Info Tab (not needed) */ } </style> <?php }
function display_page() { ?> <div class="wrap"> <h2>Page d'administration type</h2> <?php settings_errors(); // affichage des erreurs, peut recevoir des valeurs ?> <form method="post" action="options.php" enctype="multipart/form-data"> <?php // nécessaire au fonctionnement du form avec pour argument l'ID du group créer avec register_settings() settings_fields('admin-type-settings'); // génére les champs avec pour argument ID de la page référente (slug) do_settings_sections('admin-type'); // l'input submit submit_button(); ?> </form> </div> <?php }
public function settings_cb() { ?> <div class="wrap"> <form method="post" action="<?php echo admin_url('options.php'); ?> "> <h2><?php _e('BuddyPress Docs Settings', 'bp-docs'); ?> </h2> <?php settings_fields('bp-docs-settings'); ?> <?php do_settings_sections('bp-docs-settings'); ?> <?php submit_button(); ?> </form> </div> <?php }
/** * Settings page */ function settings_page() { ?> <div class="wrap"> <div class="icon32" id="icon-themes"><br></div> <h2><?php _e('Multiple content blocks', 'mcb'); ?> </h2> <form action="options.php" method="post"> <?php settings_fields('mcb-settings'); do_settings_sections('mcb-settings'); submit_button(); ?> </form> </div> <?php }
function gf_disable_autofill_settings_page() { ?> <div class="wrap"> <h2>Gravity Forms Disable Autofill Add-On</h2> <form method="post" action="options.php"> <?php settings_fields('disable-gf-autofill-settings-group'); ?> <?php do_settings_sections('disable-gf-autofill-settings-group'); ?> <h3>Coming soon</h3> <table class="form-table"> <tr valign="top"> <th scope="row">Disable Autofill on all forms</th> <td><input type="checkbox" name="gfda_disable_all_forms" value="<?php echo esc_attr(get_option('gfda_disable_all_forms')); ?> " /></td> </tr> </table> <?php submit_button(); ?> </form> </div> <?php }
function pado_options() { // Check that the user is able to view this page. if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.', 'pressapps')); } ?> <div class="wrap"> <div id="icon-themes" class="icon32"></div> <h2><?php _e('Document Settings', 'pressapps'); ?> </h2> <form action="options.php" method="post"> <?php settings_fields('pado_setup_options'); ?> <?php do_settings_sections('pado_setup_options'); ?> <?php submit_button(); ?> </form> </div> <?php }
function badgeos_obi_issuer_settings() { if (!current_user_can(badgeos_get_manager_capability())) { wp_die("You do not have sufficient permissions to access this page."); } ?> <div class="wrap"> <?php settings_errors(); ?> <?php $this->json_api_controller_status(); ?> <h2>Open Badges Issuer Add-on Settings</h2> <form method="post" action="options.php"> <?php @settings_fields('badgeos_obi_issuer_settings'); ?> <?php @do_settings_fields('badgeos_obi_issuer_settings'); ?> <?php do_settings_sections('badgeos_obi_issuer_template'); ?> <?php @submit_button(); ?> </form> </div> <?php }
public function create_admin_page() { // Set class property $this->options = get_option('cptbc_settings'); if (!$this->options) { cptbc_set_options(); $this->options = get_option('cptbc_settings'); } ?> <div class="wrap"> <h2>CPT Bootstrap Carousel <?php _e('Settings', 'cpt-bootstrap-carousel'); ?> </h2> <p><?php printf(__('You can set the default behaviour of your carousels here. Most of these settings can be overridden by using %s shortcode attributes %s.', 'cpt-bootstrap-carousel'), '<a href="http://wordpress.org/plugins/cpt-bootstrap-carousel/" target="_blank">', '</a>'); ?> </p> <form method="post" action="options.php"> <?php settings_fields('cptbc_settings'); do_settings_sections('cpt-bootstrap-carousel'); submit_button(); ?> </form> </div> <?php }
public function create_page() { if (!current_user_can('manage_options')) { wp_die(esc_html__('You do not have sufficient permissions to access this page.')); } ?> <div class="wrap"> <h1><?php echo esc_html($this->name); ?> </h1> <div id="hello_kushimoto" class="wrap"> <form method="post" action="options.php"> <?php settings_fields($this->option_group); do_settings_sections($this->page_slug); submit_button(); ?> </form> </div> </div> <?php }
function am_options_page($active_tab = '') { ?> <div class="wrap"> <h2><?php _e('Theme Options', 'AM_Sandbox'); ?> </h2> <?php settings_errors(); ?> <!-- TODO: NAV-TABS ($active_tab) --> <form method="post" action="options.php"> <?php settings_fields('AM_Sandbox_options'); am_options_fields(); submit_button(); ?> </form> </div> <?php }
/** * displays the html for the submit button */ protected function show_submit_button() { wp_nonce_field('sql_export', 'insr_nonce'); $html = ' <input type="hidden" name="action" value="sql_export" />'; echo $html; submit_button(esc_html__('Create SQL File', 'search-and-replace')); }
function get_bulk_actions() { $actions = array(); $this->epin_dropdown(); submit_button(__('Filter', 'unilevel-mlm-pro'), 'secondary', false, false, array('id' => 'post-query-submit')); return $actions; }
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 }
/** * Options page callback */ public function create_admin_page() { // Set class property $this->options = get_option('alpual_responsive_child_options'); ?> <div class="wrap"> <h2>My Settings</h2> <h3>Current Piano Key Image</h3> <img class="piano_key" src="<?php echo esc_url($this->options['piano_key']); ?> " height="45" width="960"/> <h3 class="new_piano_key_header" style="display:none">New Piano Key Image</h3> <img class="piano_key_preview" src="" style="display:none"/> <span class="piano_key_update_text" style="background-color:#FC9;"></span> <form method="post" action="options.php"> <?php // This prints out all hidden setting fields settings_fields('alpual_responsive_child_option_group'); do_settings_sections('alpual_responsive_child_setting_admin'); submit_button(); ?> </form> </div> <?php }
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 }
/** * Display the bulk actions dropdown. * * @since 3.1.0 * @access public */ function bulk_actions() { $screen = get_current_screen(); if (is_null($this->_actions)) { $no_new_actions = $this->_actions = $this->get_bulk_actions(); // This filter can currently only be used to remove actions. //$this->_actions = apply_filters( 'bulk_actions-cred' . $screen->id, $this->_actions ); $this->_actions = array_intersect_assoc($this->_actions, $no_new_actions); $two = ''; } else { $two = '2'; } if (empty($this->_actions)) { return; } echo "<select name='action{$two}'>\n"; echo "<option value='-1' selected='selected'>" . __('Bulk Actions', 'wp-cred') . "</option>\n"; foreach ($this->_actions as $name => $title) { $class = 'edit' == $name ? ' class="hide-if-no-js"' : ''; echo "\t<option value='{$name}'{$class}>{$title}</option>\n"; } echo "</select>\n"; submit_button(__('Apply', 'wp-cred'), 'button-secondary action', false, false, array('id' => "doaction{$two}")); echo "\n"; }
function catMCE_options() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ?> <div class="wrap"> <h2>CategoryTinyMCE SEO Settings</h2> <div id="donate_container"> The latest fully maintained version (Categorytinymce 4.x) which includes the bottom listing description box can be found at http://wp.ypraise.com/. Adding a bottom description for your categories and tags can help you with your user experience and SEO. </div> <p><form method="post" action="options.php"> </p> <p>SEO Settings for CategoryTinyMCE:</p> <?php settings_fields('catMCE_options'); ?> <p>Choose SEO: <input type="checkbox" name="catMCE_seo" value="1" <?php checked('1', get_option('catMCE_seo')); ?> /> </p> <?php submit_button(); echo '</form>'; echo '</div>'; }
/** * Options page callback */ public function create_admin_page() { $this->options = get_option('watchtower'); ?> <div class="wrap"> <style> .watchtower_token_field { background: #ffea96 !important; } .watchtower_token_area, .watchtower_token_field { font-size: 20px; padding: 10px; } .watchtower_token_area { margin: auto; float: left; padding-left: 0px; } </style> <h2>Watchtower Settings</h2> <form method="post" action="options.php"> <?php settings_fields('watchtower'); do_settings_sections('watchtower-settings'); submit_button('Update settings'); ?> </form> </div> <?php }
/** * Options page callback */ public function create_admin_page() { // Set class property $this->options = get_option('wirte_here_options'); ?> <div class="wrap"> <h1>Write Here</h1> <p>A simple front end form for WordPress. Write Here will allow you to have registered users to write & manage articles from front end.</p> <h3>How to Use?</h3> <ol> <li>Create page for writing on front end. Add <b>[write-here]</b></li> <li>Create page for dashboard. Add <b>[write-here-dashboard]</b></li> <li>Create page for editing. Add <b>[write-here-edit]</b></li> <li>Set your edit page below.</li> </ol> <form method="post" action="options.php"> <?php // This prints out all hidden setting fields settings_fields('my_option_group'); do_settings_sections('write-here-setting'); submit_button(); ?> </form> </div> <?php }
/** * Generates and outputs the HTML for the settings page * * The function is used as a callback function in add_options_page() */ function palo_options_page_html() { global $palo_options, $palo_textdomain; ?> <div class="wrap"> <h2><?php _e('PA Login & Access Settings', $palo_textdomain); ?> </h2> <p><?php // _e( '<img src="https://lh4.ggpht.com/H0xw6Aflpd04ss7WZaYArUKRS4M1_92GX7tfttxJLUD0kSOpjNF8UKoXroFxSX5EVQ=w300" height="64" class="alignright" /> Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.', $palo_textdomain ); ?> </p> <form action="options.php" method="post"> <?php settings_fields('palo_options_group'); ?> <?php do_settings_sections('palo_settings'); ?> <?php submit_button(); ?> </form> </div> <div class="wrap"> <hr /> <blockquote><pre><?php //echo substr( print_r( $palo_options, true ), 5 ); ?> </pre></blockquote> </div> <?php }
public static function showInterface() { $theme = empty($_GET['theme']) ? '' : $_GET['theme']; $theme = wp_get_theme($theme); if (self::checkCreds()) { return; } settings_errors(); ?> <div class="wrap"> <h2><?php echo esc_html(sprintf(_x('Create a child theme from %s', 'The placeholder is for a theme\'s name', 'child-themify'), $theme->name)); ?> </h2> <form method="post" action="<?php echo esc_url(self::getLink($theme->get_stylesheet())); ?> "> <label><?php esc_html_e('Name your child theme', 'child-themify'); ?> </label><br> <input type="text" name="new_theme" /> <?php submit_button(__("Let's go!", 'child-themify')); ?> </form> </div> <?php }
/** * Clink settings function */ function clink_settings() { ?> <div class="wrap"> <h2><span class="clink-main-dashicons dashicons dashicons-admin-links"></span><?php _e('Global Clink Settings', 'aryan-themes'); ?> </h2> <?php settings_errors(); ?> <form method="post" action="options.php"> <table class="form-table"> <tbody> <?php settings_fields("general-section"); do_settings_sections("clink-options"); submit_button(); ?> </tbody> </table> </form> </div> <?php }
public static function options_page() { $tab = self::current_tab(); ?> <div class="wrap"> <?php self::plugin_options_tabs(); ?> <form method="post" action="options.php" class="options-form"> <?php settings_fields($tab); ?> <?php do_settings_sections($tab); ?> <?php if (WP_REST_API_Log_Settings_Help::$settings_key !== $tab) { submit_button(__('Save Changes'), 'primary', 'submit', true); } ?> </form> </div> <?php $settings_updated = filter_input(INPUT_GET, 'settings-updated', FILTER_SANITIZE_STRING); if (!empty($settings_updated)) { do_action('wp-rest-api-log-settings-updated'); flush_rewrite_rules(); } }
public function display_plugin_admin_page() { ?> <div class="wrap"> <h2><?php _e('Import / Export', $this->plugin_slug); ?> </h2> <p class="description"><?php _e('In this section you can easly import or export all Reviewer Plugin data. The importing process replaces the existing content of Reviewer Plugin, before go ahead make a backup of your WordPress database. The exporting process saves: templates, preferences, reviews, users ratings, comparison tables , support data', 'reviewer'); ?> </p> <?php settings_errors(); ?> <form method="post" action="options.php" enctype="multipart/form-data"> <!-- <form method="post"> --> <?php settings_fields($this->option_name); do_settings_sections($this->menu_slug); submit_button(__('Export', $this->plugin_slug), 'primary', 'rwp_io_submit', true, array('data-export' => __('Export', $this->plugin_slug), 'data-import' => __('Import', $this->plugin_slug))); ?> </form> <?php $this->backup_files(); //RWP_Reviewer::pretty_print( $this->option_value ); ?> <?php //RWP_Reviewer::pretty_print( $this->option_value ); ?> </div><!--/wrap--> <?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 }
/** * Add WordPress standard form for options page * @return string */ public function italystrap_callback_function() { if (!current_user_can($this->capability)) { wp_die(__('You do not have sufficient permissions to access this page.')); } ?> <div class="wrap"> <h2> <span class="dashicons dashicons-admin-settings" style="font-size:32px;margin-right:15px"></span> ItalyStrap panel </h2> <?php settings_errors(); ?> <form action='options.php' method='post'> <?php settings_fields('italystrap_theme_options_group'); do_settings_sections('italystrap_theme_options_group'); submit_button(); ?> </form> </div> <?php }
/** * Show the search field * * @since 1.5 * @access public * * @param string $text Label for the search box * @param string $input_id ID of the search box * * @return void */ public function search_box($text, $input_id) { $input_id = $input_id . '-search-input'; if (!empty($_REQUEST['orderby'])) { echo '<input type="hidden" name="orderby" value="' . esc_attr($_REQUEST['orderby']) . '" />'; } if (!empty($_REQUEST['order'])) { echo '<input type="hidden" name="order" value="' . esc_attr($_REQUEST['order']) . '" />'; } ?> <p class="search-box"> <label class="screen-reader-text" for="<?php echo $input_id; ?> "><?php echo $text; ?> :</label> <input type="search" id="<?php echo $input_id; ?> " name="s" value="<?php _admin_search_query(); ?> " /> <?php submit_button($text, 'button', false, false, array('ID' => 'search-submit')); ?> </p> <?php }
function ra_spotlight_settings_page_callback() { ?> <div class="wrap"> <h1>Spotlight Items</h1> <br /> <form method="POST" action="options.php"> <?php // Pass slug name of page, also referred to in Settings API as option group name settings_fields('ra_spotlight_items'); ?> <?php // Output the settings section(s) we've already added to this page do_settings_sections('ra_spotlight_items'); ?> <?php submit_button(); ?> </form> </div> <?php }
function render_options() { ?> <div class="wrap"> <h2><?php _e('Yandex Metrika', 'yandex-metrika'); ?> </h2> <p><?php _e('Please enter your Yandex Metrika counter code in the field below and click Save Changes.', 'yandex-metrika'); ?> <form action="options.php" method="POST"> <?php settings_fields('yandex-metrika'); ?> <?php do_settings_sections('yandex-metrika'); ?> <?php submit_button(); ?> </form> </div> <?php }