function weaverx_sapi_form_bottom($form_name = 'end of form')
{
    // customizer only, keep values, preserve values, save values, not legacy (search terms for these kinds of settings)
    $non_sapi = array('weaverx_version_id', 'style_version', 'theme_filename', 'addon_name', '_hide_theme_thumbs', 'last_option', 'font_set_vietnamese', 'font_set_cryllic', 'font_set_greek', 'font_set_hebrew', 'font_word_spacing_global_dec', 'font_letter_spacing_global_dec');
    /*	The following code allows the SAPI to save the non-sapi values. If you don't do this here,
    		then the values will be set to false, and be lost! SAPI is not tolerant of submitting a form
    		that doesn't include EVERY setting for the form group. */
    foreach ($non_sapi as $name) {
        ?>
	<input name="<?php 
        weaverx_sapi_main_name($name);
        ?>
" id="<?php 
        echo $name;
        ?>
" type="hidden" value="<?php 
        echo weaverx_getopt($name);
        ?>
" />
<?php 
    }
    weaverx_setopt('last_option', 'Weaver Xtreme');
    // Safety check for limited PHP $_POST variables
    echo "</form> <!-- {$form_name} -->\n";
}
function weaverx_mainopts_footer()
{
    $opts = array(array('type' => 'submit'), array('name' => __('Footer Options', 'weaver-xtreme'), 'id' => '-admin-generic', 'type' => 'header', 'info' => __('Settings for the footer', 'weaver-xtreme'), 'help' => 'help.html#FooterOpt'), array('name' => __('Footer Area', 'weaver-xtreme'), 'id' => 'footer', 'type' => 'widget_area', 'info' => __('Properties for the footer area.', 'weaver-xtreme')), array('name' => __('Footer Links', 'weaver-xtreme'), 'id' => 'footerlink', 'type' => 'link', 'info' => __('Color for links in Footer (Uses Standard Link colors if left blank).', 'weaver-xtreme')), array('type' => 'submit'), array('name' => __('Footer Widget Area', 'weaver-xtreme'), 'id' => 'footer_sb', 'type' => 'widget_area_submit', 'info' => __('Properties for the Footer Widget Area.', 'weaver-xtreme')), array('name' => __('Footer HTML', 'weaver-xtreme'), 'id' => 'footer_html', 'type' => 'widget_area', 'info' => __('Add arbitrary HTML to Footer Area (in &lt;div id=\\"footer-html\\"&gt;)', 'weaver-xtreme')), array('name' => '<span class="i-left dashicons dashicons-editor-code"></span>' . __('Footer HTML content', 'weaver-xtreme'), 'id' => 'footer_html_text', 'type' => 'textarea', 'placeholder' => __('Any HTML, including shortcodes.', 'weaver-xtreme'), 'info' => __("Add arbitrary HTML", 'weaver-xtreme'), 'val' => 4), array('type' => 'submit'));
    ?>
<div class="options-intro">
<?php 
    _e('<strong>Footer: </strong> 	Options affecting the <strong>Footer</strong> area, including <strong>Background</strong>
color, <strong>Borders</strong>, and the <strong>Copyright</strong> message.', 'weaver-xtreme');
    ?>
<br />
<div class="options-intro-menu">
<a href="#footer-area"><?php 
    _e('Footer Area', 'weaver-xtreme');
    ?>
</a> |
<a href="#footer-widget-area"><?php 
    _e('Footer Widget Area', 'weaver-xtreme');
    ?>
</a> |
<a href="#footer-html"><?php 
    _e('Footer HTML', 'weaver-xtreme');
    ?>
</a> |
<a href="#site-copyright"><?php 
    _e('Site Copyright', 'weaver-xtreme');
    ?>
</a>
</div>
</div>
<?php 
    weaverx_form_show_options($opts);
    do_action('weaverxplus_admin', 'footer_opts');
    ?>
	<a id="site-copyright"></a>
<strong>&copy;</strong>&nbsp;<span style="color:blue;"><b><?php 
    _e('Site Copyright', 'weaver-xtreme');
    ?>
</b></span>
<br/>
<small>
<?php 
    _e('If you fill this in, the default copyright notice in the footer will be replaced with the text here.
It will not automatically update from year to year.
Use &amp;copy; to display &copy;.
You can use other HTML as well.
Use <span class="style4">&amp;nbsp;</span> to hide the copyright notice. &diams;', 'weaver-xtreme');
    ?>
</small>
	<br />

	<span class="dashicons dashicons-editor-code"></span>
	<?php 
    weaverx_textarea(weaverx_getopt('copyright'), 'copyright', 1, ' ', 'width:85%;');
    ?>
	<br>
		<label><span class="dashicons dashicons-visibility"></span> <?php 
    _e('Hide Powered By tag:', 'weaver-xtreme');
    ?>
		<input type="checkbox" name="<?php 
    weaverx_sapi_main_name('_hide_poweredby');
    ?>
" id="_hide_poweredby" <?php 
    checked(weaverx_getopt_checked('_hide_poweredby'));
    ?>
 />
		</label>
		<small><?php 
    _e('Check this to hide the "Proudly powered by" notice in the footer.', 'weaver-xtreme');
    ?>
</small>
		<br /><br />
	<?php 
    _e('You can add other content to the Footer from the Advanced Options:HTML Insertion tab.', 'weaver-xtreme');
}
function weaverx_form_select_font_family($value, $show_row = true)
{
    $value['value'] = array(array('val' => 'default', 'desc' => __('Inherit', 'weaver-xtreme')), array('val' => 'sans-serif', 'desc' => __('Arial (Sans Serif)', 'weaver-xtreme')), array('val' => 'arialBlack', 'desc' => __('Arial Black', 'weaver-xtreme')), array('val' => 'arialNarrow', 'desc' => __('Arial Narrow', 'weaver-xtreme')), array('val' => 'lucidaSans', 'desc' => __('Lucida Sans', 'weaver-xtreme')), array('val' => 'trebuchetMS', 'desc' => __('Trebuchet MS', 'weaver-xtreme')), array('val' => 'verdana', 'desc' => __('Verdana', 'weaver-xtreme')), array('val' => 'serif', 'desc' => __('Times (Serif)', 'weaver-xtreme')), array('val' => 'cambria', 'desc' => __('Cambria', 'weaver-xtreme')), array('val' => 'garamond', 'desc' => __('Garamond', 'weaver-xtreme')), array('val' => 'georgia', 'desc' => __('Georgia', 'weaver-xtreme')), array('val' => 'lucidaBright', 'desc' => __('Lucida Bright', 'weaver-xtreme')), array('val' => 'palatino', 'desc' => __('Palatino', 'weaver-xtreme')), array('val' => 'monospace', 'desc' => __('Courier (Monospace)', 'weaver-xtreme')), array('val' => 'consolas', 'desc' => __('Consolas', 'weaver-xtreme')), array('val' => 'papyrus', 'desc' => __('Papyrus', 'weaver-xtreme')), array('val' => 'comicSans', 'desc' => __('Comic Sans MS', 'weaver-xtreme')));
    $value['value'] = apply_filters('weaverx_add_font_family', $value['value']);
    ?>
	<select name="<?php 
    weaverx_sapi_main_name($value['id']);
    ?>
" id="<?php 
    echo $value['id'];
    ?>
">
	<?php 
    foreach ($value['value'] as $option) {
        ?>
		<option class="font-<?php 
        echo $option['val'];
        ?>
" value="<?php 
        echo $option['val'];
        ?>
"<?php 
        selected(weaverx_getopt($value['id']) == $option['val']);
        ?>
><?php 
        echo $option['desc'];
        ?>
</option>
	<?php 
    }
    ?>
	</select>
<?php 
}
function weaverx_admin_admin()
{
    ?>
<div class="atw-option-header"><span style="color:black; padding:.2em;" class="dashicons dashicons-admin-generic"></span>
<?php 
    _e('Basic Administrative Options', 'weaver-xtreme');
    weaverx_help_link('help.html#AdminOptions', 'Help for Admin Options');
    ?>
</div>

<p>
<?php 
    _e('These options control some administrative options and appearance features.', 'weaver-xtreme');
    ?>
</p>

<br />

<label><input type="checkbox" name="<?php 
    weaverx_sapi_main_name('_disable_customizer');
    ?>
" id="disable_customizer" <?php 
    checked(weaverx_getopt_checked('_disable_customizer'));
    ?>
 />
	<?php 
    _e('<strong>Disable Weaver Xtreme Customizer Interface</strong> - If you have a slow host or slow computer, checking this option will disable loading the Weaver Xtreme Customizer interface. &diams;', 'weaver-xtreme');
    ?>
	</label><br /><br />

	<label><input type="checkbox" name="<?php 
    weaverx_sapi_main_name('_hide_donate');
    ?>
" id="hide_donate" <?php 
    checked(weaverx_getopt_checked('_hide_donate'));
    ?>
 />
	<?php 
    _e('I\'ve Donated - <small>Thank you for donating to the Weaver Xtreme theme.
This will hide the Donate button. Purchasing Weaver Xtreme Plus also hides the Donate button.</small> &diams;', 'weaver-xtreme');
    ?>
	</label><br /><br />

	<label><input type="checkbox" name="<?php 
    weaverx_sapi_main_name('_hide_editor_style');
    ?>
" id="_hide_editor_style" <?php 
    checked(weaverx_getopt_checked('_hide_editor_style'));
    ?>
 />
<?php 
    _e('Disable Page/Post Editor Styling - <small>Checking this box will disable the Weaver Xtreme subtheme based styling in the Page/Post editor.
If you have a theme using transparent backgrounds, this option will likely improve the Post/Page editor visibility. &diams;</small>', 'weaver-xtreme');
    ?>
</label><br />

	<label><input type="checkbox" name="<?php 
    weaverx_sapi_main_name('_hide_auto_css_rules');
    ?>
" id="hide_auto_css_rules" <?php 
    checked(weaverx_getopt_checked('_hide_auto_css_rules'));
    ?>
 />
<?php 
    _e('Don\'t auto-display CSS rules - <small>Checking this box will disable the auto-display of Main Option elements that have CSS settings.</small> &diams;', 'weaver-xtreme');
    ?>
</label><br />

	<input name="<?php 
    weaverx_sapi_main_name('_css_rows');
    ?>
" id="css_rows" type="text" style="width:30px;height:20px;" class="regular-text" value="<?php 
    weaverx_esc_textarea(weaverx_getopt('_css_rows'));
    ?>
" />
<?php 
    _e('lines - Set CSS+ text box height - <small>You can increase the default height of the CSS+ input area (1 to 25 lines).</small> &diams;', 'weaver-xtreme');
    ?>
<br />
 <br />
 <h3 class="atw-option-subheader"><?php 
    _e('Per Page and Per Post Option Panels by Roles<', 'weaver-xtreme');
    ?>
/h3>
 <p>
<?php 
    _e('Single site Administrator and Multi-Site Super Administrator will always have the Per Page and Per Post options panel displayed.
You may selectively disable these options for other User Roles using the check boxes below.', 'weaver-xtreme');
    ?>
 </p>


	<label><input type="checkbox" name="<?php 
    weaverx_sapi_main_name('_hide_mu_admin_per');
    ?>
" id="_hide_mu_admin_per" <?php 
    checked(weaverx_getopt_checked('_hide_mu_admin_per'));
    ?>
 />
	<?php 
    _e('Hide Per Page/Post Options for MultiSite Admins', 'weaver-xtreme');
    ?>
</label> &diams;<br />
	   <label><input type="checkbox" name="<?php 
    weaverx_sapi_main_name('_hide_editor_per');
    ?>
" id="_hide_editor_per" <?php 
    checked(weaverx_getopt_checked('_hide_editor_per'));
    ?>
 />
	<?php 
    _e('Hide Per Page/Post Options for Editors', 'weaver-xtreme');
    ?>
</label> &diams;<br />
	   <label><input type="checkbox" name="<?php 
    weaverx_sapi_main_name('_hide_author_per');
    ?>
" id="_hide_author_per" <?php 
    checked(weaverx_getopt_checked('_hide_author_per'));
    ?>
 />
	<?php 
    _e('Hide Per Page/Post Options for Authors and Contributors', 'weaver-xtreme');
    ?>
</label> &diams;<br />
	<br />
	<label><input type="checkbox" name="<?php 
    weaverx_sapi_main_name('_show_per_post_all');
    ?>
" id="_hide_author_per" <?php 
    checked(weaverx_getopt_checked('_show_per_post_all'));
    ?>
 />
	<?php 
    _e('Show Per Post Options for Custom Post Types &diams; - <small>Shows the Per Post options box on "Custom Post Type Editor" admin pages', 'weaver-xtreme');
    ?>
</small>
	</label>
<br />
<br /><br />
	<div class="atw-option-subheader"><?php 
    _e('Theme Name and Description', 'weaver-xtreme');
    ?>
</div>
<p>
<?php 
    _e('You can change the name and description of your current settings if you would like to create a new theme
theme file for sharing with others, or for you own identification.', 'weaver-xtreme');
    ?>
</p>
<?php 
    _e('Theme Name:', 'weaver-xtreme');
    ?>
 <input name="<?php 
    weaverx_sapi_main_name('themename');
    ?>
" id="themename" value="<?php 
    echo weaverx_getopt('themename');
    ?>
" />
	<br />
	<?php 
    _e('Description:', 'weaver-xtreme');
    ?>
&nbsp;&nbsp;&nbsp;
	<?php 
    weaverx_textarea(weaverx_getopt('theme_description'), 'theme_description', 2, __('Describe the theme', 'weaver-xtreme'), 'width:65%;');
    ?>
<br />
<br />
 <h3 class="atw-option-subheader"><?php 
    _e('Subtheme Notes', 'weaver-xtreme');
    ?>
</h3>
 <p>
<?php 
    _e('This box may be used to keep notes and instructions about settings made for a custom subtheme.
It will be saved in the both \'.wxt\' and \'.wxb\' settings files.', 'weaver-xtreme');
    ?>
 </p>
 <?php 
    weaverx_textarea(weaverx_getopt('subtheme_notes'), 'subtheme_notes', 2, __('Notes about theme', 'weaver-xtreme'), 'width:75%;');
    do_action('weaverxplus_admin', 'admin_options');
}
function weaverx_form_color($value, $val_only = false)
{
    $pclass = 'color {hash:true, adjust:false}';
    // starting with V 1.3, allow text in color pickers
    if (!$val_only) {
        ?>
	<tr>
	<th scope="row" align="right"><?php 
        weaverx_echo_name($value, '<span class="i-left-fg dashicons dashicons-admin-appearance"></span>');
        ?>
:&nbsp;</th>
	<td>
	<?php 
    } else {
        echo '&nbsp;<small>' . $value['info'] . '</small>&nbsp;';
    }
    ?>
	<input class="<?php 
    echo $pclass;
    ?>
" name="<?php 
    weaverx_sapi_main_name($value['id']);
    ?>
" id="<?php 
    echo $value['id'];
    ?>
" type="text" style="width:90px" value="<?php 
    if (weaverx_getopt($value['id']) != "") {
        weaverx_esc_textarea(weaverx_getopt($value['id']));
    } else {
        echo ' ';
    }
    ?>
" />
	<?php 
    if (!$val_only) {
        ?>
	</td>
<?php 
        weaverx_form_info($value);
        ?>
	</tr>
<?php 
    }
}
function weaverx_adv_site_opts()
{
    ?>
	<div class="atw-option-header"><span style="color:black; padding:.2em;" class="dashicons dashicons-admin-generic"></span>
	<?php 
    _e('Site Options', 'weaver-xtreme');
    ?>
	<?php 
    weaverx_help_link('help.html#AdvSiteOptions', __('Help on Advanced Site Options', 'weaver-xtreme'));
    ?>
</div><br />
<?php 
    _e('These options are available to fine tune various aspects of your site.
Technically, these features	are not part of the theme styling, but cover other aspects of site functionality.', 'weaver-xtreme');
    ?>
<br />
<hr />
   <!-- ======== -->
   <?php 
    if (weaverx_f_file_access_available()) {
        ?>
   <h3><?php 
        _e('Inline CSS - (Xtreme-Plus Option)', 'weaver-xtreme');
        ?>
</h3>

	<label><input type="checkbox" name="<?php 
        weaverx_sapi_main_name('_inline_style');
        ?>
" id="_inline_style" <?php 
        checked(weaverx_getopt_checked('_inline_style'));
        ?>
 />
<?php 
        _e('Generate inline CSS code rather than using style-weaverxt.css file.
By default, Weaverx Xtreme Plus will use the style-weaverxt.css file. &diams;', 'weaver-xtreme');
        ?>
	</label><br /><br />
<?php 
    }
    ?>


	<br />
	<div class="atw-option-subheader"><span style="color:black; padding:.2em;" class="dashicons dashicons-format-image"></span><span style="color:blue;font-size:larger;">
	<b><?php 
    _e('FavIcon', 'weaver-xtreme');
    ?>
</b></span></div></br />
<p>
<?php 
    _e('You can add a FavIcon to your site with this option.
The preferred FavIcon is in the <code>.ico</code> format which has the most universal browser compatibility.
However, <code>.png, .gif, and .jpg</code> will	work for most modern browsers.
The standard sizes are 16x16, 32x32, or 48x48 px.
You can alternatively load a <code>favicon.ico</code> file to the root directory of your site. &diams;', 'weaver-xtreme');
    ?>
</p>
<p>
<?php 
    $icon = weaverx_getopt('_favicon_url');
    if ($icon != '') {
        echo '<img src="' . esc_url($icon) . '" alt="favicon" />&nbsp;';
    }
    ?>
	<strong><?php 
    _e('FavIcon URL:', 'weaver-xtreme');
    ?>
 </strong>
	<?php 
    weaverx_textarea(weaverx_getopt('_favicon_url'), '_favicon_url', 1, 'URL ', $style = 'width:350px;');
    ?>
	<?php 
    weaverx_media_lib_button('_favicon_url');
    ?>
&nbsp;&nbsp;<?php 
    _e('Full path to FavIcon', 'weaver-xtreme');
    ?>
</p><br />

	<div class="atw-option-subheader"><span style="color:black; padding:.2em;" class="dashicons dashicons-admin-page"></span><span style="color:blue;font-size:larger;">
	<b><?php 
    _e('Exclude Pages from SiteMap', 'weaver-xtreme');
    ?>
</b></span></div></br />
<p>
<?php 
    _e('You can specify a comma separated list of Page IDs to be excluded from the SiteMap Page list.
To exclude pages from Search results, use a plugin such as "Search Exclude".
You can hide different sections of the SiteMap by adding rules to the "Custom CSS Rules" box.
To hide authors, for example, add the rule <code>#sitemap-authors{display:none;}</code>.
The IDs for the SiteMap sections are: <code>#sitemap-pages, #sitemap-posts, #sitemap-categories, #sitemap-tags, #sitemap-authors</code>', 'weaver-xtreme');
    ?>
</p>
<p>
<?php 
    $exclude = weaverx_getopt('_sitemap_exclude_pages');
    ?>
	<strong><?php 
    _e('Exclude Pages from SiteMap', 'weaver-xtreme');
    ?>
: </strong>
	<?php 
    weaverx_textarea(weaverx_getopt('_sitemap_exclude_pages'), '_sitemap_exclude_pages', 1, '1,2,3', $style = 'width:350px;');
    ?>
</p><br />




	<div class="atw-option-subheader"><span style="color:black; padding:.2em;" class="dashicons dashicons-hammer"></span>
		<span style="color:blue;font-size:larger;">
		<b><?php 
    _e('SEO - Search Engine Optimization', 'weaver-xtreme');
    ?>
</b>
		</span></div><br />
<p>
<?php 
    _e('The Weaver Xtreme Theme has been designed to follow the latest SEO guidelines.
Each non-home page will use the recommended "Page Title | Site Title" format, and the site is formatted using the appropriate HTML5 tags for optimal SEO performance.
An SEO plugin may help you optimize your site for SEO, but is not required.
See the <em>Help</em> tab for recommended SEO plugins.', 'weaver-xtreme');
    ?>
</p><br />

	<div class="atw-option-subheader"><span style="color:black; padding:.2em;" class="dashicons dashicons-admin-home"></span>
		<span style="color:blue;font-size:larger;">
			<b><?php 
    _e('Home Page', 'weaver-xtreme');
    ?>
</b>
		</span></div>
<p>
<?php 
    _e('WordPress allows you to specify what page is used for your home page - either the standard WordPress blog, or a static page (which can be a Weaver Xtreme "Page with Posts" page).
Please see the Weaver Xtreme Help topic for a more complete explanation.', 'weaver-xtreme');
    ?>
</p>
<p>
<?php 
    _e('You can set the front page on the Dashboard <em>Settings&rarr;Reading panel</em>:', 'weaver-xtreme');
    ?>
<a href="<?php 
    echo esc_url(home_url('/') . 'wp-admin/options-reading.php');
    ?>
">
<strong><?php 
    _e('Set Front Page Displays', 'weaver-xtreme');
    ?>
</strong></a></p><br />

	<div class="atw-option-subheader"><span style="color:black; padding:.2em;" class="dashicons dashicons-admin-users"></span>
		<span style="color:blue;font-size:larger;">
			<b><?php 
    _e('Author Avatars', 'weaver-xtreme');
    ?>
</b>
		</span></div>
<p>
<?php 
    _e('For the best look, your site should support Avatars - a small image associated with a contributors e-mail address.
Gravatar.com is probably the most popular Avatar support, and is closely associated with WordPress.
You should set up a Gravatar for the main authors of your blog.
For contributors without any avatar, WordPress will automatically generate an avatar.
See the <strong>Settings &rarr; Discussion</strong> admin page for avatar settings.', 'weaver-xtreme');
    ?>
</p>
	<hr />
<?php 
    do_action('weaverxplus_admin', 'site_opts');
    do_action('weaverx_child_siteoptions');
}