<?php

if(self::$parent->fs()->can_use_premium_code__premium_only()) {

    Kirki::add_field( self::$config_id, array(
        'settings' => self::field_id('cart_header_bg_color'),
        'section'  => self::section_id('header'),
        'label'    => esc_html__( 'Cart Header Bg Color', 'woo-floating-cart' ),
        'type'     => 'color',
        'priority' => 10,
        'default'  => '#ffffff',
        'transport'=>'auto',
        'output' => array(
            array(
                'element'  => '.xt_woofc-inner .xt_woofc-header',
                'property' => 'background',
            )
        )
    ));

    Kirki::add_field( self::$config_id, array(
        'settings' => self::field_id('cart_header_bottom_border_color'),
        'section'  => self::section_id('header'),
        'label'    => esc_html__( 'Cart Header Bottom Border Color', 'woo-floating-cart' ),
        'type'     => 'color',
        'priority' => 10,
        'default'  => '#e6e6e6',
        'transport'=>'auto',
        'output' => array(
            array(
                'element'  => '.xt_woofc-inner .xt_woofc-header',
                'property' => 'border-color',
            )
        )
    ));

    Kirki::add_field( self::$config_id, array(
        'settings' => self::field_id('cart_header_title_color'),
        'section'  => self::section_id('header'),
        'label'    => esc_html__( 'Cart Header Title Color', 'woo-floating-cart' ),
        'type'     => 'color',
        'priority' => 10,
        'default'  => '#181818',
        'transport'=>'auto',
        'output' => array(
            array(
                'element'  => '.xt_woofc-inner .xt_woofc-title',
                'property' => 'color',
            )
        )
    ));

    Kirki::add_field( self::$config_id, array(
        'settings' => self::field_id('cart_header_undo_color'),
        'section'  => self::section_id('header'),
        'label'    => esc_html__( 'Cart Header Undo Msg Color', 'woo-floating-cart' ),
        'type'     => 'color',
        'priority' => 10,
        'default'  => '#808b97',
        'transport'=>'auto',
        'output' => array(
            array(
                'element'  => '.xt_woofc-inner .xt_woofc-undo',
                'property' => 'color',
            )
        )
    ));

    Kirki::add_field( self::$config_id, array(
        'settings' => self::field_id('cart_header_undo_link_color'),
        'section'  => self::section_id('header'),
        'label'    => esc_html__( 'Cart Header Undo Link Color', 'woo-floating-cart' ),
        'type'     => 'color-alpha',
        'priority' => 10,
        'default'  => '#2b3e51',
        'transport'=>'auto',
        'output' => array(
            array(
                'element'  => '.xt_woofc-inner .xt_woofc-undo a',
                'property' => 'color',
            )
        )
    ));
    Kirki::add_field( self::$config_id, array(
        'settings' => self::field_id('cart_header_undo_link_hover_color'),
        'section'  => self::section_id('header'),
        'label'    => esc_html__( 'Cart Header Undo Link Hover Color', 'woo-floating-cart' ),
        'type'     => 'color-alpha',
        'priority' => 10,
        'default'  => '#2b3e51',
        'transport'=>'auto',
        'output' => array(
            array(
                'element'  => array('.xt_woofc-no-touchevents .xt_woofc-inner .xt_woofc-undo a:hover', '.xt_woofc-touchevents .xt_woofc-inner .xt_woofc-undo a:focus'),
                'property' => 'color',
            )
        )
    ));

    Kirki::add_field( self::$config_id, array(
        'settings' => self::field_id('cart_header_error_color'),
        'section'  => self::section_id('header'),
        'label'    => esc_html__( 'Cart Header Error Msg Color', 'woo-floating-cart' ),
        'type'     => 'color',
        'priority' => 10,
        'default'  => '#dd3333',
        'transport'=>'auto',
        'output' => array(
            array(
                'element'  => '.xt_woofc-inner .xt_woofc-cart-error',
                'property' => 'color',
            )
        )
    ));

}else{

    Kirki::add_field(self::$config_id, array(
        'settings' => self::field_id('header_features'),
        'section'     => self::section_id('header'),
        'type'  => 'xt-premium',
        'default' => array(
            'type' => 'image',
            'value' => self::$parent->plugin_url(). 'includes/customizer/assets/images/header.png',
            'link' => self::$parent->fs()->get_upgrade_url()
        )
    ));
}