<?php
/**
 * Excerpt Settings.
 *
 * @package leatherhouse
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

if ( ! class_exists( 'leatherhouse_Customize_Excerpt_Option' ) ) :

	class leatherhouse_Customize_Excerpt_Option extends leatherhouse_Customize_Base_Option {

		public function elements() {

			return array(

				'leatherhouse_excerpt_heading'    => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'parent_heading',
						'priority' => 1,
						'label'    => esc_html__( 'Post Excerpt Button Settings', 'leather-house' ),
						'section'  => 'leatherhouse_excerpt_general',
					),
				),

				// Animation.
				'leatherhouse_excerpt_disabled'    => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 2,
						'label'    => esc_html__( 'Post Button Enable/Disable', 'leather-house' ),
						'section'  => 'leatherhouse_excerpt_general',
					),
				),

			);

		}

	}

	new leatherhouse_Customize_Excerpt_Option();

endif;
