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

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

	/**
	 * Arguments for fields.
	 *
	 * @return void
	 */
	public function init() {
		$this->args = [
			// Post header.
			'zenvy_single_post_header_elements' => [
				'type'              => 'sortable',
				'sanitize_callback' => [ 'Zenvy_Customizer_Sanitize_Callback', 'sanitize_sortable' ],
				'label'             => esc_html__( 'Sort Elements', 'zenvy' ),
				'description'       => esc_html__( 'Enable lists of page header elements and rearrange the order by drag and drop.', 'zenvy' ),
				'section'           => 'zenvy_single_post_header_section',
				'priority'          => 15,
				'choices'           => [
					'post-title' => esc_html__( 'Post Title', 'zenvy' ),
					'post-meta'  => esc_html__( 'Post Meta', 'zenvy' ),
					'breadcrumb' => esc_html__( 'Breadcrumb', 'zenvy' ),
				],
			],
		];
	}
}
new Zenvy_Customize_Single_Post_Header_Fields();
