PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.7
Elementor Website Builder – more than just a page builder v3.35.7
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 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | modules/atomic-widgets/elements/atomic-image/atomic-image.php +1 -28 4.3.0-beta33.35.7 View file →
@@ -7,9 +7,8 @@
7 7 use Elementor\Modules\AtomicWidgets\PropTypes\Image_Prop_Type;
8 8 use Elementor\Modules\AtomicWidgets\PropTypes\Link_Prop_Type;
9 9 use Elementor\Modules\AtomicWidgets\Controls\Section;
10 10 use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Widget_Base;
11 -use Elementor\Modules\AtomicWidgets\Elements\Base\Html_Tag_Computer;
12 11 use Elementor\Modules\AtomicWidgets\PropTypes\Attributes_Prop_Type;
13 12 use Elementor\Modules\AtomicWidgets\Controls\Types\Image_Control;
14 13 use Elementor\Modules\AtomicWidgets\Utils\Image\Placeholder_Image;
15 14 use Elementor\Modules\AtomicWidgets\Styles\Style_Definition;
@@ -37,9 +36,9 @@
37 36 return esc_html__( 'Image', 'elementor' );
38 37 }
39 38
40 39 public function get_keywords() {
41 - return [ 'ato', 'atom', 'atoms', 'atomic', 'image', 'photo', 'picture' ];
40 + return [ 'ato', 'atom', 'atoms', 'atomic' ];
42 41 }
43 42
44 43 public function get_icon() {
45 44 return 'eicon-e-image';
@@ -44,18 +43,8 @@
44 43 public function get_icon() {
45 44 return 'eicon-e-image';
46 45 }
47 46
48 - public static function html_tag_follows_link(): bool {
49 - return false;
50 - }
51 -
52 - public static function get_computed_html_tag( array $settings ): string {
53 - return Html_Tag_Computer::compute( $settings, 'img', [
54 - Html_Tag_Computer::FOLLOW_LINK_OPTION => static::html_tag_follows_link(),
55 - ] );
56 - }
57 -
58 47 protected static function define_props_schema(): array {
59 48 $props = [
60 49 'classes' => Classes_Prop_Type::make()
61 50 ->default( [] ),
@@ -75,9 +64,8 @@
75 64 protected function define_atomic_controls(): array {
76 65 return [
77 66 Section::make()
78 67 ->set_label( esc_html__( 'Content', 'elementor' ) )
79 - ->set_id( 'content' )
80 68 ->set_items( [
81 69 Image_Control::bind_to( 'image' )
82 70 ->set_label( __( 'Image', 'elementor' ) ),
83 71 ] ),
@@ -103,12 +91,10 @@
103 91 return [
104 92 self::LINK_BASE_STYLE_KEY => Style_Definition::make()
105 93 ->add_variant(
106 94 Style_Variant::make()
107 - ->add_prop( 'all', 'unset' )
108 95 ->add_prop( 'display', 'inherit' )
109 96 ->add_prop( 'width', 'fit-content' )
110 - ->add_prop( 'cursor', 'pointer' )
111 97 ),
112 98 self::BASE_STYLE_KEY => Style_Definition::make()
113 99 ->add_variant(
114 100 Style_Variant::make()
@@ -120,19 +106,6 @@
120 106 protected function get_templates(): array {
121 107 return [
122 108 'elementor/elements/atomic-image' => __DIR__ . '/atomic-image.html.twig',
123 109 ];
124 - }
125 -
126 - public function render_markdown(): string {
127 - $settings = $this->get_atomic_settings();
128 - $src = $settings['image']['src'] ?? '';
129 -
130 - if ( empty( $src ) ) {
131 - return '';
132 - }
133 -
134 - $alt = $settings['image']['alt'] ?? '';
135 -
136 - return '![' . $alt . '](' . esc_url( $src ) . ')';
137 110 }
138 111 }