Esempio n. 1
0
function sb_do_settings_sections($page)
{
    global $wp_settings_sections, $wp_settings_fields;
    if (!isset($wp_settings_sections[$page])) {
        return;
    }
    $count = 0;
    foreach ((array) $wp_settings_sections[$page] as $section) {
        $section_id = $section['id'];
        $class = 'sbtheme-option-section';
        echo '<div id="' . $section_id . '" class="' . $class . '">';
        if ($section['title']) {
            echo "<h3 class=\"setting-title\">{$section['title']}</h3>\n";
        }
        if ($section['callback']) {
            call_user_func($section['callback'], $section);
        }
        $has_field = true;
        if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section_id])) {
            $has_field = false;
        }
        echo '<table class="form-table">';
        if ($has_field && 'sb_options_section' != $section_id) {
            do_settings_fields($page, $section_id);
        } elseif ('sb_options_section' == $section_id) {
            sb_core_get_content('sb-about');
        }
        echo '</table>';
        echo '</div>';
        $count++;
    }
}
Esempio n. 2
0
function hrecipe_postbox_fields($id, $title, $content, $section)
{
    global $hrecipe_options_file;
    ?>

      <div id="<?php 
    echo $id;
    ?>
" class="postbox">
        <div class="handlediv" title="Click to toggle"><br /></div>
        <h3 class="hndle"><span><?php 
    echo $title;
    ?>
</span></h3>
        <div class="inside hrecipe">
           <?php 
    echo $content;
    ?>
           <table class="form-table">
             <?php 
    //echo $section
    ?>
             <?php 
    do_settings_fields($hrecipe_options_file, $section);
    ?>
          </table>
        </div>
      </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 
    }
Esempio n. 4
0
 /**
  * @param $page
  */
 protected function _doSettingsSections($page)
 {
     global $wp_settings_sections, $wp_settings_fields;
     if (!isset($wp_settings_sections[$page])) {
         return;
     }
     echo '<ul class="nav nav-pills nav-pills-wp" role="tablist">';
     foreach ((array) $wp_settings_sections[$page] as $section) {
         if (strpos($section['id'], 'external') !== false) {
             continue;
         }
         printf('<li role="presentation"><a href="#%s" controls="%s" role="tab" data-toggle="tab">%s</a></li>', $section['id'], $section['id'], $section['title']);
     }
     echo '</ul>';
     echo '<div class="tab-content">';
     foreach ((array) $wp_settings_sections[$page] as $section) {
         if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']])) {
             continue;
         }
         if (strpos($section['id'], 'external') !== false) {
             do_settings_fields($page, $section['id']);
         } else {
             printf('<div role="tabpanel" class="tab-pane" id="%s"><table class="form-table">', $section['id']);
             if ($section['callback']) {
                 call_user_func($section['callback'], $section);
             }
             do_settings_fields($page, $section['id']);
             echo '</table></div>';
         }
     }
     echo '</div>';
 }
    /**
     * Add Plugin License Page
     *
     * @since 1.5.6
     */
    function license_page()
    {
        ?>
        <div class="wrap">
                <h2><?php 
        _e('Plugin License Options');
        ?>
</h2>
                <div class="fts-activation-msg"><ol><li>Enter your License Key and Click the Save Changes button.</li>
       <li>Click Activate License. When activated it will
       show the word "<span style="color:green;">Active</span>" in green next to the button.</li></ol></div>
                <form method="post" action="options.php">
                    <?php 
        settings_fields($this->license_page_slug . '_license_manager_page');
        ?>

                    <table class="form-table">
                        <tbody>
                            <?php 
        do_settings_fields($this->license_page_slug, 'main_section');
        ?>
                        </tbody>
                    </table>
                    <?php 
        submit_button();
        ?>
                </form>
    <?php 
    }
    function license_page()
    {
        ?>
	<div class="wrap">
			<h2><?php 
        _e('Plugin License Options');
        ?>
</h2>
			<form method="post" action="options.php">
				<?php 
        settings_fields('EDD_license_manager_page');
        ?>
				
				<table class="form-table">
					<tbody>
                   		<?php 
        do_settings_fields(__FILE__, 'main_section');
        ?>
					</tbody>
				</table>	
				<?php 
        submit_button();
        ?>
			</form>
<?php 
    }
    function renderPage()
    {
        global $wp_settings_fields;
        ?>
<div class="wrap">
<h2><?php 
        echo esc_html($this->_title);
        ?>
</h2>
<form method="post" action="options.php">
<?php 
        settings_fields($this->_id);
        if (!empty($wp_settings_fields[$this->_id]['default'])) {
            ?>
<table class="form-table">
<?php 
            do_settings_fields($this->_id, 'default');
            ?>
</table>
<?php 
        }
        do_settings_sections($this->_id);
        submit_button();
        ?>
</form>
</div>
<?php 
    }
Esempio n. 8
0
/**
 * Render the settings page
 *
 * @since       1.0.0
 * @global      array $saasaparilla_options The SaaSaparilla options
 * @return      void
 */
function saasaparilla_render_settings_page()
{
    global $saasaparilla_options;
    $active_tab = isset($_GET['tab']) && array_key_exists($_GET['tab'], saasaparilla_get_settings_tabs()) ? $_GET['tab'] : 'general';
    ob_start();
    ?>
	<div class="wrap">
		<h2 class="nav-tab-wrapper">
			<?php 
    foreach (saasaparilla_get_settings_tabs() as $tab_id => $tab_name) {
        $tab_url = add_query_arg(array('settings-updated' => false, 'tab' => $tab_id));
        $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 id="tab_container">
			<form method="post" action="options.php">
				<table class="form-table">
					<?php 
    settings_fields('saasaparilla_settings');
    do_settings_fields('saasaparilla_settings_' . $active_tab, 'saasaparilla_settings_' . $active_tab);
    ?>
				</table>
				<?php 
    if (!isset($_GET['tab']) || $_GET['tab'] !== 'help') {
        submit_button();
    }
    ?>
			</form>
		</div>
	</div>
	<?php 
    echo ob_get_clean();
}
/**
 * Options Page
 *
 * Renders the options page contents.
 *
 * @since 1.0
 * @return void
 */
function affwp_settings_admin()
{
    $active_tab = isset($_GET['tab']) && array_key_exists($_GET['tab'], affwp_get_settings_tabs()) ? $_GET['tab'] : 'general';
    ob_start();
    ?>
	<div class="wrap">
		<h2 class="nav-tab-wrapper">
			<?php 
    foreach (affwp_get_settings_tabs() as $tab_id => $tab_name) {
        $tab_url = add_query_arg(array('settings-updated' => false, 'tab' => $tab_id));
        $active = $active_tab == $tab_id ? ' nav-tab-active' : '';
        echo '<a href="' . esc_url($tab_url) . '" title="' . esc_attr($tab_name) . '" class="nav-tab' . $active . '">';
        echo esc_html($tab_name);
        echo '</a>';
    }
    ?>
		</h2>
		<div id="tab_container">
			<form method="post" action="options.php">
				<table class="form-table">
				<?php 
    settings_fields('affwp_settings');
    do_settings_fields('affwp_settings_' . $active_tab, 'affwp_settings_' . $active_tab);
    ?>
				</table>
				<?php 
    submit_button();
    ?>
			</form>
		</div><!-- #tab_container-->
	</div><!-- .wrap -->
	<?php 
    echo ob_get_clean();
}
 function main_settings()
 {
     foreach ($this->sections as $s) {
         echo '<table class="form-table">';
         do_settings_fields(__FILE__, $s['id']);
         echo '</table>';
     }
 }
function display_ext_section()
{
    // For Multisite only
    ?>
	<table class="form-table">
		<?php 
    do_settings_fields('media', 'uploads_ext');
    ?>
	</table>
	<?php 
}
Esempio n. 12
0
function bb_repost_options_page()
{
    echo '<div class="wrap">' . "\n";
    echo '<h2>BB Repost Settings</h2>' . "\n";
    echo "<form action='options.php' method = 'post'>" . "\n";
    echo "<label>Twitter : </label><input type='text' name='bb_repost_twitter' value='" . get_option('bb_repost_twitter') . "'><br>" . "\n";
    submit_button();
    settings_fields('bb-repost-option-group');
    do_settings_fields('bb-repost-option-group');
    echo "</form>" . "\n";
}
Esempio n. 13
0
function bbconnect_mailchimp_options_page()
{
    echo '<div class="wrap">' . "\n";
    echo '<h2>MailChimp Settings</h2>' . "\n";
    echo "<form action='options.php' method='post'>" . "\n";
    echo "<label>List ID:</label><input type='text' name='bbconnect_mailchimp_list_id' value='" . get_option('bbconnect_mailchimp_list_id') . "' ><br>" . "\n";
    echo "<label>API Key:</label><input type='text' name='bbconnect_mailchimp_api_key' value='" . get_option('bbconnect_mailchimp_api_key') . "' ><br>" . "\n";
    submit_button();
    settings_fields('bbconnect-mailchimp-options-group');
    do_settings_fields('bbconnect-mailchimp-options-group');
    echo '</form>' . "\n";
}
    public static function gestsup_reset()
    {
        ?>
		<form method="post" action="options.php">
			<?php 
        settings_fields('gestsup_delete');
        ?>
			<?php 
        do_settings_fields('gestsup_delete_data');
        ?>
		</form>
	<?php 
    }
Esempio n. 15
0
function stagtools_options_page()
{
    $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'general';
    ob_start();
    ?>

	<div class="wrap">
		<h2 class="nav-tab-wrapper">
			<?php 
    foreach (stagtools_get_settings_tabs() as $tab_id => $tab_name) {
        $tab_url = add_query_arg(array('settings-updated' => false, 'tab' => $tab_id));
        $is_showing = true;
        if ('portfolio' == $tab_id) {
            $is_showing = false;
            if (current_theme_supports('post-type', array('portfolio')) || current_theme_supports('stag-portfolio')) {
                $is_showing = true;
            }
        }
        if ($is_showing) {
            $active = $active_tab == $tab_id ? ' nav-tab-active' : '';
            echo '<a href="' . esc_url($tab_url) . '" title="' . esc_attr($tab_name) . '" class="nav-tab' . $active . '">';
            echo esc_html($tab_name);
            echo '</a>';
        }
    }
    ?>
		</h2>

		<div id="tab_container">
			<form method="post" action="options.php">
				<table class="form-table">
				<?php 
    if ($_GET['page'] == 'stagtools' && isset($_GET['settings-updated']) && $_GET['settings-updated'] == "true") {
        flush_rewrite_rules();
    }
    settings_fields('stag_options');
    do_settings_fields('stagtools_settings_' . $active_tab, 'stagtools_settings_' . $active_tab);
    ?>
				</table>
				<?php 
    submit_button();
    ?>
			</form>
		</div><!-- #tab_container -->
	</div><!-- .wrap -->

	<?php 
    echo ob_get_clean();
}
Esempio n. 16
0
 /**
  * Render themes
  *
  * @access public
  *
  * @param $page
  *
  * @return void
  */
 public static function render_themes($page = '')
 {
     global $wp_settings_sections, $wp_settings_fields;
     if (!isset($wp_settings_sections) || !isset($wp_settings_sections[$page])) {
         return;
     }
     foreach ((array) $wp_settings_sections[$page] as $section) {
         if ($section['callback']) {
             call_user_func($section['callback'], $section);
         }
         if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']])) {
             continue;
         }
         echo '<table class="form-table">';
         do_settings_fields($page, $section['id']);
         echo '</table>';
     }
 }
Esempio n. 17
0
function cce_options_page()
{
    $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'loveit';
    ob_start();
    ?>

	<div class="wrap">
		<h2><?php 
    _e('CC Essentials – Settings', 'cc-essentials');
    ?>
</h2>
		<h2 class="nav-tab-wrapper">
			<?php 
    foreach (cce_get_settings_tabs() as $tab_id => $tab_name) {
        $tab_url = add_query_arg(array('settings-updated' => false, 'tab' => $tab_id));
        $active = $active_tab == $tab_id ? ' nav-tab-active' : '';
        echo '<a href="' . esc_url($tab_url) . '" title="' . esc_attr($tab_name) . '" class="nav-tab' . $active . '">';
        echo esc_html($tab_name);
        echo '</a>';
    }
    ?>
		</h2>

		<div id="tab_container">
			<form method="post" action="options.php">
				<table class="form-table">
				<?php 
    if ($_GET['page'] == 'cce' && isset($_GET['settings-updated']) && $_GET['settings-updated'] == 'true') {
        flush_rewrite_rules();
    }
    settings_fields('cce_options');
    do_settings_fields('cce_settings_' . $active_tab, 'cce_settings_' . $active_tab);
    ?>
				</table>
				<?php 
    submit_button();
    ?>
			</form>
		</div><!-- #tab_container -->
	</div><!-- .wrap -->

	<?php 
    echo ob_get_clean();
}
Esempio n. 18
0
/**
 * Options Page
 *
 * Renders the options page contents.
 *
 * @since 1.0
 * @global $wpum_options Array of all the WPUM Options
 * @return void
 */
function wpum_options_page()
{
    global $wpum_options;
    $active_tab = isset($_GET['tab']) && array_key_exists($_GET['tab'], wpum_get_settings_tabs()) ? $_GET['tab'] : 'general';
    ob_start();
    ?>
	<div class="wrap" id="wpum-settings-panel">

		<h2 class="wpum-page-title"><?php 
    printf(__('WP User Manager v%s Settings', 'wpum'), WPUM_VERSION);
    ?>
 <?php 
    do_action('wpum_next_to_settings_title');
    ?>
</h2>

		<h2 class="nav-tab-wrapper" style="margin-bottom:10px;">
			<?php 
    foreach (wpum_get_settings_tabs() as $tab_id => $tab_name) {
        $tab_url = add_query_arg(array('settings-updated' => false, 'emails-updated' => false, 'wpum_action' => false, 'setup_done' => false, 'message' => false, 'tab' => $tab_id));
        $active = $active_tab == $tab_id ? ' nav-tab-active' : '';
        echo '<a href="' . esc_url($tab_url) . '" title="' . esc_attr($tab_name) . '" class="nav-tab' . $active . '">';
        echo esc_html($tab_name);
        echo '</a>';
    }
    ?>
		</h2>
		<div id="tab_container">
			<form method="post" action="options.php">
				<table class="form-table">
				<?php 
    settings_fields('wpum_settings');
    do_settings_fields('wpum_settings_' . $active_tab, 'wpum_settings_' . $active_tab);
    ?>
				</table>
				<?php 
    submit_button();
    ?>
			</form>
		</div><!-- #tab_container-->
	</div><!-- .wrap -->
	<?php 
    echo ob_get_clean();
}
Esempio n. 19
0
 /**
  * Process the settings section for display
  *
  * @since  1.0.0
  * @access public
  *
  * @param $page
  */
 function do_settings_sections($page)
 {
     global $wp_settings_sections, $wp_settings_fields;
     $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'general';
     if (!isset($wp_settings_sections) || !isset($wp_settings_sections[$page])) {
         return;
     }
     foreach ((array) $wp_settings_sections[$page] as $section) {
         echo '<div id="section-' . $section['id'] . '"class="igp-section' . ($active_tab == $section['id'] ? ' igp-section-active' : '') . '">';
         call_user_func($section['callback'], $section);
         if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']])) {
             continue;
         }
         echo '<table class="form-table">';
         do_settings_fields($page, $section['id']);
         echo '</table>
         </div>';
     }
 }
function do_settings_sections_for_tab($page, $sections)
{
    global $wp_settings_sections, $wp_settings_fields;
    if (!isset($wp_settings_sections) || !isset($wp_settings_sections[$page])) {
        return;
    }
    foreach ((array) $wp_settings_sections[$page] as $section) {
        if (in_array($section['id'], $sections)) {
            echo "<h3>{$section['title']}</h3>\n";
            call_user_func($section['callback'], $section);
            if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']])) {
                continue;
            }
            echo '<table class="form-table">';
            do_settings_fields($page, $section['id']);
            echo '</table>';
        }
    }
}
/**
 * Options Page
 *
 * Renders the options page contents.
 *
 * @since  1.0
 * @author Bryan Monzon
 * @global $egt_settings Array of all the SQCASH Options
 * @return void
 */
function egt_settings_page()
{
    global $egt_settings;
    $active_tab = isset($_GET['tab']) && array_key_exists($_GET['tab'], egt_get_settings_tabs()) ? $_GET['tab'] : 'general';
    ob_start();
    ?>
    <div class="wrap">
        <h2>Simple Campaigns Settings</h2>
        <h2 class="nav-tab-wrapper">
            <?php 
    foreach (egt_get_settings_tabs() as $tab_id => $tab_name) {
        $tab_url = add_query_arg(array('settings-updated' => false, 'tab' => $tab_id));
        $active = $active_tab == $tab_id ? ' nav-tab-active' : '';
        echo '<a href="' . esc_url($tab_url) . '" title="' . esc_attr($tab_name) . '" class="nav-tab' . $active . '">';
        echo esc_html($tab_name);
        echo '</a>';
    }
    ?>
        </h2>
        <div id="tab_container">
            <form method="post" action="options.php">
                <table class="form-table">
                <?php 
    settings_fields('egt_settings');
    do_settings_fields('egt_settings_' . $active_tab, 'egt_settings_' . $active_tab);
    ?>
                </table>
                <style>
                p.submit{
                    border-top:1px solid #DFDFDF;
                    margin-top:30px;
                }
                </style>
                <?php 
    submit_button();
    ?>
            </form>
        </div><!-- #tab_container-->
    </div><!-- .wrap -->
    <?php 
    echo ob_get_clean();
}
Esempio n. 22
0
function blt_plugin_options()
{
    ?>
        <div class="wrap">
            <h2>Post Like</h2>
            <form action="options.php" method="post">
                <?php 
    settings_fields('blt-group');
    ?>
                <?php 
    @do_settings_fields('blt-group');
    ?>
                <table class="form-table">
                    <tr valign>
                        
                    </tr>
                </table>
            </form>
        </div>
    <?php 
}
Esempio n. 23
0
function display_function()
{
    ?>
		<div class='wrap'>

		<?php 
    $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'theming_social';
    ?>


			<h2 class="nav-tab-wrapper">
				<a href="?page=theming&tab=theming_social" class="nav-tab <?php 
    echo $active_tab == 'theming_social' ? 'nav-tab-active' : '';
    ?>
 ">Social</a>
				<a href="?page=theming&tab=theming_contact" class="nav-tab <?php 
    echo $active_tab == 'theming_contact' ? 'nav-tab-active' : '';
    ?>
 ">Contacts</a>
			</h2>

			<form method='post' action='options.php'>
			<?php 
    if ($active_tab == 'theming_social') {
        settings_fields('theming');
        echo "<h3>social section</h3>";
        do_settings_fields('theming', 'social section');
    } else {
        settings_fields('theming_contact');
        echo "<h3>contact section</h3>";
        do_settings_fields('theming', 'contact section');
    }
    submit_button();
    ?>

			</form>
		</div>

		<?php 
}
function wdfb_do_settings_sections($page)
{
    global $wp_settings_sections, $wp_settings_fields;
    if (!isset($wp_settings_sections) || !isset($wp_settings_sections[$page])) {
        return;
    }
    foreach ((array) $wp_settings_sections[$page] as $section) {
        echo '<div class="postbox wdfb-settings_section">';
        if ($section['title']) {
            echo "<h3 class='hndle' id='wdfb-section_header-{$section['id']}'><span><label>{$section['title']}</label></span></h3>\n";
        }
        call_user_func($section['callback'], $section);
        if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']])) {
            continue;
        }
        echo '<div class="inside"><form autocomplete="off"><table class="form-table" id="wdfb-section-' . $section['id'] . '">';
        do_settings_fields($page, $section['id']);
        echo '<tr><th></th><td>' . '<a href="#" class="button button-primary wdfb-save_settings" data-wdfb_section_id="' . $section['id'] . '">' . __('Save changes to this section', 'wdfb') . '</a>' . '</td></tr>';
        echo '</table></form></div>';
        echo '</div>';
    }
}
Esempio n. 25
0
    public function showOptionsPage($slug)
    {
        $page = $this->pages[$slug];
        $group = $slug . '-group';
        ?>
			<div class="wrap">
				<form method="POST" action="options.php">
					<?php 
        settings_fields($group);
        ?>
					<?php 
        do_settings_fields($group, '');
        ?>
					<table class="form-table">
						<?php 
        foreach ($page['items'] as $item) {
            ?>
							<tr valign="top">
								<th scope="row"><?php 
            echo $item['title'];
            ?>
</th>
								<td><?php 
            echo $this->getInput($item);
            ?>
</td>
							</tr>
						<?php 
        }
        ?>
					</table>
					<?php 
        submit_button();
        ?>
				</form>
			</div>
		<?php 
    }
function RMFtooltip_admin_page()
{
    ?>
	<script type="text/javascript">
		function chkchng(){ //Disable input fields as needed
			if(jQuery('#chkbx_use_custom_css').is(":checked")) {
				jQuery('#chkbx_replace_css').prop('disabled', false);
				jQuery('#textarea_css').prop('disabled', false);
			} else if (!jQuery('#chkbx_use_custom_css').is(":checked")) {
				jQuery('#chkbx_replace_css').prop('disabled', true);
				jQuery('#textarea_css').prop('disabled', true);
			}
		}
	</script>
	<div class="wrap">
		<?php 
    screen_icon();
    ?>
		<h2>Responsive Mobile-Friendly Tooltip Settings</h2>
		<form method="post" action="options.php">
			<table class="form-table">
				<tbody>
					<?php 
    settings_fields('RMFtooltip_style_settings');
    do_settings_fields('RMFtooltip-options', 'RMFtooltip_style_settings');
    //Output the setting section
    ?>
				</tbody>
			</table>
			<?php 
    submit_button();
    //Output the submit button
    ?>
		</form>
	</div>
<?php 
}
function adapt_do_settings_sections($page)
{
    global $wp_settings_sections, $wp_settings_fields;
    if (!isset($wp_settings_sections) || !isset($wp_settings_sections[$page])) {
        return;
    }
    foreach ((array) $wp_settings_sections[$page] as $section) {
        echo '
			<div class="postbox">
			<!--<div title="Click to toggle" class="handlediv"><br /></div>-->
			';
        if ($section['title']) {
            echo "<h3 style=\"cursor: inherit;\">{$section['title']}</h3>\n";
        }
        echo '<div class="inside">';
        call_user_func($section['callback'], $section);
        if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']])) {
            continue;
        }
        do_settings_fields($page, $section['id']);
        echo '</div>';
        echo '</div>';
    }
}
_e('XML-RPC');
?>
</span></legend>
<label for="enable_xmlrpc">
<input name="enable_xmlrpc" type="checkbox" id="enable_xmlrpc" value="1" <?php 
checked('1', get_option('enable_xmlrpc'));
?>
 />
<?php 
_e('Enable the WordPress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols.');
?>
</label><br />
</fieldset></td>
</tr>
<?php 
do_settings_fields('writing', 'remote_publishing');
?>
</table>

<?php 
if (apply_filters('enable_update_services_configuration', true)) {
    ?>
<h3><?php 
    _e('Update Services');
    ?>
</h3>

<?php 
    if (1 == get_option('blog_public')) {
        ?>
Esempio n. 29
0
	</tr>
	<tr>
		<th><label for="tag_base"><?php 
_e('Tag base');
?>
</label></th>
		<td><?php 
echo $blog_prefix;
?>
 <input name="tag_base" id="tag_base" type="text" value="<?php 
echo esc_attr($tag_base);
?>
" class="regular-text code" /></td>
	</tr>
	<?php 
do_settings_fields('permalink', 'optional');
?>
</table>

<?php 
do_settings_sections('permalink');
?>

<?php 
submit_button();
?>
  </form>
<?php 
if (!is_multisite()) {
    if ($iis7_permalinks) {
        if (isset($_POST['submit']) && $permalink_structure && !$usingpi && !$writable) {
Esempio n. 30
0
<th scope="row" colspan="2" class="th-full">
<label for="uploads_use_yearmonth_folders">
<input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php 
    checked('1', get_option('uploads_use_yearmonth_folders'));
    ?>
 />
<?php 
    _e('Organize my uploads into month- and year-based folders');
    ?>

</label>
</th>
</tr>

<?php 
    do_settings_fields('media', 'uploads');
    ?>

</table>
<?php 
}
?>


<?php 
do_settings_sections('media');
?>


<?php 
submit_button();