mirror of
https://github.com/proelements/proelements.git
synced 2026-04-17 17:42:19 +00:00
v3.33.1
This commit is contained in:
34
core/editor/promotion.php
Normal file
34
core/editor/promotion.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
namespace ElementorPro\Core\Editor;
|
||||
|
||||
use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
|
||||
use ElementorPro\License\API;
|
||||
use ElementorPro\License\Admin;
|
||||
use Elementor\Core\Editor\Promotion as Base_Promotion;
|
||||
use ElementorPro\Plugin;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Promotion extends Base_Promotion {
|
||||
public function get_elements_promotion() {
|
||||
return $this->get_elements_promotion__default();
|
||||
}
|
||||
private function get_elements_promotion__default() {
|
||||
return [
|
||||
/* translators: %s: Widget title. */
|
||||
'title' => __( '%s Widget', 'elementor-pro' ),
|
||||
'content' =>
|
||||
/* translators: %s: Widget title. */
|
||||
__(
|
||||
'Use %s widget and dozens more pro features to extend your toolbox and build sites faster and better.',
|
||||
'elementor-pro'
|
||||
),
|
||||
'action_button' => [
|
||||
'text' => __( 'Connect & Activate', 'elementor-pro' ),
|
||||
'url' => Admin::get_url(),
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user