🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
mnt
/
web613
/
c2
/
38
/
570372438
/
htdocs
/
STRATO-apps
/
wordpress_02
/
app
/
wp-content
/
plugins
/
elementor
/
modules
/
atomic-widgets
/
props-resolver
/
transformers
✏️
Editing: image-src-transformer.php
<?php namespace Elementor\Modules\AtomicWidgets\PropsResolver\Transformers; use Elementor\Modules\AtomicWidgets\PropsResolver\Props_Resolver_Context; use Elementor\Modules\AtomicWidgets\PropsResolver\Transformer_Base; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Image_Src_Transformer extends Transformer_Base { /** * This transformer (or rather this prop type) exists only to support dynamic images. * Currently, the dynamic tags that return images return it with id & url no matter * what, so we need to keep the same structure in the props. */ public function transform( $value, Props_Resolver_Context $context ) { return [ 'id' => isset( $value['id'] ) ? (int) $value['id'] : null, 'url' => $value['url'] ?? null, 'alt' => $value['alt'] ?? null, ]; } }
💾 Save Changes
❌ Cancel