<?php

/*
 * Theme Customize Options
 * @package ethrik
 * @since 1.0.0
 * */

if ( !defined('ABSPATH') ){
	exit(); // exit if access directly
}

if (class_exists('CSF') ){
	$prefix = 'ethrik';

	CSF::createCustomizeOptions($prefix.'_customize_options');


        /*-------------------------------------
     ** Typography Options
     -------------------------------------*/
        CSF::createSection($prefix . '_customize_options', array(
        'id' => 'theme_typo_settings', // Set a unique slug-like ID
        'title' => esc_html__('Ethrik Typography Options', 'ethrik') ,
        'priority' => 11,

        'fields' => array(

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Body', 'ethrik') . '</h3>'
            ) ,

            array(
                'id' => 'body_font',
                'type' => 'typography',
                'output' => 'body',
                'default' => array(
                    'color' => false,
                    'font-family' => 'Manrope',
                    'font-weight' => '500',
                    'font-size' => '14',
                    'line-height' => false,
                    'letter-spacing' => false,
                    'subset' => 'latin-ext',
                    'type' => 'google',
                    'unit' => 'px',
                ) ,

                'extra-styles' => array(
                    '300',
                    '400',
                    '600',
                    '700',
                ) ,

            ) ,

            array(
                'id' => 'title_typo_enable',
                'title' => esc_html__('Enable Title Typography','ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable Typography', 'ethrik') ,
                'default' => false,
            ),


            array(
                'id' => 'heading_font',
                'type' => 'typography',
                'output' => array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', '.blog-sidebar .widget .widget-title', '.wp-block-search .wp-block-search__label', '.widget.widget_block .wp-block-group__inner-container h2' ),
                'default' => array(
                    'color' => false,
                    'font-family' => 'Space Grotesk',
                    'font-weight' => '700',
                    'font-size' => false,
                    'line-height' => false,
                    'subset' => 'latin-ext',
                    'type' => 'google',
                    'unit' => 'px',
                    'letter-spacing' => false,
                ) ,
                'extra-styles' => array(
                    '300',
                    '400',
                    '500',
                    '600',
                    '800',
                    '900'
                ) ,

                'dependency' => array( 'title_typo_enable', '==', 'true' ),
                
            ) ,



        )
    ));


	/*-------------------------------------
     ** Color Settings
     -------------------------------------*/
    CSF::createSection($prefix . '_customize_options', array(
		'id' => 'theme_settings', // Set a unique slug-like ID
        'title' => esc_html__('Ethrik Color Options', 'ethrik') ,
        'priority' => 10,
        'fields' => array(

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Choose Theme Color', 'ethrik') . '</h3>',
            ) ,

            array(
                'id' => 'default_gradient_enable',
                'title' => esc_html__('Enable theme default gradient color','ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable default gradient', 'ethrik') ,
                'default' => true,
            ),


            array(
                'id' => 'gradient_one',
                'type' => 'color',
                'title' => esc_html__('Theme Gradient Color One', 'ethrik') ,
                'default' => '#3268FE',
            ) ,

            array(
                'id' => 'gradient_two',
                'type' => 'color',
                'title' => esc_html__('Theme Gradient Color Two', 'ethrik') ,
                'default' => '#FE3232',
            ) ,

            array(
                'id' => 'theme_main_color',
                'type' => 'color',
                'title' => esc_html__('Theme Main Solid Color', 'ethrik') ,
                'default' => '#FF3797',
            ) ,

            array(
                'id' => 'theme_preloader_bg',
                'type' => 'color',
                'title' => esc_html__('Set Preloader Background Color', 'ethrik') ,
                'default' => '#000',
				'output'      => '.theme-preloader-style',
				'output_mode' => 'background-color'
				
            ) ,

            array(
                'id' => 'theme_preloader_spinner',
                'type' => 'color',
                'title' => esc_html__('Theme Preloader Spinner Color', 'ethrik') ,
                'default' => '#3268FE',
            ) ,
			
			array(
                'id' => 'theme_body_bg',
                'type' => 'color',
                'title' => esc_html__('Body Background Color', 'ethrik') ,
                'default' => '#111',
				'output'      => 'body',
				'output_mode' => 'background-color'
				
            ) ,

            array(
                'id' => 'theme_body_text',
                'type' => 'color',
                'title' => esc_html__('Body Text Color', 'ethrik') ,
                'default' => '#4E4E4E',
				'output'      => 'body',
				'output_mode' => 'color'
            ) ,

			

        )

    ));






}//endif