<?php
/**
 * Reset Theme Settings
 *
 * @package wheel_alignment_service
 */

$wp_customize->add_section(
	'wheel_alignment_service_reset_theme_options',
	array(
		'panel' => 'wheel_alignment_service_theme_options',
		'title' => esc_html__( 'Reset Theme Settings', 'wheel-alignment-service' ),
	)
);

// Add Separator Custom Control
$wp_customize->add_setting( 'wheel_alignment_service_reset_theme_separators', array(
	'sanitize_callback' => 'sanitize_text_field',
) );

$wp_customize->add_control( new Wheel_Alignment_Service_Separator_Custom_Control( $wp_customize, 'wheel_alignment_service_reset_theme_separators', array(
	'label' => __( 'Reset Theme', 'wheel-alignment-service' ),
	'section' => 'wheel_alignment_service_reset_theme_options',
	'settings' => 'wheel_alignment_service_reset_theme_separators',
)));

//Reset Demo Import
$wp_customize->add_setting( 'wheel_alignment_service_reset_demo_import_settings', array(
    'sanitize_callback' => 'sanitize_text_field',
) );

$wp_customize->add_control('wheel_alignment_service_reset_demo_import_settings',array(
        'label'   => __( 'Reset Demo Import', 'wheel-alignment-service' ),
        'section' => 'wheel_alignment_service_reset_theme_options',
        'type'    => 'button',
        'input_attrs' => array(
            'onclick' => 'ResetDemoSettings()',
        ),
));

//Reset Global Color
$wp_customize->add_setting('wheel_alignment_service_reset_color', array(
    'default'           => '',
    'sanitize_callback' => 'sanitize_text_field',
));

$wp_customize->add_control('wheel_alignment_service_reset_color', array(
    'type'    => 'button',
    'label'   => __('Reset Global Color', 'wheel-alignment-service'),
    'section' => 'wheel_alignment_service_reset_theme_options',
    'input_attrs' => array(
        'onclick' => 'ResetGlobalColor()',
    ),
));