PluginProbe
Elementor Website Builder – more than just a page builder / 3.22.2
Elementor Website Builder – more than just a page builder v3.22.2
4.3.1 4.3.0 4.3.0-beta3 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 All 454 releases
← All changes | modules/promotions/widgets/pro-widget-promotion.php +7 -22 4.3.0 → 3.22.2 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2 namespace Elementor\Modules\Promotions\Widgets;
3 3
4 4 use Elementor\Widget_Base;
5 -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
6 5
7 6 if ( ! defined( 'ABSPATH' ) ) {
8 7 exit; // Exit if accessed directly.
9 8 }
@@ -27,12 +26,8 @@
27 26 public function get_title() {
28 27 return $this->widget_data['widget_title'];
29 28 }
30 29
31 - public function get_categories() {
32 - return [ 'general', 'pro-elements' ];
33 - }
34 -
35 30 public function on_import( $element ) {
36 31 $element['settings']['__should_import'] = true;
37 32
38 33 return $element;
@@ -52,33 +47,23 @@
52 47 return \Elementor\Plugin::$instance->editor->is_edit_mode();
53 48 }
54 49
55 50 private function render_promotion() {
56 - $promotion = Filtered_Promotions_Manager::get_filtered_promotion_data(
57 - [
58 - 'image_url' => esc_url( $this->get_promotion_image_url() ),
59 - 'text' => sprintf(
60 - /* translators: %s: Widget title. */
61 - esc_html__( 'This result includes the Elementor Pro %s widget. Upgrade now to unlock it and grow your web creation toolkit.', 'elementor' ),
62 - esc_html( $this->widget_data['widget_title'] )
63 - ),
64 - 'upgrade_url' => esc_url( 'https://go.elementor.com/go-pro-element-pro/' ),
65 - ],
66 - 'elementor/pro-widget/promotion',
67 - 'upgrade_url'
68 - );
69 51 ?>
70 52 <div class="e-container">
71 - <span class="e-badge"><i class="eicon-upgrade-crown-full" aria-hidden="true"></i> <?php echo esc_html__( 'Pro', 'elementor' ); ?></span>
53 + <span class="e-badge"><i class="eicon-lock" aria-hidden="true"></i> <?php echo esc_html__( 'Pro', 'elementor' ); ?></span>
72 54 <p>
73 - <img src="<?php echo esc_url( $promotion['image_url'] ); ?>" loading="lazy" alt="Go Pro">
55 + <img src="<?php echo esc_url( $this->get_promotion_image_url() ); ?>" loading="lazy" alt="Go Pro">
74 56 <?php
75 - echo esc_html( $promotion['text'] );
57 + echo sprintf(
58 + esc_html__( 'This result includes the Elementor Pro %s widget. Upgrade now to unlock it and grow your web creation toolkit.', 'elementor' ),
59 + esc_html( $this->widget_data['widget_title'] )
60 + );
76 61 ?>
77 62 </p>
78 63 <div class="e-actions">
79 64 <a href="#" class="e-btn e-btn-txt e-promotion-delete"><?php echo esc_html__( 'Remove', 'elementor' ); ?></a>
80 - <a href="<?php echo esc_url( $promotion['upgrade_url'] ); ?>" rel="noreferrer" target="_blank" class="e-btn go-pro elementor-clickable e-promotion-go-pro"><?php echo esc_html__( 'Go Pro', 'elementor' ); ?></a>
65 + <a href="https://go.elementor.com/go-pro-element-pro/" rel="noreferrer" target="_blank" class="e-btn go-pro elementor-clickable e-promotion-go-pro"><?php echo esc_html__( 'Go Pro', 'elementor' ); ?></a>
81 66 </div>
82 67 </div>
83 68 <?php
84 69 }