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

$wp_customize->add_section(
	'moving_truck_rental_reset_theme_options',
	array(
		'panel' => 'moving_truck_rental_theme_options',
		'title' => esc_html__( 'Reset Theme Settings', 'moving-truck-rental' ),
	)
);

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

$wp_customize->add_control( new Moving_Truck_Rental_Separator_Custom_Control( $wp_customize, 'moving_truck_rental_reset_theme_separators', array(
	'label' => __( 'Reset Theme', 'moving-truck-rental' ),
	'section' => 'moving_truck_rental_reset_theme_options',
	'settings' => 'moving_truck_rental_reset_theme_separators',
)));

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

$wp_customize->add_control('moving_truck_rental_reset_demo_import_settings',array(
        'label'   => __( 'Reset Demo Import', 'moving-truck-rental' ),
        'section' => 'moving_truck_rental_reset_theme_options',
        'type'    => 'button',
        'input_attrs' => array(
            'onclick' => 'ResetDemoSettings()',
        ),
));

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

$wp_customize->add_control('moving_truck_rental_reset_color', array(
    'type'    => 'button',
    'label'   => __('Reset Global Color', 'moving-truck-rental'),
    'section' => 'moving_truck_rental_reset_theme_options',
    'input_attrs' => array(
        'onclick' => 'ResetGlobalColor()',
    ),
));