| @@ -85,30 +85,8 @@ | ||
| 85 | 85 | public function has_widget_inner_wrapper(): bool { |
| 86 | 86 | return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - /** | |
| 90 | - * Get widget upsale data. | |
| 91 | - * | |
| 92 | - * Retrieve the widget promotion data. | |
| 93 | - * | |
| 94 | - * @since 3.19.0 | |
| 95 | - * @access protected | |
| 96 | - * | |
| 97 | - * @return array Widget promotion data. | |
| 98 | - */ | |
| 99 | - protected function get_upsale_data() { | |
| 100 | - return [ | |
| 101 | - 'condition' => ! Utils::has_pro(), | |
| 102 | - 'image' => esc_url( ELEMENTOR_ASSETS_URL . 'images/go-pro.svg' ), | |
| 103 | - 'image_alt' => esc_attr__( 'Upgrade', 'elementor' ), | |
| 104 | - 'title' => esc_html__( 'Convert visitors into customers', 'elementor' ), | |
| 105 | - 'description' => esc_html__( 'Get the Call to Action widget and grow your toolbox with Elementor Pro.', 'elementor' ), | |
| 106 | - 'upgrade_url' => esc_url( 'https://go.elementor.com/go-pro-button-widget/' ), | |
| 107 | - 'upgrade_text' => esc_html__( 'Upgrade Now', 'elementor' ), | |
| 108 | - ]; | |
| 109 | - } | |
| 110 | - | |
| 111 | 89 | protected function register_controls() { |
| 112 | 90 | $this->start_controls_section( |
| 113 | 91 | 'section_button', |
| 114 | 92 | [ |
| @@ -116,8 +94,18 @@ | ||
| 116 | 94 | ] |
| 117 | 95 | ); |
| 118 | 96 | |
| 119 | 97 | $this->register_button_content_controls(); |
| 98 | + | |
| 99 | + if ( ! Utils::has_pro() ) { | |
| 100 | + $this->add_control( | |
| 101 | + Utils::CTA . '_promotion', | |
| 102 | + [ | |
| 103 | + 'label' => esc_html__( 'Call to Action widget', 'elementor' ), | |
| 104 | + 'type' => Promotion_Control::TYPE, | |
| 105 | + ] | |
| 106 | + ); | |
| 107 | + } | |
| 120 | 108 | |
| 121 | 109 | $this->end_controls_section(); |
| 122 | 110 | |
| 123 | 111 | $this->start_controls_section( |