<?php
/**
 * Footer copyright
 */

// Footer copyright
$wp_customize->add_section(
	'nice_blog_footer_section',
	array(
		'title' => esc_html__( 'Footer Options', 'nice-blog' ),
		'panel' => 'nice_blog_theme_options_panel',
	)
);

$copyright_default = sprintf( esc_html_x( 'Copyright &copy; %1$s %2$s', '1: Year, 2: Site Title with home URL', 'nice-blog' ), '[the-year]', '[site-link]' );

// Footer copyright setting.
$wp_customize->add_setting(
	'nice_blog_copyright_txt',
	array(
		'default'           => $copyright_default,
		'sanitize_callback' => 'nice_blog_sanitize_html',
	)
);

$wp_customize->add_control(
	'nice_blog_copyright_txt',
	array(
		'label'   => esc_html__( 'Copyright text', 'nice-blog' ),
		'section' => 'nice_blog_footer_section',
		'type'    => 'textarea',
	)
);
