function weaverx_inject_area($name)
{
    $area_name = '' . $name . '_insert';
    $hide_front = 'hide_front_' . $name;
    $hide_rest = 'hide_rest_' . $name;
    if (weaverx_getopt_checked($hide_front) && is_front_page()) {
        return;
    }
    if (weaverx_getopt_checked($hide_rest) && !is_front_page()) {
        return;
    }
    $idinj = 'inject_' . $name;
    $add_class = 'weaverx_inject_area';
    // give them all this wrapping class
    $more_class = weaverx_getopt('inject_add_class_' . $name);
    if ($more_class) {
        $add_class .= " {$more_class}";
    }
    $html = apply_filters('weaverx_inject_area', weaverx_getopt($area_name), $name);
    $per_page_code = apply_filters('weaverx_inject_area', weaverx_get_per_page_value($name), $name);
    /* per page values */
    if (!empty($html) || !empty($per_page_code)) {
        if ($name != 'postpostcontent') {
            if ($add_class != '') {
                echo "\t<div id=\"{$idinj}\" class=\"{$add_class}\">\n";
            } else {
                echo "\t<div id=\"{$idinj}\">\n";
            }
        } else {
            echo "\t<div class=\"{$idinj} {$add_class}\">\n";
        }
        if (!empty($html)) {
            /* area insert defined? */
            if (is_front_page()) {
                weaverx_e_notopt($hide_front, do_shortcode($html));
            } else {
                weaverx_e_notopt($hide_rest, do_shortcode($html));
            }
        }
        if (!empty($per_page_code)) {
            echo do_shortcode($per_page_code);
        }
        echo "\t</div><!-- #{$idinj} -->\n";
    } else {
        if (is_customize_preview()) {
            // emit an empty class
            if ($name != 'postpostcontent') {
                if ($add_class != '') {
                    echo "\t<div id=\"{$idinj}\" class=\"{$add_class}\">\n";
                } else {
                    echo "\t<div id=\"{$idinj}\">\n";
                }
            } else {
                echo "\t<div class=\"{$idinj} {$add_class}\">\n";
            }
            $add_css = weaverx_getopt("inject_{$name}_bgcolor_css");
            // if the div has a border, it will show, so add message
            if (stripos($add_css, 'border') !== false) {
                echo __('This empty injection area with a border is displayed only in the Customizer preview.', 'weaver-xtreme');
            }
            echo "\t</div><!-- #{$idinj} -->\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');
}
             }
         }
     }
 }
 /* Start the Loop */
 $num_cols = weaverx_getopt('blog_cols');
 // default
 $pp = weaverx_get_per_page_value('_pp_wvrx_pwp_cols');
 if ($pp) {
     $num_cols = $pp;
 }
 if (!$num_cols || $num_cols > 3) {
     $num_cols = 1;
 }
 $sticky_one = weaverx_getopt_checked('blog_sticky_one') && $paged <= 1;
 $first_one = weaverx_getopt_checked('blog_first_one') && $paged <= 1;
 $masonry_wrap = false;
 // need this for one-column posts
 $col = 0;
 $hide_n_posts = weaverx_get_per_page_value('_pp_hide_n_posts');
 if ($hide_n_posts == '' || $hide_n_posts < 1 || $hide_n_posts > 100) {
     $hide_n_posts = 0;
 }
 weaverx_post_count_clear();
 echo "<div class=\"wvrx-posts\">\n";
 while (have_posts()) {
     the_post();
     weaverx_post_count_bump();
     if (weaverx_post_count() <= $hide_n_posts) {
         global $page, $paged;
         if (!($paged >= 2 || $page >= 2)) {
function weaverx_form_text_props($value, $type = 'titles')
{
    // display text properties for an area or title
    $id = $value['id'];
    $name = $value['name'];
    $info = $value['info'];
    $id_colorbg = $id . '_bgcolor';
    $id_color = $id . '_color';
    $id_size = $id . '_font_size';
    $id_family = $id . '_font_family';
    $id_bold = $id . '_bold';
    $id_normal = $id . '_normal';
    $id_italic = $id . '_italic';
    // COLOR BG & COLOR BOX
    if ($id == 'wrapper') {
        echo '<tr><td></td><td colspan="2"><p>';
        _e('<strong>Important note:</strong> The Wrapper Area provides default
<em>background color, text color, and text font properties</em>
for most other areas, including Header, Container, Content, Widgets, and more.', 'weaver-xtreme');
        echo "</p></td></tr>\n";
    }
    //echo "\n<!-- *************************** weaverx_form_text_props ID: {$id} ***************************** -->\n";
    weaverx_form_ctext(array('name' => $name . ' BG', 'id' => $id_colorbg, 'info' => '<em>' . $info . __(':</em> Background Color (use CSS+ to specify custom CSS for area)', 'weaver-xtreme')));
    if ($type == 'menu' || $id == 'post_title') {
        weaverx_form_ctext(array('name' => $name . ' ' . __('Text Color', 'weaver-xtreme'), 'id' => $id_color, 'info' => '<em>' . $info . __(':</em> Text properties', 'weaver-xtreme')));
    } else {
        weaverx_form_color(array('name' => $name . ' ' . __('Text Color', 'weaver-xtreme'), 'id' => $id_color, 'info' => '<em>' . $info . __(':</em> Text properties', 'weaver-xtreme')));
    }
    // FONT PROPERTIES
    ?>
	<tr>
	<th scope="row" align="right"><span class="i-left font-bold font-italic"><span style="font-size:16px;">a</span><span style="font-size:14px;">b</span><span style="font-size:12px;">c</span></span><small>
	<?php 
    echo $type == 'titles' ? __('Title', 'weaver-xtreme') : __('Text', 'weaver-xtreme');
    ?>
	<?php 
    _e('Font properties:', 'weaver-xtreme');
    ?>
</small>&nbsp;</th>
	<td colspan="2">
		<?php 
    if ($type != 'content') {
        echo '&nbsp;<span class="rtl-break"><small><em>Size:</em></small>';
        weaverx_form_select_font_size(array('id' => $id_size), false);
        echo '</span>';
    }
    echo '&nbsp;<span class="rtl-break"><small><em>Family:</em></small>';
    weaverx_form_select_font_family(array('id' => $id_family), false);
    echo '</span>';
    ?>

		<?php 
    if ($type == 'titles') {
        ?>
		&nbsp;<span class="rtl-break"><small><?php 
        _e('Normal Weight', 'weaver-xtreme');
        ?>
</small>
		<input type="checkbox" name="<?php 
        weaverx_sapi_main_name($id_normal);
        ?>
" id="<?php 
        echo $id_normal;
        ?>
"
<?php 
        checked(weaverx_getopt_checked($id_normal));
        ?>
 ></span>

		<?php 
    } else {
        ?>
		&nbsp;<span class="rtl-break"><small><strong><?php 
        _e('Bold', 'weaver-xtreme');
        ?>
</strong></small>
<?php 
        weaverx_form_font_bold_italic(array('id' => $id_bold));
        /*		<input type="checkbox" name="<?php weaverx_sapi_main_name($id_bold); ?>" id="<?php echo $id_bold; ?>"
        <?php checked(weaverx_getopt_checked( $id_bold )); ?> >
        */
        ?>
		</span>
		<?php 
    }
    ?>
		&nbsp;<span class="rtl-break">
		<small><em><?php 
    _e('Italic', 'weaver-xtreme');
    ?>
</em></small>
<?php 
    weaverx_form_font_bold_italic(array('id' => $id_italic));
    /*		<input type="checkbox" name="<?php weaverx_sapi_main_name($id_italic); ?>" id="<?php echo $id_italic; ?>"
    /<?php checked(weaverx_getopt_checked( $id_italic )); ?> >
    */
    ?>
		</span>
<?php 
    if (apply_filters('weaverx_xtra_type', '+plus_fonts') == 'inactive') {
        echo '<small>&nbsp;&nbsp; ' . __('(Add new fonts with <em>Weaver Xtreme Plus</em>)', 'weaver-xtreme') . '</small>';
    } else {
        echo '<small>&nbsp;&nbsp; ' . __('(Add new fonts from Custom &amp; Fonts tab.)', 'weaver-xtreme') . '</small>';
    }
    ?>
	</td>
	</tr>
<?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_do_excerpt()
{
    // return true if this kind of page should be excerpted
    if (weaverx_t_get('show') == 'excerpt') {
        // for Weaver Xtreme Plus
        return true;
    }
    if (weaverx_t_get('show') == 'full') {
        // for Weaver Xtreme Plus
        return false;
    }
    if (weaverx_is_checked_post_opt('_pp_force_post_excerpt')) {
        return true;
    }
    if (weaverx_is_checked_post_opt('_pp_force_post_full')) {
        return false;
    }
    $n1 = weaverx_get_per_page_value('_pp_fullposts');
    if (!$n1) {
        $n1 = weaverx_getopt('fullpost_first');
    }
    if ($n1) {
        global $page, $paged;
        if (!($paged >= 2 || $page >= 2) && weaverx_post_count() <= $n1) {
            return false;
        }
    }
    $pwp = weaverx_get_per_page_value('_pp_wvrx_pwp_type');
    if ($pwp == 'full') {
        // need to check before archive/search
        return false;
    }
    // override global setting
    if ($pwp == 'excerpt') {
        return true;
    }
    // override global setting
    if (is_search()) {
        return !weaverx_getopt_checked('fullpost_search');
    }
    if (is_archive()) {
        return !weaverx_getopt_checked('fullpost_archive');
    }
    return !weaverx_getopt_checked('fullpost_blog');
}
function weaverx_st_pick_theme($list_in)
{
    // output the form to select a file list from weaverx-subthemes directory
    $list = $list_in;
    natcasesort($list);
    $cur_theme = weaverx_getopt('theme_filename');
    if (!$cur_theme) {
        $cur_theme = WEAVERX_DEFAULT_THEME;
    }
    // the default theme
    ?>
<form enctype="multipart/form-data" name='pick_theme' method='post' onSubmit="return confirm('<?php 
    _e('Are you sure you want select a new theme?\\r\\n\\r\\nSelecting a new subtheme will overwrite your existing theme settings. You should save your existing settings on the Save/Restore menu if you have made changes.', 'weaver-xtreme');
    ?>
');" >
	&nbsp;&nbsp;<strong><?php 
    _e('Click a Radio Button below to select a subtheme:', 'weaver-xtreme');
    ?>
 &nbsp;</strong>
	<span style="padding-left:100px;"><?php 
    _e('Current theme:', 'weaver-xtreme');
    ?>
 <strong>
<?php 
    $cur_addon = weaverx_getopt('addon_name');
    if ($cur_addon == '') {
        echo ucwords(str_replace('-', ' ', $cur_theme));
    } else {
        echo __('Add-on Subtheme: ', 'weaver-xtreme') . ucwords(str_replace('-', ' ', $cur_addon));
        $cur_theme = '';
    }
    ?>
	</strong></span>

	<br /><br />
<?php 
    //weaverx_confirm_select_theme();
    ?>
	<input class="button-primary" name="set_subtheme" type="submit" value="<?php 
    _e('Set to Selected Subtheme', 'weaver-xtreme');
    ?>
" />

	<p style="color:#b00;font-weight:bold;font-size:120%"><br /><?php 
    _e('<em>Note:</em> Before switching to any subtheme, you must Save and download a copy of your settings using the Save / Restore page, in order to be able to go back to them if required.', 'weaver-xtreme');
    ?>
</p>
<?php 
    weaverx_nonce_field('set_subtheme');
    $thumbs = weaverx_relative_url('subthemes/');
    foreach ($list as $addon) {
        $name = ucwords(str_replace('-', ' ', $addon));
        ?>
	<div style="float:left; width:200px;">
		<label><input type="radio" name="theme_picked"
<?php 
        echo 'value="' . $addon . '" ' . ($cur_theme == $addon ? 'checked' : '') . '/> <strong>' . $name . '</strong><br />';
        if (!weaverx_getopt('_hide_theme_thumbs')) {
            echo '<img style="border: 1px solid gray; margin: 5px 0px 10px 0px;" src="' . esc_url($thumbs . $addon . '.jpg') . '" width="150px" height="113px" alt="thumb" /></label></div>' . "\n";
        } else {
            echo "</label></div>\n";
        }
    }
    if (!weaverx_getopt_checked('_hide_theme_thumbs')) {
        weaverx_clear_both();
        ?>
	<span class='submit' style='padding-top:6px;'><input class="button-primary" name="set_subtheme" type="submit" value="<?php 
        _e('Set to Selected Subtheme', 'weaver-xtreme');
        ?>
" /></span>
<?php 
    }
    ?>

	</form>
	<div style="clear:both;padding-top:6px;"></div>

	<form enctype="multipart/form-data" name='hide_thumbs_form' method='post'>
<?php 
    $hide_msg = weaverx_getopt('_hide_theme_thumbs') ? __('Show Subtheme Thumbnails', 'weaver-xtreme') : __('Hide Subtheme Thumbnails', 'weaver-xtreme');
    ?>
	<input class="button-primary" name="hide_thumbs" type="submit" value="<?php 
    echo $hide_msg;
    ?>
" />
<?php 
    weaverx_nonce_field('hide_thumbs');
    ?>
	</form>
	<div style="clear:both;"></div>
	<hr />
<?php 
    do_action('weaverx_child_show_extrathemes');
    do_action('weaverxplus_admin', 'show_subthemes');
}
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');
}
function weaverx_use_inline_css($css_file)
{
    return weaverx_getopt_checked('_inline_style') || !weaverx_f_file_access_available() || !weaverx_f_exists($css_file) || isset($_REQUEST['wp_customize']);
    // also force inline from customizer
}
weaverx_the_post_full();
weaverx_link_pages();
?>
			</div><!-- .entry-description -->
		</div><!-- .entry-content -->

	</article><!-- #post-<?php 
the_ID();
?>
 -->
	<nav id="nav-below">
		<h3 class="assistive-text"><?php 
echo __('Image navigation', 'weaver-xtreme');
?>
</h3>
		<span class="nav-previous"><?php 
previous_image_link(false, __('&larr; Previous', 'weaver-xtreme'));
?>
</span>
		<span class="nav-next"><?php 
next_image_link(false, __('Next &rarr;', 'weaver-xtreme'));
?>
</span>
	</nav><!-- #nav-below -->
	<?php 
if (weaverx_getopt_checked('allow_attachment_comments')) {
    comments_template();
}
weaverx_sb_postcontent('image');
weaverx_page_tail('image', $sb_layout);
// end of page wrap
function weaverx_put_rule_if_not_checked($sout, $id, $rule)
{
    // put just a rule if not checked
    if (!weaverx_getopt_checked($id)) {
        weaverx_f_write($sout, $rule . "\n");
    }
}
	<?php 
    if (weaverx_getopt('single_nav_style') == 'prev_next') {
        ?>
		<div class="nav-previous"><?php 
        previous_post_link('%link', __('<span class="meta-nav">&larr;</span> Previous', 'weaver-xtreme'), $cats);
        ?>
</div>
		<div class="nav-next"><?php 
        next_post_link('%link', __('Next <span class="meta-nav">&rarr;</span>', 'weaver-xtreme'), $cats);
        ?>
</div>
	<?php 
    } else {
        ?>
		<div class="nav-previous"><?php 
        previous_post_link('%link', '<span class="meta-nav">' . _x('&larr;', 'Previous post link', 'weaver-xtreme') . '</span> %title', weaverx_getopt_checked('single_nav_link_cats'));
        ?>
</div>
		<div class="nav-next"><?php 
        next_post_link('%link', '%title <span class="meta-nav">' . _x('&rarr;', 'Next post link', 'weaver-xtreme') . '</span>', $cats);
        ?>
</div>
	<?php 
    }
    ?>
	</nav><!-- #nav-above -->

	<?php 
    comments_template('', true);
}
// end of the loop.
 /**
  * Define the sections and settings for the spacing panel
  */
 function weaverx_customizer_define_spacing_sections($sections)
 {
     $panel = 'weaverx_spacing';
     $spacing_sections = array();
     // global settings
     $spacing_sections['spacing-global'] = array('panel' => $panel, 'title' => __('Global Spacing Options', 'weaver-xtreme'), 'description' => 'Set some global settings that affect spacing, width, and alignment.', 'options' => array('theme_width_int' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 940), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Theme Width (px)', 'weaver-xtreme'), 'description' => __('This options sets the maximum width of your site. Your site will automatically display responsively on tablets and phones. You can manually set the value to 9999 for full screen width, or to any other value you want. Widths less than 768px may give unexpected results on mobile devices. Weaver Xtreme can not create a fixed-width site.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 770, 'max' => 3200, 'step' => 10))), 'spacing-line-1' => array('control' => array('control_type' => 'WeaverX_Misc_Control', 'type' => 'line')), 'smart_margin_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 1.0), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Smart Margin Width (%)', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Width used for smart column margins for Sidebars and Content Area. (Default: 1%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0.25, 'max' => 10.0, 'step' => 0.25)))));
     /**
      * General
      */
     $container_width_transport = weaverx_getopt_checked('container_extend_width') ? 'refresh' : 'postMessage';
     $container_refresh = weaverx_getopt_checked('container_extend_width') ? WEAVERX_REFRESH_ICON : '';
     $spacing_sections['spacing-wrapping'] = array('panel' => $panel, 'title' => __('Wrapping Areas', 'weaver-xtreme'), 'description' => 'Set margins, padding, spacing, heights, positioning, and widths for site wrapper and container.', 'options' => array('full_browser_height' => array('setting' => array(), 'control' => array('label' => __('Full Browser Height', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('For short pages, add extra padding to  of content to force full browser height.', 'weaver-xtreme'), 'type' => 'checkbox')), 'wrapper-space-heading' => weaverx_cz_group_title(__('Global Wrapper Area', 'weaver-xtreme'), __('The Wrapper is the &lt;div&gt; that wraps entire site.', 'weaver-xtreme')), 'wrapper_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'description' => __('These options control the padding (inner space) around the area.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'wrapper_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'wrapper_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'wrapper_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'wrapper_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'description' => __('Set Top and Bottom Margins. <em>Side margins are auto-generated.</em>', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'wrapper_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'container-space-heading' => weaverx_cz_group_title(__('Container Area', 'weaver-xtreme'), __('The Container is the &lt;div&gt; that wraps the content. Does not include Header and Footer.', 'weaver-xtreme')), 'container_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => $container_width_transport, 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Container Width (%)', 'weaver-xtreme') . $container_refresh, 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Container "Center align" setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'container_max_width_int' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 2000), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Container Area Max Width (px)', 'weaver-xtreme') . WEAVERX_PLUS_ICON, 'description' => __('This advanced option allows you to set a maximum width for this area. This is not commonly used, but can make interesting designs, especially if you center align the area.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 480, 'max' => 4000, 'step' => 5))), 'container_align' => weaverx_cz_select(__('Align Container Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'float-left', $container_width_transport), 'container_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'description' => __('These options control the padding (inner space) around the area.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'container_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'container_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => $container_width_transport, 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme') . $container_refresh, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'container_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => $container_width_transport, 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme') . $container_refresh, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'container_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'container_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1)))));
     /**
      * Site Header
      *
      */
     $hdr_width_transport = weaverx_getopt_checked('header_extend_width') ? 'refresh' : 'postMessage';
     $hdr_refresh = weaverx_getopt_checked('header_extend_width') ? WEAVERX_REFRESH_ICON : '';
     $spacing_sections['spacing-header'] = array('panel' => $panel, 'title' => __('Header Area', 'weaver-xtreme'), 'description' => __('Set spacing for Header Area. Option groups include <span style="color:blue;">Site Header Area, Site Title and Tagline, Header Widget Area</span>, and <span style="color:blue;">Header HTML Area</span>.', 'weaver-xtreme'), 'options' => array('spacing-heading-header' => weaverx_cz_group_title(__('Site Header Area', 'weaver-xtreme'), __('Spacing of the whole Header Area', 'weaver-xtreme')), 'header_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => $hdr_width_transport, 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Header Area Width (%)', 'weaver-xtreme') . $hdr_refresh, 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Header "Center align" setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'header_max_width_int' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 2000), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Header Area Max Width (px)', 'weaver-xtreme') . WEAVERX_PLUS_ICON, 'description' => __('This advanced option allows you to set a maximum width for this area. This is not commonly used, but can make interesting designs, especially if you center align the area.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 480, 'max' => 4000, 'step' => 5))), 'header_align' => weaverx_cz_select(__('Align Header Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'float-left', 'postMessage'), 'header_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'description' => __('These options control the padding (inner space) around the area.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => $hdr_width_transport, 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme') . $hdr_refresh, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => $hdr_width_transport, 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme') . $hdr_refresh, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-title-header' => weaverx_cz_group_title(__('Site Title and Tagline', 'weaver-xtreme'), __('Spacing for the Site Title and Tagline', 'weaver-xtreme')), 'title_over_image' => array('setting' => array(), 'control' => array('label' => __('Move Title/Tagline over Image', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Move the Title, Tagline, Search, Logo/HTML and Mini Menu over the Header Image.', 'weaver-xtreme'), 'type' => 'checkbox')), 'spacing-titleposition' => weaverx_cz_heading(__('Title Position', 'weaver-xtreme'), __('Adjust left and top margins for Title. Decimal and negative values allowed.', 'weaver-xtreme')), 'site_title_position_xy_X' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 7), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Site Title Left Margin (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => -20, 'max' => 50, 'step' => 0.25))), 'site_title_position_xy_Y' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 0.25), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Site Title Top Margin (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => -50, 'max' => 50, 'step' => 0.25))), 'site_title_max_w' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 90), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Site Title Maximum Width (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 1))), 'spacing-tagposition' => weaverx_cz_heading(__('Tagline Position', 'weaver-xtreme'), __('Adjust left and top margins for Tagline. Decimal and negative values allowed.', 'weaver-xtreme')), 'tagline_xy_X' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 10), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Site Tagline Left Margin (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => -20, 'max' => 50, 'step' => 0.25))), 'tagline_xy_Y' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Site Tagline Top Margin (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => -50, 'max' => 50, 'step' => 0.25))), 'tagline_max_w' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 90), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Site Tagline Maximum Width (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 1))), 'spacing-mm-note' => weaverx_cz_heading(__('Header Mini Menu Top Margin', 'weaver-xtreme'), __('This setting is found on the <em>Spacing &rarr; Menus</em>.', 'weaver-xtreme')), 'spacing-widgetarea-header' => weaverx_cz_group_title(__('Header Widget Area', 'weaver-xtreme'), __('Spacing for the Header Widget Area', 'weaver-xtreme')), 'header_sb_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Header Widget Area Width (%)', 'weaver-xtreme'), 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Align Header Widget Area "Center align" setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'header_sb_align' => weaverx_cz_select(__('Align Header Widget Area Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'header_sb_align', 'refresh'), 'header_sb_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_sb_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_sb_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_sb_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_sb_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_sb_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-heading-widgets' => weaverx_cz_heading(__('Widget Area Columns', 'weaver-xtreme'), __('<strong>NOTE:</strong> You can set number of columns per widget area on the <em>Layout</em> panel.', 'weaver-xtreme')), 'spacing-htmltarea-header' => weaverx_cz_group_title(__('Header HTML Area', 'weaver-xtreme'), __('Spacing for the Header HTML Area', 'weaver-xtreme')), 'header_html_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Header HTML Area Width (%)', 'weaver-xtreme'), 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Align HTML Area "Center align" setting. You will have to "Save & Publish" and refresh this page if you are using Center Area align.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'header_html_align' => weaverx_cz_select(__('Align Header HTML Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'float-left', 'refresh'), 'header_html_center_content' => array('setting' => array('transport' => 'postMessage'), 'control' => array('label' => __('Center Content within HTML Area', 'weaver-xtreme'), 'type' => 'checkbox')), 'header_html_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_html_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_html_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_html_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_html_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'header_html_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1)))));
     /**
      * Main Menu
      */
     $spacing_sections['spacing-menus'] = array('panel' => $panel, 'title' => __('Menus', 'weaver-xtreme'), 'description' => __('Set spacing for Primary, Secondary, and Extra Menus.', 'weaver-xtreme'), 'options' => array('primary-mm-title' => weaverx_cz_group_title(__('Primary Menu', 'weaver-xtreme')), 'm_primary_align' => weaverx_cz_select(__('Align Primary Menu Bar', 'weaver-xtreme'), __('Align this menu on desktop view. Mobile, accordion, and vertical menus always left aligned.', 'weaver-xtreme'), 'weaverx_cz_choices_align_menu', 'float-left'), 'm_primary_menu_pad_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 0.6), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Desktop Menu Vertical Padding (em)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Add vertical padding to Desktop menu bar and submenus.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 10, 'step' => 0.1))), 'm_primary_top_margin_dec' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Menu Top Margin (px)', 'weaver-xtreme'), 'description' => '', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 1))), 'm_primary_bottom_margin_dec' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Menu Bottom Margin (px)', 'weaver-xtreme'), 'description' => '', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 1))), 'm_primary_right_padding_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 0.0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Desktop Menu Spacing (em)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Add space between desktop menu bar items. (not on Smart Menus)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0.0, 'max' => 6, 'step' => 0.2))), 'm_primary_html_margin_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 0), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Menu HTML: Top Margin (em)', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Margin above Added Menu HTML (Used to adjust for Desktop menu. Negative values can help.)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => -5.0, 'max' => 5.0, 'step' => 0.1))), 'spacing-pm-line1' => weaverx_cz_line(), 'spacing-sm-heading' => weaverx_cz_group_title(__('Secondary Menu', 'weaver-xtreme'), __('You must define a Secondary Menu from the Custom Menus Content menu.', 'weaver-xtreme')), 'm_secondary_align' => weaverx_cz_select(__('Align Secondary Menu Bar', 'weaver-xtreme'), __('Align this menu on desktop view. Mobile, accordion, and vertical menus always left aligned.', 'weaver-xtreme'), 'weaverx_cz_choices_align_menu', 'float-left'), 'm_secondary_menu_pad_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 0.6), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Desktop Menu Vertical Padding (em)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Add vertical padding to Desktop menu bar and submenus.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 10, 'step' => 0.1))), 'm_secondary_top_margin_dec' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Menu Top Margin (px)', 'weaver-xtreme'), 'description' => '', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 1))), 'm_secondary_bottom_margin_dec' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Menu Bottom Margin (px)', 'weaver-xtreme'), 'description' => '', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 1))), 'm_secondary_right_padding_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 0.0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Desktop Menu Spacing (em)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Add space between desktop menu bar items. (not on Smart Menus)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0.0, 'max' => 6, 'step' => 0.2))), 'm_secondary_html_margin_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 0), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Menu HTML: Top Margin (em)', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Margin above Added Menu HTML (Used to adjust for Desktop menu. Negative values can help.)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => -5.0, 'max' => 5.0, 'step' => 0.1))), 'spacing-mm-heading' => weaverx_cz_group_title(__('Header Mini Menu', 'weaver-xtreme'), ''), 'm_header_mini_top_margin_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 0.0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Mini Menu Top Margin (em))', 'weaver-xtreme'), 'description' => __('Top margin for Header Mini Menu. Negative value moves it up. (Default: -1.0em', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => -10.0, 'max' => 10.0, 'step' => 0.25)))));
     if (weaverx_cz_is_plus()) {
         $new_opts = array('spacing-xm-line1' => weaverx_cz_line(), 'extra-mm-title' => weaverx_cz_group_title(__('Extra Menu', 'weaver-xtreme') . WEAVERX_PLUS_ICON), 'm_extra_align' => weaverx_cz_select(__('Align Extra Menu Bar', 'weaver-xtreme'), __('Align this menu on desktop view. Mobile, accordion, and vertical menus always left aligned.', 'weaver-xtreme'), 'weaverx_cz_choices_align_menu', 'float-left'), 'm_extra_menu_pad_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 0.6), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Desktop Menu Vertical Padding (em)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Add vertical padding to Desktop menu bar and submenus.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 10, 'step' => 0.1))), 'm_extra_top_margin_dec' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Menu Top Margin (px)', 'weaver-xtreme'), 'description' => '', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 1))), 'm_extra_bottom_margin_dec' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Menu Bottom Margin (px)', 'weaver-xtreme'), 'description' => '', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 1))), 'm_extra_right_padding_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 0.0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Desktop Menu Spacing (em)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Add space between desktop menu bar items. (not on Smart Menus)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0.0, 'max' => 6, 'step' => 0.2))), 'm_extra_html_margin_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 0), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Menu HTML: Top Margin (em)', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Margin above Added Menu HTML (Used to adjust for Desktop menu. Negative values can help.)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => -5.0, 'max' => 5.0, 'step' => 0.1))));
     } else {
         $new_opts = weaverx_cz_add_plus_message('spacing_menus', __('Extra Menu', 'weaver-xtreme'), __('Add extra menus with <strong>Weaver Xtreme Plus</strong>.', 'weaver-xtreme'));
     }
     // add stub or extra menu options
     $spacing_sections['spacing-menus']['options'] = array_merge($spacing_sections['spacing-menus']['options'], $new_opts);
     /**
      * Info Bar
      */
     $spacing_sections['spacing-info-bar'] = array('panel' => $panel, 'title' => __('Info Bar', 'weaver-xtreme'), 'description' => __('Info Bar with breadcrumbs and paged navigation displayed under Primary Menu.', 'weaver-xtreme'), 'options' => array('spacing-info-bar-heading' => weaverx_cz_heading(__('Info Bar', 'weaver-xtreme')), 'infobar_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Info Bar Width (%)', 'weaver-xtreme'), 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Info Bar "Center align" setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'infobar_align' => weaverx_cz_select(__('Align Info Bar Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'float-left', 'refresh'), 'infobar_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 5), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'description' => __('These options control the padding (inner space) around the area.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'infobar_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 5), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'infobar_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 5), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'infobar_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 5), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'infobar_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'infobar_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1)))));
     /**
      * Content
      */
     $spacing_sections['spacing-content'] = array('panel' => $panel, 'title' => __('Content', 'weaver-xtreme'), 'description' => __('Spacing for general page and post content.', 'weaver-xtreme'), 'options' => array('content_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 4), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'content_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'content_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 2), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 0.25))), 'content_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 2), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 0.25))), 'content_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'content_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-content-widthinfo' => weaverx_cz_heading(__('Width', 'weaver-xtreme'), __('The width of this area is automatically determined by the enclosing area.', 'weaver-xtreme')), 'content_smartmargin' => array('setting' => array(), 'control' => array('label' => __('Add Side Margin(s)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Automatically add left/right "smart" margins for separation of areas (sidebar/content). This is normally used only if you have borders or BG colors for your sidebars.', 'weaver-xtreme'), 'type' => 'checkbox')), 'space_after_title_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 1.0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Space Between Title and Content (em)', 'weaver-xtreme'), 'description' => __('Space between Page or Post title and beginning of content.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 20.0, 'step' => 0.1))), 'content_p_list_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Space after paragraphs and lists (em)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 20.0, 'step' => 0.1)))));
     /**
      * Post Specific
      */
     $spacing_sections['spacing-post-specific'] = array('panel' => $panel, 'title' => __('Post Specific', 'weaver-xtreme'), 'description' => __('Post Specific spacing - override Content spacing.', 'weaver-xtreme'), 'options' => array('post_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'post_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'post_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 0.25))), 'post_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (%)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 30, 'step' => 0.25))), 'post_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'post_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-post-widthinfo' => weaverx_cz_heading(__('Width', 'weaver-xtreme'), __('The width of this area is automatically determined by the enclosing area.', 'weaver-xtreme')), 'post_smartmargin' => array('setting' => array(), 'control' => array('label' => __('Add Side Margin(s)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Automatically add left/right "smart" margins for separation of areas (sidebar/content). This is normally used only if you have borders or BG colors for your sidebars.', 'weaver-xtreme'), 'type' => 'checkbox')), 'post_title_bottom_margin_dec' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 0.2), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Space Between Post Title and Content (em)', 'weaver-xtreme'), 'description' => __('Space between Post title and beginning of content. This will adjust/override the equivalent Content setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => -5.0, 'max' => 20.0, 'step' => 0.1)))));
     /**
      * Sidebars
      */
     $spacing_sections['spacing-sidebars'] = array('panel' => $panel, 'title' => __('Sidebars / Widget Areas', 'weaver-xtreme'), 'description' => __('Main Sidebars and Widget areas.', 'weaver-xtreme'), 'options' => array('spacing-sidbars-heading' => weaverx_cz_group_title(__('Sidebar Widths', 'weaver-xtreme'), __('Width of the left and right vertical sidebars in the Container Area. Note that the width of the adjoining Content area is automatically determined by the sidebar layouts and widths.', 'weaver-xtreme')), 'left_sb_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 25), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Sidebar Width (%)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 90, 'step' => 0.5))), 'right_sb_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 25), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Sidebar Width (%)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 90, 'step' => 0.5))), 'left_split_sb_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 25), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Width for Split Sidebar, Left Side', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 0.5))), 'right_split_sb_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'refresh', 'default' => 25), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Width for Split Sidebar, Right Side', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 0.5))), 'spacing-primary-widget-heading' => weaverx_cz_group_title(__('Primary Widget Area', 'weaver-xtreme')), 'primary_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'primary_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'primary_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'primary_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'primary_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'primary_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-primary-widthinfo' => weaverx_cz_heading(__('Width', 'weaver-xtreme'), __('The width of this area is automatically determined by the enclosing area.', 'weaver-xtreme')), 'primary_smartmargin' => array('setting' => array(), 'control' => array('label' => __('Add Side Margin(s)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Automatically add left/right "smart" margins for separation of areas (sidebar/content). This is normally used only if you have borders or BG colors for your sidebars.', 'weaver-xtreme'), 'type' => 'checkbox')), 'spacing-primary-widgets' => weaverx_cz_heading(__('Widget Area Columns', 'weaver-xtreme'), __('<strong>NOTE:</strong> You can set number of columns per widget area on the <em>Layout</em> panel.', 'weaver-xtreme')), 'spacing-secondary-widget-heading' => weaverx_cz_group_title(__('Secondary Widget Area', 'weaver-xtreme')), 'secondary_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'secondary_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'secondary_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'secondary_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'secondary_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'secondary_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-secondary-widthinfo' => weaverx_cz_heading(__('Width', 'weaver-xtreme'), __('The width of this area is automatically determined by the enclosing area.', 'weaver-xtreme')), 'secondary_smartmargin' => array('setting' => array(), 'control' => array('label' => __('Add Side Margin(s)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Automatically add left/right "smart" margins for separation of areas (sidebar/content). This is normally used only if you have borders or BG colors for your sidebars.', 'weaver-xtreme'), 'type' => 'checkbox')), 'spacing-secondary-widgets' => weaverx_cz_heading(__('Widget Area Columns', 'weaver-xtreme'), __('<strong>NOTE:</strong> You can set number of columns per widget area on the <em>Layout</em> panel.', 'weaver-xtreme')), 'spacing-top-widget-heading' => weaverx_cz_group_title(__('Top Widget Areas', 'weaver-xtreme'), __('Properties for all Top Widget areas (Sitewide, Pages, Blog, Archive).', 'weaver-xtreme')), 'top_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Widget Areas Width (%)', 'weaver-xtreme'), 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Container "Center align" setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'top_align' => weaverx_cz_select(__('Align Container Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'float-left', 'postMessage'), 'top_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'top_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'top_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'top_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'top_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 10), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'top_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 10), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-top-widgets' => weaverx_cz_heading(__('Widget Area Columns', 'weaver-xtreme'), __('<strong>NOTE:</strong> You can set number of columns per widget area on the <em>Layout</em> panel.', 'weaver-xtreme')), 'spacing-bottom-widget-heading' => weaverx_cz_group_title(__('Bottom Widget Areas', 'weaver-xtreme'), __('Properties for all Bottom Widget areas (Sitewide, Pages, Blog, Archive).', 'weaver-xtreme')), 'bottom_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Widget Areas Width (%)', 'weaver-xtreme'), 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Container "Center align" setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'bottom_align' => weaverx_cz_select(__('Align Container Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'float-left', 'postMessage'), 'bottom_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'bottom_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'bottom_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'bottom_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'bottom_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 10), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'bottom_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 10), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-bottom-widgets' => weaverx_cz_heading(__('Widget Area Columns', 'weaver-xtreme'), __('<strong>NOTE:</strong> You can set number of columns per widget area on the <em>Layout</em> panel.', 'weaver-xtreme'))));
     /**
      * Widgets
      */
     $spacing_sections['spacing-widgets'] = array('panel' => $panel, 'title' => __('Individual Widgets', 'weaver-xtreme'), 'description' => __('Padding and Margins for Individual Widgets. Widget width responsively determined by enclosing area.', 'weaver-xtreme'), 'options' => array('widget_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'widget_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'widget_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'widget_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'widget_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'widget_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1)))));
     /**
      * Footer
      */
     $foot_width_transport = weaverx_getopt_checked('footer_extend_width') ? 'refresh' : 'postMessage';
     $foot_refresh = weaverx_getopt_checked('footer_extend_width') ? WEAVERX_REFRESH_ICON : '';
     $spacing_sections['spacing-footer'] = array('panel' => $panel, 'title' => __('Footer Area', 'weaver-xtreme'), 'description' => __('Set spacing for Footer Area. Option groups include <span style="color:blue;">Site Footer Area, Site Title and Tagline, Footer Widget Area</span>, and <span style="color:blue;">Footer HTML Area</span>.', 'weaver-xtreme'), 'options' => array('spacing-heading-footer' => weaverx_cz_group_title(__('Site Footer Area', 'weaver-xtreme'), __('Spacing of the whole Footer Area', 'weaver-xtreme')), 'footer_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => $foot_width_transport, 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Footer Area Width (%)', 'weaver-xtreme') . $foot_refresh, 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Footer "Center align" setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'footer_max_width_int' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 2000), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Footer Area Max Width (px)', 'weaver-xtreme') . WEAVERX_PLUS_ICON, 'description' => __('This advanced option allows you to set a maximum width for this area. This is not commonly used, but can make interesting designs, especially if you center align the area.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 480, 'max' => 4000, 'step' => 5))), 'footer_align' => weaverx_cz_select(__('Align Footer Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'float-left', $foot_width_transport), 'footer_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'description' => __('These options control the padding (inner space) around the area.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => $foot_refresh, 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme') . $foot_refresh, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => $foot_width_transport, 'default' => 8), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme') . $foot_refresh, 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-widgetarea-footer' => weaverx_cz_group_title(__('Footer Widget Area', 'weaver-xtreme'), __('Spacing for the Footer Widget Area', 'weaver-xtreme')), 'footer_sb_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Footer Widget Area Width (%)', 'weaver-xtreme'), 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Align Footer Widget Area "Center align" setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'footer_sb_align' => weaverx_cz_select(__('Align Footer Widget Area Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'postMessage', 'postMessage'), 'footer_sb_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_sb_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_sb_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_sb_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_sb_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_sb_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'spacing-footer-widgets' => weaverx_cz_heading(__('Widget Area Columns', 'weaver-xtreme'), __('<strong>NOTE:</strong> You can set number of columns per widget area on the <em>Layout</em> panel.', 'weaver-xtreme')), 'spacing-htmltarea-footer' => weaverx_cz_group_title(__('Footer HTML Area', 'weaver-xtreme'), __('Spacing for the Footer HTML Area', 'weaver-xtreme')), 'footer_html_width_int' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_float', 'transport' => 'postMessage', 'default' => 100), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Footer HTML Area Width (%)', 'weaver-xtreme'), 'description' => __('Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Align HTML Area "Center align" setting. You will have to "Save & Publish" and refresh this page if you are using Center Area align.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'footer_html_align' => weaverx_cz_select(__('Align Footer HTML Area', 'weaver-xtreme'), '', 'weaverx_cz_choices_align', 'float-left', 'refresh'), 'footer_html_center_content' => array('setting' => array('transport' => 'postMessage'), 'control' => array('label' => __('Center Content within HTML Area', 'weaver-xtreme'), 'type' => 'checkbox')), 'footer_html_padding_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_html_padding_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_html_padding_L' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Left Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_html_padding_R' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Right Padding (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_html_margin_T' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Top Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))), 'footer_html_margin_B' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Bottom Margin (px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1)))));
     $spacing_sections['spacing-fullwidth'] = array('panel' => $panel, 'title' => __('Full Width Site', 'weaver-xtreme'), 'description' => __('Weaver Xtreme features several options specifically designed to create exciting full width site designs. Although one could logically place these options in other panels, putting most of them all here is easier. The overall site width is still on the <em>Spacing &rarr; Global Spacing<em> panel. <strong>You likely want to change the default site width.</strong> Using the options available here, the strategy is to confine you content to a reasonable width, perhaps 1600 or 1900. Then you can extend attribute to the full screen width without making your content area too wide. You can also get interesting effects by adjusting the widths of each of these sections on the <em>Spacing</em> panel. Just play with these options to see how they all work together! And remember, your site will always automatically adjust to mobile devices.', 'weaver-xtreme'), 'options' => array('general-full-header' => weaverx_cz_group_title(__('Site Header Area', 'weaver-xtreme'), __('The Header Area contains the Menus, the Header Widget Area, the Site Image, and the Header HTML Area.', 'weaver-xtreme')), 'general-full-header-width' => weaverx_cz_heading(__('Header Area Width', 'weaver-xtreme'), __('You might want to adjust the Header Area width and alignment on the <em>Spacing &rarr; Site Header Spacing</em> panel.', 'weaver-xtreme')), 'general-full-line-1' => array('control' => array('control_type' => 'WeaverX_Misc_Control', 'type' => 'line')), 'header_extend_width' => array('setting' => array(), 'control' => array('label' => __('Header Full Width BG Attributes', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Extend all BG Attributes to full screen width. The area content retains it own width in the Theme Width width. Use this option for the Container, Header, and Footer "full width" site layouts. <strong style="background-color:yellow;"><large>IMPORTANT TIP:</large></strong> This option interacts with the area width and padding settings - we suggest that you "Save and Publish", and then <em>Refresh</em> this page in your browser to completely reload the Customizer.', 'weaver-xtreme'), 'type' => 'checkbox')), 'general-full-header-or-' => weaverx_cz_heading(__('** OR **', 'weaver-xtreme')), 'header_extend_bgcolor' => array('setting' => array('sanitize_callback' => WEAVERX_CZ_SANITIZE_COLOR, 'default' => weaverx_cz_getopt('header_extend_bgcolor'), 'transport' => 'refresh'), 'control' => array('control_type' => WEAVERX_PLUS_COLOR_CONTROL, 'label' => __('Header Full-width BG Color', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Extend this BG color to full theme width on Desktop View. Menu Bars, Container and Footer have same option. Unlike the "Full Screen Width BG Attributes" on the Spacing panel, this option extends just this BG color, and allows different BG colors for the area. You can use only one of the "Attributes" vs. "Color" option.', 'weaver-xtreme'))), 'general-full-line-1a' => array('control' => array('control_type' => 'WeaverX_Misc_Control', 'type' => 'line')), 'm_primary_extend_width' => array('setting' => array(), 'control' => array('label' => __('Primary Menu Full Width', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Extend all Primary Menu Bar BG Attributes to full width. Overrides Full-width BG color.', 'weaver-xtreme'), 'type' => 'checkbox')), 'general-full-header-or-2' => weaverx_cz_heading(__('** OR **', 'weaver-xtreme')), 'm_primary_extend_bgcolor' => array('setting' => array('sanitize_callback' => WEAVERX_CZ_SANITIZE_COLOR, 'default' => weaverx_cz_getopt('m_primary_extend_bgcolor'), 'transport' => 'refresh'), 'control' => array('control_type' => WEAVERX_PLUS_COLOR_CONTROL, 'label' => __('Primary Menu Full-width BG color', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Extend this BG color to full theme width on Desktop View. Menu Bars, Container and Footer have same option. Unlike the "Full Screen Width BG Attributes" on the Spacing panel, this option extends just this BG color, and allows different BG colors for the area.', 'weaver-xtreme'))), 'general-full-line-3' => array('control' => array('control_type' => 'WeaverX_Misc_Control', 'type' => 'line')), 'm_secondary_extend_width' => array('setting' => array(), 'control' => array('label' => __('Secondary Menu Full Width', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Extend all BG Attributes to full width. Overrides Full-width BG color.', 'weaver-xtreme'), 'type' => 'checkbox')), 'general-full-header-or-2a' => weaverx_cz_heading(__('** OR **', 'weaver-xtreme')), 'm_secondary_extend_bgcolor' => array('setting' => array('sanitize_callback' => WEAVERX_CZ_SANITIZE_COLOR, 'default' => weaverx_cz_getopt('m_secondary_extend_bgcolor'), 'transport' => 'refresh'), 'control' => array('control_type' => WEAVERX_PLUS_COLOR_CONTROL, 'label' => __('Secondary Menu Full-width BG color', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Extend this BG color to full theme width on Desktop View. Menu Bars, Container and Footer have same option. Unlike the "Full Screen Width BG Attributes" on the Spacing panel, this option extends just this BG color, and allows different BG colors for the area.', 'weaver-xtreme'))), 'general-full-line-4' => array('control' => array('control_type' => 'WeaverX_Misc_Control', 'type' => 'line')), 'general-full-container' => weaverx_cz_group_title(__('Site Container Area', 'weaver-xtreme'), __('The Container Area contains the main content area, plus the primary, secondary, top, and bottom widget areas.', 'weaver-xtreme')), 'general-full-containerx-width' => weaverx_cz_heading(__('Container Area Width', 'weaver-xtreme'), __('You might want to adjust the Container Area width and alignment on the <em>Spacing &rarr; Wrapping Areas</em> panel.', 'weaver-xtreme')), 'container_extend_width' => array('setting' => array(), 'control' => array('label' => __('Container Full Width BG Attributes', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Extend all Container BG Attributes to full screen width. The area content retains it own width in the Theme Width width. Use this option for the Container, Header, and Footer "full width" site layouts.  <strong style="background-color:yellow;"><large>IMPORTANT TIP:</large></strong> This option interacts with the area width and padding settings - we suggest that you "Save and Publish", and then <em>Refresh</em> this page in your browser to completely reload the Customizer.', 'weaver-xtreme'), 'type' => 'checkbox')), 'general-full-header-or-3' => weaverx_cz_heading(__('** OR **', 'weaver-xtreme')), 'container_extend_bgcolor' => array('setting' => array('sanitize_callback' => WEAVERX_CZ_SANITIZE_COLOR, 'default' => weaverx_cz_getopt('container_extend_bgcolor'), 'transport' => 'refresh'), 'control' => array('control_type' => WEAVERX_PLUS_COLOR_CONTROL, 'label' => __('Container Full-width BG color', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Extend this BG color to full theme width on Desktop View. Menu Bars, Header, Container and Footer have same option. Unlike the "Full Screen Width BG Attributes" on the Spacing panel, this option extends just this BG color, and allows different BG colors for the area.', 'weaver-xtreme'))), 'general-full-line-5' => array('control' => array('control_type' => 'WeaverX_Misc_Control', 'type' => 'line')), 'general-full-footer' => weaverx_cz_group_title(__('Site Footer Area', 'weaver-xtreme'), __('The Footer Area contains the Footer Widget Area, the Footer HTML Area, the copyright line.', 'weaver-xtreme')), 'general-full-footerx-width' => weaverx_cz_heading(__('Footer Area Width', 'weaver-xtreme'), __('You might want to adjust the Footer Area width and alignment on the <em>Spacing &rarr; Footer Area Spacing</em> panel.', 'weaver-xtreme')), 'footer_extend_width' => array('setting' => array(), 'control' => array('label' => __('Footer Full Screen Width', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Extend all Footer BG Attributes to full screen width. The area content retains it own width in the Theme Width width. Use this option for the Container, Header, and Footer "full width" site layouts.  <strong style="background-color:yellow;"><large>IMPORTANT TIP:</large></strong> This option interacts with the area width and padding settings - we suggest that you "Save and Publish", and then <em>Refresh</em> this page in your browser to completely reload the Customizer.', 'weaver-xtreme'), 'type' => 'checkbox')), 'general-full-header-or-4' => weaverx_cz_heading(__('** OR **', 'weaver-xtreme')), 'footer_extend_bgcolor' => array('setting' => array('sanitize_callback' => WEAVERX_CZ_SANITIZE_COLOR, 'default' => weaverx_cz_getopt('footer_extend_bgcolor'), 'transport' => 'refresh'), 'control' => array('control_type' => WEAVERX_PLUS_COLOR_CONTROL, 'label' => __('Footer Full-width BG color', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Extend this BG color to full theme width on Desktop View. Menu Bars, Header, Container and Footer have same option. Unlike the "Full Screen Width BG Attributes" on the Spacing panel, this option extends just this BG color, and allows different BG colors for the area.', 'weaver-xtreme')))));
     /**
      * Filter the definitions for the controls in the Color Scheme panel of the Customizer.
      *
      * @since 1.3.0.
      *
      * @param array    $spacing_sections    The array of definitions.
      */
     $spacing_sections = apply_filters('weaverx_customizer_spacing_sections', $spacing_sections);
     // Merge with master array
     return array_merge($sections, $spacing_sections);
 }
function weaverx_st_pick_theme($list_in)
{
    // output the form to select a file list from weaverx-subthemes directory
    $list = $list_in;
    natcasesort($list);
    $cur_theme = weaverx_getopt('theme_filename');
    if (!$cur_theme) {
        $cur_theme = WEAVERX_DEFAULT_THEME;
    }
    // the default theme
    ?>
<form enctype="multipart/form-data" name='pick_theme' method='post'>
	&nbsp;&nbsp;<strong><?php 
    _e('Click a Radio Button below to select a subtheme:', 'weaver-xtreme');
    ?>
 &nbsp;</strong>
	<span style="padding-left:100px;"><?php 
    _e('Current theme:', 'weaver-xtreme');
    ?>
 <strong>
<?php 
    $cur_addon = weaverx_getopt('addon_name');
    if ($cur_addon == '') {
        echo ucwords(str_replace('-', ' ', $cur_theme));
    } else {
        echo __('Add-on Subtheme: ', 'weaver-xtreme') . ucwords(str_replace('-', ' ', $cur_addon));
        $cur_theme = '';
    }
    ?>
	</strong></span>

	<br /><br /><span class='submit'><input name="set_subtheme" type="submit" value="<?php 
    _e('Set to Selected Subtheme', 'weaver-xtreme');
    ?>
" /></span>
	<small style="color:#b00;"><br /><?php 
    _e('<strong>Note:</strong> Selecting a <em>non-Demo</em> subtheme will change only theme related settings.
	Options labelled with (&diams;) will be retained. You can use the Save/Restore tab to save a copy of all your current settings first.', 'weaver-xtreme');
    ?>
</small><br /><br />
<?php 
    weaverx_nonce_field('set_subtheme');
    $thumbs = weaverx_relative_url('/subthemes/');
    foreach ($list as $addon) {
        $name = ucwords(str_replace('-', ' ', $addon));
        ?>
	<div style="float:left; width:200px;">
		<label><input type="radio" name="theme_picked"
<?php 
        echo 'value="' . $addon . '" ' . ($cur_theme == $addon ? 'checked' : '') . '/> <strong>' . $name . '</strong><br />';
        if (!weaverx_getopt('_hide_theme_thumbs')) {
            echo '<img style="border: 1px solid gray; margin: 5px 0px 10px 0px;" src="' . esc_url($thumbs . $addon . '.jpg') . '" width="150px" height="113px" alt="thumb" /></label></div>' . "\n";
        } else {
            echo "</label></div>\n";
        }
    }
    if (!weaverx_getopt_checked('_hide_theme_thumbs')) {
        weaverx_clear_both();
        ?>
	<span class='submit' style='padding-top:6px;'><input name="set_subtheme" type="submit" value="<?php 
        _e('Set to Selected Subtheme', 'weaver-xtreme');
        ?>
" /></span>
<?php 
    }
    ?>

	</form>
	<div style="clear:both;padding-top:6px;"></div>

	<form enctype="multipart/form-data" name='hide_thumbs_form' method='post'>
<?php 
    $hide_msg = weaverx_getopt('_hide_theme_thumbs') ? __('Show Subtheme Thumbnails', 'weaver-xtreme') : __('Hide Subtheme Thumbnails', 'weaver-xtreme');
    ?>
	<input name="hide_thumbs" type="submit" value="<?php 
    echo $hide_msg;
    ?>
" />
<?php 
    weaverx_nonce_field('hide_thumbs');
    ?>
	</form>
	<div style="clear:both;"></div>
	<hr />
<?php 
    do_action('weaverx_child_show_extrathemes');
    do_action('weaverxplus_admin', 'show_subthemes');
}
                    wp_paginate('title=');
                } else {
                    echo weaverx_get_paginate_archive_page_links('plain', 2, 2);
                }
            }
        }
        echo "</span>\n";
    }
    if (weaverx_getopt('info_search')) {
        if (function_exists('weaverxplus_search_form')) {
            echo '<span id="infobar_search" style="padding-right:4px !important;display:inline-block;padding-left:20px;">';
            echo weaverxplus_search_form('', 120);
            echo '</span>';
        } else {
            echo '<span id="infobar_search">';
            get_search_form();
            echo '</span>';
        }
    }
    if (weaverx_getopt_checked('info_addlogin')) {
        echo '<span id="infobar_login">';
        wp_loginout();
        echo '</span>';
    }
    ?>
	</span></div><div class="clear-info-bar-end" style="clear:both;">
</div><!-- #infobar -->

<?php 
}
// show info bar
function weaverx_donate_button()
{
    if (!weaverx_getopt_checked('_hide_donate') && !function_exists('weaverxplus_plugin_installed')) {
        ?>
<div style="float:right;padding-right:30px;"><small><strong><?php 
        _e('Like Weaver X? Consider', 'weaver-xtreme');
        ?>
</strong></small>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="6Y68LG9G9M82W">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
<?php 
    }
}
    echo __('This post is password protected. Enter the password to view any comments.', 'weaver-xtreme');
    ?>
</p>
<?php 
    /* Stop the rest of comments.php from being processed,
     * but don't kill the script entirely -- we still have
     * to fully load the template.
     */
    return;
}
?>

<?php 
$c_counts = get_comment_count(get_the_ID());
$c_count = $c_counts['approved'];
if (comments_open() || $c_count > 0 && !weaverx_getopt_checked('hide_old_comments')) {
    echo "\t\t<hr class='comments-hr' />\n";
    echo '<div id="comments">';
    weaverx_inject_area('precomments');
    $ct_class = $c_count < 1 ? ' class="no-comments-made"' : '';
    ?>
		<header id="comments-title"<?php 
    echo $ct_class;
    ?>
>
		<h3><?php 
    echo apply_filters('weaverx_comments_title', __('Comments', 'weaver-xtreme'));
    ?>
</h3>
				<h4>
<?php