<?php

if( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}

$prefix = BREEK_LITE_THEMEPREFIX . '_';

/* Footer Section */
$wp_customize->add_section( $prefix . 'footer_section', array(
    'title'       => esc_html_x( 'Footer', 'admin', 'breek-lite' ),
    'description' => esc_html_x( 'Configure footer settings and behavior.', 'admin', 'breek-lite' ),
    'priority'    => 35,
));

// Enable Back to Top
$wp_customize->add_setting( $prefix . 'enable_back_to_top', array(
    'default'           => '1',
    'sanitize_callback' => 'sanitize_text_field',
));

$wp_customize->add_control( $prefix . 'enable_back_to_top', array(
    'label'       => esc_html_x( 'Enable Back to Top', 'admin', 'breek-lite' ),
    'description' => esc_html_x( 'When a user scrolls down your website, a back to top button will appear.', 'admin', 'breek-lite' ),
    'section'     => $prefix . 'footer_section',
    'type'        => 'radio',
    'choices'     => array(
        '1' => esc_html_x( 'ON', 'admin', 'breek-lite' ),
        '0' => esc_html_x( 'OFF', 'admin', 'breek-lite' ),
    ),
    'default' => '1',
));
