/**
     * Define the sections and settings for the Images panel
     */
    function weaverx_customizer_define_image_sections($sections)
    {
        global $wp_customize;
        $panel = 'weaverx_images';
        $image_sections = array();
        $wp_customize->get_section('header_image')->priority = 20000;
        $wp_customize->get_section('header_image')->title = __('Header Banner Images (WP Settings)', 'weaver-xtreme');
        $wp_customize->get_section('header_image')->panel = $panel;
        $wp_customize->get_section('background_image')->priority = 20100;
        $wp_customize->get_section('background_image')->title = __('Site BG Image (WP Settings)', 'weaver-xtreme');
        $wp_customize->get_section('background_image')->panel = $panel;
        /**
         * General
         */
        $image_sections['images-global'] = array('panel' => $panel, 'title' => __('Global Image Settings', 'weaver-xtreme'), 'description' => 'Set Image options for Site Wrapper &amp; Container. Use Colors to set colors.', 'options' => array('images-heading-global' => weaverx_cz_group_title(__('Global Image Settings', 'weaver-xtreme'), __('These settings control images in both the Container (including content and sidebars) and Footer Areas. They do not include the Header Area.', 'weaver-xtreme')), 'media_lib_border_color' => weaverx_cz_coloropt('media_lib_border_color', __('Image Border Color', 'weaver-xtreme'), __('Border color for images in Container and Footer.', 'weaver-xtreme')), 'media_lib_border_int' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 0), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Image Border Width (px)', 'weaver-xtreme'), 'description' => __('Border width for images in Container and Footer. There will be <strong>no</strong> borders unless you set this value above 0px.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1))), 'show_img_shadows' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage'), 'control' => array('label' => __('Add Image Shadow', 'weaver-xtreme'), 'description' => __('Add a shadow to images in Container and Footer. Add custom CSS for custom shadow.', 'weaver-xtreme'), 'type' => 'checkbox')), 'restrict_img_border' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'refresh'), 'control' => array('label' => __('Restrict Borders to Media Library', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('For Container and Footer, restrict border and shadows to images from Media Library. Manually entered &lt;img&gt; HTML without Media Library classes will not have borders.', 'weaver-xtreme'), 'type' => 'checkbox')), 'media_lib_border_color_css' => weaverx_cz_css(__('Custom CSS for Images.', 'weaver-xtreme'), __('Note: this custom CSS will live-update for ALL images, even if the above Restrict Borders is checked.
The normal site view will respect the Restrict Borders setting.', 'weaver-xtreme')), 'caption_color' => weaverx_cz_coloropt('caption_color', __('Caption Text Color', 'weaver-xtreme'), __('Color of captions - e.g., below media images.', 'weaver-xtreme')), 'caption_color_css' => weaverx_cz_css(__('Custom CSS for Captions.', 'weaver-xtreme'))));
        /**
         * Site Header
         */
        $image_sections['images-header'] = array('panel' => $panel, 'title' => __('Header Area', 'weaver-xtreme'), 'options' => array('images-heading-header' => weaverx_cz_heading(__('Site Header', 'weaver-xtreme')), 'header_image_max_width_dec' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 100.0), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Maximum Image Width (%)', 'weaver-xtreme') . WEAVERX_PLUS_ICON, 'description' => __('Maximum width of Header Image. Can be useful to change Header Image alignment.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 0.5))), 'header_actual_size' => weaverx_cz_checkbox(__('Use Actual Image Size', 'weaver-xtreme'), __('Check to use actual header image size. (Default: theme width)', 'weaver-xtreme'), 'plus'), 'header_image_align' => weaverx_cz_select_plus(__('Align Header Image', 'weaver-xtreme'), __('How to align header image - meaningful only when Max Width or Actual Size set.', 'weaver-xtreme'), 'weaverx_cz_choices_align', 'float-left', 'postMessage'), 'link_site_image' => weaverx_cz_checkbox_refresh(__('Header Image Links to Site', 'weaver-xtreme'), __('Check to add a link to site home page for Header Image. Note: If used with <em>Move Title/Tagline over Image</em>, parts of the header image will not be clickable.', 'weaver-xtreme')), 'header_image_height_int' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'refresh', 'default' => 188), 'control' => array('control_type' => 'WeaverX_Range_Control', 'label' => __('Suggested Header Image Height (px)', 'weaver-xtreme') . WEAVERX_REFRESH_ICON, 'description' => __('Change the suggested height of the Header Image. Standard size is 188. This height is only a suggestion, and only affects the clipping window on the Customizer <em>Images &rarr; Header Banner Images<em> panel after you refresh the whole Customize interface. Header images will always be responsively sized. (Default header image width: theme width)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 600, 'step' => 1))), 'images-heading-srch' => weaverx_cz_heading(__('Search Box Icon', 'weaver-xtreme'), __('The icon used in search boxes can be changed in the <em>Colors &rarr; Content</em> section.', 'weaver-xtreme')), 'images-heading-altimg' => weaverx_cz_heading(__('Alternate Header Images', 'weaver-xtreme'), __('You can specify alternate header images using the <em>Featured Image Location</em> option on the <em>Images</em> panel, as well as Per Page and Per Post options.', 'weaver-xtreme')), 'images-heading-logo-html' => weaverx_cz_heading(__('Site Logo/HTML', 'weaver-xtreme') . WEAVERX_PLUS_ICON, __('The site Logo/HTML is being deprecated. It is still accessible from the traditional Appearance settings interface.', 'weaver-xtreme'))));
        /**
         * Content
         */
        $image_sections['images-content'] = array('panel' => $panel, 'title' => __('Content', 'weaver-xtreme'), 'description' => __('Images on page and post content.', 'weaver-xtreme'), 'options' => array('images-content-heading' => weaverx_cz_heading(__('General Image Settings', 'weaver-xtreme'), __('General image settings found on the <em>Global Image Settings</em> panel.', 'weaver-xtreme')), 'images-content-FI' => weaverx_cz_group_title(__('Featured Image - Pages', 'weaver-xtreme'), __('Display of Page Featured Images', 'weaver-xtreme')), 'page_fi_location' => weaverx_cz_select(__('Featured Image Location', 'weaver-xtreme'), __('Where to display Featured Image for Pages', 'weaver-xtreme'), 'weaverx_cz_choices_fi_location', 'content-top', 'refresh'), 'page_fi_align' => weaverx_cz_select(__('Align Featured Image', 'weaver-xtreme'), '', 'weaverx_cz_choices_fi_align', 'fi-alignleft', 'refresh'), 'page_fi_hide' => weaverx_cz_select(__('Hide Featured Image', 'weaver-xtreme'), '', 'weaverx_cz_choices_hide', 'hide-none', 'refresh'), 'page_fi_size' => weaverx_cz_select(__('Page Featured Image Size', 'weaver-xtreme'), __('Media Library Image Size for Featured Image on pages. (Header uses full size).', 'weaver-xtreme'), 'weaverx_cz_choices_fi_size', 'thumbnail', 'refresh'), 'page_fi_width' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'refresh', 'default' => 0), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Featured Image Width (%)', 'weaver-xtreme') . WEAVERX_PLUS_ICON, 'description' => __('Width of Featured Image on Pages. Max Width in %, overrides FI Size selection. Set to 0 to avoid overriding above Featured Image Size setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 0.5)))));
        /**
         * Post Specific
         */
        $image_sections['images-post-specific'] = array('panel' => $panel, 'title' => __('Post Specific', 'weaver-xtreme'), 'description' => __('Post Specific Images - override Content Images.', 'weaver-xtreme'), 'options' => array('images-postspecific-heading' => weaverx_cz_heading(__('General Image Settings', 'weaver-xtreme'), __('General image settings found on the <em>Site Wrapper &amp; Container</em> panel.', 'weaver-xtreme')), 'post_avatar_int' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'postMessage', 'default' => 28), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Author Avatar Size (px)', 'weaver-xtreme'), 'description' => __('Size of Author Avatar in px - only for Post Info line. (Default: 28px)', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 60, 'step' => 1))), 'images-content-FI-full' => weaverx_cz_group_title(__('Featured Image - Full Blog Posts', 'weaver-xtreme'), __('Display of Post Featured Images when Post is displayed as a Full Post.', 'weaver-xtreme')), 'post_full_fi_location' => weaverx_cz_select(__('Featured Image Location - Full Post', 'weaver-xtreme'), __('Where to display Featured Image.', 'weaver-xtreme'), 'weaverx_cz_choices_fi_location', 'content-top', 'refresh'), 'post_full_fi_align' => weaverx_cz_select(__('Align Featured Image - Full Post', 'weaver-xtreme'), '', 'weaverx_cz_choices_fi_align', 'fi-alignleft', 'refresh'), 'post_full_fi_hide' => weaverx_cz_select(__('Hide Featured Image - Full Post', 'weaver-xtreme'), '', 'weaverx_cz_choices_hide', 'hide-none', 'refresh'), 'post_full_fi_size' => weaverx_cz_select(__('Page Featured Image Size - Full Post', 'weaver-xtreme'), __('Media Library Image Size for Featured Image. (Header uses full size).', 'weaver-xtreme'), 'weaverx_cz_choices_fi_size', 'thumbnail', 'refresh'), 'post_full_fi_width' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'refresh', 'default' => 0), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Featured Image Width (%) - Full Post', 'weaver-xtreme') . WEAVERX_PLUS_ICON, 'description' => __('Width of Featured Image. Max Width in %, overrides FI Size selection. Set to 0 to avoid overriding above Featured Image Size setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 0.5))), 'images-content-FI-excerpt' => weaverx_cz_group_title(__('Featured Image - Excerpt Posts', 'weaver-xtreme'), __('Display of Post Featured Images when Post is displayed as an Excerpt.', 'weaver-xtreme')), 'post_excerpt_fi_location' => weaverx_cz_select(__('Featured Image Location - Excerpt', 'weaver-xtreme'), __('Where to display Featured Image.', 'weaver-xtreme'), 'weaverx_cz_choices_fi_location', 'content-top', 'refresh'), 'post_excerpt_fi_align' => weaverx_cz_select(__('Align Featured Image - Excerpt', 'weaver-xtreme'), '', 'weaverx_cz_choices_fi_align', 'fi-alignleft', 'refresh'), 'post_excerpt_fi_hide' => weaverx_cz_select(__('Hide Featured Image - Excerpt', 'weaver-xtreme'), '', 'weaverx_cz_choices_hide', 'hide-none', 'refresh'), 'post_excerpt_fi_size' => weaverx_cz_select(__('Page Featured Image Size - Excerpt', 'weaver-xtreme'), __('Media Library Image Size for Featured Image. (Header uses full size).', 'weaver-xtreme'), 'weaverx_cz_choices_fi_size', 'thumbnail', 'refresh'), 'post_excerpt_fi_width' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'refresh', 'default' => 0), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Featured Image Width (%) - Excerpt', 'weaver-xtreme') . WEAVERX_PLUS_ICON, 'description' => __('Width of Featured Image. Max Width in %, overrides FI Size selection. Set to 0 to avoid overriding above Featured Image Size setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 0.5))), 'images-content-FI-single' => weaverx_cz_group_title(__('Featured Image - Single Page', 'weaver-xtreme'), __('Display of Post Featured Images when Post is displayed on the Single Page.', 'weaver-xtreme')), 'post_fi_location' => weaverx_cz_select(__('Featured Image Location - Single Page', 'weaver-xtreme'), __('Where to display Featured Image.', 'weaver-xtreme'), 'weaverx_cz_choices_fi_location', 'content-top', 'refresh'), 'post_fi_align' => weaverx_cz_select(__('Align Featured Image - Single Page', 'weaver-xtreme'), '', 'weaverx_cz_choices_fi_align', 'fi-alignleft', 'refresh'), 'post_fi_hide' => weaverx_cz_select(__('Hide Featured Image - Single Page', 'weaver-xtreme'), '', 'weaverx_cz_choices_hide', 'hide-none', 'refresh'), 'post_fi_size' => weaverx_cz_select(__('Page Featured Image Size - Single Page', 'weaver-xtreme'), __('Media Library Image Size for Featured Image. (Header uses full size).', 'weaver-xtreme'), 'weaverx_cz_choices_fi_size', 'thumbnail', 'refresh'), 'post_fi_width' => array('setting' => array('sanitize_callback' => 'absint', 'transport' => 'refresh', 'default' => 0), 'control' => array('control_type' => WEAVERX_PLUS_RANGE_CONTROL, 'label' => __('Featured Image Width (%) - Single Page', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Width of Featured Image. Max Width in %, overrides FI Size selection. Set to 0 to avoid overriding above Featured Image Size setting.', 'weaver-xtreme'), 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 0.5)))));
        /**
         * Footer
         */
        $image_sections['images-footer'] = array('panel' => $panel, 'title' => __('Footer Area', 'weaver-xtreme'), 'options' => array());
        /**
         * Background Images
         */
        $image_sections['images-background'] = array('panel' => $panel, 'title' => __('Background', 'weaver-xtreme'), 'options' => array('_bg_fullsite_url' => array('setting' => array('transport' => 'postMessage', 'sanitize_callback' => 'esc_url_raw'), 'control' => array('control_type' => WEAVERX_PLUS_IMAGE_CONTROL, 'label' => __('Full Screen Site BG Image', 'weaver-xtreme') . WEAVERX_PLUS_ICON, 'description' => __('Full screen centered auto-sized BG image. &diams;', 'weaver-xtreme'))), 'images-background-css-help' => array('setting' => array(), 'control' => array('control_type' => WEAVERX_PLUS_MISC_CONTROL, 'label' => __('Additional CSS for BG Images', 'weaver-xtreme') . WEAVERX_PLUS_ICON, 'type' => 'HTML', 'description' => '<small>' . __('Use the <em>Additional CSS</em> option to specify additional background CSS options, each ending with a semi-colon (;).
Valid options include: background-position, background-size, background-origin, background-clip, and background-attachment. Useful example: <code>background-size: 100% auto;</code> - makes bg image full width of container, height depends on container. See this <a href="http://www.w3schools.com/cssref/css3_pr_background.asp" title="background CSS" target="_blank">W3 Schools page</a> for more information about background styling.', 'weaver-xtreme') . '</small>'))));
        if (true) {
            $new_opts = weaverx_cz_add_image('body', __('Site BG Image', 'weaver-xtreme'), __('Background image for entire site (body)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
            $new_opts = weaverx_cz_add_image('wrapper', __('Wrapper BG Image', 'weaver-xtreme'), __('Background image for outer wrapper (#wrapper)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
            $new_opts = weaverx_cz_add_image('header', __('Header BG Image', 'weaver-xtreme'), __('Background image for header (#header)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
            $new_opts = weaverx_cz_add_image('container', __('Container BG Image', 'weaver-xtreme'), __('Background image for Container - (#container)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
            $new_opts = weaverx_cz_add_image('content', __('Content BG Image', 'weaver-xtreme'), __('Background image for Content - wraps page/post area (#content)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
            $new_opts = weaverx_cz_add_image('page', __('Page content BG Image', 'weaver-xtreme'), __('Background image for Page content area (#content .page)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
            $new_opts = weaverx_cz_add_image('post', __('Post BG Image', 'weaver-xtreme'), __('Background image for Post content area (#content .post)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
            $new_opts = weaverx_cz_add_image('widgets_primary', __('Primary Sidebar Area BG Image', 'weaver-xtreme'), __('Background image for primary widget area (#primary-widget-area)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
            $new_opts = weaverx_cz_add_image('widgets_secondary', __('Secondary Sidebar Areas BG Image', 'weaver-xtreme'), __('Background image for secondary widget areas (#secondary-widget-area)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
            $new_opts = weaverx_cz_add_image('footer', __('Footer BG Image', 'weaver-xtreme'), __('Background image for Footer area (#colophon)', 'weaver-xtreme'));
            $image_sections['images-background']['options'] = array_merge($image_sections['images-background']['options'], $new_opts);
        }
        /**
         * Filter the definitions for the controls in the Color Scheme panel of the Customizer.
         *
         * @since 1.3.0.
         *
         * @param array    $image_sections    The array of definitions.
         */
        $image_sections = apply_filters('weaverx_customizer_image_sections', $image_sections);
        // Merge with master array
        return array_merge($sections, $image_sections);
    }
function weaverx_cz_add_injection($root, $label = '', $description = '', $version = 'XPlus')
{
    $opt = array();
    if ($version == 'XPlus') {
        $label .= WEAVERX_PLUS_ICON;
    }
    $opt[$root . '-heading'] = weaverx_cz_group_title($label);
    if ($description) {
        $opt[$root . '-desc'] = array('control' => array('control_type' => 'WeaverX_Misc_Control', 'description' => $description, 'type' => 'text'));
    }
    if ($version != 'XPlus' || weaverx_cz_is_plus()) {
        $opt["{$root}_insert"] = array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_html', 'transport' => 'postMessage', 'default' => ''), 'control' => array('control_type' => 'WeaverX_Textarea_Control', 'label' => __('HTML', 'weaver-xtreme'), 'type' => 'textarea', 'input_attrs' => array('rows' => '3', 'placeholder' => __('Any HTML, including shortcodes.', 'weaver-xtreme'))));
        $opt["inject_{$root}_bgcolor"] = array('setting' => array('sanitize_callback' => WEAVERX_CZ_SANITIZE_COLOR, 'transport' => 'postMessage', 'default' => weaverx_cz_getopt("inject_{$root}_bgcolor")), 'control' => array('control_type' => WEAVERX_COLOR_CONTROL, 'label' => __('BG Color', 'weaver-xtreme'), 'description' => ''));
        $opt["inject_{$root}_bgcolor_css"] = weaverx_cz_css(__('Custom CSS', 'weaver-xtreme'));
        $opt["inject_add_class_{$root}"] = array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_html', 'transport' => 'refresh', 'default' => ''), 'control' => array('control_type' => WEAVERX_PLUS_TEXT_CONTROL, 'label' => __('Add Classes', 'weaver-xtreme') . WEAVERX_PLUS_ICON . WEAVERX_REFRESH_ICON, 'description' => __('Space separated class names to add to this area (<em>Advanced option</em>) (&starf;Plus)', 'weaver-xtreme'), 'type' => 'text', 'input_attrs' => array()));
        $opt["hide_front_{$root}"] = weaverx_cz_checkbox_refresh(__('Hide on front page', 'weaver-xtreme'), __('If you check this box, then the code from this area will not be displayed on the front (home) page.', 'weaver-xtreme'));
        $opt["hide_rest_{$root}"] = weaverx_cz_checkbox_refresh(__('Hide on non-front pages', 'weaver-xtreme'), __('If you check this box, then the code from this area will not be displayed on non-front pages.', 'weaver-xtreme'));
    }
    // is plus
    $opt[$root . '-line-break'] = array('control' => array('control_type' => 'WeaverX_Misc_Control', 'label' => '', 'type' => 'line'));
    return $opt;
}
 /**
  * Define the sections and settings for the Custom CSS panel
  */
 function weaverx_customizer_define_custom_sections($sections)
 {
     $panel = 'weaverx_custom';
     $custom_sections = array();
     $custom_sections['custom-help'] = array('panel' => $panel, 'title' => __('Help for Custom CSS', 'weaver-xtreme'), 'options' => array('custom-help-heading' => weaverx_cz_group_title(__('Introductory Help for Custom CSS', 'weaver-xtreme'), __('These Custom CSS sections allow you to add custom CSS for different sections without needing to know the id or class for the section. You should simply enter normal CSS rules enclosed by braces <em>{selector:value;}</em>. You don not need to enter any id or class name. There are other helpful features to this custom CSS feature explained in the Help Documentation. See the link on the desktop <em>Appearance &rarr; Weaver Xtreme Admin &rarr; Theme Help</em> panel. Note that these Custom CSS rules are a very advanced feature of Weaver Xtreme, and most people will not need them. They do allow web designers to build highly customized sites.', 'weaver-xtreme'))));
     /**
      * Global Site Custom CSS
      */
     $custom_sections['custom-global'] = array('panel' => $panel, 'title' => __('Global Custom CSS', 'weaver-xtreme'), 'description' => "Set Custom CSS definitions that apply to entire site. Global Custom CSS is live updated, but won't display properly until you've completed a valid CSS rule.", 'options' => array('add_css' => array('setting' => array('sanitize_callback' => 'weaverx_cz_sanitize_css', 'transport' => 'postMessage', 'default' => ''), 'control' => array('control_type' => 'WeaverX_Textarea_Control', 'label' => __('Global Custom CSS', 'weaver-xtreme'), 'description' => __('You can add arbitrary CSS rules here. These rules will come after other CSS stylesheets included for your site, and can be used to override default CSS rules, or to add new CSS rules for other plugins or content. Note that unlike the per-area Custom CSS rules found on other sections of this panel, the CSS rules you add here must be complete, including the class or id selector.', 'weaver-xtreme'), 'type' => 'textarea', 'input_attrs' => array('rows' => '12', 'placeholder' => __('.selector {font-size:150%;font-weight:bold;} /* for example */', 'weaver-xtreme'))))));
     /**
      * Wrapping
      */
     $custom_sections['custom-wrapping'] = array('panel' => $panel, 'title' => __('Wrapping Areas', 'weaver-xtreme'), 'description' => "Set Custom CSS for the Wrapper and Container Areas.", 'options' => array('body_bgcolor_css' => weaverx_cz_css(__('&lt;body&gt; Custom CSS', 'weaver-xtreme'), __('Custom CSS for the &lt;body&gt; tag.', 'weaver-xtreme')), 'wrapper_bgcolor_css' => weaverx_cz_css(__('Wrapper Custom CSS', 'weaver-xtreme')), 'wrapper_add_class' => weaverx_cz_add_class(__('Wrapper: Add Classes', 'weaver-xtreme')), 'container_bgcolor_css' => weaverx_cz_css(__('Container Custom CSS', 'weaver-xtreme')), 'container_add_class' => weaverx_cz_add_class(__('Container: Add Classes', 'weaver-xtreme'))));
     /**
      * Links
      */
     $custom_sections['custom-links'] = array('panel' => $panel, 'title' => __('Links', 'weaver-xtreme'), 'description' => "Set Custom CSS for Links.", 'options' => array('link_color_css' => weaverx_cz_css(__('Standard Links Custom CSS', 'weaver-xtreme'), __('Custom CSS for standard Links.', 'weaver-xtreme')), 'link_hover_color_css' => weaverx_cz_css(__('Standard Links Hover Custom CSS', 'weaver-xtreme')), 'ibarlink_color_css' => weaverx_cz_css(__('Info Bar Links Custom CSS', 'weaver-xtreme'), __('Custom CSS for for links in Info Bar.', 'weaver-xtreme')), 'ibarlink_hover_color_css' => weaverx_cz_css(__('Info Bar Links Hover Custom CSS', 'weaver-xtreme')), 'contentlink_color_css' => weaverx_cz_css(__('Content Links Custom CSS', 'weaver-xtreme'), __('Custom CSS for for links in content area.', 'weaver-xtreme')), 'contentlink_hover_color_css' => weaverx_cz_css(__('Content Links Hover Custom CSS', 'weaver-xtreme')), 'post_title_hover_color' => weaverx_cz_css(__('Post Title Hover Custom CSS', 'weaver-xtreme'), __('The Post Title is really a link.', 'weaver-xtreme')), 'ilink_color_css' => weaverx_cz_css(__('Post Meta Info Line Links Custom CSS', 'weaver-xtreme'), __('Custom CSS for for links in Post Meta Info Lines.', 'weaver-xtreme')), 'ilink_hover_color_css' => weaverx_cz_css(__('Post Meta Info Line Links Hover Custom CSS', 'weaver-xtreme')), 'wlink_color_css' => weaverx_cz_css(__('Individual Widget Links Custom CSS', 'weaver-xtreme'), __('Custom CSS for for links in widgets.', 'weaver-xtreme')), 'wlink_hover_color_css' => weaverx_cz_css(__('Individual Widget Links Hover Custom CSS', 'weaver-xtreme')), 'footerlink_color_css' => weaverx_cz_css(__('Footer Area Links Custom CSS', 'weaver-xtreme'), __('Custom CSS for for links in Footer Area.', 'weaver-xtreme')), 'footerlink_hover_color_css' => weaverx_cz_css(__('Footer Area Links Hover Custom CSS', 'weaver-xtreme'))));
     /**
      * Site Header
      */
     $custom_sections['custom-header'] = array('panel' => $panel, 'title' => __('Header Area', 'weaver-xtreme'), 'options' => array('header_bgcolor_css' => weaverx_cz_css(__('Header Area Custom CSS', 'weaver-xtreme')), 'header_add_class' => weaverx_cz_add_class(__('Header Area: Add Classes', 'weaver-xtreme')), 'site_title_bgcolor_css' => weaverx_cz_css(__('Site Title Custom CSS', 'weaver-xtreme')), 'site_title_add_class' => weaverx_cz_add_class(__('Site Title: Add Classes', 'weaver-xtreme')), 'tagline_bgcolor_css' => weaverx_cz_css(__('Site Tagline Custom CSS', 'weaver-xtreme')), 'title_tagline_bgcolor_css' => weaverx_cz_css(__('Site Title/Tagline Area Custom CSS', 'weaver-xtreme')), 'header_sb_bgcolor_css' => weaverx_cz_css(__('Header Area Widget Area Custom CSS', 'weaver-xtreme')), 'header_sb_add_class' => weaverx_cz_add_class(__('Header Widget Area: Add Classes', 'weaver-xtreme')), 'header_html_bgcolor_css' => weaverx_cz_css(__('Header Area HTML Area Custom CSS', 'weaver-xtreme')), 'header_html_add_class' => weaverx_cz_add_class(__('Header HTML Area: Add Classes', 'weaver-xtreme')), 'header_image_add_class' => weaverx_cz_add_class(__('Header Image: Add Classes', 'weaver-xtreme'))));
     /**
      * Main Menu
      */
     $custom_sections['custom-menus'] = array('panel' => $panel, 'title' => __('Menus', 'weaver-xtreme'), 'description' => __('Set custom for Menus.', 'weaver-xtreme'), 'options' => array('custom-mm-heading' => weaverx_cz_group_title(__('Primary Menu', 'weaver-xtreme')), 'm_primary_bgcolor_css' => weaverx_cz_css(__('Primary Menu Bar Custom CSS', 'weaver-xtreme')), 'm_primary_add_class' => weaverx_cz_add_class(__('Primary Menu Bar: Add Classes', 'weaver-xtreme')), 'm_primary_link_bgcolor_css' => weaverx_cz_css(__('Primary Menu Bar Link Custom CSS', 'weaver-xtreme')), 'm_primary_hover_bgcolor_css' => weaverx_cz_css(__('Primary Menu Bar Link Hover Custom CSS', 'weaver-xtreme')), 'm_primary_sub_bgcolor_css' => weaverx_cz_css(__('Primary Sub-Menu Custom CSS', 'weaver-xtreme')), 'm_primary_sub_hover_bgcolor_css' => weaverx_cz_css(__('Primary Sub-Menu Hover Custom CSS', 'weaver-xtreme')), 'custom-sm-line1' => weaverx_cz_line(), 'custom-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_bgcolor_css' => weaverx_cz_css(__('Secondary Menu Bar Custom CSS', 'weaver-xtreme')), 'm_secondary_add_class' => weaverx_cz_add_class(__('Secondary Menu Bar: Add Classes', 'weaver-xtreme')), 'm_secondary_link_bgcolor_css' => weaverx_cz_css(__('Secondary Menu Bar Link Custom CSS', 'weaver-xtreme')), 'm_secondary_hover_bgcolor_css' => weaverx_cz_css(__('Secondary Menu Bar Link Hover Custom CSS', 'weaver-xtreme')), 'm_secondary_sub_bgcolor_css' => weaverx_cz_css(__('Secondary Sub-Menu Custom CSS', 'weaver-xtreme')), 'm_secondary_sub_hover_bgcolor_css' => weaverx_cz_css(__('Secondary Sub-Menu Hover Custom CSS', 'weaver-xtreme')), 'custom-minim-line1' => weaverx_cz_line(), 'custom-minim-heading' => weaverx_cz_group_title(__('Header Mini Menu', 'weaver-xtreme'), __('You must define a Header Menu from the Custom Menus Content menu.', 'weaver-xtreme')), 'm_header_mini_bgcolor_css' => weaverx_cz_css(__('Header Mini Menu Custom CSS', 'weaver-xtreme'), __('Custom CSS for full Mini Menu "bar".', 'weaver-xtreme')), 'm_header_mini_hover_color_css' => weaverx_cz_css(__('Mini Menu Links Hover Custom CSS', 'weaver-xtreme'), __('Custom CSS for for link hover items in Mini Menu.', 'weaver-xtreme')), 'custom-allm-line1' => weaverx_cz_line(), 'custom-allmenus-heading' => weaverx_cz_group_title(__('Custom For All Menus', 'weaver-xtreme'), __('These options specify current page attributes for all menus.', 'weaver-xtreme')), 'menubar_curpage_bgcolor_css' => weaverx_cz_css(__('Current Page', 'weaver-xtreme'))));
     if (weaverx_cz_is_plus()) {
         $new_opts = array('custom-xm-line1' => weaverx_cz_line(), 'custom-xm-heading' => weaverx_cz_group_title(__('Extra Menu', 'weaver-xtreme') . WEAVERX_PLUS_ICON), 'm_extra_bgcolor_css' => weaverx_cz_css(__('Extra Menu Bar Custom CSS', 'weaver-xtreme')), 'm_extra_add_class' => weaverx_cz_add_class(__('Extra Menu Bar: Add Classes', 'weaver-xtreme')), 'm_extra_link_bgcolor_css' => weaverx_cz_css(__('Extra Menu Bar Link Custom CSS', 'weaver-xtreme')), 'm_extra_hover_bgcolor_css' => weaverx_cz_css(__('Extra Menu Bar Link Hover Custom CSS', 'weaver-xtreme')), 'm_extra_sub_bgcolor_css' => weaverx_cz_css(__('Extra Sub-Menu Custom CSS', 'weaver-xtreme')), 'm_extra_sub_hover_bgcolor_css' => weaverx_cz_css(__('Extra Sub-Menu Hover Custom CSS', 'weaver-xtreme')));
     } 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
     $custom_sections['custom-menus']['options'] = array_merge($custom_sections['custom-menus']['options'], $new_opts);
     /**
      * Info Bar
      */
     $custom_sections['custom-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('custom-info-bar-heading' => weaverx_cz_heading(__('Info Bar', 'weaver-xtreme')), 'infobar_bgcolor_css' => weaverx_cz_css(__('Info Bar Custom CSS', 'weaver-xtreme')), 'infobar_bgcolor_css' => weaverx_cz_css(__('Info Bar Custom CSS', 'weaver-xtreme')), 'infobar_add_class' => weaverx_cz_add_class(__('Info Bar: Add Classes', 'weaver-xtreme'))));
     /**
      * Content
      */
     $custom_sections['custom-content'] = array('panel' => $panel, 'title' => __('Content', 'weaver-xtreme'), 'description' => __('custom for general page and post content.', 'weaver-xtreme'), 'options' => array('custom-content-heading' => weaverx_cz_heading(__('General Content', 'weaver-xtreme')), 'content_bgcolor_css' => weaverx_cz_css(__('Content Custom CSS', 'weaver-xtreme')), 'content_add_class' => weaverx_cz_add_class(__('Content: Add Classes', 'weaver-xtreme')), 'page_title_bgcolor_css' => weaverx_cz_css(__('Page Title Custom CSS', 'weaver-xtreme')), 'archive_title_bgcolor_css' => weaverx_cz_css(__('Archive Page Title Custom CSS', 'weaver-xtreme')), 'content_h_bgcolor_css' => weaverx_cz_css(__('Content H headings Custom CSS', 'weaver-xtreme')), 'editor_bgcolor_css' => weaverx_cz_css(__('Tiny MCE Editor Background color', 'weaver-xtreme')), 'search_bgcolor_css' => weaverx_cz_css(__('Search Box Custom CSS', 'weaver-xtreme')), 'hr_color_css' => weaverx_cz_css(__('&lt;HR&gt; Custom CSS', 'weaver-xtreme')), 'comment_headings_color_css' => weaverx_cz_css(__('Comment Headings Custom CSS', 'weaver-xtreme')), 'comment_content_bgcolor_css' => weaverx_cz_css(__('Comment Content Custom CSS', 'weaver-xtreme')), 'comment_submit_bgcolor_css' => weaverx_cz_css(__('Comment Submit Button Custom CSS', 'weaver-xtreme')), 'content-image-css' => weaverx_cz_heading(__('Images', 'weaver-xtreme'), __('Custom CSS for Images is found on "Images : Global Image Settings".', 'weaver-xtreme'))));
     /**
      * Post Specific
      */
     $custom_sections['custom-post-specific'] = array('panel' => $panel, 'title' => __('Post Specific', 'weaver-xtreme'), 'description' => __('Post Specific custom - override Content custom.', 'weaver-xtreme'), 'options' => array('custom-postspecific-heading' => weaverx_cz_heading(__('Post Specific', 'weaver-xtreme')), 'post_bgcolor_css' => weaverx_cz_css(__('Post Area Custom CSS', 'weaver-xtreme')), 'post_add_class' => weaverx_cz_add_class(__('Post Area: Add Classes', 'weaver-xtreme')), 'stickypost_bgcolor_css' => weaverx_cz_css(__('Sticky Posts Custom CSS', 'weaver-xtreme')), 'post_title_bgcolor_css' => weaverx_cz_css(__('Post Title BG Custom CSS', 'weaver-xtreme')), 'post_title_color_css' => weaverx_cz_css(__('Post Title Text Custom CSS', 'weaver-xtreme'), __('Remember the Post Title is a link. The Hover Custom CSS found on Links menu.', 'weaver-xtreme')), 'post_info_top_bgcolor_css' => weaverx_cz_css(__('Posts Top Meta Info Line Custom CSS', 'weaver-xtreme')), 'post_info_bottom_bgcolor_css' => weaverx_cz_css(__('Posts Bottom Meta Info Line Custom CSS', 'weaver-xtreme')), 'post_author_bgcolor_css' => weaverx_cz_css(__('Author Bio Custom CSS', 'weaver-xtreme'))));
     /**
      * Sidebars
      */
     $custom_sections['custom-sidebars'] = array('panel' => $panel, 'title' => __('Sidebars &amp; Widget Areas', 'weaver-xtreme'), 'description' => __('Main Sidebars and Widget areas. Header and Footer areas options under Header and Footer panels.', 'weaver-xtreme'), 'options' => array('custom-primary-widget-heading' => weaverx_cz_group_title(__('Primary Widget Area', 'weaver-xtreme')), 'primary_bgcolor_css' => weaverx_cz_css(__('Primary Widget Area Custom CSS', 'weaver-xtreme')), 'primary_add_class' => weaverx_cz_add_class(__('Primary Widget Area: Add Classes', 'weaver-xtreme')), 'custom-secondary-widget-heading' => weaverx_cz_group_title(__('Secondary Widget Area', 'weaver-xtreme')), 'secondary_bgcolor_css' => weaverx_cz_css(__('Secondary Widget Area Custom CSS', 'weaver-xtreme')), 'secondary_add_class' => weaverx_cz_add_class(__('Secondary Widget Area: Add Classes', 'weaver-xtreme')), 'custom-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_bgcolor_css' => weaverx_cz_css(__('Top Widget Areas Custom CSS', 'weaver-xtreme')), 'top_add_class' => weaverx_cz_add_class(__('Top Widget Areas: Add Classes', 'weaver-xtreme')), 'custom-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_bgcolor_css' => weaverx_cz_css(__('Bottom Widget Areas Custom CSS', 'weaver-xtreme')), 'bottom_add_class' => weaverx_cz_add_class(__('Bottom Widget Areas: Add Classes', 'weaver-xtreme'))));
     /**
      * Widgets
      */
     $custom_sections['custom-widgets'] = array('panel' => $panel, 'title' => __('Individual Widgets', 'weaver-xtreme'), 'options' => array('custom-widgets-heading' => weaverx_cz_heading(__('Individual Widgets', 'weaver-xtreme')), 'widget_bgcolor_css' => weaverx_cz_css(__('Individual Widget Custom CSS', 'weaver-xtreme')), 'widget_add_class' => weaverx_cz_add_class(__('Individual Widget: Add Classes', 'weaver-xtreme')), 'widget_title_bgcolor_css' => weaverx_cz_css(__('Individual Widget Title Custom CSS', 'weaver-xtreme'))));
     /**
      * Footer
      */
     $custom_sections['custom-footer'] = array('panel' => $panel, 'title' => __('Footer Area', 'weaver-xtreme'), 'options' => array('footer_bgcolor_css' => weaverx_cz_css(__('Footer Area Custom CSS', 'weaver-xtreme')), 'footer_add_class' => weaverx_cz_add_class(__('Footer Area: Add Classes', 'weaver-xtreme')), 'footer_sb_bgcolor_css' => weaverx_cz_css(__('Footer Area Widget Area Custom CSS', 'weaver-xtreme')), 'footer_sb_add_class' => weaverx_cz_add_class(__('Footer Widget Area: Add Classes', 'weaver-xtreme')), 'footer_html_bgcolor_css' => weaverx_cz_css(__('Footer Area HTML Area Custom CSS', 'weaver-xtreme')), 'footer_html_class' => weaverx_cz_add_class(__('Footer HTML Area: Add Classes', 'weaver-xtreme'))));
     /**
      * Filter the definitions for the controls in the Color Scheme panel of the Customizer.
      *
      * @since 1.3.0.
      *
      * @param array    $custom_sections    The array of definitions.
      */
     $custom_sections = apply_filters('weaverx_customizer_custom_sections', $custom_sections);
     // Merge with master array
     return array_merge($sections, $custom_sections);
 }