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

$wp_customize->add_section(
	'retailer_bookstore_reset_theme_options',
	array(
		'panel' => 'retailer_bookstore_theme_options',
		'title' => esc_html__( 'Reset Theme Settings', 'retailer-bookstore' ),
	)
);

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

$wp_customize->add_control( new Retailer_Bookstore_Separator_Custom_Control( $wp_customize, 'retailer_bookstore_reset_theme_separators', array(
	'label' => __( 'Reset Theme', 'retailer-bookstore' ),
	'section' => 'retailer_bookstore_reset_theme_options',
	'settings' => 'retailer_bookstore_reset_theme_separators',
)));

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

$wp_customize->add_control('retailer_bookstore_reset_demo_import_settings',array(
        'label'   => __( 'Reset Demo Import', 'retailer-bookstore' ),
        'section' => 'retailer_bookstore_reset_theme_options',
        'type'    => 'button',
        'input_attrs' => array(
            'onclick' => 'ResetDemoSettings()',
        ),
));