<?php
/**
 * General settings
 */
// General settings
$wp_customize->add_section(
	'return_blog_general_section',
	array(
		'title' => esc_html__( 'General', 'return-blog' ),
		'panel' => 'return_blog_general_panel',
	)
);

// Breadcrumb enable setting
$wp_customize->add_setting(
	'return_blog_breadcrumb_enable',
	array(
		'sanitize_callback' => 'return_blog_sanitize_checkbox',
		'default' => true,
	)
);

$wp_customize->add_control(
	'return_blog_breadcrumb_enable',
	array(
		'section'		=> 'return_blog_general_section',
		'label'			=> esc_html__( 'Enable breadcrumb.', 'return-blog' ),
		'type'			=> 'checkbox',
	)
);

// Backtop enable setting
$wp_customize->add_setting(
	'return_blog_back_to_top_enable',
	array(
		'sanitize_callback' => 'return_blog_sanitize_checkbox',
		'default' => true,
	)
);

$wp_customize->add_control(
	'return_blog_back_to_top_enable',
	array(
		'section'		=> 'return_blog_general_section',
		'label'			=> esc_html__( 'Enable Scroll up.', 'return-blog' ),
		'type'			=> 'checkbox',
	)
);