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

$wp_customize->add_section(
	'roof_water_proofing_reset_theme_options',
	array(
		'panel' => 'roof_water_proofing_theme_options',
		'title' => esc_html__( 'Reset Theme Settings', 'roof-water-proofing' ),
	)
);

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

$wp_customize->add_control( new Roof_Water_Proofing_Separator_Custom_Control( $wp_customize, 'roof_water_proofing_reset_theme_separators', array(
	'label' => __( 'Reset Theme', 'roof-water-proofing' ),
	'section' => 'roof_water_proofing_reset_theme_options',
	'settings' => 'roof_water_proofing_reset_theme_separators',
)));

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

$wp_customize->add_control('roof_water_proofing_reset_demo_import_settings',array(
        'label'   => __( 'Reset Demo Import', 'roof-water-proofing' ),
        'section' => 'roof_water_proofing_reset_theme_options',
        'type'    => 'button',
        'input_attrs' => array(
            'onclick' => 'ResetDemoSettings()',
        ),
));

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

$wp_customize->add_control('roof_water_proofing_reset_color', array(
    'type'    => 'button',
    'label'   => __('Reset Global Color', 'roof-water-proofing'),
    'section' => 'roof_water_proofing_reset_theme_options',
    'input_attrs' => array(
        'onclick' => 'ResetGlobalColor()',
    ),
));