<?php
/**
 * Customizer: Topbar Settings Section
 *
 * @package Paws_And_Care
 * @since 1.2.9
 */

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

/**
 * Register Topbar Settings Section
 *
 * @param WP_Customize_Manager $wp_customize Customizer object.
 */
function paws_and_care_customizer_topbar($wp_customize)
{
    // ========================================
    // Topbar Section (inside Theme Settings panel)
    // ========================================
    $wp_customize->add_section('paws_and_care_topbar', array(
        'title' => __('Topbar Settings', 'paws-and-care'),
        'panel' => 'paws_and_care_theme_settings',
        'priority' => 20,
    ));

    // Phone Number
    $wp_customize->add_setting('paws_and_care_phone', array(
        'default' => '+1 234 567 890',
        'sanitize_callback' => 'sanitize_text_field',
        'transport' => 'refresh',
    ));
    $wp_customize->add_control('paws_and_care_phone', array(
        'label' => __('Phone Number', 'paws-and-care'),
        'section' => 'paws_and_care_topbar',
        'type' => 'text',
    ));

    // Email Address
    $wp_customize->add_setting('paws_and_care_email', array(
        'default' => 'example@example.com',
        'sanitize_callback' => 'sanitize_email',
        'transport' => 'refresh',
    ));
    $wp_customize->add_control('paws_and_care_email', array(
        'label' => __('Email Address', 'paws-and-care'),
        'section' => 'paws_and_care_topbar',
        'type' => 'email',
    ));

    // Working Hours
    $wp_customize->add_setting('paws_and_care_hours', array(
        'default' => 'Mon-Fri: 9AM-6PM',
        'sanitize_callback' => 'sanitize_text_field',
        'transport' => 'refresh',
    ));
    $wp_customize->add_control('paws_and_care_hours', array(
        'label' => __('Working Hours', 'paws-and-care'),
        'section' => 'paws_and_care_topbar',
        'type' => 'text',
    ));
}
