<?php
Kirki::add_section( 'copyright_options', array(
	'title' => esc_html__( 'Copyright Options', 'newscope' ),
	'panel' => 'newscope_theme_options',
) );

new \Kirki\Field\Text(
	[
		'settings' => 'copyright_text',
		'label'    => esc_html__( 'Copyright Text', 'newscope' ),
		'section'  => 'copyright_options',
		'default'  => esc_html__( 'Proudly powered by WordPress |', 'newscope' ),
		'partial_refresh'    => [
			'copyright_text_quick' => [
				'selector'        => '.copyright-info',
				'render_callback' => 'newscope_customizer_quickedit',
			],
		],
	]
);

// pro
new \Kirki\Field\Radio_Image(
	[
		'settings'    => 'powered_by-pro',
		'label'       => esc_html__( 'Purchase Pro', 'newscope' ),
		'description' => newscope_purchase_link(),
		'section'     => 'copyright_options',
		'default'     => '',
		'transport'   => 'auto',
		'choices'     => [
			'1'   => get_template_directory_uri() . '/assets/image/pro/powered.jpg',
		],
	]
);

new \Kirki\Field\Checkbox_Switch(
	[
		'settings' => 'enable_footer_menu',
		'label'    => esc_html__( 'Enable Menu', 'newscope' ),
		'section'  => 'copyright_options',
		'default'  => 'on',
		'choices'  => [
			'on'  => esc_html__( 'Enable', 'newscope' ),
			'off' => esc_html__( 'Disable', 'newscope' ),
		],
	]
);


new \Kirki\Field\Background(
	[
		'settings'    => 'copyright_bg_color',
		'label'       => esc_html__('Copyright Background Options', 'newscope'),
		'description' => esc_html__('Add Footer background color or image', 'newscope'),
		'section'     => 'copyright_options',
		'default'     => [
			'background-color'      => '#FFF6E9',
		],
		'transport'   => 'auto',
		'output'      => [
			[
				'element' => '.copyright-area',
			],
		], 
	]
);

new \Kirki\Field\Color(
	[
		'settings'  => 'copyright_border_color',
		'label'     => __( 'Border Color', 'newscope' ),
		'section'   => 'copyright_options',
		'transport' => 'auto',
		'default'	=> '#D9D9D9',
		'output'    => [
			[
				'element'  => '.copyright-area',
				'property' => 'border-color',
			],
		],
	]
);