PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.0-dev3
Elementor Website Builder – more than just a page builder v3.20.0-dev3
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 4.0.7 All 451 releases
← All changes | includes/widgets/button.php +0 -25 4.2.33.20.0-dev3 View file →
@@ -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 }
@@ -77,16 +76,8 @@
77 76 public function get_categories() {
78 77 return [ 'basic' ];
79 78 }
80 79
81 - protected function is_dynamic_content(): bool {
82 - return false;
83 - }
84 -
85 - public function has_widget_inner_wrapper(): bool {
86 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
87 - }
88 -
89 80 /**
90 81 * Get widget upsale data.
91 82 *
92 83 * Retrieve the widget promotion data.
@@ -142,22 +133,6 @@
142 133 * @access protected
143 134 */
144 135 protected function render() {
145 136 $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 137 }
163 138 }