<?php
/**
 * Inner page banner Customizer controls.
 *
 * @package ttsunsolar
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Register inner banner settings.
 *
 * @param WP_Customize_Manager $wp_customize Customizer.
 */
function ttsunsolar_customizer_inner_banner( $wp_customize ) {
	$wp_customize->add_section(
		'ttsunsolar_inner_banner',
		array(
			'title'       => esc_html__( 'Inner Page Banner', 'ttsunsolar' ),
			'description' => esc_html__( 'Banner for pages, posts, archives, and search — separate from the Homepage Banner. Leave empty for the bundled inner-page demo image.', 'ttsunsolar' ),
			'panel'       => 'ttsunsolar_panel',
			'priority'    => 25,
		)
	);

	$wp_customize->add_setting(
		'ttsunsolar_inner_banner_image',
		array(
			'default'           => '',
			'sanitize_callback' => 'esc_url_raw',
		)
	);
	$wp_customize->add_control(
		new WP_Customize_Image_Control(
			$wp_customize,
			'ttsunsolar_inner_banner_image',
			array(
				'label'   => esc_html__( 'Inner Banner Image', 'ttsunsolar' ),
				'section' => 'ttsunsolar_inner_banner',
			)
		)
	);
}
