← All changes
|
modules/atomic-widgets/elements/atomic-button/atomic-button.php
+0
-15
4.1.5
→
4.0.3
View file →
| @@ -146,20 +146,5 @@ | ||
| 146 | 146 | return [ |
| 147 | 147 | 'elementor/elements/atomic-button' => __DIR__ . '/atomic-button.html.twig', |
| 148 | 148 | ]; |
| 149 | 149 | } |
| 150 | - | |
| 151 | - public function render_markdown(): string { | |
| 152 | - $settings = $this->get_atomic_settings(); | |
| 153 | - $text = wp_strip_all_tags( $settings['text'] ?? '' ); | |
| 154 | - | |
| 155 | - if ( empty( $text ) ) { | |
| 156 | - return ''; | |
| 157 | - } | |
| 158 | - | |
| 159 | - if ( ! empty( $settings['link']['href'] ) ) { | |
| 160 | - return '[' . $text . '](' . esc_url( $settings['link']['href'] ) . ')'; | |
| 161 | - } | |
| 162 | - | |
| 163 | - return '**' . $text . '**'; | |
| 164 | - } | |
| 165 | 150 | } |