PluginProbe
Hello Plus / 1.5.3
Hello Plus v1.5.3
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7.0 1.7.1 1.7.2 1.7.3 All 30 releases
hello-plus / modules / theme / classes / control-media-preview.php

control-media-preview.php in Hello Plus 1.5.3, at modules/theme/classes/control-media-preview.php

35 lines 915 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace HelloPlus\Modules\Theme\Classes;
3
4 use Elementor\Control_Media;
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit; // Exit if accessed directly
8 }
9
10 class Control_Media_Preview extends Control_Media {
11
12 const CONTROL_TYPE = 'media-preview';
13
14 public function get_type() {
15 return self::CONTROL_TYPE;
16 }
17
18 public function content_template() {
19 ?>
20 <div class="elementor-control-field elementor-control-media">
21 <label class="elementor-control-title">{{{ data.label }}}</label>
22 <div class="elementor-control-input-wrapper">
23 <div class="elementor-control-media-area">
24 <div class="elementor-control-media__preview" style="background-image: url('{{ data.src }}');"></div>
25 </div>
26 </div>
27 <# if ( data.description ) { #>
28 <div class="elementor-control-field-description">{{{ data.description }}}</div>
29 <# } #>
30 <input type="hidden" data-setting="{{ data.name }}"/>
31 </div>
32 <?php
33 }
34 }
35