| @@ -1,9 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Includes\Widgets\Traits\Button_Trait; |
| 5 | -use Elementor\Modules\Promotions\Controls\Promotion_Control; | |
| 6 | 5 | |
| 7 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | 7 | exit; // Exit if accessed directly. |
| 9 | 8 | } |
| @@ -81,12 +80,8 @@ | ||
| 81 | 80 | protected function is_dynamic_content(): bool { |
| 82 | 81 | return false; |
| 83 | 82 | } |
| 84 | 83 | |
| 85 | - public function has_widget_inner_wrapper(): bool { | |
| 86 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 87 | - } | |
| 88 | - | |
| 89 | 84 | /** |
| 90 | 85 | * Get widget upsale data. |
| 91 | 86 | * |
| 92 | 87 | * Retrieve the widget promotion data. |
| @@ -142,22 +137,6 @@ | ||
| 142 | 137 | * @access protected |
| 143 | 138 | */ |
| 144 | 139 | protected function render() { |
| 145 | 140 | $this->render_button(); |
| 146 | - } | |
| 147 | - | |
| 148 | - public function render_markdown(): string { | |
| 149 | - $settings = $this->get_settings_for_display(); | |
| 150 | - | |
| 151 | - $text = Utils::html_to_plain_text( $settings['text'] ?? '' ); | |
| 152 | - | |
| 153 | - if ( empty( $text ) ) { | |
| 154 | - return ''; | |
| 155 | - } | |
| 156 | - | |
| 157 | - if ( ! empty( $settings['link']['url'] ) ) { | |
| 158 | - return '[' . $text . '](' . esc_url( $settings['link']['url'] ) . ')'; | |
| 159 | - } | |
| 160 | - | |
| 161 | - return '**' . $text . '**'; | |
| 162 | 141 | } |
| 163 | 142 | } |