<?php /**
 * Header Main Row Options
 *
 * @package Kadence
 */

namespace Kadence;

use Kadence\Theme_Customizer;
use function Kadence\kadence;

$settings = array(
	'woocommerce_store_notice_tabs' => array(
		'control_type' =&gt; 'kadence_tab_control',
		'section'      =&gt; 'woocommerce_store_notice',
		'settings'     =&gt; false,
		'priority'     =&gt; 1,
		'input_attrs'  =&gt; array(
			'general' =&gt; array(
				'label'  =&gt; __( 'General', 'kadence' ),
				'target' =&gt; 'woocommerce_store_notice',
			),
			'design' =&gt; array(
				'label'  =&gt; __( 'Design', 'kadence' ),
				'target' =&gt; 'woocommerce_store_notice_design',
			),
			'active' =&gt; 'general',
		),
	),
	'woocommerce_store_notice_tabs_design' =&gt; array(
		'control_type' =&gt; 'kadence_tab_control',
		'section'      =&gt; 'woocommerce_store_notice_design',
		'settings'     =&gt; false,
		'priority'     =&gt; 1,
		'input_attrs'  =&gt; array(
			'general' =&gt; array(
				'label'  =&gt; __( 'General', 'kadence' ),
				'target' =&gt; 'woocommerce_store_notice',
			),
			'design' =&gt; array(
				'label'  =&gt; __( 'Design', 'kadence' ),
				'target' =&gt; 'woocommerce_store_notice_design',
			),
			'active' =&gt; 'design',
		),
	),
	'woo_store_notice_placement' =&gt; array(
		'control_type' =&gt; 'kadence_radio_icon_control',
		'section'      =&gt; 'woocommerce_store_notice',
		'transport'    =&gt; 'refresh',
		'default'      =&gt; kadence()-&gt;default( 'woo_store_notice_placement' ),
		'label'        =&gt; esc_html__( 'Store Notice Placement', 'kadence' ),
		'input_attrs'  =&gt; array(
			'layout' =&gt; array(
				'standard' =&gt; array(
					'tooltip' =&gt; __( 'Hangs down over the top of the header', 'kadence' ),
					'name'    =&gt; __( 'Hang Over Top', 'kadence' ),
					'icon'    =&gt; '',
				),
				'above' =&gt; array(
					'tooltip' =&gt; __( 'Placed above the Header', 'kadence' ),
					'name'    =&gt; __( 'Above', 'kadence' ),
					'icon'    =&gt; '',
				),
				'bottom' =&gt; array(
					'tooltip' =&gt; __( 'Stuck to the Bottom of the screen', 'kadence' ),
					'name'    =&gt; __( 'Bottom', 'kadence' ),
					'icon'    =&gt; '',
				),
			),
			'responsive' =&gt; false,
		),
	),
	'woo_store_notice_hide_dismiss' =&gt; array(
		'control_type' =&gt; 'kadence_switch_control',
		'sanitize'     =&gt; 'kadence_sanitize_toggle',
		'section'      =&gt; 'woocommerce_store_notice',
		'default'      =&gt; kadence()-&gt;default( 'woo_store_notice_hide_dismiss' ),
		'label'        =&gt; esc_html__( 'Disable Dismiss Button?', 'kadence' ),
		'transport'    =&gt; 'refresh',
		'context'      =&gt; array(
			array(
				'setting'    =&gt; 'woo_store_notice_placement',
				'operator'   =&gt; '=',
				'value'      =&gt; 'above',
			),
		),
	),
	'woo_store_notice_font' =&gt; array(
		'control_type' =&gt; 'kadence_typography_control',
		'section'      =&gt; 'woocommerce_store_notice_design',
		'label'        =&gt; esc_html__( 'Notice Font', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'woo_store_notice_font' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css_typography',
				'selector' =&gt; '.woocommerce-demo-store .woocommerce-store-notice, .woocommerce-demo-store .woocommerce-store-notice a',
				'property' =&gt; 'font',
				'key'      =&gt; 'typography',
			),
		),
		'input_attrs'  =&gt; array(
			'id' =&gt; 'woo_store_notice_font',
		),
	),
	'woo_store_notice_background' =&gt; array(
		'control_type' =&gt; 'kadence_color_control',
		'section'      =&gt; 'woocommerce_store_notice_design',
		'label'        =&gt; esc_html__( 'Background Color', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'woo_store_notice_background' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.woocommerce-demo-store .woocommerce-store-notice',
				'property' =&gt; 'background',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'color',
			),
		),
		'input_attrs'  =&gt; array(
			'colors' =&gt; array(
				'color' =&gt; array(
					'tooltip' =&gt; __( 'Overlay Color', 'kadence' ),
					'palette' =&gt; true,
				),
			),
			'allowGradient' =&gt; true,
		),
	),
);

Theme_Customizer::add_settings( $settings );

