Uname:Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 51.91.236.255  /  Your IP : 216.73.217.120
Web Server : Apache
System : Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : laureet ( 1012854)
PHP Version : 8.0.30
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/laureet/www/wp-content/themes/rhye/inc/functions/elementor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/laureet/www/wp-content/themes/rhye/inc/functions/elementor/elementor_compatibility.php
<?php

/**
 * Register theme locations for Elementor Theme Builder API
 */
add_action( 'elementor/theme/register_locations', 'arts_register_elementor_locations' );
function arts_register_elementor_locations( $elementor_theme_manager ) {
	$elementor_theme_manager->register_location( 'header' );
	$elementor_theme_manager->register_location( 'footer' );
	$elementor_theme_manager->register_location( 'popup' );
	$elementor_theme_manager->register_location( 'single-post' );
	$elementor_theme_manager->register_location( 'single-page' );
}

/**
 * Elementor Pro AJAX compatibility
 * Enforce exclusive Elementor Pro assets to load on all the pages
 */
add_action( 'elementor_pro/init', 'arts_enqueue_elementor_pro_widgets_assets' );
function arts_enqueue_elementor_pro_widgets_assets() {
	$ajax_enabled              = get_theme_mod( 'ajax_enabled', false );
	$ajax_load_missing_scripts = get_theme_mod( 'ajax_load_missing_scripts', true );
	$ajax_load_missing_styles  = get_theme_mod( 'ajax_load_missing_styles', true );

	if ( $ajax_enabled ) {

		// JS assets
		if ( ! $ajax_load_missing_scripts ) {
			add_action(
				'elementor/frontend/before_enqueue_scripts',
				function() {
					wp_enqueue_script( 'elementor-gallery' ); // Elementor Gallery
					wp_enqueue_script( 'lottie' ); // Elementor Lottie animations
				}
			);
		}

		// CSS assets
		if ( ! $ajax_load_missing_styles ) {
			add_action(
				'elementor/frontend/before_enqueue_styles',
				function() {
					wp_enqueue_style( 'elementor-gallery' ); // Elementor Gallery
				}
			);
		}
	}
}

/**
 * Remove Elementor welcome splash screen
 * on the initial plugin activation
 * This prevents some issues when Merlin wizard
 * installs and activates the required plugins
 */
add_action( 'init', 'arts_remove_elementor_welcome_screen' );
function arts_remove_elementor_welcome_screen() {
	delete_transient( 'elementor_activation_redirect' );
}

/**
 * Fix for "Additional Custom Breakpoints" feature
 */
add_action( 'elementor/init', 'arts_elementor_duplicate_responsive_controls' );
function arts_elementor_duplicate_responsive_controls() {
	if ( arts_is_elementor_feature_active( 'additional_custom_breakpoints' ) ) {
		\Elementor\Plugin::$instance->breakpoints->set_responsive_control_duplication_mode( 'on' );
	}
}


Youez - 2016 - github.com/yon3zu
LinuXploit