| 1 |
<?php |
| 2 |
namespace Elementor\Core\Editor; |
| 3 |
|
| 4 |
use Elementor\Utils; |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; // Exit if accessed directly |
| 8 |
} |
| 9 |
|
| 10 |
class Promotion { |
| 11 |
public function get_elements_promotion() { |
| 12 |
// For BC |
| 13 |
$has_pro = Utils::has_pro(); |
| 14 |
|
| 15 |
return [ |
| 16 |
/* translators: %s: Widget title. */ |
| 17 |
'title' => __( '%s Widget', 'elementor' ), |
| 18 |
/* translators: %s: Widget title. */ |
| 19 |
'content' => __( |
| 20 |
'Use %s widget and dozens more pro features to extend your toolbox and build sites faster and better.', |
| 21 |
'elementor' |
| 22 |
), |
| 23 |
'action_button' => [ |
| 24 |
'text' => $has_pro ? |
| 25 |
__( 'Connect & Activate', 'elementor' ) : |
| 26 |
__( 'Upgrade', 'elementor' ), |
| 27 |
'url' => $has_pro ? |
| 28 |
admin_url( 'admin.php?page=elementor-license' ) : |
| 29 |
'https://go.elementor.com/go-pro-%s', |
| 30 |
], |
| 31 |
]; |
| 32 |
} |
| 33 |
} |
| 34 |
|