<?php
/**
 * Back To Top settings
 */

$wp_customize->add_section(
	'adore_news_back_to_top_section',
	array(
		'title' => esc_html__( 'Scroll Up ( Back To Top )', 'adore-news' ),
		'panel' => 'adore_news_theme_options_panel',
	)
);

// Scroll to top enable setting.
$wp_customize->add_setting(
	'adore_news_enable_scroll_to_top',
	array(
		'default'           => true,
		'sanitize_callback' => 'adore_news_sanitize_checkbox',
	)
);
$wp_customize->add_control(
	new Adore_News_Toggle_Checkbox_Custom_control(
		$wp_customize,
		'adore_news_enable_scroll_to_top',
		array(
			'label'    => esc_html__( 'Enable scroll to top.', 'adore-news' ),
			'settings' => 'adore_news_enable_scroll_to_top',
			'section'  => 'adore_news_back_to_top_section',
			'type'     => 'checkbox',
		)
	)
);
