<?php
/**
 * Read More Button
 *
 * @package Zenith Blog
 */

$wp_customize->add_section(
	'zenith_blog_readmore_button_setting',
	array(
		'title' => esc_html__( 'Read More Button', 'zenith-blog' ),
		'panel' => 'zenith_blog_theme_options',
	)
);

// Read More Button - Button label.
$wp_customize->add_setting(
	'zenith_blog_readmore_button_label',
	array(
		'default'           => __( 'Read More', 'zenith-blog' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'zenith_blog_readmore_button_label',
	array(
		'label'    => esc_html__( 'Read More Button label', 'zenith-blog' ),
		'section'  => 'zenith_blog_readmore_button_setting',
		'settings' => 'zenith_blog_readmore_button_label',
		'type'     => 'text',
	)
);
