Beispiel #1
0
function weaverii_form_row_text($value, $media = false)
{
    $twide = $value['type'] == 'text' ? '60' : '140';
    ?>
	<tr>
		<th scope="row" align="right"><?php 
    weaverii_echo_name($value);
    ?>
:&nbsp;</th>
		<td>
			<input name="<?php 
    weaverii_sapi_main_name($value['id']);
    ?>
" id="<?php 
    echo $value['id'];
    ?>
" type="text" style="width:<?php 
    echo $twide;
    ?>
px;height:22px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_getopt($value['id']));
    ?>
" />
<?php 
    if ($media) {
        weaverii_media_lib_button($value['id']);
    }
    ?>
		</td>
<?php 
    weaverii_form_row_info($value);
    ?>
	</tr>
<?php 
}
function weaverii_facebook_action()
{
    ?>
   <div class="wvr-option-subheader"><span style="color:blue;font-size:larger;"><b>Preferred Image for Facebook</b></span></div><br />
    <p>Facebook and other sites will display a possibly arbitrarily chosen thumbnail for your site when it is used in a
    link on those sites. If <em>you</em> specify an image to use here, then that image, plus other OpenGraph site information
    for Facebook, will be added to your site's &lt;head&gt; using the proper &lt;meta&gt; tags. We recommend you do this as
    it gives you control, and helps when someone links to your site on Facebook. (<em>Note: some SEO plugins will perform
    this same function, so you might want to leave this blank and use the SEO features instead.</em>) Facebook says:
    The image must be at least 50px by 50px, although a minimum 200px by 200px is preferred and 1500px by 1500px
    is recommended for the best possible user experience. The image can have a maximum aspect ratio of 3:1.
    (Note: image sizes must be no more than 5MB in size.) <small>After saving settings,
    enter this site's URL on <?php 
    weaverii_site('/tools/debug', 'http://developers.facebook.com');
    ?>
this page</a> to have Facebook update the information it saves for your site.</small> &diams;</p>
    <p>

<?php 
    $imgsrc = weaverii_getopt('_wii_imgsrc_url');
    if ($imgsrc != '') {
        echo '<img src="' . $imgsrc . '" height="40px" alt="imgsrc" />&nbsp;';
    }
    ?>
<strong>Image URL: </strong>
    <textarea name="<?php 
    weaverii_sapi_main_name('_wii_imgsrc_url');
    ?>
" id="_wii_imgsrc_url" rows=1 style="width: 350px"><?php 
    echo esc_textarea(weaverii_getopt('_wii_imgsrc_url'));
    ?>
</textarea><?php 
    weaverii_media_lib_button('_wii_imgsrc_url');
    ?>
&nbsp;&nbsp;Full path to Site's preferred image
    </p><br />
<?php 
}
Beispiel #3
0
function weaverii_admin_help()
{
    $tdir = get_template_directory_uri();
    $readme = $tdir . "/help/help.html";
    ?>
	<span style="font-size:larger;font-weight:bold;padding-right:70px;">Weaver II Help</span>

<small><strong>Media Library Picker Tool:</strong></small>&nbsp;<input name="wii_media_url" type="text" style="width:400px;height:22px;" class="regular-text" name="wii_media_url"
				id="wii_media_url" value="Paste media URL here that you can then Copy/Paste elsewhere." />
				<?php 
    weaverii_media_lib_button('wii_media_url');
    ?>
	<p>You will notice
	<?php 
    weaverii_help_link('help.html#top', weaverii_t_('Weaver II Help'));
    ?>
	next to many options and option sections on the Weaver Admin tabs. Clicking the ? will open the Weaver Help
	file to the appropriate place.</p>

	<p>More help is available at the <?php 
    weaverii_site();
    ?>
<strong>Weaver Theme web site</strong></a>, which includes
	a support forum.</p>
<?php 
    do_action('weaverii_child_help');
    ?>
<div style="float:left;width:40%;padding-right:3%">
<?php 
    echo "<div class=\"wvr-help\"><h2><b><a href=\"{$readme}\" target=\"_blank\">Weaver II Theme Documentation</a></b></h2>\n<h3>Table of Contents</h3>\n\t  <ul>\n\t  <li><a href=\"{$readme}#get_started\" target=\"_blank\">How to get started</a></li>\n\t  <li><a href=\"{$readme}#DesignHints\" target=\"_blank\">Design Hints</a></li>\n\t  <li><a href=\"{$readme}#homepage\" target=\"_blank\">All About Your Site's Home Page</a></li>\n\t  <li><a href=\"{$readme}#PredefinedThemes\" target=\"_blank\">Weaver Predefined Subthemes</a></li>\n\t  <li><a href=\"{$readme}#MainOptions\" target=\"_blank\">Weaver Main Options</a>\n\t\t<ul>\n\t\t  <li><a href=\"{$readme}#GenApp\" target=\"_blank\">General Appearance</a></li>\n\t\t  <li><a href=\"{$readme}#layout\" target=\"_blank\">Layout</a></li>\n\t\t  <li><a href=\"{$readme}#WidgetAreas\" target=\"_blank\">Widget Areas</a></li>\n\t\t  <li><a href=\"{$readme}#HeaderOpt\" target=\"_blank\">Header Options</a></li>\n\t\t  <li><a href=\"{$readme}#HeaderWidgetArea\" target=\"_blank\">Header Horizontal Widget Area</a></li>\n\t\t  <li><a href=\"{$readme}#MenuBar\" target=\"_blank\">Menu Bar and Info Bar</a></li>\n\t\t  <li><a href=\"{$readme}#Links\" target=\"_blank\">Links</a></li>\n\t\t  <li><a href=\"{$readme}#ContentAreas\" target=\"_blank\">Content Areas</a></li>\n\t\t  <li><a href=\"{$readme}#PPSpecifics\" target=\"_blank\">Post Specifics</a></li>\n\t\t  <ul>\n\t\t\t<li><a href=\"{$readme}#FeaturedImage\" target=\"_blank\">The Featured Image</a></li>\n\t\t\t<li><a href=\"{$readme}#CustomInfo\" target=\"_blank\">Custom Post Info Lines</a></li>\n\t\t  </ul>\n\t\t  <li><a href=\"{$readme}#FooterOpt\" target=\"_blank\">Footer</a></li>\n\t\t  <li><a href=\"{$readme}#Fonts\" target=\"_blank\">Fonts</a></li>\n\t\t</ul>\n\t  </li>\n\t  <li><a href=\"{$readme}#AdvancedOptions\" target=\"_blank\">Weaver Advanced Options</a>\n\t  <ul>\n\t  <li><a href=\"{$readme}#HeadSection\" target=\"_blank\">Site\n\t\t  &lt;HEAD&gt;\nSection</a></li>\n\t  <li><a href=\"{$readme}#HTMLInsertion\" target=\"_blank\">HTML Code Insertion Areas</a></li>\n\t  <li><a href=\"{$readme}#pageTemplateOptions\" target=\"_blank\">Page Templates</a></li>\n\t  <li><a href=\"{$readme}#ArchivePages\" target=\"_blank\">Archive-type Pages</a></li>\n\t  <li><a href=\"{$readme}#BackgroundImages\" target=\"_blank\">Background images</a></li>\n\t  <li><a href=\"{$readme}#Mobile\" target=\"_blank\">Mobile</a></li>\n\t  <li><a href=\"{$readme}#SEO\" target=\"_blank\">SEO</a></li>\n\t  <li><a href=\"{$readme}#AdvSiteOptions\" target=\"_blank\">Site Options</a></li>\n\t  </ul>\n\t  </li>\n\t  <li><a href=\"{$readme}#AdminOptions\" target=\"_blank\">Admin Options</a></li>\n\t  <li><a href=\"{$readme}#WeaverIIPro\" target=\"_blank\">Weaver II Pro</a></li>\n\t  <li><a href=\"{$readme}#ProShortcodes\" target=\"_blank\">Shortcodes</a></li>\n\t  <li><a href=\"{$readme}#SaveRestore\" target=\"_blank\">Save/Restore Themes</a></li>\n\t  <li><a href=\"{$readme}#PageTemplates\" target=\"_blank\">Weaver Page Templates</a></li>\n\t  <ul>\n\t\t<li><a href=\"{$readme}#PerPostTemplate\" target=\"_blank\">Settings for \"Page with Posts\" Template</a></li>\n\t  </ul>\n\t  <li><a href=\"{$readme}#editstyling\" target=\"_blank\">Post/Page Editor Styling</a>\n\t  <li><a href=\"{$readme}#raw_html\" target=\"_blank\">Entering Raw HTML and Scripts </a>\n\t  <li><a href=\"{$readme}#post_formats\" target=\"_blank\">Post Formats </a>\n\t  <li><a href=\"{$readme}#PerPage\" target=\"_blank\">Per Page and Per Post Options</a>\n\t\t<ul>\n\t\t  <li><a href=\"{$readme}#perpoststyle\" target=\"_blank\">Per Post Style</a></li>\n\t\t  <li><a href=\"{$readme}#shortcodes\" target=\"_blank\">Weaver Shortcodes</a></li>\n\t\t  <ul>\n\t\t\t\t<li><a href=\"{$readme}#breadcrumbs\" target=\"_blank\">[weaver_breadcrumbs]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#headerimage\" target=\"_blank\">[weaver_header_image]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#schtml\" target=\"_blank\">[weaver_html]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#scdiv\" target=\"_blank\">[div]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#sciframe\" target=\"_blank\">[weaver_iframe]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#pagenav\" target=\"_blank\">[weaver_pagenav]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#showhidemobile\" target=\"_blank\">[weaver_show_if_mobile] / [weaver_hide_if_mobile]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#showhideloggedin\" target=\"_blank\">[weaver_show_if_logged_in] / [weaver_hide_if_logged_in]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#showposts\" target=\"_blank\">[weaver_show_posts]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#sitetitlesc\" target=\"_blank\">[weaver_site_desc]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#video\" target=\"_blank\">[weaver_vimeo], [weaver_youtube]</a></li>\n\t\t  </ul>\n\t\t</ul>\n\t  <li><a href=\"{$readme}#CustomMenus\" target=\"_blank\">Custom Menus</a></li>\n\t  <li><a href=\"{$readme}#plugins\" target=\"_blank\">Built-in Support for Other Plugins</a></li>\n\t  <li><a href=\"{$readme}#quickcache\" target=\"_blank\">Compatible Caching Plugins</a></li>\n\t  <li><a href=\"{$readme}#language_support\" target=\"_blank\">Using Weaver in your language</a></li>\n\t  <li><a href=\"{$readme}#ie\" target=\"_blank\">Internet Explorer Compatibility</a></li>\n\t  <li><a href=\"{$readme}#TechNotes\" target=\"_blank\">Technical Notes</a></li>\n\t  <li><a href=\"{$readme}#divhierarchy\" target=\"_blank\">Weaver HTML&lt;div&gt;Hierarchy</a></li>\n\t  <li><a href=\"{$readme}#Version1_0\" target=\"_blank\">Release Notes</a></li>\n\t  <li><a href=\"{$readme}#UpgradingWeaver\" target=\"_blank\">Upgrading from Weaver</a>\n\t  <ul>\n\t  <li><a href=\"{$readme}#oldnewdiff\" target=\"_blank\">Differences between Weaver and Weaver II</a></li>\n\t<li><a href=\"{$readme}#conversion\" target=\"_blank\">The Conversion Process</a></li>\n\t<li><a href=\"{$readme}#newsidebars\" target=\"_blank\">The New Sidebars</a></li>\n\t<li><a href=\"{$readme}#converttemplates\" target=\"_blank\">Converting Page Templates</a></li>\n\t  </ul>\n\t  </li>\n\t</ul></div>\n";
    ?>
</div>
<div style="float:left;width:42%;padding-right:1%">
	<h2><b><a href="<?php 
    echo $tdir . '/help/css-help.html';
    ?>
" target="blank">CSS HELP</a></b></h2>
	<p>A short CSS Tutorial</p>
	<h2><b><a href="<?php 
    echo $tdir . '/help/weaverii_snippets.html';
    ?>
" target="blank">SNIPPETS</a></b></h2>
	<p><strong>CSS Snippets for styling your Weaver II theme</strong>
	<ul>
  <li>Change Any Font Size</li>
  <li>Change the Comment Bubble</li>
  <li>Change Margins of Footer Widget Areas</li>
  <li>When you make the Footer (#colophon) Last</li>
  <li>Hide Divider Lines on Vertical Menu</li>
  <li>Post Information Line Icons</li>
  <li>Alternate Menu Bar Gradient</li>
  <li>Styling Menus</li>
</ul>
<p style="font-size:8px">Versions: Weaver II V <?php 
    echo weaverii_getopt('wii_version_id');
    ?>
 | Settings: <?php 
    echo weaverii_getopt('wii_style_version');
    ?>
 | Saved Settings: <?php 
    echo (int) weaverii_getopt('wii_saved_settings');
    ?>
</p>
</div>


<div style="clear:both;"></div>

<?php 
}
function weaveriip_buttons_show_list()
{
    global $weaveriip_buttons_services;
    if (!weaverii_pro_isset('buttons')) {
        weaveriip_init_buttons();
        // just in case!
    }
    $buttons = weaverii_pro_getopt('buttons');
    $baseurl = get_template_directory_uri();
    /* from codex example */
    ?>
	<div>
		<table class='even-odd'>
			<tr>
				<td style="font-weight:bold;padding:5px;"></td>
				<td style="font-weight:bold;padding:5px;"><small>Image</small></td>
				<td style="font-weight:bold;padding:5px;"><small>Button Image - Full URL <span style="font-weight:normal">(required)</span></small></td>
				<td style="font-weight:bold;padding:5px;"><small>Hover Text Description</small></td>
				<td style="font-weight:bold;padding:5px;"><small>Link - Full URL</</td>
				<td style="font-weight:bold;padding:5px;"><small>New<br />Page</small></td>
			</tr>
<?php 
    for ($i = 0; $i < $buttons['maxbuttons']; $i++) {
        if ($i & 1) {
            echo "<tr>\n";
        } else {
            echo "<tr style=\"background:#eee;\">\n";
        }
        $id = 'b' . $i;
        ?>
	<td>&nbsp;<?php 
        echo $i + 1;
        ?>
&nbsp;</td>
<?php 
        if ($buttons[$id . '_img_url'] == '') {
            // special case - no link
            echo '    <td style="padding:5px;"><img src="' . trailingslashit($baseurl) . 'includes/pro/images/default-button.png" alt="no link" /></td>' . "\n";
        } else {
            echo '    <td style="padding:5px;"><img src="' . $buttons[$id . '_img_url'] . '" alt="button" /></td>' . "\n";
        }
        ?>
	<td>
		<input type="text" name="<?php 
        echo $id;
        ?>
_img_url" id="<?php 
        echo $id;
        ?>
_img_url"  style="width:240px;height:20px;" class="regular-text" value="<?php 
        echo esc_textarea($buttons[$id . '_img_url']);
        ?>
" /><?php 
        weaverii_media_lib_button($id . '_img_url');
        ?>
	</td>
	<td style="width:200px;padding-left:10px; padding-right:10px;">
		<input type="text" name="<?php 
        echo $id;
        ?>
_hover" id="<?php 
        echo $id;
        ?>
_hover"  style="width:200px;height:20px;" class="regular-text" value="<?php 
        echo esc_textarea($buttons[$id . '_hover']);
        ?>
" />
	</td>

	<td style="padding:5px;">
		<input type="text" name="<?php 
        echo $id;
        ?>
_link_url" id="<?php 
        echo $id;
        ?>
_link_url"  style="width:240px;height:20px;" class="regular-text" value="<?php 
        echo esc_textarea($buttons[$id . '_link_url']);
        ?>
" />
	</td>
	<td style="padding:5px;">
		<input type="checkbox" name="<?php 
        echo $id;
        ?>
_blank" id="<?php 
        echo $id;
        ?>
_blank" <?php 
        echo $buttons[$id . '_blank'] ? "checked" : "";
        ?>
 />
	</td>
<?php 
    }
    // end for
    ?>
		</table>
	</div>

<?php 
}
function weaverii_bgimg_widerow($th, $rid, $desc, $width = '')
{
    $style = '';
    $style_desc = 'style="padding-left: 10px"';
    if (!weaverii_init_base()) {
        $style = ' style="color:#999;"';
        $style_desc = $style;
    } else {
        if ($width != '') {
            $style = ' style="width:' . $width . ';"';
        }
    }
    ?>
    <tr>
	<th scope="row" align="right"<?php 
    echo $style . '>' . $th;
    ?>
:&nbsp;</th>
	<td>
<?php 
    if (weaverii_init_base()) {
        ?>
	    <input name="<?php 
        weaverii_sapi_main_name($rid);
        ?>
" type="text" style="width:240px;height:22px;" class="regular-text"
		id="<?php 
        echo $rid;
        ?>
" value="<?php 
        echo esc_textarea(weaverii_getopt($rid));
        ?>
" />
<?php 
        weaverii_media_lib_button($rid);
    } else {
        ?>
	    <span style="color:#999;">Pro Version&nbsp;&nbsp;&nbsp;</span>
	    <input name="<?php 
        weaverii_sapi_main_name($rid);
        ?>
" type="hidden" style="width:240px;height:22px;" class="regular-text"
	      id="<?php 
        echo $rid;
        ?>
" value="<?php 
        echo esc_textarea(weaverii_getopt($rid));
        ?>
" />

	</td>
<?php 
    }
    ?>
	<td <?php 
    echo $style_desc;
    ?>
><small><?php 
    echo $desc;
    ?>
</small></td>
    </tr>
<?php 
}
function weaveriip_social_show_list()
{
    global $weaveriip_social_services;
    if (!weaverii_pro_isset('social')) {
        weaveriip_init_social();
        // make sane
    }
    $soc = weaverii_pro_getopt('social');
    // fetch the sub list
    $baseurl = trailingslashit(get_template_directory_uri());
    /* from codex example */
    ?>
	<div>
		<table class='even-odd'>
			<tr>
				<td><strong><small>Use</small></strong></td>
				<td style="text-align:center;font-weight:bold;"><small>Display<br />Order</small></td>
				<td></td>
				<td style="font-weight:bold;"><small>Social Site Description</small></td>
				<td style="font-weight:bold;"><small>Full URL link to your account</</td>
				<td style="font-weight:bold;"><small>Stay<br />on page</</td>
			</tr>
<?php 
    $i = 1;
    foreach ($weaveriip_social_services as $service) {
        if ($i++ & 1) {
            $rowbg = '#eee';
        } else {
            $rowbg = 'transparent';
        }
        echo "<tr style=\"background:{$rowbg};\">\n";
        $id = $service['icon'];
        if (!isset($soc[$id . '_use'])) {
            $soc[$id . '_use'] = '';
        }
        if (!isset($soc[$id . '_url'])) {
            $soc[$id . '_url'] = '';
        }
        if (!isset($soc[$id . '_order'])) {
            $soc[$id . '_order'] = '';
        }
        if (!isset($soc[$id . '_hover'])) {
            $soc[$id . '_hover'] = '';
        }
        if (!isset($soc[$id . '_stay'])) {
            $soc[$id . '_stay'] = '';
        }
        if (!isset($soc[$id . '_custom'])) {
            $soc[$id . '_custom'] = '';
        }
        ?>
	<td style="padding:5px;">
		<input type="checkbox" name="<?php 
        echo $id;
        ?>
_use" id="<?php 
        echo $id;
        ?>
_use" <?php 
        echo $soc[$id . '_use'] ? "checked" : "";
        ?>
 />
	</td>
	<td style="padding:5px;">
		<input type="text" name="<?php 
        echo $id;
        ?>
_order" id="<?php 
        echo $id;
        ?>
_order"  style="width:50px;height:20px;" class="regular-text" value="<?php 
        weaverii_esc_textarea($soc[$id . '_order']);
        ?>
" />
	</td>
<?php 
        if ($service['icon'][0] == '_') {
            if ($soc[$id . '_custom'] == '') {
                $img = '<img src="' . apply_filters('weaverii-social-dir', $baseurl . 'includes/pro/social/1/') . 'button-white.png" height="28" width="28" alt="white button" />';
            } else {
                $img = '<img src="' . $soc[$id . '_custom'] . '" height="28" width="28" alt="custom button" />';
            }
        } else {
            $img = '<img src="' . apply_filters('weaverii-social-dir', $baseurl . 'includes/pro/social/1/') . $service['icon'] . '.png" height="28" width="28" alt="social button" />';
        }
        if ($service['site'][0] == '#') {
            // special case - no link
            echo '<td style="padding:5px;">' . $img . '</td>' . "\n";
            echo '<td style="width:340px;padding-left:10px; padding-right:10px;">';
            ?>
<input type="text" name="<?php 
            echo $id;
            ?>
_hover" id="<?php 
            echo $id;
            ?>
_hover"  style="width:340px;height:20px;" class="regular-text" value="<?php 
            weaverii_esc_textarea($soc[$id . '_hover']);
            ?>
" /></td>
<?php 
        } else {
            echo '<td style="padding:5px;"><a href="http://' . $service['site'] . '" target="_blank">' . $img . '</td>' . "\n";
            ?>
			<td style="width:340px;padding-left:10px; padding-right:10px;"><input type="text" name="<?php 
            echo $id;
            ?>
_hover" id="<?php 
            echo $id;
            ?>
_hover"  style="width:340px;height:20px;" class="regular-text" value="<?php 
            weaverii_esc_textarea($soc[$id . '_hover']);
            ?>
" /></td>
<?php 
            // echo '<td style="width:340px;padding-left:10px; padding-right:10px;">' . $service['blurb'] . "</td>\n";
        }
        ?>
	<td style="padding:5px;">
<?php 
        if ($service['site'][0] == '#') {
            // special case - no link
            echo substr($service['site'], 1) . '<br />';
        }
        ?>
		<input type="text" name="<?php 
        echo $id;
        ?>
_url" id="<?php 
        echo $id;
        ?>
_url"  style="width:280px;height:20px;" class="regular-text" value="<?php 
        weaverii_esc_textarea($soc[$id . '_url']);
        ?>
" />
	</td>
	<td style="padding:5px;">
		<input type="checkbox" name="<?php 
        echo $id;
        ?>
_stay" id="<?php 
        echo $id;
        ?>
_stay" <?php 
        echo $soc[$id . '_stay'] ? "checked" : "";
        ?>
 />
	</td>

<?php 
        if ($service['icon'][0] == '_') {
            echo "<tr style=\"background:{$rowbg};\">\n";
            ?>
<td colspan>&nbsp;</td><td colspan="2"><small>Custom Icon URL:</td><td style="width:340px;padding-left:10px; padding-right:10px;">
<input type="text" name="<?php 
            echo $id;
            ?>
_custom" id="<?php 
            echo $id;
            ?>
_custom"  style="width:300px;" class="regular-text" value="<?php 
            weaverii_esc_textarea($soc[$id . '_custom']);
            ?>
" /><?php 
            weaverii_media_lib_button($id . '_custom');
            ?>
</td><td>&nbsp;&nbsp;<small>Suggested size: 32x32 px</td></tr>
<?php 
        }
        echo "</tr>\n";
    }
    // end foreach
    ?>
		</table>
	</div>

<?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();
}
function weaveriip_header_add($i)
{
    $opt_base = 'hdr_' . $i . '_';
    if ($i & 1) {
        echo "<div style=\"width:99%;background:#eee;padding:4px;border-right:2px solid #eee;\">\n";
    } else {
        echo "<div style=\"width:99%;padding:4px;border:1px solid #ddd;\">\n";
    }
    ?>

	<strong><?php 
    echo $i;
    ?>
 - </strong><em>Add item over header</em>
	<?php 
    if (!weaverii_pro_getopt($opt_base . 'hidemobile') && weaverii_pro_getopt($opt_base . 'x') > 300 && weaverii_pro_getopt($opt_base . '_xunits') != '%') {
        echo ' &nbsp;<small style="color:red;font-weight:bold;padding-left:30px;">Warning: X position too far right for Mobile View. Recommend &rarr;</small>';
    } else {
        echo '<span style="padding-right:200px;">&nbsp;</span>';
    }
    ?>
	<input  type="checkbox" name="<?php 
    echo $opt_base . 'hidemobile';
    ?>
" id="<?php 
    echo $opt_base . 'hidemobile';
    ?>
"
	<?php 
    echo weaverii_pro_getopt($opt_base . 'hidemobile');
    ?>
 > <small>Hide if Phone or Small Tablet View.</small>
	<input  type="checkbox" name="<?php 
    echo $opt_base . 'hidetablet';
    ?>
" id="<?php 
    echo $opt_base . 'hidetablet';
    ?>
"
	<?php 
    echo weaverii_pro_getopt($opt_base . 'hidetablet');
    ?>
 > <small>Hide if Large Tablet View.</small>

	<div style="margin-left:12px;">
	<strong>X position: </strong>

	<input name="<?php 
    echo $opt_base . 'x';
    ?>
" id="<?php 
    echo $opt_base . 'x';
    ?>
" type="text" style="width:40px;height:20px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_pro_getopt($opt_base . 'x'));
    ?>
" />

	<select id="<?php 
    echo $opt_base . '_xunits';
    ?>
" name="<?php 
    echo $opt_base . '_xunits';
    ?>
">
<?php 
    $selected = weaverii_pro_getopt($opt_base . '_xunits');
    echo '<option ' . ($selected == 'px' || $selected == '' ? 'selected="selected"' : '') . ' value="px">' . ' px ' . '</option>' . "\n";
    echo '<option ' . ($selected == '%' ? 'selected="selected"' : '') . ' value="%">' . ' % ' . '</option>' . "\n";
    ?>
	</select>

	&nbsp;<small>from left</small>&nbsp;&nbsp;&nbsp;<strong>Y position: </strong>
	<input name="<?php 
    echo $opt_base . 'y';
    ?>
" id="<?php 
    echo $opt_base . 'y';
    ?>
" type="text" style="width:40px;height:20px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_pro_getopt($opt_base . 'y'));
    ?>
" />

	   <select id="<?php 
    echo $opt_base . '_yunits';
    ?>
" name="<?php 
    echo $opt_base . '_yunits';
    ?>
">
<?php 
    $selected = weaverii_pro_getopt($opt_base . '_yunits');
    echo '<option ' . ($selected == 'px' || $selected == '' ? 'selected="selected"' : '') . ' value="px">' . ' px ' . '</option>' . "\n";
    echo '<option ' . ($selected == '%' ? 'selected="selected"' : '') . ' value="%">' . ' % ' . '</option>' . "\n";
    ?>
	</select>

	&nbsp;<small>from top</small>&nbsp;&nbsp;&nbsp;
	<strong><small>Show only on Page: </small></strong>
	<input name="<?php 
    echo $opt_base . 'page';
    ?>
" id="<?php 
    echo $opt_base . 'page';
    ?>
" type="text" style="width:80px;height:20px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_pro_getopt($opt_base . 'page'));
    ?>
" />
	&nbsp;<small>Specify Page ID #, blank for all</small>
	<br />
	<strong>Image URL:</strong>&nbsp;
	<input name="<?php 
    echo $opt_base . 'img';
    ?>
" id="<?php 
    echo $opt_base . 'img';
    ?>
" type="text" style="width:200px;height:20px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_pro_getopt($opt_base . 'img'));
    ?>
" />
	<?php 
    weaverii_media_lib_button($opt_base . 'img');
    ?>
	&nbsp;<em>Image Title:</em>&nbsp;
	<input name="<?php 
    echo $opt_base . 'imgalt';
    ?>
" id="<?php 
    echo $opt_base . 'imgalt';
    ?>
" type="text" style="width:150px;height:20px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_pro_getopt($opt_base . 'imgalt'));
    ?>
" />
	&nbsp;<small>Image URL and optional title attribute.</small>
	<br>
	<strong>Text:</strong>&nbsp;
	<input name="<?php 
    echo $opt_base . 'text';
    ?>
" id="<?php 
    echo $opt_base . 'text';
    ?>
" type="text" style="width:360px;height:20px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_pro_getopt($opt_base . 'text'));
    ?>
" />
	&nbsp;<small>Arbitrary text, including HTML. Supports shortcodes.</small>
	<br /><strong>Extra CSS styling:</strong>&nbsp;
	<input name="<?php 
    echo $opt_base . 'textstyle';
    ?>
" id="<?php 
    echo $opt_base . 'textstyle';
    ?>
" type="text" style="width:180px;height:20px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_pro_getopt($opt_base . 'textstyle'));
    ?>
" />
	&nbsp;<small>Optional CSS <em>styling</em> to wrap entire item (will be added in &lt;span style="<em>styling</em>"&gt; tag.).</small>
	<br>
	<strong>Link URL:</strong>&nbsp;
	<input name="<?php 
    echo $opt_base . 'link';
    ?>
" id="<?php 
    echo $opt_base . 'link';
    ?>
" type="text" style="width:200px;height:20px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_pro_getopt($opt_base . 'link'));
    ?>
" />
	&nbsp;<em>Link Description:</em>&nbsp;
	<input name="<?php 
    echo $opt_base . 'linkalt';
    ?>
" id="<?php 
    echo $opt_base . 'linkalt';
    ?>
" type="text" style="width:150px;height:20px;" class="regular-text" value="<?php 
    echo esc_textarea(weaverii_pro_getopt($opt_base . 'linkalt'));
    ?>
" />
	<input  type="checkbox" name="<?php 
    echo $opt_base . 'newpage';
    ?>
" id="<?php 
    echo $opt_base . 'newpage';
    ?>
"
	<?php 
    echo weaverii_pro_getopt($opt_base . 'newpage');
    ?>
 > <small>New Page</small>
	&nbsp;<small> - Define if you want item to link.</small>
	<br />
	</div>
<?php 
    echo "</div>\n";
}
function weaveriip_slider_sform($i)
{
    global $weaveriip_slider_opts;
    $sname = 'slider' . $i;
    if ($i & 1) {
        echo "<div style=\"width:99%;background:#eee;padding:4px;border-right:2px solid #eee;\">\n";
    } else {
        echo "<div style=\"width:99%;padding:4px;border:1px solid #ddd;\">\n";
    }
    $menus = get_terms('nav_menu', array('hide_empty' => false));
    // get defined custom menus
    $menu_selected = weaverii_pro_isset($sname . '_menu') ? weaverii_pro_getopt($sname . '_menu') : '';
    ?>
	<div><span style="color:blue;font-weight:bold;font-size:120%;">Slider <?php 
    echo $i;
    ?>
</span>
		&nbsp;&nbsp;<em>Shortcode:</em> <strong><code>[weaver_slider id=<?php 
    echo $i;
    ?>
]</code></strong>
		| <em>Note (where used, for example):</em>
		<input name="<?php 
    echo $sname;
    ?>
_note" id="<?php 
    echo $sname;
    ?>
_note" type="text" style="width:250px;height:22px;" class="regular-text" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_note'));
    ?>
" />
	</div>
	<br />
	<table class="optiontable">
		<tr>
			<th scope="row" align="right" style="width:20%;">Select Menu:&nbsp;</th>
			<td>
<?php 
    // If no irect the user to go and create some.
    if (!$menus) {
        echo sprintf('No menus have been created yet. Please use <a href="$s">Appearance&rarr;Menus</a> to create some.', admin_url('nav-menus.php'));
    } else {
        ?>
					<select id="<?php 
        echo $sname . '_menu';
        ?>
" name="<?php 
        echo $sname . '_menu';
        ?>
">
<?php 
        foreach ($menus as $menu) {
            $selected = $menu_selected == $menu->term_id ? ' selected="selected"' : '';
            echo '<option' . $selected . ' value="' . $menu->term_id . '">' . $menu->name . '</option>' . "\n";
        }
    }
    ?>
					</select>
			</td>
			<td style="padding-left: 10px"><small>Select a custom menu to use for this slider. Sub-menus are not supported!.</small></td>

		</tr>
		<tr>
			<th scope="row" align="right" style="width:20%;">Hide Menu Text:&nbsp;</th>
			<td>
			<input type="checkbox" name="<?php 
    echo $sname;
    ?>
_hidetext" id="<?php 
    echo $sname;
    ?>
_hidetext" <?php 
    echo weaverii_pro_getopt($sname . '_hidetext') ? "checked" : "";
    ?>
 />
			</td>
			<td style="padding-left: 10px"><small>Hide standard Menu names over each image. Useful if your image
			contains the Menu name.</small></td>
		</tr>
		<tr>
			<th scope="row" align="right" style="width:20%;">Hide on Mobile View:&nbsp;</th>
			<td>
			<input type="checkbox" name="<?php 
    echo $sname;
    ?>
_hidemobile" id="<?php 
    echo $sname;
    ?>
_hidemobile" <?php 
    echo weaverii_pro_getopt($sname . '_hidemobile') ? "checked" : "";
    ?>
 />
			</td>
			<td style="padding-left: 10px"><small>Hide this slider on all mobile devices. Useful in combination with Main Options:
			Header: Hide Header Image on Normal View to show alternate header on mobile devices.</small></td>
		</tr>

		<tr>
			<th scope="row" align="right" style="width:20%;">Auto-Hide Primary Menu:&nbsp;</th>
			<td>
			<input type="checkbox" name="<?php 
    echo $sname;
    ?>
_hidemenu" id="<?php 
    echo $sname;
    ?>
_hidemenu" <?php 
    echo weaverii_pro_getopt($sname . '_hidemenu') ? "checked" : "";
    ?>
 />
			</td>
			<td style="padding-left: 10px"><small>Automatically hide Primary Menu on desktop or wide displays (slider on desktops,
			regular menu on mobile).</small></td>
		</tr>

		<tr>
			<th scope="row" align="right">Number of Images in Menu:&nbsp;</th>
			<td>
				<input name="<?php 
    echo $sname;
    ?>
_number_images" id="<?php 
    echo $sname;
    ?>
_number_images" type="text" style="width:60px;height:22px;" class="regular-text" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_number_images'));
    ?>
" />
			<td style="padding-left: 10px"><small>Number of Images in Menu (must be between 2 and 8). Default is 7.</small></td>
			</td>
		</tr>
		<tr>
		<th scope="row" align="right">Menu Width:&nbsp;</th>
			<td>
				<input name="<?php 
    echo $sname;
    ?>
_menu_width" id="<?php 
    echo $sname;
    ?>
_menu_width" type="text" style="width:60px;height:22px;" class="regular-text" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_menu_width'));
    ?>
" />
			<td style="padding-left: 10px"><small>Overall width of Slider Menu (in px). <em>(Typically matches image width for vertical menus, theme width for horizontal menus.)</em></small></td>
			</td>
		</tr>
		<tr>
			<th scope="row" align="right">Width of each image:&nbsp;</th>
			<td>
				<input name="<?php 
    echo $sname;
    ?>
_img_width" id="<?php 
    echo $sname;
    ?>
_img_width" type="text" style="width:60px;height:22px;" class="regular-text" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img_width'));
    ?>
" />
			<td style="padding-left: 10px"><small>Enter the width of each image (in px). For horizontal sliders, this will affect the exact look of the slider effect.
			The default 320 works well with 7 horizontal images. For vertical sliders, this will be the width of the slider. <em>Use 210 width for
			slider in text widget with default sidebar. (130 is good matching height.)</em></small></td>
			</td>
		</tr>
		<tr>
			<th scope="row" align="right">Height of each image:&nbsp;</th>
			<td>
				<input name="<?php 
    echo $sname;
    ?>
_img_height" id="<?php 
    echo $sname;
    ?>
_img_height" type="text" style="width:60px;height:22px;" class="regular-text" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img_height'));
    ?>
" />
			<td style="padding-left: 10px"><small>Enter the height of each image (in px). This will determine the height of your slider menu. Default is 200. Limits are 25 and 1000.</small></td>
			</td>
		</tr>
		<tr>
			<th scope="row" align="right" style="width:20%;">Vertical Menu:&nbsp;</th>
			<td>
			<input type="checkbox" name="<?php 
    echo $sname;
    ?>
_vertical" id="<?php 
    echo $sname;
    ?>
_vertical" <?php 
    echo weaverii_pro_getopt($sname . '_vertical') ? "checked" : "";
    ?>
 />
			</td>
			<td style="padding-left: 10px"><small>Check for vertical menu.</small> <strong>|</strong> Compressed height for each image:&nbsp;
			<input name="<?php 
    echo $sname;
    ?>
_vert_compress" id="<?php 
    echo $sname;
    ?>
_vert_compress" type="text" style="width:40px;height:20px;" class="regular-text" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_vert_compress'));
    ?>
" />
			&nbsp;<small>This value, image height, and number of images interact to determine total height of vertical menu. Not used for horizontal menus.</small>
			</td>
		</tr>
		<tr>
			<th scope="row" align="right" style="width:20%;">Images Only, No Sliding:&nbsp;</th>
			<td>
			<input type="checkbox" name="<?php 
    echo $sname;
    ?>
_noeffects" id="<?php 
    echo $sname;
    ?>
_noeffects" <?php 
    echo weaverii_pro_getopt($sname . '_noeffects') ? "checked" : "";
    ?>
 />
			</td>
			<td style="padding-left: 10px"><small>Disable sliding effects. You will get an image menu only. You will have to adjust image sizes to fit.</small>
			</td>
		</tr>
		<tr>
			<th scope="row" align="right">CSS for Menu Text:&nbsp;</th>
			<td>&nbsp;</td>
			<td>
				<span style="padding-left: 10px"><small>You can control the font characteristics of the Slider Menu Text
				by editing this CSS. (Clear to blank to restore defaults.)</small></span>
				<br />
				<textarea name="<?php 
    echo $sname;
    ?>
_text_font" rows=2 style="width: 95%"><?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_text_font'));
    ?>
</textarea>
				</td>
			</td>
		</tr>
		<tr>
			<th scope="row" align="right">Slider Menu CSS:&nbsp;</th>
			<td>&nbsp;</td>
			<td>
				<span style="padding-left: 10px"><small>Edit this CSS to change menu margins, etc. Use <code>border:0;</code> for no borders. Clear to blank to restore default.</small></span>
				<br />
				<textarea name="<?php 
    echo $sname;
    ?>
_borders" rows=1 style="width: 95%"><?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_borders'));
    ?>
</textarea>
				</td>
			</td>
		</tr>
		</table>
		<h3>Slider Image Locations</h3>
		<p>
		Specify URLs for images for the menu. Each image should be
		<?php 
    echo weaveriip_default_int(weaverii_pro_getopt($sname . '_img_height'), 25, 1024, 200);
    ?>
px high and
		<?php 
    echo weaveriip_default_int(weaverii_pro_getopt($sname . '_img_width'), 25, 1024, 320);
    ?>
px wide. The most reliable place to
		keep your Slider images is in your Media Library. Click the small image icon to open the Medial Library selection dialog. Click "Insert into Post" to add URL. You can also enter any URL directly into the URL box below. If you have < 8 images, just leave the excess image links blank.</p>

		<table class="optiontable" style="padding-left:3%; padding-right:3%;">
		<tr>
			<td>
				1. Enter URL: <input type="text" name="<?php 
    echo $sname;
    ?>
_img1" id="<?php 
    echo $sname;
    ?>
_img1" size="55" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img1'));
    ?>
" /><?php 
    weaverii_media_lib_button($sname . '_img1');
    ?>
&nbsp;
			</td>
			<td>
				2. Enter URL: <input type="text" name="<?php 
    echo $sname;
    ?>
_img2" id="<?php 
    echo $sname;
    ?>
_img2" size="55" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img2'));
    ?>
" /><?php 
    weaverii_media_lib_button($sname . '_img2');
    ?>
			</td>
		</tr>
		<tr>
			<td>
				3. Enter URL: <input type="text" name="<?php 
    echo $sname;
    ?>
_img3" id="<?php 
    echo $sname;
    ?>
_img3" size="55" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img3'));
    ?>
" /><?php 
    weaverii_media_lib_button($sname . '_img3');
    ?>
&nbsp;
			</td>
			<td>
				4. Enter URL: <input type="text" name="<?php 
    echo $sname;
    ?>
_img4" id="<?php 
    echo $sname;
    ?>
_img4" size="55" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img4'));
    ?>
" /><?php 
    weaverii_media_lib_button($sname . '_img4');
    ?>
			</td>
		</tr>
		<tr>
			<td>
				5. Enter URL: <input type="text" name="<?php 
    echo $sname;
    ?>
_img5" id="<?php 
    echo $sname;
    ?>
_img5" size="55" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img5'));
    ?>
" /><?php 
    weaverii_media_lib_button($sname . '_img5');
    ?>
&nbsp;
			</td>
			<td>
				6. Enter URL: <input type="text" name="<?php 
    echo $sname;
    ?>
_img6" id="<?php 
    echo $sname;
    ?>
_img6" size="55" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img6'));
    ?>
" /><?php 
    weaverii_media_lib_button($sname . '_img6');
    ?>
			</td>
		</tr>
		<tr>
			<td>
				7. Enter URL: <input type="text" name="<?php 
    echo $sname;
    ?>
_img7" id="<?php 
    echo $sname;
    ?>
_img7" size="55" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img7'));
    ?>
" /><?php 
    weaverii_media_lib_button($sname . '_img7');
    ?>
&nbsp;
			</td>
			<td>
				8. Enter URL: <input type="text" name="<?php 
    echo $sname;
    ?>
_img8" id="<?php 
    echo $sname;
    ?>
_img8" size="55" value="<?php 
    weaverii_esc_textarea(weaverii_pro_getopt($sname . '_img8'));
    ?>
" /><?php 
    weaverii_media_lib_button($sname . '_img8');
    ?>
			</td>
		</tr>

		</table>
		<input class="button-primary" type="submit" name="weaverii_pro_save_pro" value="Save Slider Options"/>
</div>
<?php 
}