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

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

if ( ! class_exists( 'leatherhouse_Customize_Breadcrumb_Option' ) ) :

	class leatherhouse_Customize_Breadcrumb_Option extends leatherhouse_Customize_Base_Option {

		public function elements() {

			return array(

				'leatherhouse_breadcrumb_heading'    => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'parent_heading',
						'priority' => 1,
						'label'    => esc_html__( 'Breadcrumb Settings', 'leather-house' ),
						'section'  => 'leatherhouse_theme_breadcrumb',
					),
				),

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

			);

		}

	}

	new leatherhouse_Customize_Breadcrumb_Option();

endif;
