| @@ -2,14 +2,13 @@ | ||
| 2 | 2 | namespace Elementor\Core\Editor; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\Base\Base_Object; |
| 5 | 5 | use Elementor\Core\Common\Modules\Ajax\Module as Ajax; |
| 6 | -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager; | |
| 7 | 6 | use Elementor\Plugin; |
| 8 | 7 | use Elementor\Utils; |
| 9 | 8 | |
| 10 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | - exit; // Exit if accessed directly. | |
| 10 | + exit; // Exit if accessed directly | |
| 12 | 11 | } |
| 13 | 12 | |
| 14 | 13 | class Notice_Bar extends Base_Object { |
| 15 | 14 | |
| @@ -17,33 +16,15 @@ | ||
| 17 | 16 | if ( Plugin::$instance->get_install_time() > strtotime( '-1 days' ) ) { |
| 18 | 17 | return []; |
| 19 | 18 | } |
| 20 | 19 | |
| 21 | - $upgrade_url = 'https://go.elementor.com/go-pro-editor-notice-bar/'; | |
| 22 | - | |
| 23 | - $config = [ | |
| 24 | - 'description' => $this->get_description(), | |
| 25 | - 'upgrade_text' => $this->get_upgrade_text(), | |
| 26 | - 'upgrade_url' => $upgrade_url, | |
| 27 | - ]; | |
| 28 | - | |
| 29 | - $config = Filtered_Promotions_Manager::get_filtered_promotion_data( $config, 'elementor/notice-bar/custom_promotion', 'upgrade_url' ); | |
| 30 | - | |
| 31 | 20 | return [ |
| 32 | 21 | 'muted_period' => 14, |
| 33 | 22 | 'option_key' => '_elementor_editor_upgrade_notice_dismissed', |
| 34 | - 'message' => $config['description'] ?? $this->get_description(), | |
| 35 | - 'action_title' => $config['upgrade_text'] ?? $this->get_upgrade_text(), | |
| 36 | - 'action_url' => $config['upgrade_url'] ?? $upgrade_url, | |
| 23 | + 'message' => esc_html__( 'Unleash the full power of Elementor\'s features and web creation tools.', 'elementor' ), | |
| 24 | + 'action_title' => esc_html__( 'Upgrade Now', 'elementor' ), | |
| 25 | + 'action_url' => 'https://go.elementor.com/go-pro-editor-notice-bar/', | |
| 37 | 26 | ]; |
| 38 | - } | |
| 39 | - | |
| 40 | - public function get_upgrade_text() { | |
| 41 | - return esc_html__( 'Upgrade Now', 'elementor' ); | |
| 42 | - } | |
| 43 | - | |
| 44 | - public function get_description() { | |
| 45 | - return esc_html__( 'Unleash the full power of Elementor\'s features and web creation tools.', 'elementor' ); | |
| 46 | 27 | } |
| 47 | 28 | |
| 48 | 29 | final public function get_notice() { |
| 49 | 30 | if ( ! $this->has_access_to_notice() ) { |