← All changes
|
modules/atomic-widgets/elements/atomic-image/atomic-image.php
+0
-15
4.1.3
→
3.35.0-dev4
View file →
| @@ -91,12 +91,10 @@ | ||
| 91 | 91 | return [ |
| 92 | 92 | self::LINK_BASE_STYLE_KEY => Style_Definition::make() |
| 93 | 93 | ->add_variant( |
| 94 | 94 | Style_Variant::make() |
| 95 | - ->add_prop( 'all', 'unset' ) | |
| 96 | 95 | ->add_prop( 'display', 'inherit' ) |
| 97 | 96 | ->add_prop( 'width', 'fit-content' ) |
| 98 | - ->add_prop( 'cursor', 'pointer' ) | |
| 99 | 97 | ), |
| 100 | 98 | self::BASE_STYLE_KEY => Style_Definition::make() |
| 101 | 99 | ->add_variant( |
| 102 | 100 | Style_Variant::make() |
| @@ -108,19 +106,6 @@ | ||
| 108 | 106 | protected function get_templates(): array { |
| 109 | 107 | return [ |
| 110 | 108 | 'elementor/elements/atomic-image' => __DIR__ . '/atomic-image.html.twig', |
| 111 | 109 | ]; |
| 112 | - } | |
| 113 | - | |
| 114 | - public function render_markdown(): string { | |
| 115 | - $settings = $this->get_atomic_settings(); | |
| 116 | - $src = $settings['image']['src'] ?? ''; | |
| 117 | - | |
| 118 | - if ( empty( $src ) ) { | |
| 119 | - return ''; | |
| 120 | - } | |
| 121 | - | |
| 122 | - $alt = $settings['image']['alt'] ?? ''; | |
| 123 | - | |
| 124 | - return ' . ')'; | |
| 125 | 110 | } |
| 126 | 111 | } |