<?php
/**
 * Zenvy Theme Customizer Single Page Header settings
 *
 * @package Zenvy
 */

/**
 * Class Zenvy_Customize_Single_Page_Header_Fields
 *
 * Handles customizer single page header fields for the Zenvy theme.
 */
class Zenvy_Customize_Single_Page_Header_Fields extends Zenvy_Customize_Base_Field {

	/**
	 * Arguments for fields.
	 *
	 * @return void
	 */
	public function init() {
		$this->args = [
			// Page header.
			'zenvy_single_page_header_elements' => [
				'type'              => 'sortable',
				'default'           => [ 'post-title' ],
				'sanitize_callback' => [ 'Zenvy_Customizer_Sanitize_Callback', 'sanitize_sortable' ],
				'label'             => esc_html__( 'Sort Elements', 'zenvy' ),
				'description'       => esc_html__( 'Enable Page Header Elements and rearrange order with drag and drop.', 'zenvy' ),
				'section'           => 'zenvy_single_page_header_section',
				'priority'          => 15,
				'choices'           => [
					'post-title' => esc_html__( 'Page Title', 'zenvy' ),
					'breadcrumb' => esc_html__( 'Breadcrumb', 'zenvy' ),
				],
			],
		];
	}
}
new Zenvy_Customize_Single_Page_Header_Fields();
