/**
  * Print Settings
  */
 public function print_settings()
 {
     settings_fields('wcbulkorderform_variation_template');
     do_settings_sections('wcbulkorderform_variation_template');
     $option = get_option('wcbulkorderform_variation_template');
     //print_r($option);
 }
Example #2
0
    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 
    }
Example #3
0
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 
}
Example #4
0
/**
 * 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 
}
Example #5
0
    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 
    }
    /**
     * 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 
    }
Example #7
0
/**
 * 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 
}
    /**
     * 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 
    }
Example #9
0
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 
}
 /**
  * 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 
 }
        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();
            }
        }
Example #12
0
 function options_page()
 {
     printf('</pre><div><h2>%s</h2>%s<form action="options.php" method="post">', $this->settingsConfig['menu']['title'], $this->settingsConfig['menu']['intro_text']);
     settings_fields($this->settingsConfig['group']);
     do_settings_sections($this->settingsConfig['menu']['page_name']);
     printf('<input type="submit" name="Submit" value="%s" /></form></div><pre>', __('Save Changes'));
 }
Example #13
0
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 
}
Example #14
0
function tempera_theme_settings_restore($class = '')
{
    global $wp_version;
    global $cryout_theme_settings;
    ?>
		<form name="tempera_form" id="tempera_form" action="options.php" method="post" enctype="multipart/form-data">
			<div id="accordion">
				<?php 
    settings_fields('tempera_settings');
    ?>
				<?php 
    do_settings_sections('tempera-page');
    ?>
			</div>
			<div id="submitDiv">
			    <br>
				<input class="button" name="tempera_settings[tempera_submit]" type="submit" id="tempera_sumbit" style="float:right;"   value="<?php 
    _e('Save Changes', 'tempera');
    ?>
" />
				<input class="button" name="tempera_settings[tempera_defaults]" id="tempera_defaults" type="submit" style="float:left;" value="<?php 
    _e('Reset to Defaults', 'tempera');
    ?>
" />
				</div>
		</form>
<?php 
}
    public static function display_options_page()
    {
        ?>

		<div class="wrap">

			<h2>Auto Terms of Service and Privacy Policy Options</h2>

			<form action="options.php" method="post" enctype="multipart/form-data">
				<?php 
        if (function_exists('settings_fields')) {
            settings_fields('atospp_plugin_options');
            // Output nonce, action, and option_page fields for a settings page. This should match the group name used in register_setting()
        }
        do_settings_sections(__FILE__);
        ?>

				<p class="submit">
					<input name="submit" type="submit" class="button-primary" value="Save Changes">
				</p>
			</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 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 require_login()
{
    ?>
    <div>
        <h2><?php 
    print __('Require Login', 'require_login');
    ?>
</h2>
        <form method="post" action="options.php">
            <?php 
    settings_fields('require_login');
    ?>
            <?php 
    do_settings_sections('require_login');
    ?>

            <input type="submit" name="Submit" value="<?php 
    _e('Update Options ?');
    ?>
" />
        </form>
    </div>

    <?php 
}
Example #19
0
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 
}
Example #20
0
/**
 * 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> &raquo; All Pages</li>
	<li> &raquo; All Posts</li>
	<li> &raquo; The Site Home</li>
	<li> &raquo; A Specific Page</li>
	<li> &raquo; A Specific Post</li>
	<li> &raquo; 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>';
}
Example #21
0
    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 
    }
    /**
     * Output the main options page content.
     *
     * @return null
     */
    function options_page()
    {
        ?>

		<div class="wrap">

			<h2>MinQueue Plugin Settings</h2>

			<form action="options.php" method="post">

				<?php 
        settings_fields('minqueue_options');
        do_settings_sections('general_minify_options');
        do_settings_sections('script_minify_options');
        do_settings_sections('style_minify_options');
        ?>

				<p class="submit">
					<input type="submit" name="submit" id="submit" class="button button-primary" value="Save Changes">
				</p>

			</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 
    }
Example #24
0
    function settings_page()
    {
        ?>
		<div class="wrap">
			<div id="icon-themes" class="icon32"></div>
			<h2>ZillaLikes Settings</h2>
			<?php 
        if (isset($_GET['settings-updated']) && $_GET['settings-updated']) {
            ?>
			<div id="setting-error-settings_updated" class="updated settings-error"> 
				<p><strong><?php 
            _e('Settings saved.', 'zilla');
            ?>
</strong></p>
			</div>
			<?php 
        }
        ?>
			<form action="options.php" method="post">
				<?php 
        settings_fields('zilla-likes');
        ?>
				<?php 
        do_settings_sections('zilla-likes');
        ?>
				<p class="submit"><input type="submit" class="button-primary" value="<?php 
        _e('Save Changes', 'zilla');
        ?>
" /></p>
			</form>
		</div>
		<?php 
    }
Example #25
0
    public function display_options_page()
    {
        ?>
			<div class="wrap">
				<h2>My Theme Options</h2>
				<?php 
        $o = get_option('jw_plugin_options');
        echo '<pre>';
        print_r($o);
        echo '</pre>';
        ?>
				<form method="post" action="options.php" enctype="multipart/form-data">
					<?php 
        settings_fields('jw_plugin_options');
        // include this function for security reasons inside the form. Its a wordpress function made just for this. It will generate empty input fields
        ?>
					<?php 
        do_settings_sections(__FILE__);
        ?>
					
					<p class="submit">
						<input name="submit" type="submit" class="button-primary" value="Save Changes"/>
					</p>
				</form>
			</div>
		<?php 
    }
Example #26
0
/**
 * Function to display the wp-wodify admin options
 */
function wp_wodify_admin_options()
{
    if (!current_user_can('manage_options')) {
        wp_die(__('You do not have sufficient permissions to access this page.'));
    }
    wp_wodify_admin_init();
    echo '<div class="wrap">', '<h2>WP Wodify Settings</h2>', '<p>Change and update settings for Wodify integration here</p>', '<form action="options.php" method="POST">';
    settings_fields('wp-wodify-settings-group');
    do_settings_sections('wp-wodify-administer');
    submit_button();
    echo '</form>', '</div>';
    echo '<div class="wrap">', '<h2>API Synchronize</h2>', '<p>Use the buttons below to synchronize various parts of the Wodify API</p>';
    _wp_wodify_api_sync_form('classes');
    _wp_wodify_api_sync_form('coaches');
    _wp_wodify_api_sync_form('locations');
    _wp_wodify_api_sync_form('programs');
    echo '</div>';
    echo '<div class="wrap"', '<h2>Post Type Creation</h2>', '<p>Create Wordpress post types, to match what comes from Wodify</p>';
    _wp_wodify_api_sync_form('create_post_type_coach');
    echo '</div>';
    _wp_wodify_admin_display_api_cache('coach', 'coaches');
    _wp_wodify_admin_display_api_cache('location', 'locations');
    _wp_wodify_admin_display_api_cache('program', 'programs');
    // _wp_wodify_admin_display_api_cache( 'class', 'classes' );
    echo '</div>';
}
    /**
     * 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 
    }
Example #28
0
function videojs_settings()
{
    if (!current_user_can('manage_options')) {
        wp_die(__('You do not have sufficient permissions to access this page.'));
    }
    ?>
	<div class="wrap">
	<h2>Video.js Settings</h2>
	
	<form method="post" action="options.php">
	<?php 
    settings_fields('videojs_options');
    do_settings_sections('videojs-settings');
    ?>
	<p class="submit">
	<input type="submit" class="button-primary" value="<?php 
    _e('Save Changes');
    ?>
" />
	</p>
	<h2>Using Video.js</h2>
	<?php 
    echo file_get_contents(plugin_dir_path(__FILE__) . 'help.html');
    ?>
	</form>
	</div>
	<?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 build_alittle_admin_page()
{
    ?>
			<div id="boilerplate-options-wrap">
				<div class="icon32" id="icon-tools"><br /></div>
				<h2>Boilerplate Admin</h2>
				<p>So, there's actually a tremendous amount going on here.  If you're not familiar with <a href="http://html5boilerplate.com/">HTML5 Boilerplate</a> or the <a href="http://starkerstheme.com/">Starkers theme</a> (upon which this theme is based) you should check them out.</p>
				<p>Choose below which options you want included in your site.</p>
				<p>The clumsiest part of this plug-in is dealing with the CSS files.  Check the <a href="<?php 
    echo get_template_directory_uri();
    ?>
/readme.txt">Read Me file</a> for details on how I suggest handling them.</p>
				<form method="post" action="options.php" enctype="multipart/form-data">
					<?php 
    settings_fields('plugin_options');
    /* very last function on this page... */
    ?>
					<?php 
    do_settings_sections('boilerplate-admin');
    /* let's get started! */
    ?>
					<p class="submit"><input name="Submit" type="submit" class="button-primary" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" /></p>
				</form>
			</div>
		<?php 
}