<?php
/**
* Other options
*
* @package GridFeel WordPress Theme
* @copyright Copyright (C) 2025 ThemesDNA
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
* @author ThemesDNA <themesdna@gmail.com>
*/

function gridfeel_other_options($wp_customize) {

    $wp_customize->add_section( 'gridfeel_section_other_options', array( 'title' => esc_html__( 'Other Options', 'gridfeel' ), 'panel' => 'gridfeel_main_options_panel', 'priority' => 600 ) );

    $wp_customize->add_setting( 'gridfeel_options[enable_widgets_block_editor]', array( 'default' => false, 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'gridfeel_sanitize_checkbox', ) );

    $wp_customize->add_control( 'gridfeel_enable_widgets_block_editor_control', array( 'label' => esc_html__( 'Enable Gutenberg Widget Block Editor', 'gridfeel' ), 'section' => 'gridfeel_section_other_options', 'settings' => 'gridfeel_options[enable_widgets_block_editor]', 'type' => 'checkbox', ) );

    $wp_customize->add_setting( 'gridfeel_options[disable_loading_animation]', array( 'default' => false, 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'gridfeel_sanitize_checkbox', ) );

    $wp_customize->add_control( 'gridfeel_disable_loading_animation_control', array( 'label' => esc_html__( 'Disable Site Loading Animation', 'gridfeel' ), 'section' => 'gridfeel_section_other_options', 'settings' => 'gridfeel_options[disable_loading_animation]', 'type' => 'checkbox', ) );

    $wp_customize->add_setting( 'gridfeel_options[disable_sticky_sidebar]', array( 'default' => false, 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'gridfeel_sanitize_checkbox', ) );

    $wp_customize->add_control( 'gridfeel_disable_sticky_sidebar_control', array( 'label' => esc_html__( 'Disable Sticky Feature from Sidebars', 'gridfeel' ), 'section' => 'gridfeel_section_other_options', 'settings' => 'gridfeel_options[disable_sticky_sidebar]', 'type' => 'checkbox', ) );

    $wp_customize->add_setting( 'gridfeel_options[disable_fitvids]', array( 'default' => false, 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'gridfeel_sanitize_checkbox', ) );

    $wp_customize->add_control( 'gridfeel_disable_fitvids_control', array( 'label' => esc_html__( 'Disable FitVids.JS', 'gridfeel' ), 'description' => esc_html__( 'You can disable fitvids.js script if you are not using videos on your website or if you do not want fluid width videos in your post content.', 'gridfeel' ), 'section' => 'gridfeel_section_other_options', 'settings' => 'gridfeel_options[disable_fitvids]', 'type' => 'checkbox', ) );

}