File "control-media-preview.php"
Full Path: /home/amervokv/ecomlive.net/wp-content/plugins/elementor-pro/modules/theme-builder/classes/control-media-preview.php
File size: 926 bytes
MIME-type: text/x-php
Charset: utf-8
<?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
}
}