<?php

Kirki::add_section( 'shop_options', array(
	'title' => esc_html__( 'Shop Page Options', 'newshit' ),
	'panel' => 'newshit_theme_shop',
) );

new \Kirki\Field\Select(
	[
		'settings' => 'shop_page_layout',
		'label'    => esc_html__( 'Select Shop Page Layout', 'newshit' ),
		'section'  => 'shop_options',
		'default'  => 'full-width',
		'choices'  => [
			'full-width'    => esc_html__( 'No Sidebar', 'newshit' ),
			'left-sidebar'  => esc_html__( 'Left Sidebar', 'newshit' ),
			'right-sidebar' => esc_html__( 'Right Sidebar', 'newshit' ),
		],
	]
);

new \Kirki\Field\Select(
	[
		'settings' => 'shop_columns',
		'label'    => esc_html__( 'Select Shop item Columns', 'newshit' ),
		'section'  => 'shop_options',
		'default'  => '3',
		'choices'  => [
			'1'    => esc_html__( 'One Column', 'newshit' ),
			'2'    => esc_html__( 'Two Column', 'newshit' ),
			'3'    => esc_html__( 'Three Column', 'newshit' ),
			'4'    => esc_html__( 'Four Column', 'newshit' ),
			'5'    => esc_html__( 'Five Column', 'newshit' ),
			'6'    => esc_html__( 'Six Column', 'newshit' ),
		],
	]
);

new \Kirki\Field\Number(
	[
		'settings' => 'shop_perpage',
		'label'    => esc_html__( 'Display Item', 'newshit' ),
		'section'  => 'shop_options',
		'default'  => 6,
		'choices'  => [
			'min'  => 1,
			'max'  => 10,
			'step' => 1,
		],
	]
);

new \Kirki\Field\Checkbox_Switch(
	[
		'settings'    => 'shop_enable_filter',
		'label'       => esc_html__( 'Enable Filter', 'newshit' ),
		'description' => esc_html__( 'Enable Shop Page Filter Options', 'newshit' ),
		'section'     => 'shop_options',
		'default'     => 'on',
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'newshit' ),
			'off' => esc_html__( 'Disable', 'newshit' ),
		],
	]
);

new \Kirki\Field\Checkbox_Switch(
	[
		'settings'    => 'shop_enable_minicart',
		'label'       => esc_html__( 'Enable Header Mini Cart', 'newshit' ),
		'description' => esc_html__( 'Enable Mini Cart On Header', 'newshit' ),
		'section'     => 'shop_options',
		'default'     => 'off',
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'newshit' ),
			'off' => esc_html__( 'Disable', 'newshit' ),
		],
	]
);