<?php
/**
 * Customizer fields for hamburger panel logo settings.
 *
 * @package Eronex
 * @since   0.0.1
 */

use Kirki\Field\Image;
use Kirki\Field\Background;
use Kirki\Field\Color;
use Kirki\Field\Dimension;
use Kirki\Field\Dimensions;
use Kirki\Field\Select;
use Kirki\Pro\Field\Divider;
use Kirki\Pro\Field\HeadlineToggle;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

new Image(
	array(
		'label'       => esc_html__( 'Logo Image', 'eronex' ),
		'settings'    => 'eronex_hamburger_logo',
		'section'     => 'eronex_hamburger_logo',
		'default'     => '',
	)
);

new Divider(
	array(
		'settings'        => 'eronex_hamburger_logo_width_separator',
		'section'         => 'eronex_hamburger_logo',
		'choices'         => array(
			'color' => $separator_color,
		),
	)
);

new Dimension(
	array(
		'label'       => esc_html__( 'Logo Width', 'eronex' ),
		'settings'    => 'eronex_hamburger_logo_width',
		'section'     => 'eronex_hamburger_logo',
		'transport'   => 'auto',
		'responsive'  => true,
		'default'     => array(
			'desktop' => '',
			'tablet'  => '',
			'mobile'  => '',
		),
		'output'      => array(
			array(
				'element'     => '.eronex-hamburger-header .eronex-hamburger-logo',
				'property'    => 'width',
				'media_query' => array(
					'desktop' => $desktop_media_query,
					'tablet'  => $tablet_media_query,
					'mobile'  => $mobile_media_query,
				),
			),
		),
	)
);