<?php
/**
 * Frontpage Project.
 *
 * @package arile-extra
 */

defined( 'ABSPATH' ) || exit;

if ( ! class_exists( 'ArileWP_Customize_Homepage_Project_Option' ) ) :

	class ArileWP_Customize_Homepage_Project_Option extends ArileWP_Customize_Base_Option {

		/**
		 * Arguments for options.
		 *
		 * @return array
		 */
		public function elements() {

			return array(

	            'arilewp_main_project_heading'     => array(
					'setting' => array(),
					'control' => array(
						'type'    => 'heading',
						'priority'        => 1,
						'label'   => esc_html__( 'Project Options', 'arile-extra' ),
						'section' => 'arilewp_theme_project',
					),
				),
			    	
				'arilewp_project_disabled'            => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'ArileWP_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 5,
						'label'    => esc_html__( 'Project Enable/Disable', 'arile-extra' ),
						'section'  => 'arilewp_theme_project',
					),
				),
				
				'arilewp_project_front_container_size'     => array(
						'setting' => array(
							'default'           => 'container-full',
							'sanitize_callback' => array( 'ArileWP_Customizer_Sanitize', 'sanitize_radio' ),
						),
						'control' => array(
							'type'            => 'radio',
							'priority'        => 10,
							'is_default_type' => true,
							'label'           => esc_html__( 'Container Width', 'arile-extra' ),
							'section'         => 'arilewp_theme_project',
							'choices'         => array(
								'container'  => esc_html__( 'Container', 'arile-extra' ),
								'container-full' => esc_html__( 'Container Full', 'arile-extra' ),
							),
						),
			    ),
				
				'arilewp_project_upgrade'            => array(
					'setting' => array( ),
					'control' => array(
						'type'     => 'upgrade',
						'priority' => 100,
						'label'    => esc_html__( 'Project', 'arile-extra' ),
						'section'  => 'arilewp_theme_project',
					),
				),
				
			);

		}

	}

	new ArileWP_Customize_Homepage_Project_Option();

endif;
