| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Promotions\AdminMenuItems; |
| 4 |
|
| 5 |
use Elementor\Core\Admin\EditorOneMenu\Interfaces\Menu_Item_Interface; |
| 6 |
use Elementor\Modules\EditorOne\Classes\Menu_Config; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
class Editor_One_Custom_Code_Menu extends Base_Promotion_Template implements Menu_Item_Interface { |
| 13 |
public function get_position(): int { |
| 14 |
return 40; |
| 15 |
} |
| 16 |
|
| 17 |
public function get_slug(): string { |
| 18 |
return 'elementor_custom_code'; |
| 19 |
} |
| 20 |
|
| 21 |
public function get_parent_slug(): string { |
| 22 |
return 'elementor_custom_code'; |
| 23 |
} |
| 24 |
|
| 25 |
public function get_label(): string { |
| 26 |
return esc_html__( 'Code', 'elementor' ); |
| 27 |
} |
| 28 |
|
| 29 |
public function get_group_id(): string { |
| 30 |
return Menu_Config::CUSTOM_ELEMENTS_GROUP_ID; |
| 31 |
} |
| 32 |
|
| 33 |
public function get_name() { |
| 34 |
return 'custom_code'; |
| 35 |
} |
| 36 |
|
| 37 |
public function get_page_title() { |
| 38 |
return esc_html__( 'Custom Code', 'elementor' ); |
| 39 |
} |
| 40 |
|
| 41 |
protected function get_promotion_title(): string { |
| 42 |
return esc_html__( 'Enjoy Creative Freedom with Custom Code', 'elementor' ); |
| 43 |
} |
| 44 |
|
| 45 |
protected function get_content_lines(): array { |
| 46 |
return [ |
| 47 |
esc_html__( 'Add Custom Code snippets anywhere on your website, including the header or footer to measure your page\'s performance*', 'elementor' ), |
| 48 |
esc_html__( 'Use Custom Code to create sophisticated custom interactions to engage visitors', 'elementor' ), |
| 49 |
esc_html__( 'Leverage Elementor AI to instantly generate Custom Code for Elementor', 'elementor' ), |
| 50 |
]; |
| 51 |
} |
| 52 |
|
| 53 |
protected function get_side_note(): string { |
| 54 |
return esc_html__( '* Requires an Advanced subscription or higher', 'elementor' ); |
| 55 |
} |
| 56 |
|
| 57 |
protected function get_cta_url(): string { |
| 58 |
return 'https://go.elementor.com/go-pro-custom-code/'; |
| 59 |
} |
| 60 |
|
| 61 |
protected function get_video_url(): string { |
| 62 |
return 'https://www.youtube-nocookie.com/embed/IOovQd1hJUg?si=xeBJ_mRZxRH1l5O6'; |
| 63 |
} |
| 64 |
} |
| 65 |
|