HEX
Server: Apache/2
System: Linux aws3 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User: hucscom (1018)
PHP: 8.1.32
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/hucscom/public_html/wp-content/themes/mavix-marketing/inc/customizer/topbar.php
<?php

$mavix_marketing_default = mavix_marketing_get_default_theme_options();
/**
* Header Top Panel
*/
$wp_customize->add_panel( 'mavix_marketing_header_top_panel', array(
    'title'          => __( 'Header Options', 'mavix-marketing' ),
    'priority'       => 20,
    'capability'     => 'edit_theme_options',
) );

// Contact Details Section
$wp_customize->add_section(
    'mavix_marketing_contact_details_section',
    array(
        'title'    => __( 'Contact Details', 'mavix-marketing' ),
        'panel'    => 'mavix_marketing_header_top_panel',
    )
);

// Show Contact Details
$wp_customize->add_setting( 
    'theme_options[mavix_marketing_show_contact_details]', 
    array(
        'default'           => $mavix_marketing_default['mavix_marketing_show_contact_details'],
        'sanitize_callback' => 'mavix_marketing_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[mavix_marketing_show_contact_details]',
    array(
        'label'       => __( 'Show Contact Details', 'mavix-marketing' ),
        'section'     => 'mavix_marketing_contact_details_section',
        'type'        => 'checkbox',
    )
);

// Address 1
$wp_customize->add_setting( 'theme_options[mavix_marketing_address_one]',
    array(
    'default'           => $mavix_marketing_default['mavix_marketing_address_one'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    'transport'         => 'refresh',
    )
);

$wp_customize->add_control( 'theme_options[mavix_marketing_address_one]',
    array(
    'label'    => __( 'Address 1', 'mavix-marketing' ),
    'section'  => 'mavix_marketing_contact_details_section',
    'type'     => 'text',
    )
);

// Address 2
$wp_customize->add_setting( 'theme_options[mavix_marketing_address_two]',
    array(
    'default'           => $mavix_marketing_default['mavix_marketing_address_two'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    'transport'         => 'refresh',
    )
);

$wp_customize->add_control( 'theme_options[mavix_marketing_address_two]',
    array(
    'label'    => __( 'Address 2', 'mavix-marketing' ),
    'section'  => 'mavix_marketing_contact_details_section',
    'type'     => 'text',
    )
);

// Phone Number
$wp_customize->add_setting( 'theme_options[mavix_marketing_phone_number]',
    array(
    'default'           => $mavix_marketing_default['mavix_marketing_phone_number'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    'transport'         => 'refresh',
    )
);

$wp_customize->add_control( 'theme_options[mavix_marketing_phone_number]',
    array(
    'label'    => __( 'Phone Number', 'mavix-marketing' ),
    'section'  => 'mavix_marketing_contact_details_section',
    'type'     => 'text',
    )
);

// Opening Time
$wp_customize->add_setting( 'theme_options[mavix_marketing_opening_time]',
    array(
    'default'           => $mavix_marketing_default['mavix_marketing_opening_time'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    'transport'         => 'refresh',
    )
);

$wp_customize->add_control( 'theme_options[mavix_marketing_opening_time]',
    array(
    'label'    => __( 'Opening Time', 'mavix-marketing' ),
    'section'  => 'mavix_marketing_contact_details_section',
    'type'     => 'text',
    )
);

// Email ID
$wp_customize->add_setting( 'theme_options[mavix_marketing_email_id]',
    array(
    'default'           => $mavix_marketing_default['mavix_marketing_email_id'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    'transport'         => 'refresh',
    )
);

$wp_customize->add_control( 'theme_options[mavix_marketing_email_id]',
    array(
    'label'    => __( 'Email ID', 'mavix-marketing' ),
    'section'  => 'mavix_marketing_contact_details_section',
    'type'     => 'text',
    )
);

// Support Text
$wp_customize->add_setting( 'theme_options[mavix_marketing_support_text]',
    array(
    'default'           => $mavix_marketing_default['mavix_marketing_support_text'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    'transport'         => 'refresh',
    )
);

$wp_customize->add_control( 'theme_options[mavix_marketing_support_text]',
    array(
    'label'    => __( 'Support Text', 'mavix-marketing' ),
    'section'  => 'mavix_marketing_contact_details_section',
    'type'     => 'text',
    )
);

// Menu Button Section
$wp_customize->add_section(
    'mavix_marketing_menu_button_section',
    array(
        'title'    => __( 'Get Started Button', 'mavix-marketing' ),
        'panel'    => 'mavix_marketing_header_top_panel',
    )
);

// Show Menu Button
$wp_customize->add_setting( 
    'theme_options[mavix_marketing_show_menu_button]', 
    array(
        'default'           => $mavix_marketing_default['mavix_marketing_show_menu_button'],
        'sanitize_callback' => 'mavix_marketing_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[mavix_marketing_show_menu_button]',
    array(
        'label'       => __( 'Show Menu Button', 'mavix-marketing' ),
        'section'     => 'mavix_marketing_menu_button_section',
        'type'        => 'checkbox',
    )
);

// Button Text
$wp_customize->add_setting( 'theme_options[mavix_marketing_menu_button_text]',
    array(
    'default'           => $mavix_marketing_default['mavix_marketing_menu_button_text'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    'transport'         => 'refresh',
    )
);

$wp_customize->add_control( 'theme_options[mavix_marketing_menu_button_text]',
    array(
    'label'    => __( 'Button Text', 'mavix-marketing' ),
    'section'  => 'mavix_marketing_menu_button_section',
    'type'     => 'text',
    )
);

// Button Url
$wp_customize->add_setting( 'theme_options[mavix_marketing_menu_button_url]',
    array(
    'default'           => $mavix_marketing_default['mavix_marketing_menu_button_url'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'esc_url_raw',
    'transport'         => 'refresh',
    )
);

$wp_customize->add_control( 'theme_options[mavix_marketing_menu_button_url]',
    array(
    'label'    => __( 'Button Url', 'mavix-marketing' ),
    'section'  => 'mavix_marketing_menu_button_section',
    'type'     => 'url',
    )
);