File "header.php"

Full Path: /home/adniftyx/public_html/wp-content/themes/credio/inc/customizer/header.php
File size: 12.97 KB
MIME-type: text/x-php
Charset: utf-8

<?php
function credio_header_panel( $credio_customizer, $priority ){
    $credio_customizer->add_section( 'credio_header_setting' , array(
        'title'      => esc_html__( 'Header Settings', 'credio' ),
        'priority'   => $priority,
        'panel'		 => 'credio_options_panel'
    ) );

	//Start
    $credio_customizer->add_setting(
        'credio_header_sign_in_text',
        array(
            'transport' => 'refresh',
        )
    );
    $credio_customizer->add_control('credio_header_sign_in_text', array(
        'section' => 'credio_header_setting',
        'label'   => esc_html__('Sign In', 'credio'),
        'type'    => 'text',
        'setting' => 'credio_header_sign_in_text',
    ));
    //End

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_0', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_0', 
			array(
				'settings'		=> 'header_hr_0',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start Color
	$credio_customizer->add_setting (
        'credio_header_sign_in_text_color',
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_header_sign_in_text_color',
            array(
                'label'       => esc_html__('Text Color','credio'),
                'description' => esc_html__('Select Text Color','credio'),
                'section'     => 'credio_header_setting',
                'settings'    => 'credio_header_sign_in_text_color',
            )
        )
    );
	//End Color

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_1', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_1', 
			array(
				'settings'		=> 'header_hr_1',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start Color
	$credio_customizer->add_setting (
        'credio_header_sign_in_text_hover_color',
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_header_sign_in_text_hover_color',
            array(
                'label'       => esc_html__('Hover Color','credio'),
                'description' => esc_html__('Select Hover Color','credio'),
                'section'     => 'credio_header_setting',
                'settings'    => 'credio_header_sign_in_text_hover_color',
            )
        )
    );
	//End Color

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_2', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_2', 
			array(
				'settings'		=> 'header_hr_2',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start
    $credio_customizer->add_setting(
        'credio_header_sign_in_link',
        array(
			'default' => esc_html__( '#', 'credio' ),
            'transport' => 'refresh',
        )
    );
    $credio_customizer->add_control('credio_header_sign_in_link', array(
        'section' => 'credio_header_setting',
        'label'   => esc_html__('Sign In Link', 'credio'),
        'type'    => 'text',
        'setting' => 'credio_header_sign_in_link',
    ));
    //End

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_3', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_3', 
			array(
				'settings'		=> 'header_hr_3',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start
	$credio_customizer->add_setting( 'credio_header_sign_in_link_new_tab', 
	array(
		'default'    => '1',
		) 
	);
	$credio_customizer->add_control(
		new credio_Customize_Switch_Control(
			$credio_customizer,
			'credio_header_sign_in_link_new_tab',
			array(
				'type'        => 'switch',
				'label'       => esc_html__('Open New Tab','credio'),
				'description' => esc_html__('Open the link document in a new window or tab','credio'),
				'section'     => 'credio_header_setting'
			)
		)
	);
	//End

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_4', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_4', 
			array(
				'settings'		=> 'header_hr_4',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start
    $credio_customizer->add_setting(
        'credio_header_download_text',
        array(
            'transport' => 'refresh',
        )
    );
    $credio_customizer->add_control('credio_header_download_text', array(
        'section' => 'credio_header_setting',
        'label'   => esc_html__('Download', 'credio'),
        'type'    => 'text',
        'setting' => 'credio_header_download_text',
    ));
    //End

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_5', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_5', 
			array(
				'settings'		=> 'header_hr_5',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start Color
	$credio_customizer->add_setting (
        'credio_header_download_border_color',
        array(
            'default'     => ''
        )
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_header_download_border_color',
            array(
                'label'      => esc_html__('Border Color','credio'),
                'description'      => esc_html__('Select Button Border Color','credio'),
                'section'    => 'credio_header_setting',
                'settings'   => 'credio_header_download_border_color',
            )
        )
    );
	//End Color

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_6', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_6', 
			array(
				'settings'		=> 'header_hr_6',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start Color
	$credio_customizer->add_setting (
        'credio_header_download_text_color',
        array(
            'default'     => ''
        )
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_header_download_text_color',
            array(
                'label'      => esc_html__('Text Color','credio'),
                'description'      => esc_html__('Select text Color','credio'),
                'section'    => 'credio_header_setting',
                'settings'   => 'credio_header_download_text_color',
            )
        )
    );
	//End Color

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_7', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_7', 
			array(
				'settings'		=> 'header_hr_7',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start Color
	$credio_customizer->add_setting (
        'credio_header_download_text_hover_color',
        array(
            'default'     => ''
        )
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_header_download_text_hover_color',
            array(
                'label'      => esc_html__('Text Hover Color','credio'),
                'description'      => esc_html__('Select Text Hover Color','credio'),
                'section'    => 'credio_header_setting',
                'settings'   => 'credio_header_download_text_hover_color',
            )
        )
    );
	//End Color

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_8', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_8', 
			array(
				'settings'		=> 'header_hr_8',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start Color
	$credio_customizer->add_setting (
        'credio_header_download_btn_hover_color',
        array(
            'default'     => ''
        )
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_header_download_btn_hover_color',
            array(
                'label'      => esc_html__('Button Hover Color','credio'),
                'description'      => esc_html__('Select Button Hover Color','credio'),
                'section'    => 'credio_header_setting',
                'settings'   => 'credio_header_download_btn_hover_color',
            )
        )
    );
	//End Color

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_9', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_9', 
			array(
				'settings'		=> 'header_hr_9',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start
    $credio_customizer->add_setting(
        'credio_header_download_link',
        array(
            'default' => esc_html__( '#', 'credio' ),
            'transport' => 'refresh',
        )
    );
    $credio_customizer->add_control('credio_header_download_link', array(
        'section' => 'credio_header_setting',
        'label' => esc_html__('Download Link', 'credio'),
        'type' => 'text',
        'setting' => 'credio_header_download_link',
    ));
    //End

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_10', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_10', 
			array(
				'settings'		=> 'header_hr_10',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start Show Top Bar
	$credio_customizer->add_setting( 'credio_header_download_link_new_tab', 
	array(
		'default'    => '1',
		) 
	);
	$credio_customizer->add_control(
		new credio_Customize_Switch_Control(
			$credio_customizer,
			'credio_header_download_link_new_tab',
			array(
				'type' => 'switch',
				'label' => esc_html__('Open New Tab','credio'),
				'description' => esc_html__('Open the link document in a new window or tab','credio'),
				'section' => 'credio_header_setting'
			)
		)
	);
	//End Show Top Bar

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_11', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_11', 
			array(
				'settings'		=> 'header_hr_11',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start Meta Text Alignment
	$credio_customizer->add_setting( 'credio_header_width', array(
		'default'           => 'container',
		'transport'	        => 'postMessage',
	) );
	$credio_customizer->add_control( 'credio_header_width', array(
		'label'   => esc_html__( 'Header Area Width', 'credio' ),
		'section' => 'credio_header_setting',
		'type'    => 'select',
		'choices' => array(
			'container' => esc_html__( 'Container', 'credio' ),
			'container-fluid' => esc_html__( 'Container Fluid', 'credio' ),
			),
	));
	//End

	//Start separator
	$credio_customizer->add_setting(
		'header_hr_12', 
		array(
			'default'           => '',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'header_hr_12', 
			array(
				'settings'		=> 'header_hr_12',
				'section'  		=> 'credio_header_setting',
			)
		)
	);
	//End separator

	//Start Header Bg Color
	$credio_customizer->add_setting (
        'credio_style_header_bg_color',
        array(
            'default'     => ''
        )
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_style_header_bg_color',
            array(
                'label'      => esc_html__('Header Bg Color','credio'),
                'description'      => esc_html__('Select Header Bg Color','credio'),
                'section'    => 'credio_header_setting',
                'settings'   => 'credio_style_header_bg_color',
            )
        )
    );
	//End Header Bg Color
}