<?php
if ( ! defined( 'ABSPATH' ) ) exit;

/*-----------------------------------------------------------------------------------*/
/* This file hooks the redux options panel. While Redux powered by TT FW plugin.
/*-----------------------------------------------------------------------------------*/


add_filter('redux/options/tt_temptt_opt/sections', 'tt_logiscargo_redux_options');

if ( ! function_exists( 'tt_logiscargo_redux_options' ) ) {
    function tt_logiscargo_redux_options( $sections ) {

	//reset themeoptions array
    $sections = array();

	$shortname = 'tt';

    /*
     *
     * ---> START SECTIONS
     *
     */

/*-----------------------------------------------------------------------------------*/
/* General Settings                                                                  */
/*-----------------------------------------------------------------------------------*/

    $sections[] = array(
        'title'  => esc_html__( 'General Settings', 'logiscargo' ),
        'id'     => 'general',
        'desc'   => esc_html__( 'General Settings.', 'logiscargo' ),
        //'icon'   => 'el el-home ',
        'customizer_width' => '400px',
    );
	// quick start.
    $sections[] = array(
        'title'            => esc_html__( 'Quick Start', 'logiscargo' ),
        'id'               => 'general-quickstart',
        'subsection'       => true,
        'customizer_width' => '450px',
        'fields'           => array(

            array(
                'id' => $shortname . '_welcome_info',
                'type'   => 'info',
                'notice' => false,
                'style'  => 'info',
                'desc'   =>  sprintf( esc_html__( 'Thanks for purchasing and installing this theme. From here you can customize almost everything in the theme. If you need help, please %1$s we will be more than happy to help. ', 'logiscargo' ), '<a href="http://templatation.com/">' . esc_html__( 'contact support', 'logiscargo' ) . '</a>' ),
            ),

            array(
                'id' => $shortname . '_logo',
                'type'     => 'media',
                'url'      => true,
                'title'    => esc_html__( 'Upload Logo', 'logiscargo' ),
                'readonly'    => false,
                'subtitle'     => esc_html__( 'Upload a logo for your theme, or specify an image URL directly. For retina friendliness you can upload 2x logo and set desired dimension in retina ready graphics option below.', 'logiscargo' ),
                'desc' => esc_html__( 'Ideal size of the logo depends on the header layout you are using. Default logo is 225x45 px.', 'logiscargo' ),
            ),
            array(
                'id'       => $shortname . '_retina_favicon',
                'type'     => 'switch',
                'title'    => 'Retina Ready Main Logo',
                'subtitle' => esc_html__( 'Do you want sharp logo display on retina display devices?  If you are not sure what this means leave it off.', 'logiscargo' ),
                'desc'     => esc_html__( 'To make logo look sharp on Retina devices, you need to upload double size logo above and turn it on to be able to enter desired width/height for logo image. Note: To comply with all retina devices app icon etc, please go to Appearance->customize->site identity.', 'logiscargo' ),
                'default'  => false
            ),
            array(
                'id' => $shortname . '_retina_logo_wh',
                'type'           => 'dimensions',
                'units'          => array( 'px' ),    // You can specify a unit value. Possible: px, em, %
                'units_extended' => 'true',  // Allow users to select any type of unit
                'title'          => esc_html__( 'Dimensions (Width/Height) Option for Main logo', 'logiscargo' ),
                'subtitle'       => esc_html__( 'Enter desired Width and height for your retina main logo. If you want logo to be retina ready, please upload double size version of logo above and enter the dimensions you want it to appear in. Recommended: 225 x 45.', 'logiscargo' ),
                'desc'       => esc_html__( ' Normally it will be half of actual retina logo image dimensions. Enter values without px eg: 50, 70 etc. Recommended: Leave blank to disable this. Note: If your logo is distorted, try putting 0 in Height.', 'logiscargo' ),
                'required' => array( $shortname . '_retina_favicon', '=', true ),
                 'default'        => array(
                    'width'  => 0,
                    'height' => 0,
                )
            ),

            array(
                'id'    => $shortname . '_favicon_info1',
                'type'  => 'media',
                'url'      => true,
                'readonly'    => false,
                'title' => esc_html__( 'Favicon Icon', 'logiscargo' ),
                'desc'  => esc_html__( 'Upload a favicon if you are running below WP 4.3. Please go to Appearance-> customise -> site identity to upload favicon if you are running WordPress version 4.3 or above.', 'logiscargo' ),
            ),

           array(
                'id' => $shortname . '_enable_sticky',
                'type'     => 'switch',
                'title' => esc_html__( 'Enable Sticky header', 'logiscargo' ),
                'subtitle' => esc_html__( 'If enabled, the header always stays even when you scroll down the page.', 'logiscargo' ),
                'default'  => true
           ),

         )
);

    $sections[] = array(
        'title'            => esc_html__( 'Misc. settings', 'logiscargo' ),
        'id'               => 'post-settings',
        'subsection'       => true,
        'customizer_width' => '450px',
        'fields'           => array(

            array(
                'id' => $shortname . '_error_page',
                'type'     => 'media',
                'url'      => true,
                'title'    => esc_html__( '404 page image', 'logiscargo' ),
                'readonly'    => false,
                'subtitle'     => esc_html__( 'Upload image for background on 404 page.', 'logiscargo' ),
            ),

           array(
                'id' => $shortname . '_post_sharing',
                'type'     => 'switch',
                'title' => esc_html__( 'Enable post sharing', 'logiscargo' ),
                'desc'   => esc_html__( 'If enabled, single post page shows sharing icons at the end of the post.', 'logiscargo' ),
                'default'  => true
            ),

           array(
                'id' => $shortname . '_post_author',
                'type'     => 'switch',
                'title' => esc_html__( 'Enable post author box', 'logiscargo' ),
                'desc'   => esc_html__( 'If enabled, single post page shows author box at the end of the post. The data for this box can be controlled from wp-admin/users/profile.', 'logiscargo' ),
                'default'  => true
            ),
           array(
                'id' => $shortname . '_gmap_api',
                'type'     => 'text',
                'title' => esc_html__( 'Google Map API Text', 'logiscargo' ),
                'desc'  => sprintf( esc_html__( '%1$s for complete instructions to get an API key from Google itself.', 'logiscargo' ), '<a href="https://developers.google.com/maps/documentation/javascript/get-api-key">' . esc_html__( 'Click here', 'logiscargo' ) . '</a>' ),
                'subtitle' => esc_html__( 'Since June 2016, Google requires an API key for displaying maps.', 'logiscargo' ),
           ),


        )
    );

    $sections[] = array(
        'title'            => esc_html__( 'Custom CSS', 'logiscargo' ),
        'id'               => 'display-options',
        'subsection'       => true,
        'customizer_width' => '450px',
        'fields'           => array(

            array(
    			'id' => $shortname . '_custom_css',
                'type'     => 'ace_editor',
                'title'    => esc_html__( 'Custom CSS', 'logiscargo' ),
    			'subtitle' => esc_html__( 'Quickly add some CSS to your theme by adding it to this block.', 'logiscargo' ),
                'mode'     => 'css',
                'theme'    => 'monokai',
                'default'  => ''
            ),

        )
    );

/*-----------------------------------------------------------------------------------*/
/* Style Settings                                                                  */
/*-----------------------------------------------------------------------------------*/

    $sections[] = array(
        'title'            => esc_html__( 'Styling/Typography', 'logiscargo' ),
        'id'               => 'body-options',
        'customizer_width' => '450px',
        'icon'   => 'el el-icon-brush',
                'fields' => array(
                    array(
                        'id' => $shortname . '_style_cust_info',
                        'type'   => 'info',
                        'notice' => false,
                        'style'  => 'info',
                        'title' => esc_html__( 'Styling Customizer', 'logiscargo' ),
                        'desc' => esc_html__( 'Here you can change the colors used throughout the theme. To reset to default, please click on Reset Section button above right.', 'logiscargo' ),
                    ),
                    array(
                        'id' => $shortname . '_main_acnt_clr',
                        'type'     => 'color',
                        'title'    => esc_html__( 'Main Accent Color', 'plumberx' ),
                        'subtitle' => esc_html__( 'Main accent color of the theme. Note: Some color are powered by page builder/images. Contact support if you need help.', 'logiscargo' ),
                        'desc'     => esc_html__( 'Default: Orange family #F7BE3D', 'logiscargo' ),
                        'default'  => ''
                    ),
                    array(
                        'id' => $shortname . '_second_color',
                        'type'     => 'color',
                        'title'    => esc_html__( 'Second Accent Color', 'plumberx' ),
                        'subtitle' => esc_html__( 'Second Accent color of the theme. Used as contrast to first, like on hover etc. Note: Some color are powered by page builder/images. Contact support if you need help.', 'logiscargo' ),
                        'desc'     => esc_html__( 'Default: Green family #1FB5C7', 'logiscargo' ),
                        'default'  => ''
                    ),
                    array(
                        'id' => $shortname . '_link_color',
                        'type'     => 'color',
                        'title'    => esc_html__( 'Default link color', 'logiscargo' ),
                        'subtitle' => esc_html__( 'Default link color', 'logiscargo' ),
                        'desc'     => esc_html__( 'Default: Blue', 'logiscargo' ),
                        'default'  => ''
                    ),
                    array(
                        'id' => $shortname . '_link_hover_color',
                        'type'     => 'color',
                        'title'    => esc_html__( 'Default link hover color', 'logiscargo' ),
                        'subtitle' => esc_html__( 'Default link hover color', 'logiscargo' ),
                        'desc'     => esc_html__( 'Default: Black', 'logiscargo' ),
                        'default'  => ''
                    ),
                   array(
                        'id' => $shortname . '_body_stng',
                        'type'     => 'background',
                        'output'   => array( '#mainblock' ),
                        'title' => esc_html__( 'Body Background Setting', 'logiscargo' ),
                        'subtitle' => esc_html__( 'You can customize body section here. Choose a color or an image and setup as per your liking.', 'logiscargo' ),
                        'desc' => esc_html__( 'Note: Prebuilt pages are built on full width Visual composer grid. So this change might not be visible on them. It will be visible on Default page template, and posts.', 'logiscargo' ),
                        'default'  => array(
                            'background-color' => '',
                        )
                   ),

                   array(
                        'id' => $shortname . '_hdr_stng',
                        'type'     => 'background',
                        'output'   => array( '#header,#header3' ),
                        'title' => esc_html__( 'Header Settings', 'logiscargo' ),
                        'subtitle' => esc_html__( 'You can customize header area here.', 'logiscargo' ),
                        //'default'   => '#FFFFFF',
                   ),

                    array(
                        'id' => 'body-font2',
                        'type' => 'typography',
                        'output' => array('body'),
                        'title' => esc_html__('Body Font', 'logiscargo'),
                        'subtitle' => esc_html__('Specify the body font properties.', 'logiscargo'),
                        'google' => true,
                        'default' => array(
                            'color' => '',
                            'font-size' => '14px',
                            'line-height' => '26px',
                            'font-family' => '"Open Sans", sans-serif',
                        ),
                    ),
                    array(
                        'id' => 'h-font2',
                        'type' => 'typography',
                        'output' => array('h1, h2, h3, h4, h5, h6,.single-blog-post .content-box h3'),
                        'title' => esc_html__('Heading tags Font', 'logiscargo'),
                        'subtitle' => esc_html__('Specify the H tags font properties.', 'logiscargo'),
                        'font-weight'   => false,
                        'font-size'   => false,
                        'line-height'   => false,
                        'google' => true,
                        'default' => array(
                            'color' => '',
                            'font-family' => '',
                        ),
                    ),

                    array(
                        'id' => $shortname . '_tt_ft_bg',
                        'type'     => 'background',
                        'output'   => array( '#footer' ),
                        'title'    => esc_html__( 'Footer Background', 'logiscargo' ),
                        'subtitle' => esc_html__( 'Select background image or color for footer area, where widgets appear.', 'logiscargo' ),
                        'desc'   =>  sprintf( esc_html__( 'Note: As by default an image is set on this area, selecting only color will not work, if you want to have color only, you might need to set image as transparent image(and then select color.). %1$s.', 'logiscargo' ), '<a href="'. esc_url(get_template_directory_uri()) .'/images/zTransparent.png" target="_blank">' . esc_html__( 'Here is a transparent image you can download and use.', 'logiscargo' ) . '</a>' ),
                    ),
                    array(
                        'id' => $shortname . '_extreme_ft_bg',
                        'type'     => 'background',
                        'output'   => array( '.bottom-bar' ),
                        'title'    => esc_html__( 'Exreme footer Background', 'logiscargo' ),
                        'subtitle' => esc_html__( 'Select background image or color for extreme bottom image, the section which is used for copyright info etc.', 'logiscargo' ),
                        //'default'   => '#FFFFFF',
                    ),

                )
        );
/*-----------------------------------------------------------------------------------*/
/* Layout Settings                                                                  */
/*-----------------------------------------------------------------------------------*/

    $sections[] = array(
        'title' => esc_html__( 'Header Settings', 'logiscargo' ),
        'id'               => 'layout-options',
        'desc'   => esc_html__( 'Layout Settings for Header.', 'logiscargo' ),
        'icon'   => 'el el-photo ',
        'customizer_width' => '400px',
                'fields' => array(

                array(
                    'id' => $shortname . '_header_style',
                    'type'     => 'image_select',
                    'title' => esc_html__( 'Header/Menu Layout', 'logiscargo' ),
                    'subtitle' => esc_html__( 'Select header layout.', 'logiscargo' ),
                    //Must provide key => value(array:title|img) pairs for radio options
                    'options'  => array(
                        // please be careful changing anything below.
                        'header_1' => array(
                            'alt' => 'Header 1',
                            'img' => TT_TEMPTT_THEME_DIRURI. 'inc/images/hdr1.jpg',
                            'title' => '(Default)Header 1.'
                        ),
                        'header_2' => array(
                            'alt' => 'Header 2',
                            'img' => TT_TEMPTT_THEME_DIRURI. 'inc/images/hdr2.jpg',
                            'title' => 'Header 2( Transparent Header ).'
                        ),
                        'header_3' => array(
                            'alt' => 'Header 3',
                            'img' => TT_TEMPTT_THEME_DIRURI. 'inc/images/hdr3.jpg',
                            'title' => 'Header 3.'
                        ),
                        'header_4' => array(
                            'alt' => 'Header 4',
                            'img' => TT_TEMPTT_THEME_DIRURI. 'inc/images/hdr4.jpg',
                            'title' => 'Header 4. This is same as header 1, only difference is menu is full width here.'
                        ),
                    ),
                    'default'  => 'header_1'
                ),

                array(
                    'id' => $shortname . '_header_call',
                    'type' => 'text',
                    'title' => esc_html__('Text Call', 'logiscargo'),
                    'desc' => esc_html__('This text appears above the phone number in right side of header.', 'logiscargo'),
                    'default' => 'Call Us:',
                    'required' => array(
                                    array( $shortname . '_header_style', '!=', 'header_2' ),
                                    array( $shortname . '_header_style', '!=', 'header_3' ),
                                ),
                ),
                array(
                    'id' => $shortname . '_header_date',
                    'type' => 'text',
                    'title' => esc_html__('Business Hours', 'logiscargo'),
                    'desc' => esc_html__('Business open time, appears on right side of the header.', 'logiscargo'),
                    'default' => 'Mon - Sat 9.00 - 18.00',
                    'required' => array(
                                    array( $shortname . '_header_style', '!=', 'header_2' ),
                                    array( $shortname . '_header_style', '!=', 'header_3' ),
                                ),
                ),
                array(
                    'id' => $shortname . '_header_note',
                    'type' => 'text',
                    'title' => esc_html__('Business Close text', 'logiscargo'),
                    'default' => 'Sunday Closed',
                    'required' => array(
                                    array( $shortname . '_header_style', '!=', 'header_2' ),
                                    array( $shortname . '_header_style', '!=', 'header_3' ),
                                ),
                ),
                array(
                    'id' => $shortname . '_header_icon1',
                    'type' => 'text',
                    'title' => esc_html__('Icon for Business Hours', 'logiscargo'),
                    'desc' => esc_html__('You can use any fontawesome or Flaticon class here, leave default if you are not sure what it means.', 'logiscargo'),
                    'default' => 'icon icon-Timer',
                    'required' => array(
                                    array( $shortname . '_header_style', '!=', 'header_2' ),
                                    array( $shortname . '_header_style', '!=', 'header_3' ),
                                ),
                ),
                array(
                    'id' => $shortname . '_header_icon2',
                    'type' => 'text',
                    'title' => esc_html__('Call us Icon', 'logiscargo'),
                    'desc' => esc_html__('You can use any fontawesome or Flaticon class here, leave default if you are not sure what it means.', 'logiscargo'),
                    'default' => 'icon icon-Phone2',
                    'required' => array(
                                    array( $shortname . '_header_style', '!=', 'header_2' ),
                                    array( $shortname . '_header_style', '!=', 'header_3' ),
                                ),
                ),
                array(
                    'id' => $shortname . '_header_icon3',
                    'type' => 'text',
                    'title' => esc_html__('Icon for Search', 'logiscargo'),
                    'desc' => esc_html__('You can use any fontawesome or Flaticon class here, leave default if you are not sure what it means.', 'logiscargo'),
                    'default' => 'flaticon-search51',
                    'required' => array(
                                    array( $shortname . '_header_style', '!=', 'header_2' ),
                                    array( $shortname . '_header_style', '!=', 'header_3' ),
                                ),
                ),
                array(
                    'id' => $shortname . '_header_search',
                    'type' => 'text',
                    'title' => esc_html__('Search string', 'logiscargo'),
                    'subtitle' => esc_html__('Text search', 'logiscargo'),
                    'desc' => esc_html__('This text appears when one clicks on search icon.', 'logiscargo'),
                    'default' => 'Search our website',
                    'required' => array(
                                    array( $shortname . '_header_style', '!=', 'header_2' ),
                                    array( $shortname . '_header_style', '!=', 'header_3' ),
                                ),
                ),
                array(
                    'id' => $shortname . '_header_text',
                    'type' => 'text',
                    'title' => esc_html__('Menu text', 'logiscargo'),
                    'desc' => esc_html__('This text appears on right side button that appears in menu bar.', 'logiscargo'),
                    'default' => 'Get Free Quote',
                    'required' => array(
                                    array( $shortname . '_header_style', '!=', 'header_2' ),
                                    array( $shortname . '_header_style', '!=', 'header_3' ),
                                ),
                ),
                array(
                    'id' => $shortname . '_header_link',
                    'type' => 'text',
                    'title' => esc_html__('Menu text link', 'logiscargo'),
                    'desc' => esc_html__('This link gets applied on above text/button.', 'logiscargo'),
                    'default' => '#',
                    'required' => array(
                                    array( $shortname . '_header_style', '!=', 'header_2' ),
                                    array( $shortname . '_header_style', '!=', 'header_3' ),
                                ),
                ),
                array(
                    'id'       => $shortname . '_global_herobg',
                    'type'     => 'media',
                    'url'      => true,
                    'title'    => esc_html__( 'Hero area Global background', 'logiscargo' ),
                    'readonly' => false,
                    'subtitle' => esc_html__( 'In this theme, heading area of page shows Hero section, which has an image in background. You can set that background image on per page basis. But choose one global image here which applies by default.', 'logiscargo' ),
                    'default'  => array( 'url' => 'http://cdn.templatation.com/images/2016/lc/inner-banner.jpg' ),
                ),
                array(
                    'id' => $shortname . '_js_topbar_notice',
                    'type'   => 'info',
                    'notice' => false,
                    'style'  => 'info',
                    'title' => esc_html__( 'Toppest Bar Settings', 'logiscargo' ),
                    'desc'   => esc_html__( 'Below settings are for the top most navigation bar which is optional. It adds some usual user interface items. There is limited space on this bar , so be careful in choosing what part you really need. You can try it out and disable things later if bar goes out of space. Note: Top nav background color can be changed from Styling tab.', 'logiscargo' )
                ),
                array(
                    'id' => $shortname . '_enable_topbar',
                    'type'     => 'switch',
                    'title' => esc_html__( 'Enable Top Nav Bar', 'logiscargo' ),
                    'subtitle' => esc_html__( 'Enable/Disable the Top most nav bar globally.', 'logiscargo' ),
                    'default'  => false
                ),
               array(
                    'id' => $shortname . '_top_bar_clr',
                    'type'     => 'color',
                    'title'    => esc_html__( 'Top bar color.', 'logiscargo' ),
                    'subtitle' => esc_html__( 'Default : #061e2a', 'logiscargo' ),
                    'default'  => '',
                    'required' => array( $shortname . '_enable_topbar', '=', true )
               ),
                array(
                    'id' => $shortname . '_top_nav_left_layout',
                    'type'     => 'sorter',
                    'title'    => 'Top nav left content',
                    'subtitle' => 'You can place content as you want, on left side of the top nav. Sort them, or disable by moving them back to Available column. Note that here you can only enable/disable/sort them, their actual content can be controlled from the options below. Note: Email/phone to be entered in Social/contact setting below. ',
                    'compiler' => 'true',
                    'options'  => array(
                        'enabled'  => array(
                            'email'     => 'Email',
                            'phone'   => 'Phone',
                        ),
                        'disabled' => array(
                            'teaser_text'   => 'Text',
                            //'wpml_lang'   => 'WPML Languages',
                            'social'   => 'Social Icons',
                            'custommenu'   => 'Custom Menu',
                        ),
                    ),
                    'required' => array( $shortname . '_enable_topbar', '=', true )
                ),
                array(
                    'id' => $shortname . '_top_nav_right_layout',
                    'type'     => 'sorter',
                    'title'    => 'Top nav right content',
                    'subtitle' => 'You can place content as you want, on right side of the top nav. Sort them, or disable by moving them back to Available column. Note that here you can only enable/disable/sort them, their actual content can be controlled from the options below. Note: Email/phone to be entered in Social/contact setting below. ',
                    'compiler' => 'true',
                    'options'  => array(
                        'enabled'  => array(
                            'social'   => 'Social Icons',
                        ),
                        'disabled' => array(
                            'email'     => 'Email',
                            'phone'   => 'Phone',
                            'teaser_text'   => 'Text',
                            //'wpml_lang'   => 'WPML Languages',
                            'custommenu'   => 'Custom Menu',
                        ),
                    ),
                    'required' => array( $shortname . '_enable_topbar', '=', true )
                ),
                array(
                    'id' => $shortname . '_ttext_text',
                    'type'     => 'text',
                    'title' => esc_html__( 'Teaser Text', 'logiscargo' ),
                    'subtitle' => esc_html__( 'Teaser text is short sentence that you want to highlight. eg : Our helpline number : xyz. This text appears on left most side of top bar.', 'logiscargo' ),
                    'required' => array( $shortname . '_enable_topbar', '=', true )
                ),
                array(
                    'id' => $shortname . '_top_nav_menu',
                    'type'     => 'select',
                    'data'     => 'menus',
                    'title'    => esc_html__( 'Select Menu', 'logiscargo' ),
                    'subtitle' => esc_html__( 'To display custom menu, please create a new menu in Appearance -> Menus and then select it here.', 'logiscargo' ),
                    'required' => array( $shortname . '_enable_topbar', '=', true )
                ),
            )
    );

/*-----------------------------------------------------------------------------------*/
/* Footer Settings                                                                  */
/*-----------------------------------------------------------------------------------*/

    $sections[] = array(
        'title' => esc_html__( 'Footer Customization', 'logiscargo' ),
        'id'               => 'footer-settings1',
        'customizer_width' => '450px',
        'fields'           => array(


           array(
                'id' => $shortname . '_extreme_footer_notice',
                'type'   => 'info',
                'notice' => false,
                'style'  => 'info',
                'title' => esc_html__( 'Footer area customization', 'logiscargo' ),
                'desc'   => esc_html__( 'Customize footer area here. Note: Background colors for footer areas can be changed from Styling tab.', 'logiscargo' )
           ),

           array(
                'id' => $shortname . '_footer_sidebars',
                'type'     => 'image_select',
                'title' => esc_html__( 'Footer Widget Areas', 'logiscargo' ),
                'subtitle' => esc_html__( 'Select how many footer widget areas you want to display.', 'logiscargo' ),
                'desc'     => esc_html__( 'Select default sidebar position for the website.', 'logiscargo' ),
                //Must provide key => value(array:title|img) pairs for radio options
                'options'  => array(
                    '0' => array(
                        'img' => TT_TEMPTT_THEME_DIRURI .'inc/images/footer-widgets-0.png',
                    ),
                    '1' => array(
                        'img' => TT_TEMPTT_THEME_DIRURI .'inc/images/footer-widgets-1.png',
                    ),
                    '2' => array(
                        'img' => TT_TEMPTT_THEME_DIRURI .'inc/images/footer-widgets-2.png',
                    ),
                    '3' => array(
                        'img' => TT_TEMPTT_THEME_DIRURI .'inc/images/footer-widgets-3.png',
                    ),
                    '4' => array(
                        'img' => TT_TEMPTT_THEME_DIRURI .'inc/images/footer-widgets-4.png',
                    ),
                ),
                'default'  => '3'
           ),

           array(
                'id' => $shortname . '_footer_left',
                'type'     => 'switch',
                'title' => esc_html__( 'Enable Custom Footer (Left)', 'logiscargo' ),
                'subtitle' => esc_html__( 'Activate to add the custom text below to the theme footer.', 'logiscargo' ),
                'desc'   => esc_html__( 'If turned off, default text will appear.', 'logiscargo' ),
                'default'  => false,
            ),

           array(
                'id' => $shortname . '_footer_left_text',
                'type'     => 'textarea',
                'title' => esc_html__( 'Custom Text (Left)', 'logiscargo' ),
                'subtitle' => esc_html__( 'Custom HTML and Text that will appear in the upper footer of your theme.', 'logiscargo' ),
                'validate' => 'html', //see http://codex.wordpress.org/Function_Reference/wp_kses_post
                'default'  => '',
                'required' => array( $shortname . '_footer_left', '=', true )
           ),

           array(
                'id' => $shortname . '_footer_right',
                'type'     => 'switch',
                'title' => esc_html__( 'Enable Custom Footer (Right)', 'logiscargo' ),
                'subtitle' => esc_html__( 'Activate to add the custom text below to the theme footer.', 'logiscargo' ),
                'desc'   => esc_html__( 'If turned off, default text will appear.', 'logiscargo' ),
                'default'  => false
           ),

           array(
                'id' => $shortname . '_footer_right_text',
                'type'     => 'textarea',
                'title' => esc_html__( 'Custom Text (Right)', 'logiscargo' ),
                'subtitle' => esc_html__( 'Custom HTML and Text that will appear in the lower footer of your theme.', 'logiscargo' ),
                'validate' => 'html', //see http://codex.wordpress.org/Function_Reference/wp_kses_post
                'default'  => '',
                'required' => array( $shortname . '_footer_right', '=', true )
           ),

        )
    );

/*-----------------------------------------------------------------------------------*/
/* Social Settings                                                                  */
/*-----------------------------------------------------------------------------------*/

    $sections[] = array(
        'title' => esc_html__( 'Social / Contact Settings', 'logiscargo' ),
        'id'               => 'connect-settings',
        'customizer_width' => '450px',
        'fields'           => array(

            array(
                'id' => $shortname . '_contact_number',
                'type'     => 'text',
                'title' => esc_html__( 'Telephone', 'logiscargo' ),
                'subtitle' => esc_html__( 'Enter your telephone number', 'logiscargo' ),
                'default'  => '000-111-222',
            ),
            array(
                'id' => $shortname.'_contactform_email',
                'type'     => 'text',
                'title' => esc_html__( 'Contact E-Mail', 'logiscargo' ),
                'subtitle' => esc_html__( "Enter your E-mail address to use on top bar.", 'logiscargo' ),
                'default'  => 'email@someemail.com',
            ),
            array(
                'id' => $shortname . '_connect_rss',
                'type'     => 'switch',
                'title' => esc_html__( 'Enable RSS', 'logiscargo' ),
                'subtitle' => esc_html__( 'Enable the subscribe and RSS icon.', 'logiscargo' ),
                 'default'  => false
            ),
            array(
                'id' => $shortname . '_connect_twitter',
                'type'     => 'text',
                'title' => esc_html__( 'Twitter URL', 'logiscargo' ),
                'subtitle' => sprintf( esc_html__( 'Enter your %1$s URL e.g. http://www.twitter.com/templatation', 'logiscargo' ), '<a href="http://www.twitter.com/">'.esc_html__( 'Twitter', 'logiscargo' ).'</a>' ),
                'default'  => '#',
            ),
            array(
                'id' => $shortname . '_connect_facebook',
                'type'     => 'text',
                'title' => esc_html__( 'Facebook URL', 'logiscargo' ),
                'subtitle' => sprintf( esc_html__( 'Enter your %1$s URL e.g. http://www.facebook.com/templatation', 'logiscargo' ), '<a href="http://www.facebook.com/">'.esc_html__( 'Facebook', 'logiscargo' ).'</a>' ),
                'default'  => '#',
            ),
            array(
                'id' => $shortname . '_connect_youtube',
                'type'     => 'text',
                'title' => esc_html__( 'YouTube URL', 'logiscargo' ),
                'subtitle' => sprintf( esc_html__( 'Enter your %1$s URL e.g. http://www.youtube.com/templatation', 'logiscargo' ), '<a href="http://www.youtube.com/">'.esc_html__( 'YouTube', 'logiscargo' ).'</a>' ),
                'default'  => '',
            ),
            array(
                'id' => $shortname . '_connect_flickr',
                'type'     => 'text',
                'title' => esc_html__( 'Flickr URL', 'logiscargo' ),
                'subtitle' => sprintf( esc_html__( 'Enter your %1$s URL e.g. http://www.flickr.com/templatation', 'logiscargo' ), '<a href="http://www.flickr.com/">'.esc_html__( 'Flickr', 'logiscargo' ).'</a>' ),
                'default'  => '',
            ),
            array(
                'id' => $shortname . '_connect_linkedin',
                'type'     => 'text',
                'title' => esc_html__( 'LinkedIn URL', 'logiscargo' ),
                'subtitle' => sprintf( esc_html__( 'Enter your %1$s URL e.g. http://www.linkedin.com/in/templatation', 'logiscargo' ), '<a href="http://www.www.linkedin.com.com/">'.esc_html__( 'LinkedIn', 'logiscargo' ).'</a>' ),
                'default'  => '',
            ),
            array(
                'id' => $shortname . '_connect_pinterest',
                'type'     => 'text',
                'title' => esc_html__( 'Pinterest URL', 'logiscargo' ),
                'subtitle' => sprintf( esc_html__( 'Enter your %1$s URL e.g. http://www.pinterest.com/templatation', 'logiscargo' ), '<a href="http://www.pinterest.com/">'.esc_html__( 'Pinterest', 'logiscargo' ).'</a>' ),
                'default'  => '#',
            ),
            array(
                'id' => $shortname . '_connect_instagram',
                'type'     => 'text',
                'title' => esc_html__( 'Instagram URL', 'logiscargo' ),
                'subtitle' => sprintf( esc_html__( 'Enter your %1$s URL e.g. http://www.instagram.com/templatation', 'logiscargo' ), '<a href="http://www.instagram.com/">'.esc_html__( 'Instagram', 'logiscargo' ).'</a>' ),
                'default'  => '#',
            ),
            array(
                'id' => $shortname . '_connect_googleplus',
                'type'     => 'text',
                'title' => esc_html__( 'Google+ URL', 'logiscargo' ),
                'subtitle' => sprintf( esc_html__( 'Enter your %1$s URL e.g. https://plus.google.com/104560124403688998123/', 'logiscargo' ), '<a href="http://plus.google.com/">'.esc_html__( 'Google+', 'logiscargo' ).'</a>' ),
                'default'  => '',
            ),
        )
    );

/*-----------------------------------------------------------------------------------*/
/* Included Plugins / Theme updates                                                  */
/*-----------------------------------------------------------------------------------*/

   $sections[] = array(
        'title' => esc_html__( 'Included Plugins', 'logiscargo' ),
        'id'               => 'included-plugins',
        'customizer_width' => '450px',
        'fields'           => array(

            array(
                'id' => $shortname . '_inc_plugins',
                'type'   => 'info',
                'notice' => false,
                'style'  => 'info',
                'title' => esc_html__( 'Included Plugins', 'logiscargo' ),
                'desc'   => sprintf( esc_html__( 'The theme requires/recommends some plugin to function properly. Theme also includes some premium plugins with your purchase, to manage plugins, please go to Appearance -> Install plugins. Note: The menu only appears if all required plugins are not activated. So not to worry if you do not find that menu link.', 'logiscargo' ), '<a href="' . esc_url( home_url('/') ) . 'wp-admin/themes.php?page=tgmpa-install-plugins">'.esc_html__( 'Click Here', 'logiscargo' ).'</a>' ),
            ),
        )
    );

   $sections[] = array(
        'title'  => esc_html__( 'Theme Updates', 'logiscargo' ),
        'id'     => 'theme-update',
        'icon'   => 'el el-refresh',
        'customizer_width' => '450px',
        'fields' => array(

            array(
                'id' => $shortname . '_theme_update',
                'type'   => 'info',
                'notice' => false,
                'style'  => 'info',
                'title' => esc_html__( 'Theme Update', 'logiscargo' ),
                'desc'   => sprintf( esc_html__( 'The theme is regularly updated with new features and other bug fixes and improvement. You can activate Envato plugin for hassle free theme updates whenever update is available without having to download from Themeforest. Note if you modified any theme files, it will be overwritten with update. Again, make sure to keep regular backups. You can use awesome free plugin named %1$s  to create backups periodically(automatically) without hassles.', 'logiscargo' ), '<a href="https://wordpress.org/plugins/updraftplus/">'.esc_html__( 'UpdraftPlus', 'logiscargo' ).'</a>' ),
            ),
            array(
                'id' => $shortname . '_theme_update3',
                'type'   => 'info',
                'notice' => false,
                'style'  => 'info',
                'title' => __( 'Envato plugin', 'logiscargo' ),
                'desc'   => sprintf( __( '%1s download envato plugin, once you activate it, you will see Envato Market link on left bar. Its easy to setup thereafter. Once setup you can manage all your Envato market purchases and 1 click install/update.', 'logiscargo' ), '<a href="http://envato.github.io/wp-envato-market/dist/envato-market.zip">'.__( 'Click Here to download', 'logiscargo' ).'</a>' ),
            )
        )
    );


    return $sections;

    }
}

