Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
theme-builder
/
classes
:
control-media-preview.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace ElementorPro\Modules\ThemeBuilder\Classes; use Elementor\Control_Media; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Control_Media_Preview extends Control_Media { const CONTROL_TYPE = 'media-preview'; public function get_type() { return self::CONTROL_TYPE; } public function content_template() { ?> <div class="elementor-control-field elementor-control-media"> <label class="elementor-control-title">{{{ data.label }}}</label> <div class="elementor-control-input-wrapper"> <div class="elementor-control-media-area"> <div class="elementor-control-media__preview" style="background-image: url('{{ data.src }}');"></div> </div> </div> <# if ( data.description ) { #> <div class="elementor-control-field-description">{{{ data.description }}}</div> <# } #> <input type="hidden" data-setting="{{ data.name }}"/> </div> <?php } }