← All changes
|
modules/atomic-widgets/elements/atomic-image/atomic-image.php
+0
-16
4.2.1
→
3.35.0-dev2
View file →
| @@ -64,9 +64,8 @@ | ||
| 64 | 64 | protected function define_atomic_controls(): array { |
| 65 | 65 | return [ |
| 66 | 66 | Section::make() |
| 67 | 67 | ->set_label( esc_html__( 'Content', 'elementor' ) ) |
| 68 | - ->set_id( 'content' ) | |
| 69 | 68 | ->set_items( [ |
| 70 | 69 | Image_Control::bind_to( 'image' ) |
| 71 | 70 | ->set_label( __( 'Image', 'elementor' ) ), |
| 72 | 71 | ] ), |
| @@ -92,12 +91,10 @@ | ||
| 92 | 91 | return [ |
| 93 | 92 | self::LINK_BASE_STYLE_KEY => Style_Definition::make() |
| 94 | 93 | ->add_variant( |
| 95 | 94 | Style_Variant::make() |
| 96 | - ->add_prop( 'all', 'unset' ) | |
| 97 | 95 | ->add_prop( 'display', 'inherit' ) |
| 98 | 96 | ->add_prop( 'width', 'fit-content' ) |
| 99 | - ->add_prop( 'cursor', 'pointer' ) | |
| 100 | 97 | ), |
| 101 | 98 | self::BASE_STYLE_KEY => Style_Definition::make() |
| 102 | 99 | ->add_variant( |
| 103 | 100 | Style_Variant::make() |
| @@ -109,19 +106,6 @@ | ||
| 109 | 106 | protected function get_templates(): array { |
| 110 | 107 | return [ |
| 111 | 108 | 'elementor/elements/atomic-image' => __DIR__ . '/atomic-image.html.twig', |
| 112 | 109 | ]; |
| 113 | - } | |
| 114 | - | |
| 115 | - public function render_markdown(): string { | |
| 116 | - $settings = $this->get_atomic_settings(); | |
| 117 | - $src = $settings['image']['src'] ?? ''; | |
| 118 | - | |
| 119 | - if ( empty( $src ) ) { | |
| 120 | - return ''; | |
| 121 | - } | |
| 122 | - | |
| 123 | - $alt = $settings['image']['alt'] ?? ''; | |
| 124 | - | |
| 125 | - return ' . ')'; | |
| 126 | 110 | } |
| 127 | 111 | } |