<?php
/**
 * Footer Options
 *
 * @package Minimalistic Blog
 */

$wp_customize->add_section(
	'minimalistic_blog_footer_options',
	array(
		'panel' => 'minimalistic_blog_theme_options',
		'title' => esc_html__( 'Footer Options', 'minimalistic-blog' ),
	)
);

// Footer Options - Copyright Text.
/* translators: 1: Year, 2: Site Title with home URL. */
$copyright_default = sprintf( esc_html_x( 'Copyright &copy; %1$s %2$s', '1: Year, 2: Site Title with home URL', 'minimalistic-blog' ), '[the-year]', '[site-link]' );
$wp_customize->add_setting(
	'minimalistic_blog_footer_copyright_text',
	array(
		'default'           => $copyright_default,
		'sanitize_callback' => 'wp_kses_post',
	)
);

$wp_customize->add_control(
	'minimalistic_blog_footer_copyright_text',
	array(
		'label'    => esc_html__( 'Copyright Text', 'minimalistic-blog' ),
		'section'  => 'minimalistic_blog_footer_options',
		'settings' => 'minimalistic_blog_footer_copyright_text',
		'type'     => 'textarea',
	)
);

// Categories Section - Section Title.
$wp_customize->add_setting(
	'minimalistic_blog_scroll_top_text_label',
	array(
		'default'           => __( 'Scroll to top', 'minimalistic-blog' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'minimalistic_blog_scroll_top_text_label',
	array(
		'label'    => esc_html__( 'Scroll to top text label', 'minimalistic-blog' ),
		'section'  => 'minimalistic_blog_footer_options',
		'settings' => 'minimalistic_blog_scroll_top_text_label',
		'type'     => 'text',
	)
);
