PluginProbe
Elementor Website Builder – more than just a page builder / 3.34.0-beta1
Elementor Website Builder – more than just a page builder v3.34.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | modules/atomic-widgets/elements/atomic-youtube/atomic-youtube.php +5 -20 4.1.5 → 3.34.0-beta1 View file →
@@ -4,10 +4,10 @@
4 4 use Elementor\Modules\AtomicWidgets\Controls\Section;
5 5 use Elementor\Modules\AtomicWidgets\Controls\Types\Switch_Control;
6 6 use Elementor\Modules\AtomicWidgets\Controls\Types\Text_Control;
7 7 use Elementor\Modules\AtomicWidgets\DynamicTags\Dynamic_Prop_Type;
8 -use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Widget_Base;
9 -use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Template;
8 +use Elementor\Modules\AtomicWidgets\Elements\Atomic_Widget_Base;
9 +use Elementor\Modules\AtomicWidgets\Elements\Has_Template;
10 10 use Elementor\Modules\AtomicWidgets\PropTypes\Classes_Prop_Type;
11 11 use Elementor\Modules\AtomicWidgets\PropTypes\Attributes_Prop_Type;
12 12 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\Boolean_Prop_Type;
13 13 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type;
@@ -12,10 +12,9 @@
12 12 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\Boolean_Prop_Type;
13 13 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type;
14 14 use Elementor\Modules\AtomicWidgets\Styles\Style_Definition;
15 15 use Elementor\Modules\AtomicWidgets\Styles\Style_Variant;
16 -use Elementor\Modules\AtomicWidgets\Elements\Loader\Frontend_Assets_Loader;
17 -use Elementor\Modules\Components\PropTypes\Overridable_Prop_Type;
16 +use Elementor\Modules\AtomicWidgets\Loader\Frontend_Assets_Loader;
18 17 use Elementor\Utils;
19 18
20 19 if ( ! defined( 'ABSPATH' ) ) {
21 20 exit; // Exit if accessed directly.
@@ -65,9 +64,9 @@
65 64 'captions' => Boolean_Prop_Type::make()->default( false ),
66 65 'privacy_mode' => Boolean_Prop_Type::make()->default( false ),
67 66 'rel' => Boolean_Prop_Type::make()->default( true ),
68 67
69 - 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ),
68 + 'attributes' => Attributes_Prop_Type::make(),
70 69 ];
71 70 }
72 71
73 72 protected function define_atomic_controls(): array {
@@ -116,12 +115,9 @@
116 115 ];
117 116 }
118 117
119 118 public function get_script_depends() {
120 - return array_merge(
121 - parent::get_script_depends(),
122 - [ 'elementor-youtube-handler' ],
123 - );
119 + return [ 'elementor-youtube-handler' ];
124 120 }
125 121
126 122 public function register_frontend_handlers() {
127 123 $assets_url = ELEMENTOR_ASSETS_URL;
@@ -139,17 +135,6 @@
139 135 protected function get_templates(): array {
140 136 return [
141 137 'elementor/elements/atomic-youtube' => __DIR__ . '/atomic-youtube.html.twig',
142 138 ];
143 - }
144 -
145 - public function render_markdown(): string {
146 - $settings = $this->get_atomic_settings();
147 - $url = $settings['source'] ?? '';
148 -
149 - if ( empty( $url ) ) {
150 - return '';
151 - }
152 -
153 - return '[Video](' . esc_url( $url ) . ')';
154 139 }
155 140 }