function weaverii_mainopts_footer()
{
    $opts = array(array('type' => 'submit'), array('name' => 'Footer Options', 'id' => 'maintab4', 'type' => 'header', 'info' => 'Settings for the footer', 'help' => 'help.html#FooterOpt'), array('name' => 'Footer BG', 'id' => 'wii_footer_bgcolor', 'type' => 'ctext', 'info' => 'Background for the footer area.'), array('name' => 'Footer Text', 'id' => 'wii_footer_color', 'type' => 'ctext', 'info' => 'Footer Text Color (use Widget Areas->Widget Area Text if needed for widget text color)'), array('name' => '<small>Footer Font size</small>', 'id' => 'wii_footer_size_int', 'type' => 'val_percent', 'info' => 'Font size for footer. (Default: 150%)'), array('name' => 'Footer Border', 'id' => 'wii_footer_border_color', 'type' => 'ctext', 'info' => 'Color of the border above the footer area.'), array('name' => 'Footer Border', 'id' => 'wii_footer_border_int', 'type' => 'val_px', 'info' => 'Height of footer border (Default: 4px)'), array('name' => '<small>Use BG Gradient</small>', 'id' => 'gradient_footer', 'type' => '+checkbox', 'info' => 'Add Weaver Background Gradient (as set on General Appearance tab) to footer area (&#9679;Pro)'), array('name' => '<small>Hide Entire Footer</small>', 'id' => 'wii_hide_footer', 'type' => '=checkbox', 'info' => 'Hide the entire footer area.'), array('name' => '<small>Hide "final" area</small>', 'id' => 'wii_hide_final', 'type' => '=checkbox', 'info' => 'Hide the display (but NOT functionality) of script and plugin messages at the very bottom of your site.'), array('name' => 'Footer Width', 'type' => '=subheader', 'info' => 'Control width of footer area'), array('name' => 'Wide Footer Area BG', 'id' => 'wii_footer_last', 'type' => '+checkbox', 'info' => 'Make Footer Area Background full screen width
			(or width specified below). (&#9679;Pro)'), array('name' => '<small>Wide Footer Content</small>', 'id' => 'wii_footer_wide_content', 'type' => '+checkbox', 'info' => 'Also make Footer Content (Widget Areas, Footer Insert Code, Copyright/Powered By) use full screen width.
			If not checked, then content will be constrained to Theme Width. (&#9679;Pro)'), array('name' => '<small>Footer Width</small>', 'id' => 'wii_footer_width_int', 'type' => '+val_px', 'info' => 'For wide footer area, set the maximum width of the Footer Area. Can be less than theme width. If blank, full screen width used. (&#9679;Pro)'), array('name' => 'Note:', 'id' => 'wii_footer_note', 'type' => 'note', 'info' => 'The footer area supports up to 4 widget areas. These auto-adjust their widths.'));
    ?>
<p>
	Options affecting the <strong>Footer</strong> area, including <strong>Background</strong> color, <strong>Borders</strong>,
	and the <strong>Copyright</strong> message.
</p>
<?php 
    weaverii_form_show_options($opts);
    if (!weaverii_hide_advanced_optval('_wii_copyright')) {
        ?>
		   <span style="color:blue;"><b>Site Copyright</b></span><br/>
		<small>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.<br /> 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;</small>
		<br />

		<textarea name="<?php 
        weaverii_sapi_main_name('_wii_copyright');
        ?>
" rows=1 style="width:750px;"><?php 
        echo esc_textarea(weaverii_getopt('_wii_copyright'));
        ?>
</textarea>
<?php 
    }
    if (!weaverii_hide_advanced_optval('_wii_hide_poweredby')) {
        ?>
		<br>
		<label>Hide Powered By tag: <input type="checkbox" name="<?php 
        weaverii_sapi_main_name('_wii_hide_poweredby');
        ?>
" id="_wii_hide_poweredby" <?php 
        checked(weaverii_getopt_checked('_wii_hide_poweredby'));
        ?>
 /></label>
				<small>Check this to hide the "Proudly powered by" notice in the footer.</small>
		<br /><br />
		You can add other content to the Footer from the Advanced Options:HTML Insertion tab.
<?php 
    }
}
function weaverii_admin_mobileopts()
{
    $opts = array(array('name' => '#070Mobile Support Mode', 'id' => '_wii_mode_mobile', 'type' => 'select_id', 'info' => 'Select how Weaver II generates mobile views. (Default: Smart, hide sidebars) Important: see the help file!. &diams;', 'value' => array(array('val' => 'weaver-mobile-smart-nostack', 'desc' => 'Smart, hide sidebars'), array('val' => 'weaver-mobile-smart-stacked', 'desc' => 'Smart, stacked sidebars'), array('val' => 'weaver-mobile-resp-nostack', 'desc' => 'Responsive, hide sidebars'), array('val' => 'weaver-mobile-responsive', 'desc' => 'Responsive, stacked sidebars'))), array('name' => '#070<small>Disable Mobile Support</small>', 'id' => '_wii_mobile_disable', 'type' => '=checkbox', 'info' => 'Disable support for mobile devices. Your site will shrink the sizes of the sidebars and content
areas, but will otherwise not be responsive or stack sidebars. &diams;'), array('name' => '<small>Alternative Mobile Plugins:</small>', 'type' => '=note', 'info' => 'If you need to use an alternative Mobile Theme plugin, you <strong>must</strong> set one of the
responsive <em>Mobile Support Modes</em> above, in which case your site will continue to display responsively on desktop browsers and unrecognized mobile devices, while using the alternative plugin for recognized mobile devices.
You can also <em>Disable Mobile Support</em>, in which case you will not get fully responsive desktop support.'), array('name' => 'Mobile Simulator Options', 'type' => 'subheader', 'info' => 'Settings for the Mobile simulator. Available only when using "Smart" Mobile Modes.'), array('name' => '#070Simulate Mobile Device', 'id' => '_wii_sim_mobile', 'type' => 'select_id', 'info' => 'Simulate Mobile Device (&#9688;Smart Modes Only): Select type to see what your site will look like on mobile devices. The simulator works only when using a "Smart" mobile support mode. Otherwise, just shrink your browser for the Responsive modes (IE7/IE8 don\'t work to shrink). &diams;', 'value' => array(array('val' => 'none', 'desc' => 'Simulation Off'), array('val' => 'WeaverMobile', 'desc' => 'Smart Phone'), array('val' => 'WeaverMobileSmallTablet', 'desc' => 'Small Tablet (Fire)'), array('val' => 'WeaverMobileTablet', 'desc' => 'Large Tablet (iPad)'))), array('name' => '#070<small>... even if not admin</small>', 'id' => '_wii_sim_mobile_always', 'type' => '=checkbox', 'info' => 'Normally, the mobile simulation will be displayed only for admins. Checking this allows visitors to view the simulated mobile view. IMPORTANT! Be careful using this option - it is intended for development and demos only and normally should be disabled for productions sites. &diams;'), array('name' => 'Small Screen Devices', 'type' => '=subheader', 'info' => 'Settings for smartphones, other small screen devices, and small tablets.'), array('name' => '#070Show Full Blog Posts', 'id' => 'wii_mobile_full_posts', 'type' => '+checkbox', 'info' => 'Show full post text on blog pages - posts are excerpted by default on mobile devices (&#9688;Smart Modes only). (&#9679;Pro)'), array('name' => '#070Show Footer Widgets', 'id' => 'wii_mobile_show_footerwidgets', 'type' => '+checkbox', 'info' => 'Will show footer widget area on non-stacked Mobile Modes for mobile devices. (Footer widget is always displayed on stacked Mobile Modes.) (&#9679;Pro)'), array('name' => '#070Hide Top/Bottom Widget Areas', 'id' => 'wii_mobile_hide_topbottom_widgets', 'type' => '+checkbox', 'info' => 'Hide Top and Bottom Widget Areas in addition to Sidebars. (&#9679;Pro)'), array('name' => '#070No Auto-Underline Links', 'id' => 'wii_mobile_nounderline', 'type' => '+checkbox', 'info' => 'Underlined links are easier to use on most mobile devices. This will disable auto-underlined links. (&#9679;Pro)'), array('name' => '#070View Toggle', 'id' => 'wii_layout_view_toggle', 'type' => '+select_id', 'info' => 'How to display the Full View/Mobile View toggle button on mobile devices (&#9688;Smart Modes only). (&#9679;Pro)', 'value' => array(array('val' => 'both', 'desc' => 'Both top &amp; bottom'), array('val' => 'top', 'desc' => 'Top only'), array('val' => 'bottom', 'desc' => 'Bottom only'), array('val' => 'hide', 'desc' => 'Hide view toggle'))), array('name' => '#070<small>Alternate Full View HTML</small>', 'id' => '_wvr_mobile_fullmsg', 'type' => '+textarea', 'info' => 'HTML to replace standard Full View icon (include style if needed). (&#9679;Pro) &diams;'), array('name' => '#070<small>Alternate Mobile View HTML</small>', 'id' => '_wvr_mobile_mobilemsg', 'type' => '+textarea', 'info' => 'HTML to replace standard Mobile View icon. (&#9679;Pro) &diams;'), array('name' => '#070Mobile Home Page', 'id' => 'wii_mobile_home_int', 'type' => '+text', 'info' => 'Specify page ID for alternate Home page when site viewed from mobile device (&#9688;Smart Modes only). Recommended: check "Hide Page on the default Primary Menu" Per Page option for the page. (&#9679;Pro)'), array('name' => '#070Mobile Site Title', 'id' => '_wii_mobile_site_title', 'type' => '+textarea', 'info' => 'Specify alternate Site Title if needed (&#9688;Smart Modes only) (Use &amp;nbsp; to hide Site Title on mobile). (&#9679;Pro) &diams;'), array('name' => '#070<small>Mobile Site Title Color</small>', 'id' => 'wii_mobile_title_color', 'type' => '+color', 'info' => 'Alternate Color for Mobile Site Title (includes Responsive Modes). (&#9679;Pro)'), array('name' => '#070Mobile Header Image', 'id' => '_wii_mobile_header_url', 'type' => '+textmedia', 'info' => 'Specify alternate header image for phone/small tablet mobile view (&#9688;Smart Modes only). (&#9679;Pro) &diams;'), array('name' => '#070<small>Mobile Header Image - Tablet</small>', 'id' => '_wii_mobile_tablet_header_url', 'type' => '+textmedia', 'info' => 'Specify alternate header image for tablet mobile view (will usually not be necessary, &#9688;Smart Modes only). (&#9679;Pro) &diams;'), array('name' => '#070Custom CSS', 'id' => '_wii_mobile_css', 'type' => '+textarea', 'info' => 'Custom site wide CSS included only when viewed on Mobile Device. Note that ".weaver-mobile" wrapping class can also be used for this purpose in the &lt;HEAD&gt; Section Custom CSS option (&#9688;Smart Modes only). (&#9679;Pro) &diams;'), array('name' => '<span style="color:green;">More Mobile Options:</span>', 'type' => 'note', 'info' => 'More mobile options are available for specific areas: Header, Menus, Post Specifics, Shortcodes.'), array('type' => 'submit'), array('name' => 'Tablets', 'type' => '=subheader', 'info' => 'Settings for iPad and other tablets'), array('name' => '#070Keep Site Margins', 'id' => 'wii_mobile_keep_site_margins', 'type' => '+checkbox', 'info' => 'Retain standard site margins on tablets (&#9688;Smart Modes only) - will normally reduce outer margins by default. (&#9679;Pro)'), array('name' => '#070No Auto-Underline Links', 'id' => 'wii_mobile_tablet_nounderline', 'type' => '+checkbox', 'info' => 'Underlined links are easier to use on most tablet devices. This will disable auto-underlined links. (&#9688;Smart Modes only - Responsive Modes never auto-underline links on tablets.) (&#9679;Pro)'), array('name' => 'Alternate Mobile Theme', 'type' => '=subheader', 'info' => 'Use Alternate Mobile Theme when site viewed by Mobile Device.'), array('name' => '#070Use Alternate Mobile Theme', 'id' => '_wii_mobile_alt_theme', 'type' => '+checkbox', 'info' => 'Mobile Devices will use the Mobile Theme Settings saved in the "Save Settings to Mobile Settings"
option on the "Save/Restore" tab (&#9688;Smart Modes only). (The Alternate Mobile Theme can not be displayed with the Mobile Simulator.) (&#9679;Pro) &diams;'));
    ?>
<h3>Mobile Device Options <?php 
    weaverii_help_link('help.html#MobileHelp', 'Help for Mobile Options');
    ?>
</h3>
<p style="font-size:small">
	These are the main options that control how Weaver II displays your site on Mobile devices. Please note that there are
	other options that affect the mobile view located on other tabs (e.g., the Main Options : Header tab). Options that affect
	the mobile view are displayed with a <span style="color:#080;font-weight:bold;">Green Label</span>.
</p>
<?php 
    weaverii_sapi_submit();
    weaverii_check_cache_plugins();
    weaverii_form_show_options($opts);
    if (weaverii_getopt_checked('_wii_mobile_alt_theme')) {
        $temp = get_option(apply_filters('weaver_options', 'weaverii_settings_mobile'));
        if ($temp === false) {
            echo '<strong style="color:red;">Warning: No Mobile Theme Settings have been saved. You <strong>must</strong> use the "Save Settings to Mobile Settings" from the Save/Restore tab first!</strong><br />';
        }
    }
    ?>
<br />
<?php 
    if (!weaverii_hide_advanced_optval('_wii_apple_touch_icon_url')) {
        ?>
   <span style="color:blue;"><b>Apple Touch Icon for iOS</b></span><br />
	<p>When this site is viewed on an Apple iOS device such as an iPhone or iPad (&#9688;Smart Modes only), Apple iOS recognizes a special icon
	that can be displayed on the device's home screen. The recommend size for this icon is a <code>.png</code> file 57x57 px for basic display,
	or 114x114 px for enhanced display. &diams;</p>
	<p>
<?php 
        $icon = weaverii_getopt('_wii_apple_touch_icon_url');
        if ($icon != '') {
            echo '<img src="' . $icon . '" alt="apple touch" />&nbsp;';
        }
        ?>
<strong style="color:#070">Apple Touch Icon URL: </strong>
	<textarea name="<?php 
        weaverii_sapi_main_name('_wii_apple_touch_icon_url');
        ?>
" id="_wii_apple_touch_icon_url" rows=1 style="width: 350px"><?php 
        echo esc_textarea(weaverii_getopt('_wii_apple_touch_icon_url'));
        ?>
</textarea><?php 
        weaverii_media_lib_button('_wii_apple_touch_icon_url');
        ?>
&nbsp;&nbsp;Full path to Apple Touch Icon</p>
	<br />
<?php 
    }
    ?>

   <span style="color:blue;"><b>Caching Plugins for Weaver II</b></span><br />
	<p>Because of the advanced Smart Mobile View capabilities provided by Weaver II, many existing WordPress Caching plugins
	will <strong>not</strong> work correctly with Weaver II <em>when it is displayed in Smart Mobile Device mode</em>.
	(Using one of the Responsive mobile display modes will allow Weaver II to work correctly with any cache plugin.)
	For using the &#9688;Smart Modes mobile support, we have found that the <strong>Quick Cache</strong> and
	<strong>W3 Total Cache</strong> plugins do work with Weaver Smart Mobile mode when
	properly configured. Please see the Weaver II help file for instructions on
	using compatible cache plugin &rarr;. <?php 
    weaverii_help_link('help.html#quickcache', 'Cache Setting for Weaver II');
    ?>
	<p>

<?php 
    weaverii_sapi_submit();
}