<?php /**
 * Header Builder Options
 *
 * @package Kadence
 */

namespace Kadence;

use Kadence\Theme_Customizer;
use function Kadence\kadence;

$settings = array(
	'content_width' => array(
		'control_type' =&gt; 'kadence_range_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 20,
		'label'        =&gt; esc_html__( 'Content Max Width', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.site-container, .site-header-row-layout-contained',
				'property' =&gt; 'max-width',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'content_width' ),
		'input_attrs'  =&gt; array(
			'min'        =&gt; array(
				'px'  =&gt; 400,
				'em'  =&gt; 30,
				'rem' =&gt; 30,
			),
			'max'        =&gt; array(
				'px'  =&gt; 2000,
				'em'  =&gt; 140,
				'rem' =&gt; 140,
			),
			'step'       =&gt; array(
				'px'  =&gt; 1,
				'em'  =&gt; 0.01,
				'rem' =&gt; 0.01,
			),
			'units'      =&gt; array( 'px', 'em', 'rem' ),
			'responsive' =&gt; false,
		),
	),
	'content_edge_spacing' =&gt; array(
		'control_type' =&gt; 'kadence_range_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 20,
		'label'        =&gt; esc_html__( 'Content Left/Right Edge Spacing', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.site-container, .site-header-row-layout-contained, .site-footer-row-layout-contained, .entry-hero-layout-contained, .alignfull&gt;.wp-block-cover__inner-container, .alignwide&gt;.wp-block-cover__inner-container',
				'property' =&gt; 'padding-left',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.site-container, .site-header-row-layout-contained, .site-footer-row-layout-contained, .entry-hero-layout-contained, .alignfull&gt;.wp-block-cover__inner-container, .alignwide&gt;.wp-block-cover__inner-container',
				'property' =&gt; 'padding-right',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'content_edge_spacing' ),
		'input_attrs'  =&gt; array(
			'min'        =&gt; array(
				'px'  =&gt; 0,
				'em'  =&gt; 0,
				'rem' =&gt; 0,
				'vw'  =&gt; 0,
			),
			'max'        =&gt; array(
				'px'  =&gt; 200,
				'em'  =&gt; 12,
				'rem' =&gt; 12,
				'vw'  =&gt; 40,
			),
			'step'       =&gt; array(
				'px'  =&gt; 1,
				'em'  =&gt; 0.01,
				'rem' =&gt; 0.01,
				'vw'  =&gt; 1,
			),
			'units'      =&gt; array( 'px', 'em', 'rem', 'vh' ),
			'responsive' =&gt; true,
		),
	),
	'content_spacing' =&gt; array(
		'control_type' =&gt; 'kadence_range_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 20,
		'label'        =&gt; esc_html__( 'Content Top and Bottom Spacing', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.content-area',
				'property' =&gt; 'margin-top',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.content-area',
				'property' =&gt; 'margin-bottom',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'content_spacing' ),
		'input_attrs'  =&gt; array(
			'min'        =&gt; array(
				'px'  =&gt; 0,
				'em'  =&gt; 0,
				'rem' =&gt; 0,
				'vw'  =&gt; 0,
			),
			'max'        =&gt; array(
				'px'  =&gt; 200,
				'em'  =&gt; 12,
				'rem' =&gt; 12,
				'vw'  =&gt; 40,
			),
			'step'       =&gt; array(
				'px'  =&gt; 1,
				'em'  =&gt; 0.01,
				'rem' =&gt; 0.01,
				'vw'  =&gt; 1,
			),
			'units'      =&gt; array( 'px', 'em', 'rem', 'vh' ),
			'responsive' =&gt; true,
		),
	),
	'content_narrow_width' =&gt; array(
		'control_type' =&gt; 'kadence_range_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 20,
		'label'        =&gt; esc_html__( 'Narrow Layout Content Max Width', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.content-width-narrow .content-container.site-container',
				'property' =&gt; 'max-width',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'content_narrow_width' ),
		'input_attrs'  =&gt; array(
			'min'        =&gt; array(
				'px'  =&gt; 300,
				'em'  =&gt; 20,
				'rem' =&gt; 20,
				'vw'  =&gt; 20,
			),
			'max'        =&gt; array(
				'px'  =&gt; 2000,
				'em'  =&gt; 140,
				'rem' =&gt; 140,
				'vw'  =&gt; 100,
			),
			'step'       =&gt; array(
				'px'  =&gt; 1,
				'em'  =&gt; 0.01,
				'rem' =&gt; 0.01,
				'vw'  =&gt; 1,
			),
			'units'      =&gt; array( 'px', 'em', 'rem', 'vw' ),
			'responsive' =&gt; false,
		),
	),
	'info_general_single_boxed' =&gt; array(
		'control_type' =&gt; 'kadence_title_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 21,
		'label'        =&gt; esc_html__( 'Single Post Boxed', 'kadence' ),
		'settings'     =&gt; false,
	),
	'boxed_spacing' =&gt; array(
		'control_type' =&gt; 'kadence_range_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 22,
		'label'        =&gt; esc_html__( 'Single Post Boxed Spacing', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.entry-content-wrap',
				'property' =&gt; 'padding',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'boxed_spacing' ),
		'input_attrs'  =&gt; array(
			'min'        =&gt; array(
				'px'  =&gt; 0,
				'em'  =&gt; 0,
				'rem' =&gt; 0,
			),
			'max'        =&gt; array(
				'px'  =&gt; 200,
				'em'  =&gt; 12,
				'rem' =&gt; 12,
			),
			'step'       =&gt; array(
				'px'  =&gt; 1,
				'em'  =&gt; 0.01,
				'rem' =&gt; 0.01,
			),
			'units'      =&gt; array( 'px', 'em', 'rem' ),
			'responsive' =&gt; true,
		),
	),
	'boxed_shadow' =&gt; array(
		'control_type' =&gt; 'kadence_shadow_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 22,
		'label'        =&gt; esc_html__( 'Single Post Boxed Shadow', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css_boxshadow',
				'selector' =&gt; '.entry.single-entry',
				'property' =&gt; 'box-shadow',
				'pattern'  =&gt; '$',
				'key'      =&gt; '',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'boxed_shadow' ),
	),
	'boxed_border_radius' =&gt; array(
		'control_type' =&gt; 'kadence_measure_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 22,
		'label'        =&gt; esc_html__( 'Single Post Boxed Border Radius', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.entry.single-entry',
				'property' =&gt; 'border-radius',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'measure',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'boxed_border_radius' ),
		'input_attrs'  =&gt; array(
			'responsive' =&gt; false,
		),
	),
	'info_general_archive_boxed' =&gt; array(
		'control_type' =&gt; 'kadence_title_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 22,
		'label'        =&gt; esc_html__( 'Archive Grid Boxed', 'kadence' ),
		'settings'     =&gt; false,
	),
	'boxed_grid_spacing' =&gt; array(
		'control_type' =&gt; 'kadence_range_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 22,
		'label'        =&gt; esc_html__( 'Archive Grid Boxed Spacing', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.loop-entry .entry-content-wrap',
				'property' =&gt; 'padding',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'boxed_grid_spacing' ),
		'input_attrs'  =&gt; array(
			'min'        =&gt; array(
				'px'  =&gt; 0,
				'em'  =&gt; 0,
				'rem' =&gt; 0,
			),
			'max'        =&gt; array(
				'px'  =&gt; 200,
				'em'  =&gt; 12,
				'rem' =&gt; 12,
			),
			'step'       =&gt; array(
				'px'  =&gt; 1,
				'em'  =&gt; 0.01,
				'rem' =&gt; 0.01,
			),
			'units'      =&gt; array( 'px', 'em', 'rem' ),
			'responsive' =&gt; true,
		),
	),
	'boxed_grid_shadow' =&gt; array(
		'control_type' =&gt; 'kadence_shadow_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 22,
		'label'        =&gt; esc_html__( 'Archive Grid Boxed Shadow', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css_boxshadow',
				'selector' =&gt; '.entry.loop-entry',
				'property' =&gt; 'box-shadow',
				'pattern'  =&gt; '$',
				'key'      =&gt; '',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'boxed_grid_shadow' ),
	),
	'boxed_grid_border_radius' =&gt; array(
		'control_type' =&gt; 'kadence_measure_control',
		'section'      =&gt; 'general_layout',
		'priority'     =&gt; 22,
		'label'        =&gt; esc_html__( 'Archive Grid Boxed Border Radius', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.entry.loop-entry',
				'property' =&gt; 'border-radius',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'measure',
			),
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.entry.loop-entry:after',
				'property' =&gt; 'border-radius',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'measure',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'boxed_grid_border_radius' ),
		'input_attrs'  =&gt; array(
			'responsive' =&gt; false,
		),
	),
);

Theme_Customizer::add_settings( $settings );

