| 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_Template { |
| 10 |
public function get_name() { |
| 11 |
return 'custom_code'; |
| 12 |
} |
| 13 |
|
| 14 |
public function get_label() { |
| 15 |
return esc_html__( 'Custom Code', 'elementor' ); |
| 16 |
} |
| 17 |
|
| 18 |
public function get_page_title() { |
| 19 |
return esc_html__( 'Custom Code', 'elementor' ); |
| 20 |
} |
| 21 |
|
| 22 |
protected function get_promotion_title(): string { |
| 23 |
return esc_html__( 'Enjoy Creative Freedom with Custom Code', 'elementor' ); |
| 24 |
} |
| 25 |
|
| 26 |
protected function get_content_lines():array { |
| 27 |
return [ |
| 28 |
esc_html__( 'Add Custom Code snippets anywhere on your website, including the header or footer to measure your page’s performance*', 'elementor' ), |
| 29 |
esc_html__( 'Use Custom Code to create sophisticated custom interactions to engage visitors', 'elementor' ), |
| 30 |
esc_html__( 'Leverage Elementor AI to instantly generate Custom Code for Elementor', 'elementor' ), |
| 31 |
]; |
| 32 |
} |
| 33 |
|
| 34 |
protected function get_side_note():string { |
| 35 |
return esc_html__( '* Requires an Advanced subscription or higher', 'elementor' ); |
| 36 |
} |
| 37 |
|
| 38 |
protected function get_cta_url():string { |
| 39 |
return 'https://go.elementor.com/go-pro-custom-code/'; |
| 40 |
} |
| 41 |
|
| 42 |
protected function get_video_url():string { |
| 43 |
return 'https://www.youtube-nocookie.com/embed/IOovQd1hJUg?si=xeBJ_mRZxRH1l5O6'; |
| 44 |
} |
| 45 |
} |
| 46 |
|