<?php
global $wp_yellow_hats_base;

/**
 * Header Options
 * 
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Header', 'wp-yellow-hats'),
    'icon' => 'el-icon-credit-card',
    'fields' => array(
        array(
            'id' => 'header_layout',
            'title' => esc_html__('Layouts', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select a layout for header', 'wp-yellow-hats'),
            'default' => '1',
            'type' => 'image_select',
            'options' => array(
                '1' => get_template_directory_uri().'/inc/options/images/header/header1.jpg',
                '2' => get_template_directory_uri().'/inc/options/images/header/header2.jpg',
                '3' => get_template_directory_uri().'/inc/options/images/header/header3.jpg',
                '4' => get_template_directory_uri().'/inc/options/images/header/header4.jpg',
                '5' => get_template_directory_uri().'/inc/options/images/header/header5.jpg',
                '6' => get_template_directory_uri().'/inc/options/images/header/header6.jpg',
                '7' => get_template_directory_uri().'/inc/options/images/header/header7.jpg',
                '8' => get_template_directory_uri().'/inc/options/images/header/header8.jpg',
                '9' => get_template_directory_uri().'/inc/options/images/header/header9.jpg',
                '10' => get_template_directory_uri().'/inc/options/images/header/header10.jpg',
                '11' => get_template_directory_uri().'/inc/options/images/header/header11.jpg',
                '12' => get_template_directory_uri().'/inc/options/images/header/header12.jpg',
                '13' => get_template_directory_uri().'/inc/options/images/header/header13.jpg',
                '14' => get_template_directory_uri().'/inc/options/images/header/header14.jpg',
                '15' => get_template_directory_uri().'/inc/options/images/header/header15.jpg',
                '16' => get_template_directory_uri().'/inc/options/images/header/header16.jpg',
                '17' => get_template_directory_uri().'/inc/options/images/header/header17.jpg',
                '18' => get_template_directory_uri().'/inc/options/images/header/header18.jpg',
                '19' => get_template_directory_uri().'/inc/options/images/header/header19.jpg',
            )
        ),
        array(
            'subtitle' => esc_html__('Enable header sticky.', 'wp-yellow-hats'),
            'id' => 'menu_sticky',
            'type' => 'switch',
            'title' => esc_html__('Header Sticky', 'wp-yellow-hats'),
            'default' => false,
        ),
        array(
            'id' => 'show_search_icon',
            'type' => 'switch',
            'title' => esc_html__('Show Search Icon', 'wp-yellow-hats'),
            'default' => true,
        ),
        array(
            'id' => 'show_cart_icon',
            'type' => 'switch',
            'title' => esc_html__('Show Cart Icon', 'wp-yellow-hats'),
            'default' => true,
        ),
    )
);

/**
 * Top Bar
 * 
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Top Bar', 'wp-yellow-hats'),
    'icon' => 'el el-resize-horizontal',
    'subsection' => true,
    'fields' => array(
        array(
            'id'      => 'cms_top_social',
            'type'    => 'sorter',
            'title'   => 'Social',
            'desc'    => 'Choose which social networks are displayed and edit where they link to.',
            'options' => array(
                'enabled'  => array(
                    'facebook'  => 'Facebook', 
                    'twitter'   => 'Twitter', 
                    'linkedin'  => 'inkedin',
                    'rss'       => 'RSS', 
                ),
                'disabled' => array(
                    'youtube'   => 'Youtube', 
                    'vimeo'     => 'Vimeo', 
                    'tumblr'    => 'Tumblr', 
                    'skype'     => 'Skype', 
                    'google'    => 'Google',
                    'pinterest' => 'Pinterest',
                    'instagram' => 'Instagram',
                    'yelp'      => 'Yelp'
                )
            ),
        ),
        array(
            'id' => 'show_button_quote',
            'type' => 'switch',
            'title' => esc_html__('Show Button Quote', 'wp-yellow-hats'),
            'default' => false
        ),
        array(
            'id' => 'button_quote_text',
            'type' => 'text',
            'title' => 'Button Quote Text',
            'default' => 'Get A Quote',
            'required' => array(
                0 => 'show_button_quote',
                1 => '=',
                2 => 1
            )
        ),
        array(
            'subtitle' => 'Get ID in Contact Form 7',
            'id' => 'get_id_form',
            'type' => 'text',
            'title' => 'Get A Quote ID',
            'default' => '',
            'description' => '<a href="' . get_template_directory_uri() . '/assets/images/guide-contact.png" target="_blank">Click get the ID</a>',
            'required' => array(
                0 => 'show_button_quote',
                1 => '=',
                2 => 1
            )
        ),
        array(
            'title' => __('Contact', 'wp-yellow-hats'),
            'type'  => 'section',
            'id' => 'section-start',
            'indent' => true
        ),
        array(
            'id' => 'top_wellcome',
            'type' => 'text',
            'title' => esc_html__('Wellcome', 'wp-yellow-hats'),
            'default' => 'Welcome to Yellow Hats',
        ),
        array(
            'id' => 'top_email',
            'type' => 'text',
            'title' => esc_html__('Email', 'wp-yellow-hats'),
            'default' => '7oroof@7oroof.com',
        ),
        array(
            'id' => 'top_phone',
            'type' => 'text',
            'title' => esc_html__('Phone', 'wp-yellow-hats'),
            'default' => '+ 2 0106 5370701',
        ),
        array(
            'subtitle' => esc_html__('Apply header layout 18', 'wp-yellow-hats'),
            'id' => 'top_visit',
            'type' => 'text',
            'title' => esc_html__('Visit', 'wp-yellow-hats'),
            'default' => 'Tanta , AlGharbia, Egypt',
        ),
    )
);

/* Logo */
$this->sections[] = array(
    'title' => esc_html__('Logo', 'wp-yellow-hats'),
    'icon' => 'el-icon-picture',
    'subsection' => true,
    'fields' => array(
        array(
            'title' => esc_html__('Logo', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select an image file for your logo.', 'wp-yellow-hats'),
            'id' => 'main_logo',
            'type' => 'media',
            'url' => false,
            'default' => array(
                'url'=>get_template_directory_uri().'/assets/images/logo.png'
            )
        ),
        array(
            'subtitle' => esc_html__('in pixels.', 'wp_medico'),
            'id' => 'main_logo_height',
            'title' => 'Logo Height',
            'type' => 'dimensions',
            'units' => array( 'px' ), 
            'width' => false,
            'output' => array('#cshero-header-inner #cshero-header #cshero-header-logo a img, #cshero-header-inner #cshero-header-top #cshero-header-top-logo a img'),
            'default' => array(
                'height' => '',
            )
        ),

        array(
            'title' => esc_html__('Logo Sticky', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select an image file for your logo.', 'wp-yellow-hats'),
            'id' => 'sticky_logo',
            'type' => 'media',
            'url' => false,
            'default' => array(
                'url'=>get_template_directory_uri().'/assets/images/logo_sticky.png'
            )
        ),

        array(
            'subtitle' => esc_html__('in pixels.', 'wp_medico'),
            'id' => 'sticky_logo_height',
            'title' => 'Sticky Logo Height',
            'type' => 'dimensions',
            'units' => array( 'px' ), 
            'width' => false,
            'output' => array('#cshero-header-inner #cshero-header.header-fixed #cshero-header-logo a img'),
            'default' => array(
                'height' => '',
            )
        ),
    )
);

/* Favicon */
$this->sections[] = array(
    'title' => esc_html__('Favicon Icon', 'wp-yellow-hats'),
    'icon' => 'el-icon-star',
    'subsection' => true,
    'fields' => array(
        array(
            'title' => esc_html__('Icon', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select a favicon icon (.png, .jpg).', 'wp-yellow-hats'),
            'id' => 'favicon_icon',
            'type' => 'media',
            'url' => false,
            'default' => array(
                'url'=>get_template_directory_uri().'/assets/images/favicon.png'
            )
        ),
    )
);

/**
 * Page Title Options
 * 
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Page Title', 'wp-yellow-hats'),
    'icon' => 'el el-map-marker',
    'fields' => array(
        array(
            'id' => 'page_title_layout',
            'title' => esc_html__('Layouts', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select a layout for page title', 'wp-yellow-hats'),
            'default' => '1',
            'type' => 'image_select',
            'options' => array(
                '' => get_template_directory_uri().'/inc/options/images/pagetitle/p0.png',
                '1' => get_template_directory_uri().'/inc/options/images/pagetitle/p1.jpg',
                '2' => get_template_directory_uri().'/inc/options/images/pagetitle/p2.jpg',
                '3' => get_template_directory_uri().'/inc/options/images/pagetitle/p3.jpg',
                '4' => get_template_directory_uri().'/inc/options/images/pagetitle/p4.jpg',
            )
        ),
        array(
            'title' => esc_html__('Select Background Image', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select an image file for background page title.', 'wp-yellow-hats'),
            'id' => 'bg_image_page_title',
            'type' => 'media',
            'url' => true,
            'default' => array(
                'url'=>get_template_directory_uri().'/assets/images/bg-page-title.jpg'
            )
        ),
    )
);

/**
 * Body
 *
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Body', 'wp-yellow-hats'),
    'icon' => 'el-icon-website',
    'fields' => array(
        array(
            'subtitle' => esc_html__('Set layout boxed default(Wide).', 'wp-yellow-hats'),
            'id' => 'body_layout',
            'type' => 'switch',
            'title' => esc_html__('Boxed Layout', 'wp-yellow-hats'),
            'default' => false,
        ),
        array(
            'id'       => 'body_background',
            'type'     => 'background',
            'title'    => esc_html__( 'Background', 'wp-yellow-hats' ),
            'subtitle' => esc_html__( 'body background with image, color, etc.', 'wp-yellow-hats' ),
            'output'   => array('body'),
            'required' => array(
                0 => 'body_layout',
                1 => '=',
                2 => 1
            )
        ),


        array(
            'id' => 'body_border',
            'type' => 'switch',
            'title' => esc_html__('Body Border', 'wp-yellow-hats'),
            'default' => false,
        ),

        array(
            'id'       => 'body_border_width',
            'type'     => 'dimensions',
            'height'     => false,
            'units'    => array('px'),
            'title'    => __('Border Width', 'wp-yellow-hats'),
            'default'  => array(
                'Width'   => '',
            ),
            'required' => array(
                0 => 'body_border',
                1 => '=',
                2 => 1
            )
        ),
        array(
            'id'       => 'body_border_color',
            'type'     => 'color',
            'height'     => false,
            'units'    => array('px'),
            'title'    => __('Border Color', 'wp-yellow-hats'),
            'default'  => '',
            'required' => array(
                0 => 'body_border',
                1 => '=',
                2 => 1
            )
        ),

    )
);

/**
 * Page Loadding
 * 
 * 
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Page Loadding', 'wp-yellow-hats'),
    'icon' => 'el-icon-compass',
    'subsection' => true,
    'fields' => array(
        array(
            'subtitle' => esc_html__('Enable page loadding.', 'wp-yellow-hats'),
            'id' => 'enable_page_loadding',
            'type' => 'switch',
            'title' => esc_html__('Enable Page Loadding', 'wp-yellow-hats'),
            'default' => false,
        ),
    )
);


/**
 * Footer
 *
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Footer', 'wp-yellow-hats'),
    'icon' => 'el-icon-credit-card',
    'fields' => array(
        array(
            'id' => 'footer_layout',
            'title' => esc_html__('Layouts', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select a layout for footer', 'wp-yellow-hats'),
            'default' => '6',
            'type' => 'image_select',
            'options' => array(
                '1' => get_template_directory_uri().'/inc/options/images/footer/footer1.jpg',
                '2' => get_template_directory_uri().'/inc/options/images/footer/footer2.jpg',
                '3' => get_template_directory_uri().'/inc/options/images/footer/footer3.jpg',
                '4' => get_template_directory_uri().'/inc/options/images/footer/footer4.jpg',
                '5' => get_template_directory_uri().'/inc/options/images/footer/footer5.jpg',
                '6' => get_template_directory_uri().'/inc/options/images/footer/footer6.jpg',
                '7' => get_template_directory_uri().'/inc/options/images/footer/footer7.jpg',
            )
        ),
        array(
            'title' => esc_html__('Select Background Image', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select an image file for background footer (Aplly layout 7).', 'wp-yellow-hats'),
            'id' => 'bg_image_footer',
            'type' => 'media',
            'url' => true,
            'default' => array(
                'url'=>get_template_directory_uri().'/assets/images/bg-footer.jpg'
            )
        ),
        array(
            'id'=>'cms-copyright',
            'type' => 'textarea',
            'title' => esc_html__('Copyright', 'wp-yellow-hats'), 
            'validate' => 'html_custom',
            'default' => '© 2016 - 2017 Yellow Hats. All Rights Reserved<br/> With Love by <a href="http://themeforest.net/user/wpstrong/portfolio">WPStrong</a>',
            'allowed_html' => array(
                'a' => array(
                    'href' => array(),
                    'title' => array()
                ),
                'br' => array(),
                'em' => array(),
                'strong' => array()
            )
        ),

        array(
            'subtitle' => esc_html__('Enable button back to top.', 'wp-yellow-hats'),
            'id' => 'footer_botton_back_to_top',
            'type' => 'switch',
            'title' => esc_html__('Back To Top', 'wp-yellow-hats'),
            'default' => true,
        ),
    )
);

/**
 * Styling
 * 
 * css color.
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Styling', 'wp-yellow-hats'),
    'icon' => 'el-icon-adjust',
    'fields' => array(
        array(
            'subtitle' => esc_html__('Set color primary color.', 'wp-yellow-hats'),
            'id' => 'primary_color',
            'type' => 'color',
            'title' => esc_html__('Primary Color', 'wp-yellow-hats'),
            'default' => '#ffc527'
        ),
        array(
            'subtitle' => esc_html__('Set color secondary color.', 'wp-yellow-hats'),
            'id' => 'secondary_color',
            'type' => 'color',
            'title' => esc_html__('Secondary Color', 'wp-yellow-hats'),
            'default' => '#313131'
        ),
        array(
            'subtitle' => esc_html__('Set color for tags <a></a>.', 'wp-yellow-hats'),
            'id' => 'link_color',
            'type' => 'color',
            'title' => esc_html__('Link Color', 'wp-yellow-hats'),
            'output'  => array('a'),
            'default' => '#313131'
        ),
        array(
            'subtitle' => esc_html__('Set color for tags <a></a>.', 'wp-yellow-hats'),
            'id' => 'link_color_hover',
            'type' => 'color',
            'title' => esc_html__('Link Color Hover', 'wp-yellow-hats'),
            'output'  => array('a:hover'),
            'default' => '#ffc527'
        )
    )
);

/**
 * Typography
 * 
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Typography', 'wp-yellow-hats'),
    'icon' => 'el-icon-text-width',
    'subsection' => false,
    'fields' => array(
        array(
            'id' => 'font_body',
            'type' => 'typography',
            'title' => esc_html__('Body Font', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => true,
            'all_styles' => true,
            'output' => array(
                'body'
            ),
            'units' => 'px',
            'default' => array(
                'color' => '#9e9e9e',
                'font-style' => 'normal',
                'font-weight' => '500',
                'font-family' => 'Raleway',
                'google' => true,
                'font-size' => '15px',
                'line-height' => '24px',
                'text-align' => ''
            ),
            'subtitle' => esc_html__('Typography option with each property can be called individually.', 'wp-yellow-hats')
        ),
        array(
            'id' => 'font_h1',
            'type' => 'typography',
            'title' => esc_html__('H1', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => true,
            'all_styles' => true,
            'output'  => array('h1'),
            'units' => 'px',
            'default' => array(
                'color' => '#2f2f2f',
                'font-style' => 'normal',
                'font-weight' => '700',
                'font-family' => 'Montserrat',
                'google' => true,
                'font-size' => '32px',
                'line-height' => '46px',
                'text-align' => ''
            ),
        ),
        array(
            'id' => 'font_h2',
            'type' => 'typography',
            'title' => esc_html__('H2', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => true,
            'all_styles' => true,
            'output'  => array('h2'),
            'units' => 'px',
            'default' => array(
                'color' => '#2f2f2f',
                'font-style' => 'normal',
                'font-weight' => '700',
                'font-family' => 'Montserrat',
                'google' => true,
                'font-size' => '28px',
                'line-height' => '36px',
                'text-align' => ''
            ),
        ),
        array(
            'id' => 'font_h3',
            'type' => 'typography',
            'title' => esc_html__('H3', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => true,
            'all_styles' => true,
            'output'  => array('h3'),
            'units' => 'px',
            'default' => array(
                'color' => '#2f2f2f',
                'font-style' => 'normal',
                'font-weight' => '700',
                'font-family' => 'Montserrat',
                'google' => true,
                'font-size' => '25px',
                'line-height' => '30px',
                'text-align' => ''
            ),
        ),
        array(
            'id' => 'font_h4',
            'type' => 'typography',
            'title' => esc_html__('H4', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => true,
            'all_styles' => true,
            'output'  => array('h4'),
            'units' => 'px',
            'default' => array(
                'color' => '#2f2f2f',
                'font-style' => 'normal',
                'font-weight' => '700',
                'font-family' => 'Montserrat',
                'google' => true,
                'font-size' => '22px',
                'line-height' => '26px',
                'text-align' => ''
            ),
        ),
        array(
            'id' => 'font_h5',
            'type' => 'typography',
            'title' => esc_html__('H5', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => true,
            'all_styles' => true,
            'output'  => array('h5'),
            'units' => 'px',
            'default' => array(
                'color' => '#2f2f2f',
                'font-style' => 'normal',
                'font-weight' => '700',
                'font-family' => 'Montserrat',
                'google' => true,
                'font-size' => '18px',
                'line-height' => '24px',
                'text-align' => ''
            ),
        ),
        array(
            'id' => 'font_h6',
            'type' => 'typography',
            'title' => esc_html__('H6', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => true,
            'all_styles' => true,
            'output'  => array('h6'),
            'units' => 'px',
            'default' => array(
                'color' => '#2f2f2f',
                'font-style' => 'normal',
                'font-weight' => '700',
                'font-family' => 'Montserrat',
                'google' => true,
                'font-size' => '16px',
                'line-height' => '18px',
                'text-align' => ''
            ),
        )
    )
);

/* Extra Font */
$this->sections[] = array(
    'title' => esc_html__('Extra Fonts', 'wp-yellow-hats'),
    'icon' => 'el el-fontsize',
    'subsection' => true,
    'fields' => array(
        array(
            'id' => 'google-font-1',
            'type' => 'typography',
            'title' => esc_html__('Font 1', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => false,
            'font-style' => true,
            'color' => false,
            'text-align'=> false,
            'line-height'=>false,
            'font-size'=> false,
            'subsets'=> false,
            'default' => array(
                'font-weight' => '',
                'font-family' => ''
            )
        ),
        array(
            'id' => 'google-font-selector-1',
            'type' => 'textarea',
            'title' => esc_html__('Selector 1', 'wp-yellow-hats'),
            'subtitle' => esc_html__('add html tags ID or class (body,a,.class,#id)', 'wp-yellow-hats'),
            'validate' => 'no_html',
            'default' => '',
        ),
        array(
            'id' => 'google-font-2',
            'type' => 'typography',
            'title' => esc_html__('Font 2', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => false,
            'font-style' => false,
            'color' => false,
            'text-align'=> false,
            'line-height'=>false,
            'font-size'=> false,
            'subsets'=> false,
            'default' => array(
                'font-weight' => '',
                'font-family' => ''
            )
        ),
        array(
            'id' => 'google-font-selector-2',
            'type' => 'textarea',
            'title' => esc_html__('Selector 2', 'wp-yellow-hats'),
            'subtitle' => esc_html__('add html tags ID or class (body,a,.class,#id)', 'wp-yellow-hats'),
            'validate' => 'no_html',
            'default' => '',
        ),
        array(
            'id' => 'google-font-3',
            'type' => 'typography',
            'title' => esc_html__('Font 3', 'wp-yellow-hats'),
            'google' => true,
            'font-backup' => false,
            'font-style' => false,
            'color' => false,
            'text-align'=> false,
            'line-height'=>false,
            'font-size'=> false,
            'subsets'=> false,
            'default' => array(
                'font-weight' => '400',
                'font-family' => ''
            )
        ),
        array(
            'id' => 'google-font-selector-3',
            'type' => 'textarea',
            'title' => esc_html__('Selector 3', 'wp-yellow-hats'),
            'subtitle' => esc_html__('add html tags ID or class (body,a,.class,#id)', 'wp-yellow-hats'),
            'validate' => 'no_html',
            'default' => '',
        ),
    )
);

/**
 * Blog Option
 *
 * css color.
 * 
 * @author CMS
 */
$this->sections[] = array(
    'title' => esc_html__('Blog Option', 'wp-yellow-hats'),
    'icon' => 'el el-blogger',
    'fields' => array(
        array(
            'id' => 'blog_sidebar',
            'type' => 'switch',
            'title' => esc_html__('Show Sidebar Blog', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Show / Hide sidebar on page template - blog.', 'wp-yellow-hats'),
            'default' => true
        ),
        array(
            'id'       => 'blog_sidebar_position',
            'type'     => 'select',
            'title'    => esc_html__('Blog Category - Sidebar Position', 'wp-yellow-hats'), 
            'options'  => array(
                'sidebar-right' => 'Sidebar Right',
                'sidebar-left' => 'Sidebar Left',
            ),
            'default'  => 'sidebar-right',
            'required' => array(
                0 => 'blog_sidebar',
                1 => '=',
                2 => 1
            )
        ),
        array(
            'id' => 'post_full_width',
            'type' => 'switch',
            'title' => esc_html__('Post Full Width', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Show single post full width no sidebar.', 'wp-yellow-hats'),
            'default' => false
        ),
        array(
            'id' => 'post_sidebar_left',
            'type' => 'switch',
            'title' => esc_html__('Enable Post Sidebar Left', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Default post blog sidebar Right.', 'wp-yellow-hats'),
            'default' => false
        ),
    )
);

/* Author Font */
$this->sections[] = array(
    'title' => esc_html__('Author Social', 'wp-yellow-hats'),
    'icon' => 'el el-group',
    'subsection' => true,
    'fields' => array(
        array(
            'subtitle' => 'Link url.',
            'id' => 'author_facebook',
            'type' => 'text',
            'title' => 'Facebook',
            'default' => ''
        ),
        array(
            'subtitle' => 'Link url.',
            'id' => 'author_twitter',
            'type' => 'text',
            'title' => 'Twitter',
            'default' => ''
        ),
        array(
            'subtitle' => 'Link url.',
            'id' => 'author_youtube',
            'type' => 'text',
            'title' => 'Youtube',
            'default' => ''
        ),
        array(
            'subtitle' => 'Link url.',
            'id' => 'author_linkedin',
            'type' => 'text',
            'title' => 'Linkedin',
            'default' => ''
        ),
        array(
            'subtitle' => 'Link url.',
            'id' => 'author_rss',
            'type' => 'text',
            'title' => 'Rss',
            'default' => ''
        ),

    )
);


/**
 * Services Option
 *
 * css color.
 * 
 * @author CMS
 */
$this->sections[] = array(
    'title' => esc_html__('Services Option', 'wp-yellow-hats'),
    'icon' => 'el el-group',
    'fields' => array(
        array(
            'id' => 'show_cta',
            'type' => 'switch',
            'title' => esc_html__('Show Call To Action', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Show / Hide call to action on single services.', 'wp-yellow-hats'),
            'default' => false
        ),
        array(
            'id' => 'cta_subtitle',
            'type' => 'text',
            'title' => 'Sub Title',
            'default' => 'Have Any Questions !',
            'required' => array(
                0 => 'show_cta',
                1 => '=',
                2 => 1
            )
        ),
        array(
            'id' => 'cta_title',
            'type' => 'text',
            'title' => 'Title',
            'default' => 'Don’t Hesitate To Contact Us ANy Time.',
            'required' => array(
                0 => 'show_cta',
                1 => '=',
                2 => 1
            )
        ),
        array(
            'id' => 'cta_btn_text',
            'type' => 'text',
            'title' => 'Button Text',
            'default' => 'Contact Us',
            'required' => array(
                0 => 'show_cta',
                1 => '=',
                2 => 1
            )
        ),
        array(
            'id' => 'cta_btn_url',
            'type' => 'text',
            'title' => 'Button Link',
            'default' => '#',
            'required' => array(
                0 => 'show_cta',
                1 => '=',
                2 => 1
            )
        ),
        array(
            'id' => 'remove_feature_image_details',
            'type' => 'switch',
            'title' => esc_html__('Remove Feature Image in Single Details', 'wp-yellow-hats'),
            'default' => false
        ),
    )
);
/* Page Title - Single Post */
$this->sections[] = array(
    'title' => esc_html__('Page Title', 'wp-yellow-hats'),
    'icon' => 'el el-map-marker',
    'subsection' => true,
    'fields' => array(
        array(
            'title' => esc_html__('Select Background Image', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select an image file for background page title - apply services single', 'wp-yellow-hats'),
            'id' => 'bg_image_page_title_services',
            'type' => 'media',
            'url' => true,
            'default' => array(
                'url'=>get_template_directory_uri().'/assets/images/bg-page-title_services.jpg'
            )
        ),
    )
);

/**
 * Project Option
 *
 * css color.
 * 
 * @author CMS
 */
$this->sections[] = array(
    'title' => esc_html__('Project Option', 'wp-yellow-hats'),
    'icon' => 'el el-blogger',
    'fields' => array(
        array(
            'id'       => 'project_layout',
            'type'     => 'select',
            'title'    => esc_html__('Single Project Layout', 'wp-yellow-hats'), 
            'options'  => array(
                'layout1' => 'Layout 1',
                'layout2' => 'Layout 2',
            ),
            'default'  => 'layout1',
        ),
    )
);

/**
 * Shop Option
 *
 * css color.
 * 
 * @author CMS
 */
$this->sections[] = array(
    'title' => esc_html__('Shop Option', 'wp-yellow-hats'),
    'icon' => 'el el-shopping-cart',
    'fields' => array(
        array(
            'subtitle' => 'Shop Category Layout',
            'id' => 'shop_layout',
            'type' => 'image_select',
            'default' => 'right-sidebar',
            'options' => array(
                'full-width' => get_template_directory_uri().'/assets/images/1col.png',
                'right-sidebar' => get_template_directory_uri().'/assets/images/2cr.png',
                'left-sidebar' => get_template_directory_uri().'/assets/images/2cl.png'
            ),
            'title' => 'Shop Category Layout',
        ),
        array(
            'title' => esc_html__('Products displayed per page', 'wp-yellow-hats'),
            'id' => 'product_per_page',
            'type' => 'slider',
            'subtitle' => esc_html__('Number product to show', 'wp-yellow-hats'),
            'default' => 6,
            'min'  => 6,
            'step' => 1,
            'max' => 50,
        ),
    )
);
/* Page Title - Shop Post */
$this->sections[] = array(
    'title' => esc_html__('Page Title', 'wp-yellow-hats'),
    'icon' => 'el el-map-marker',
    'subsection' => true,
    'fields' => array(
        array(
            'title' => esc_html__('Select Background Image', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Select an image file for background page title - apply product single', 'wp-yellow-hats'),
            'id' => 'bg_image_page_title_product',
            'type' => 'media',
            'url' => true,
            'default' => array(
                'url'=>get_template_directory_uri().'/assets/images/bg-page-title_product.jpg'
            )
        ),
    )
);

/**
 * Page Option
 *
 * css color.
 * 
 * @author CMS
 */
$this->sections[] = array(
    'title' => esc_html__('Page Option', 'wp-yellow-hats'),
    'icon' => 'el-icon-edit',
    'fields' => array(
        array(
            'id' => 'page_comment',
            'type' => 'switch',
            'title' => esc_html__('Show Comment', 'wp-yellow-hats'),
            'subtitle' => esc_html__('Show / Hide comment on page.', 'wp-yellow-hats'),
            'default' => true
        )
    )
);

/**
 * Custom CSS
 * 
 * extra css for customer.
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Custom CSS', 'wp-yellow-hats'),
    'icon' => 'el-icon-bulb',
    'fields' => array(
        array(
            'id' => 'custom_css',
            'type' => 'ace_editor',
            'title' => esc_html__('CSS Code', 'wp-yellow-hats'),
            'subtitle' => esc_html__('create your css code here.', 'wp-yellow-hats'),
            'mode' => 'css',
            'theme' => 'monokai',
        )
    )
);
/* Social Media */
$this->sections[] = array(
    'title' => esc_html__('Social Media', 'wp-yellow-hats'),
    'icon' => 'el el-twitter',
    'subsection' => false,
    'fields' => array(
        array(
            'id' => 'social_facebook_url',
            'type' => 'text',
            'title' => esc_html__('Facebook URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_twitter_url',
            'type' => 'text',
            'title' => esc_html__('Twitter URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_inkedin_url',
            'type' => 'text',
            'title' => esc_html__('Inkedin URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_rss_url',
            'type' => 'text',
            'title' => esc_html__('Rss URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_instagram_url',
            'type' => 'text',
            'title' => esc_html__('Instagram URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_google_url',
            'type' => 'text',
            'title' => esc_html__('Google URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_skype_url',
            'type' => 'text',
            'title' => esc_html__('Skype URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_pinterest_url',
            'type' => 'text',
            'title' => esc_html__('Pinterest URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_vimeo_url',
            'type' => 'text',
            'title' => esc_html__('Vimeo URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_youtube_url',
            'type' => 'text',
            'title' => esc_html__('Youtube URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_yelp_url',
            'type' => 'text',
            'title' => esc_html__('Yelp URL', 'wp-yellow-hats'),
            'default' => '#',
        ),
        array(
            'id' => 'social_tumblr_url',
            'type' => 'text',
            'title' => esc_html__('Tumblr URL', 'wp-yellow-hats'),
            'default' => '#',
        ),

    )
);

/**
 * Optimal Core
 * 
 * Optimal options for theme. optimal speed
 * @author Fox
 */
$this->sections[] = array(
    'title' => esc_html__('Optimal Core', 'wp-yellow-hats'),
    'icon' => 'el-icon-idea',
    'fields' => array(
        array(
            'subtitle' => esc_html__('no minimize , generate css over time...', 'wp-yellow-hats'),
            'id' => 'dev_mode',
            'type' => 'switch',
            'title' => esc_html__('Dev Mode (not recommended)', 'wp-yellow-hats'),
            'default' => false
        )
    )
);