| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Promotions\AdminMenuItems; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly |
| 7 |
} |
| 8 |
|
| 9 |
class Custom_Code_Promotion_Item extends Base_Promotion_Item { |
| 10 |
public function get_label() { |
| 11 |
return esc_html__( 'Custom Code', 'elementor' ); |
| 12 |
} |
| 13 |
|
| 14 |
public function get_page_title() { |
| 15 |
return esc_html__( 'Custom Code', 'elementor' ); |
| 16 |
} |
| 17 |
|
| 18 |
public function get_promotion_title() { |
| 19 |
return esc_html__( 'Add Your Custom Code', 'elementor' ); |
| 20 |
} |
| 21 |
|
| 22 |
public function render_promotion_description() { |
| 23 |
echo esc_html__( |
| 24 |
'Custom Code is a tool gives you one place where you can insert scripts, rather than dealing with dozens of different plugins and deal with code.', |
| 25 |
'elementor' |
| 26 |
); |
| 27 |
} |
| 28 |
|
| 29 |
public function get_cta_url() { |
| 30 |
return 'https://go.elementor.com/go-pro-custom-code/'; |
| 31 |
} |
| 32 |
} |
| 33 |
|