<?php
/**
 * Blogin Aarambha Theme Customizer Header Top Row settings
 *
 * @package Blogin_Aarambha
 */

class Blogin_Aarambha_Customize_Header_Top_Row_Fields extends Blogin_Aarambha_Customize_Base_Field {

    /**
     * Arguments for fields.
     *
     * @return void
     */
    public function init() {
        $this->args = [
            // Grouping Settings
            'blogin_aarambha_header_top_row_group_settings' => [
                'type'              => 'group',
                'section'           => 'blogin_aarambha_header_top',
                'priority'          => 5,
                'choices'           => [
                    'normal'            => array(
                        'tab-title'     => esc_html__( 'General', 'blogin-aarambha' ),
                        'controls'      => array(
                            'blogin_aarambha_header_top_row_height',
                            'blogin_aarambha_header_top_row_left_col_content_justify',
                            'blogin_aarambha_header_top_row_center_col_content_justify',
                            'blogin_aarambha_header_top_row_right_col_content_justify'
                        )
                    ),
                    'hover'         => array(
                        'tab-title'     => esc_html__( 'Style', 'blogin-aarambha' ),
                        'controls'      => array(
                            'blogin_aarambha_header_top_row_background_overlay'
                        )
                    )
                ]
            ],

			// Min Height
			'blogin_aarambha_header_top_row_height' => [
				'type'              => 'range',
				'default'           => ['desktop' => '0px'],
				'sanitize_callback' => ['Blogin_Aarambha_Customizer_Sanitize_Callback', 'sanitize_range' ],
				'label'             => esc_html__( 'Min Height', 'blogin-aarambha' ),
				'description'       => esc_html__( 'To set Min Height at the top row of Header.', 'blogin-aarambha' ),
				'section'           => 'blogin_aarambha_header_top',
				'priority'          => 15,
				'responsive'        => [ 'desktop', 'tablet', 'mobile' ],
				'input_attrs'       => [
					'min'               => 0,
					'max'               => 400
				]
			],
			// Left Column Justify Content
			'blogin_aarambha_header_top_row_left_col_content_justify' => [
				'type'              => 'buttonset',
				'default'           => [
					'desktop'   => 'start',
					'tablet'    => 'start',
					'mobile'    => 'start'
				],
				'sanitize_callback' => ['Blogin_Aarambha_Customizer_Sanitize_Callback', 'sanitize_buttonset' ],
				'label'             => esc_html__( 'Left Column', 'blogin-aarambha' ),
				'description'       => esc_html__( 'Choose position for the content in the Left Column.', 'blogin-aarambha' ),
				'section'           => 'blogin_aarambha_header_top',
				'priority'          => 20,
				'choices'           => [
					'start'     => esc_html__( 'Start', 'blogin-aarambha' ),
					'center'    => esc_html__( 'Center', 'blogin-aarambha' ),
					'end'       => esc_html__( 'End', 'blogin-aarambha' )
				],
				'responsive'        => ['desktop','tablet','mobile'],
			],
			// Center Column Justify Content
			'blogin_aarambha_header_top_row_center_col_content_justify' => [
				'type'              => 'buttonset',
				'default'           => [
					'desktop'   => 'center',
					'tablet'    => 'center',
					'mobile'    => 'center'
				],
				'sanitize_callback' => ['Blogin_Aarambha_Customizer_Sanitize_Callback', 'sanitize_buttonset' ],
				'label'             => esc_html__( 'Center Column', 'blogin-aarambha' ),
				'description'       => esc_html__( 'Choose position for the content in the Center Column.', 'blogin-aarambha' ),
				'section'           => 'blogin_aarambha_header_top',
				'priority'          => 25,
				'choices'           => [
					'start'     => esc_html__( 'Start', 'blogin-aarambha' ),
					'center'    => esc_html__( 'Center', 'blogin-aarambha' ),
					'end'       => esc_html__( 'End', 'blogin-aarambha' )
				],
				'responsive'        => ['desktop','tablet','mobile'],
			],
			// Right Column Justify Content
			'blogin_aarambha_header_top_row_right_col_content_justify' => [
				'type'              => 'buttonset',
				'default'           => [
					'desktop'   => 'end',
					'tablet'    => 'end',
					'mobile'    => 'end'
				],
				'sanitize_callback' => ['Blogin_Aarambha_Customizer_Sanitize_Callback', 'sanitize_buttonset' ],
				'label'             => esc_html__( 'Right Column', 'blogin-aarambha' ),
				'description'       => esc_html__( 'Choose position for the content in the Right Column.', 'blogin-aarambha' ),
				'section'           => 'blogin_aarambha_header_top',
				'priority'          => 30,
				'choices'           => [
					'start'     => esc_html__( 'Start', 'blogin-aarambha' ),
					'center'    => esc_html__( 'Center', 'blogin-aarambha' ),
					'end'       => esc_html__( 'End', 'blogin-aarambha' )
				],
				'responsive'        => ['desktop','tablet','mobile'],
			],
            // Background Overlay
            'blogin_aarambha_header_top_row_background_overlay' => [
                'type'              => 'background',
                'default'           => '',
                'sanitize_callback' => ['Blogin_Aarambha_Customizer_Sanitize_Callback', 'sanitize_background' ],
                'label'             => esc_html__( 'Background Overlay', 'blogin-aarambha' ),
                'description'       => esc_html__( 'Set Background overlay color for top row container.', 'blogin-aarambha' ),
                'section'           => 'blogin_aarambha_header_top',
                'priority'          => 45,
                'inherits'          => [
                    'color_1'           => 'var(--color-bg-1)'
                ],
                'fields'            => ['colors' => true],
            ],
        ];
    }

}
new Blogin_Aarambha_Customize_Header_Top_Row_Fields();
