<?php
	require 'customizer-callback/menu-callback.php';

	// Header Image.
	//$wp_customize->get_section( 'header_image' )->panel    = 'leatherhouse_theme_settings';
	//$wp_customize->get_section( 'header_image' )->title    = __( 'Page Header', 'leather-house' );
	//$wp_customize->get_section( 'header_image' )->priority = 40;

	// Sticky Bar Logo.
	// $wp_customize->add_setting(
	// 	'leatherhouse_sticky_bar_logo',
	// 	array(
	// 		'sanitize_callback' => 'esc_url_raw',
	// 	)
	// );
	// $wp_customize->add_control(
	// 	new WP_Customize_Image_Control(
	// 		$wp_customize,
	// 		'leatherhouse_sticky_bar_logo',
	// 		array(
	// 			'label'           => esc_html__( 'Set Sticky Menu Logo', 'leather-house' ),
	// 			'description'     => esc_html__( 'You can Upload the Standrad size of logo (220x40px)', 'leather-house' ),
	// 			'section'         => 'leatherhouse_theme_menu_bar',
	// 			'settings'        => 'leatherhouse_sticky_bar_logo',
	// 			'priority'        => 15,
	// 			'active_callback' => 'leatherhouse_sticky_bar_logo',
	// 		)
	// 	)
	// );
	// function leatherhouse_sticky_bar_logo( $control ) {
	// 	return true === ( $control->manager->get_setting( 'leatherhouse_menu_style' )->value() == 'sticky' );
	// }

	// Menu Button icon setting.
	$wp_customize->add_setting(
		'leatherhouse_menu_btn_icon',
		array(
			'default'           => 'fa-user',
			'sanitize_callback' => 'sanitize_text_field',
		)
	);

	$wp_customize->add_control(
		new leatherhouse_Icon_Picker_Control(
			$wp_customize,
			'leatherhouse_menu_btn_icon',
			array(
				'label'           => __( 'Icon', 'leather-house' ),
				'section'         => 'leatherhouse_theme_menu_bar',
				'iconset'         => 'fa',
				'priority'        => 40,
				'active_callback' => 'leatherhouse_menu_btn_icon',
			)
		)
	);
	// Menu Button Label.
	$wp_customize->add_setting(
		'leatherhouse_menu_btn_text',
		array(
			'default'           => 'Button',
			'sanitize_callback' => 'leatherhouse_sanitize_text',
		)
	);

	$wp_customize->add_control(
		'leatherhouse_menu_btn_text',
		array(
			'label'           => __( 'Button Text', 'leather-house' ),
			'section'         => 'leatherhouse_theme_menu_bar',
			'type'            => 'text',
			'priority'        => 40,
			'active_callback' => 'leatherhouse_menu_btn_text',
		)
	);

	// Menu Button Link.
	$wp_customize->add_setting(
		'leatherhouse_menu_btn_link',
		array(
			'default'           => '',
			'sanitize_callback' => 'leatherhouse_sanitize_url',
		)
	);

	$wp_customize->add_control(
		'leatherhouse_menu_btn_link',
		array(
			'label'           => __( 'Button Link', 'leather-house' ),
			'section'         => 'leatherhouse_theme_menu_bar',
			'type'            => 'text',
			'priority'        => 50,
			'active_callback' => 'leatherhouse_menu_btn_link',
		)
	);
