403Webshell
Server IP : 51.79.230.26  /  Your IP : 216.73.217.128
Web Server : LiteSpeed
System : Linux sg2.exonhost.com 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
User : mukutpub ( 1151)
PHP Version : 8.2.33
Disable Function : eval, show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mukutpub/joldhi.com/wp-content/themes/di-ecommerce/inc/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mukutpub/joldhi.com/wp-content/themes/di-ecommerce/inc//core/customize.php
<?php

if( ! function_exists( 'di_ecommerce_pr_handle' ) ) {
	/**
	 * Refresh and postMeaage / partial refresh handle.
	 * @param  [type] $wp_customize [description]
	 * @return [type]               [description]
	 */
	function di_ecommerce_pr_handle( $wp_customize ) {
		// Full refresh on logo select or switch.
		$wp_customize->get_setting( 'custom_logo' )->transport 	= 'refresh';

		// Blog name partial refresh handle.
		$wp_customize->get_setting( 'blogname' )->transport          = 'postMessage';
		$wp_customize->selective_refresh->add_partial( 'blogname', array(
			'selector' => '.site-name-pr',
			'render_callback' => function() {
				return esc_html( get_bloginfo( 'name' ) );
			},
		) );

		// Blog tagline / description partial refresh handle.
		$wp_customize->get_setting( 'blogdescription' )->transport   = 'postMessage';
		$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
			'selector' => '.site-description-pr',
			'render_callback' => function() {
				return esc_html( get_bloginfo( 'description' ) );
			},
		) );

		// Blog header_image partial refresh handle.
		$wp_customize->get_setting( 'header_image' )->transport   = 'refresh';
		$wp_customize->selective_refresh->add_partial( 'header_image', array(
			'selector' => '.wp-custom-header',
		) );

		// Top Main menu partial refresh handle.
		$wp_customize->add_setting(
			'top_main_menu_hidden_field', array(
				'sanitize_callback' => 'sanitize_text_field',
				'transport'         => 'postMessage',
			)
		);
		$wp_customize->add_control(
			'top_main_menu_hidden_field', array(
				'priority' => 25,
				'type'     => 'hidden',
				'section'  => 'menu_locations',
			)
		);

		$wp_customize->get_setting( 'top_main_menu_hidden_field' )->transport   = 'refresh';
		$wp_customize->selective_refresh->add_partial( 'top_main_menu_hidden_field', array(
				'selector'	=> '.nav.navbar-nav.primary-menu',
			)
		);

		// For back to top icon.
		$wp_customize->get_setting( 'back_to_top' )->transport   = 'refresh';
		$wp_customize->selective_refresh->add_partial( 'back_to_top', array(
				'selector'	=> '#back-to-top',
			)
		);

		if( class_exists( 'WooCommerce' ) ) {
			// For sidebar cart.
			$wp_customize->get_setting( 'sb_cart_icon_postn' )->transport   = 'refresh';
			$wp_customize->selective_refresh->add_partial( 'sb_cart_icon_postn', array(
					'selector'	=> '.side-menu-menu-button',
				)
			);
		}

		// For social profile.
		$wp_customize->get_setting( 'sprofile_link_facebook' )->transport   = 'refresh';
		$wp_customize->selective_refresh->add_partial( 'sprofile_link_facebook', array(
				'selector'	=> '.sicons_ctmzr',
			)
		);

	}
}
add_action( 'customize_register', 'di_ecommerce_pr_handle', 9999999 );

Youez - 2016 - github.com/yon3zu
LinuXploit