HEX
Server: Apache/2.4.57 (Debian)
System: Linux web-server-k8s-e92jnr3j-6f99bff6b6-rp2wg 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64
User: apache (48)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/sites/1250.info/wp-content/themes/blogai/general-options.php
<?php

/**
 * Option Panel
 *
 * @package BlogAI
 */

function blogai_general_customize_register($wp_customize) {

    $blogai_default = blogai_get_default_theme_options();

    //Date Section
    $wp_customize->add_section( 'blogai_date_section' , array(
        'title' => __('Date', 'blogai'),
        'priority' => 1,
        'panel' => 'header_option_panel',
    ) );

    $wp_customize->add_setting('header_date_enable',
        array(
            'default' => true,
            'sanitize_callback' => 'blogus_sanitize_checkbox',
        )
    );
    $wp_customize->add_control(new Blogus_Toggle_Control( $wp_customize, 'header_date_enable', 
        array(
            'label' => esc_html__('Hide / Show Date', 'blogai'),
            'type' => 'toggle',
            'section' => 'blogai_date_section',
        )
    ));

    $wp_customize->add_setting('header_time_enable',
        array(
            'default' => true,
            'sanitize_callback' => 'blogus_sanitize_checkbox',
        )
    );
    $wp_customize->add_control(new Blogus_Toggle_Control( $wp_customize, 'header_time_enable', 
        array(
            'label' => esc_html__('Hide / Show Time', 'blogai'),
            'type' => 'toggle',
            'section' => 'blogai_date_section',
        )
    ));

    // date in header display type
    $wp_customize->add_setting( 'blogai_date_time_show_type', array(
        'default'           => 'blogai_default',
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'blogus_sanitize_select',
    ) );

    $wp_customize->add_control( 'blogai_date_time_show_type', array(
        'type'     => 'radio',
        'label'    => esc_html__( 'Date / Time in header display type:', 'blogai' ),
        'choices'  => array(
            'blogai_default'          => esc_html__( 'Theme Default Setting', 'blogai' ),
            'wordpress_date_setting' => esc_html__( 'From WordPress Setting', 'blogai' ),
        ),
        'section'  => 'blogai_date_section', 
    ) );

    

}
add_action('customize_register', 'blogai_general_customize_register');