function weaverx_admin_subthemes()
{
    weaverx_tab_title(__('Predefined Weaver Xtreme Subthemes', 'weaver-xtreme'), 'help.html#PredefinedThemes', __('Help for Weaver Xtreme Predefined Themes', 'weaver-xtreme'));
    ?>
<small style="font-weight:normal;font-size:10px;"><?php 
    _e('You can click the ?\'s found throughout Weaver Xtreme admin pages for context specific help.', 'weaver-xtreme');
    ?>
</small>

<?php 
    _e('<h3>Welcome to Weaver X</h3>', 'weaver-xtreme');
    ?>

<?php 
    _e('<p>Weaver Xtreme gives you extreme control of your WordPress blog appearance using the
different admin tabs here. This tab lets you get a quick start by picking one of the many
predefined subthemes. Once you\'ve picked a starter theme, use the <em>Main Options</em> and <em>Advanced Options</em>
tabs to tweak the theme to be whatever you like. After you have a theme you\'re happy with,
you can save it from the Save/Restore tab. The <em>Help</em> tab has much more <b>useful</b> information.</p>', 'weaver-xtreme');
    ?>


<h3 class="atw-option-subheader"><span style="color:black;padding:.2em;" class="dashicons dashicons-images-alt2"></span>
<?php 
    _e('Get started by trying one of the predefined subthemes!', 'weaver-xtreme');
    ?>
</h3>
<?php 
    $theme_dir = trailingslashit(WP_CONTENT_DIR) . 'themes/' . get_template() . '/subthemes/';
    $theme_list = array();
    if ($media_dir = opendir($theme_dir)) {
        // build the list of themes from directory
        while ($m_file = readdir($media_dir)) {
            $len = strlen($m_file);
            $base = substr($m_file, 0, $len - 4);
            $ext = $len > 4 ? substr($m_file, $len - 4, 4) : '';
            if ($ext == '.wxt' || $ext == '.wxb') {
                $theme_list[] = $base;
            }
        }
    }
    if (!empty($theme_list)) {
        echo '<p style="font-size:120%;font-weight:bold;">';
        _e('Please remember: these subthemes are only starting points!
You can use <em>Weaver Xtreme</em> options to change virtually any part of these subthemes.
You can change colors, sidebar layouts, font family and sizes, borders, spacing - really, everything.', 'weaver-xtreme');
        echo '</p>';
        weaverx_st_pick_theme($theme_list);
        // show the theme picker
    } else {
        _e("<h3>WARNING: Your version of Weaver Xtreme is likely installed incorrectly. Unable to find subtheme definitions.</h3>\n", 'weaver-xtreme');
    }
}
function weaverx_admin_mainopts()
{
    if (!function_exists('weaverx_get_wp_custom_logo_url')) {
        weaverx_alert(__('    ****  WARNING!  ****\\r\\n\\r\\nYou are using a new Version 3 of the Weaver Xtreme Theme Support Plugin with an older version of the Weaver Xtreme Theme. Please update to the latest Version 3 of the Weaver Xtreme Theme.\\r\\n\\r\\nTHIS VERSION DOES NOT WORK WITH OLD VERSIONS OF WEAVER XTREME!'));
    }
    ?>
<div id="tabwrap_main" style="padding-left:4px;">

<div id="tab-container-main" class='yetiisub'>
	<ul id="tab-container-main-nav" class='yetiisub'>
	<?php 
    weaverx_elink('#asp_genappear', __('Wrapping background colors, rounded corners, borders, fade, shadow', 'weaver-xtreme'), __('Wrapping Areas', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_widgets', __('Settings for Sidebars and Sidebar Layout', 'weaver-xtreme'), __('Sidebars &amp; Layout', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_full', __('Settings to create full width sites', 'weaver-xtreme'), __('Full Width', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_headeropts', __('Site Title/Tagline properties, Header Image', 'weaver-xtreme'), __('Header', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_menus', __('Menu text and bg colors and other properties; Info Bar properties', 'weaver-xtreme'), __('Menus', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_content', __('Text colors and bg, image borders, featured image, other properties related to all content', 'weaver-xtreme'), __('Content Areas', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_postspecific', __('Properties related to posts: titles, meta info, navigation, excerpts, featured images, and more', 'weaver-xtreme'), __('Post Specifics', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_footer', __('Footer options: bg color, borders, more. Site Copyright', 'weaver-xtreme'), __('Footer', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_custom', __('Font settings &amp; Custom Settings', 'weaver-xtreme'), __('Fonts &amp; Custom', 'weaver-xtreme'), '<li>', '</li>');
    ?>
	</ul>

	<?php 
    weaverx_tab_title(__('Main Options', 'weaver-xtreme'), 'help.html#MainOptions', __('Help for Main Options', 'weaver-xtreme'));
    ?>

	<div id="asp_genappear" class="tab_mainopt" >
		<?php 
    weaverx_mainopts_general();
    ?>
	</div>

	<div id="asp_widgets" class="tab_mainopt" >
		<?php 
    weaverx_mainopts_layout();
    weaverx_mainopts_widgets();
    ?>
	</div>

	<div id="asp_full" class="tab_mainopt" >
		<?php 
    weaverx_mainopts_fullwidth();
    ?>
	</div>

	<div id="asp_headeropts" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_header();
    ?>
	</div>

	<div id="asp_menus" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_menus();
    ?>
	</div>

	<div id="asp_content" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_content();
    ?>
	</div>

	<div id="asp_postspecific" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_posts();
    ?>
	</div>

	<div id="asp_footer" class="tab_mainopt" >
		<?php 
    weaverx_mainopts_footer();
    ?>
	</div>


	<div id="asp_links" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_custom();
    ?>
	</div>

</div> <!-- #tab-container-main -->
<?php 
    weaverx_sapi_submit();
    ?>
</div>	<!-- #tabwrap_main -->
   <script type="text/javascript">
	var tabberMainOpts = new Yetii({
	id: 'tab-container-main',
	tabclass: 'tab_mainopt',
	persist: true
	});
</script>
<?php 
}
function weaverx_admin_advancedopts()
{
    ?>
<div id="tabwrap_adv" style="padding-left:5px;">
	<div id="tab-container-adv" class='yetiisub'>
	<ul id="tab-container-adv-nav" class='yetiisub'>
<?php 
    if (weaverx_allow_multisite()) {
        weaverx_elink('#asptab0', __('Insert custom HTML, scripts, and CSS into &lt;HEAD&gt; section', 'weaver-xtreme'), __('&lt;HEAD&gt; Section', 'weaver-xtreme'), '<li>', '</li>');
        weaverx_elink('#asptab1', __('Insert custom HTML into several different page areas', 'weaver-xtreme'), __('HTML Insertion', 'weaver-xtreme'), '<li>', '</li>');
    }
    weaverx_elink('#asptab3', __('Options related to this site: FavIcon, Home Page, more', 'weaver-xtreme'), __('Site Options', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_tab_admin', __('Basic Administrative Options', 'weaver-xtreme'), __('Admin Options', 'weaver-xtreme'), '<li>', '</li>');
    ?>
		</ul>
	<?php 
    weaverx_tab_title(__('Advanced Options', 'weaver-xtreme'), 'help.html#AdvancedOptions', __('Help for Advanced Options', 'weaver-xtreme'));
    ?>

<?php 
    weaverx_sapi_submit('', '<br /><br />');
    ?>

<!-- ***************************************************** -->
<?php 
    if (weaverx_allow_multisite()) {
        ?>
<div id="asptab0" class="tab_adv" >
	<?php 
        weaverx_adv_head_section();
        ?>
</div> <!-- adtab 0 -->

<!-- ***************************************************** -->

<div id="asptab1" class="tab_adv" >
	<?php 
        weaverx_adv_html_insert();
        ?>
</div> <!-- asptab1 -->
<?php 
    }
    // end of major section of not allowed on multisite
    ?>


<!-- ***************************************************** -->
<div id="asptab3" class="tab_adv" >
	<?php 
    weaverx_adv_site_opts();
    ?>
</div> <!-- site options -->


<!-- ***************************************************** -->

<div id="asp_tab_admin" class="tab_adv" >
<?php 
    weaverx_admin_admin_ts();
    ?>
</div>

</div> <!-- tab-container-adv -->

<?php 
    weaverx_sapi_submit();
    ?>
</div> <!-- #tabwrap_adv-->

<script type="text/javascript">
	var tabberAdv = new Yetii({
	id: 'tab-container-adv',
	tabclass: 'tab_adv',
	persist: true
	});
</script>
<?php 
}
function weaverx_admin_mainopts()
{
    ?>
<div id="tabwrap_main" style="padding-left:4px;">

<div id="tab-container-main" class='yetiisub'>
	<ul id="tab-container-main-nav" class='yetiisub'>
	<?php 
    weaverx_elink('#asp_genappear', __('Wrapping background colors, rounded corners, borders, fade, shadow', 'weaver-xtreme'), __('Wrapping Areas', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_widgets', __('Settings for Sidebars and Sidebar Layout', 'weaver-xtreme'), __('Sidebars &amp; Layout', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_headeropts', __('Site Title/Tagline properties, Header Image', 'weaver-xtreme'), __('Header', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_menus', __('Menu text and bg colors and other properties; Info Bar properties', 'weaver-xtreme'), __('Menus', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_content', __('Text colors and bg, image borders, featured image, other properties related to all content', 'weaver-xtreme'), __('Content Areas', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_postspecific', __('Properties related to posts: titles, meta info, navigation, excerpts, featured images, and more', 'weaver-xtreme'), __('Post Specifics', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_footer', __('Footer options: bg color, borders, more. Site Copyright', 'weaver-xtreme'), __('Footer', 'weaver-xtreme'), '<li>', '</li>');
    weaverx_elink('#asp_custom', __('Font settings &amp; Custom Settings', 'weaver-xtreme'), __('Fonts &amp; Custom', 'weaver-xtreme'), '<li>', '</li>');
    ?>
	</ul>

	<?php 
    weaverx_tab_title(__('Main Options', 'weaver-xtreme'), 'help.html#MainOptions', __('Help for Main Options', 'weaver-xtreme'));
    ?>

	<div id="asp_genappear" class="tab_mainopt" >
		<?php 
    weaverx_mainopts_general();
    ?>
	</div>

	<div id="asp_widgets" class="tab_mainopt" >
		<?php 
    weaverx_mainopts_layout();
    weaverx_mainopts_widgets();
    ?>
	</div>

	<div id="asp_headeropts" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_header();
    ?>
	</div>

	<div id="asp_menus" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_menus();
    ?>
	</div>

	<div id="asp_content" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_content();
    ?>
	</div>

	<div id="asp_postspecific" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_posts();
    ?>
	</div>

	<div id="asp_footer" class="tab_mainopt" >
		<?php 
    weaverx_mainopts_footer();
    ?>
	</div>


	<div id="asp_links" class="tab_mainopt" >
	<?php 
    weaverx_mainopts_custom();
    ?>
	</div>

</div> <!-- #tab-container-main -->
<?php 
    weaverx_sapi_submit();
    ?>
</div>	<!-- #tabwrap_main -->
   <script type="text/javascript">
	var tabberMainOpts = new Yetii({
	id: 'tab-container-main',
	tabclass: 'tab_mainopt',
	persist: true
	});
</script>
<?php 
}
function weaverx_admin_pro()
{
    weaverx_tab_title(__('Theme Add-ons', 'weaver-xtreme'), 'help.html#WeaverXPlus', __('Help for theme Add-ons', 'weaver-xtreme'));
    do_action('weaverx_show_licenses');
    if (!function_exists('weaverxplus_plugin_installed')) {
        ?>
<h2 style="font-weight:bold;">
<em><?php 
        weaverx_site('', '//plus.weavertheme.com/', __('Weaver Xtreme Plus', 'weaver-xtreme'));
        _e('Weaver Xtreme Plus', 'weaver-xtreme');
        ?>
</a></em>
<?php 
        _e('gives you more premium Weaver Xtreme features', 'weaver-xtreme');
        ?>
</h2>
<div class="a-plus">
<p>
<?php 
        _e('You can extend Weaver Xtreme\'s features by getting the premium <em>Weaver Xtreme Plus Plugin</em>.
Weaver Xtreme Plus adds useful new options to the Weaver Xtreme admin tabs
- many you\'ve probably already noticed mentioned on the existing option tabs.', 'weaver-xtreme');
        ?>
<p>
<strong><em><?php 
        _e('Premium features included with Weaver Xtreme Plus:', 'weaver-xtreme');
        ?>
</em></strong>
<ul>
<li><?php 
        _e('<strong>More Wrapping Areas Options</strong> - Specify background images for specific areas', 'weaver-xtreme');
        ?>
</li>
<li><?php 
        _e('<strong>More Widget Options</strong> - Define custom multi-column widgets. Equalize multi-column widget height', 'weaver-xtreme');
        ?>
</li>
<li><?php 
        _e('<strong>More Font Options</strong> - Easily add font families from hundreds of Google Fonts', 'weaver-xtreme');
        ?>
</li>
<li><?php 
        _e('<strong>Add Extra Menus</strong> - Add extra menus to your site using the Weaver Xtreme Plus Extra Menu
Widget, or the [extra_menu] shortcode', 'weaver-xtreme');
        ?>
</li>
<li><?php 
        _e('<strong>Additional Post Specifics Options</strong> - Define totally custom post top and bottom info lines', 'weaver-xtreme');
        ?>
</li>
<li><strong><?php 
        _e('More &lt;HEAD&gt; Section Options</strong> - define custom PHP actions and filters for WordPress', 'weaver-xtreme');
        ?>
</li>
<li><strong><?php 
        _e('Additional HTML Insertion Areas</strong> - Many HTML insertion area', 'weaver-xtreme');
        ?>
</li>
<li><strong><?php 
        _e('More Per Page HTML Insertion Options</strong> - Define HTML insertions on per page basis', 'weaver-xtreme');
        ?>
</li>
	</ul>
</p>
	<p style="font-size:large;line-height:1.4em;">
<strong><span style="color:blue; font-weight:bold;"><?php 
        _e('Get Weaver Xtreme Plus Now!', 'weaver-xtreme');
        ?>
</span></strong>
<br />
<span style="margin-left:20px;"></span><?php 
        _e('Visit', 'weaver-xtreme');
        ?>
 <?php 
        weaverx_site('', '//plus.weavertheme.com/', 'Weaver Xtreme Plus');
        _e('Plus.WeaverTheme.com<', 'weaver-xtreme');
        ?>
/a>
<?php 
        _e('now to get your copy of <em>Weaver Xtreme Plus</em>.', 'weaver-xtreme');
        ?>
</p>
</div>

<?php 
    } else {
        // to here, have Plus features
        echo '<h2 style="font-weight:bold;">' . __('Weaver Xtreme Plus Features - <span style="font-size:small;">You are using Weaver Xtreme Plus. Thank you.</span>', 'weaver-xtreme') . '</h2>' . "\n";
        do_action('weaverxplus_admin', 'weaverxplus_admin');
    }
    ?>
<hr />
<?php 
    if (!function_exists('wvrx_ts_installed')) {
        ?>
<h2 style="font-weight:bold;"><?php 
        _e('Get the <em>free</em> Weaver Xtreme Theme Support Plugin!', 'weaver-xtreme');
        ?>
</h2>
<div class="a-plus">
<p>
<?php 
        _e('The <em>Weaver Xtreme Theme Support</em> plugin provides a collection of useful shortcodes and widgets
to make it even easier to customize your site.', 'weaver-xtreme');
        ?>
</p>
<p><strong><?php 
        _e('See ', 'weaver-xtreme');
        ?>
<em>
<?php 
        weaverx_site('/plugins/weaverx-theme-plugins', '', 'Weaver Xtreme Plugins');
        _e('Weaver Xtreme Plugins', 'weaver-xtreme');
        ?>
</a></em> <?php 
        _e('for complete details.', 'weaver-xtreme');
        ?>
</strong></p>
<p>
	<?php 
        _e('Shortcodes and Widgets included:', 'weaver-xtreme');
        ?>
<ul>
<li><strong><?php 
        _e('[show|hide_if]</strong> - Show or hide content based on device, page/post ID, user role, or logged in status', 'weaver-xtreme');
        ?>
</li>
<li><strong><?php 
        _e('[tab_group]</strong> - Add content to a tabbed box', 'weaver-xtreme');
        ?>
</li>
<li><?php 
        _e('<strong>[youtube]</strong> - Show your YouTube videos responsively, and with the capability
to use any of the YouTube custom display options', 'weaver-xtreme');
        ?>
</li>
<li><strong><?php 
        _e('[vimeo]</strong> -  Show your Vimeo videos responsively, and with the capability
to use any of the Vimeo custom display options', 'weaver-xtreme');
        ?>
</li>
<li><?php 
        _e('<strong>[iframe]</strong> - Quick and easy display of content in an iframe', 'weaver-xtreme');
        ?>
</li>
<li><?php 
        _e('Plus more shortcodes', 'weaver-xtreme');
        ?>
</li>
<li><?php 
        _e('Adds shortcode support to the standard Text Widget', 'weaver-xtreme');
        ?>
</li>
<li><?php 
        _e('<strong>Weaver Xtreme 2 Column Text Widget</strong> - Add text into two columns in a widget', 'weaver-xtreme');
        ?>
</li>
<li><strong><?php 
        _e('Weaver Xtreme Per Page Text Widget</strong> - Add a text widget on a per page basis', 'weaver-xtreme');
        ?>
</li>
</ul>
</p>
</div>

<?php 
    } else {
        do_action('weaverx_theme_support_addon');
    }
}