PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.0-dev2
Elementor Website Builder – more than just a page builder v3.35.0-dev2
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | modules/promotions/admin-menu-items/editor-one-custom-code-menu.php +1 -34 4.2.13.35.0-dev2 View file →
@@ -8,9 +8,9 @@
8 8 if ( ! defined( 'ABSPATH' ) ) {
9 9 exit;
10 10 }
11 11
12 -class Editor_One_Custom_Code_Menu extends Base_Promotion_Template implements Menu_Item_Interface {
12 +class Editor_One_Custom_Code_Menu extends Custom_Code_Promotion_Item implements Menu_Item_Interface {
13 13 public function get_position(): int {
14 14 return 40;
15 15 }
16 16
@@ -24,41 +24,8 @@
24 24
25 25 public function get_label(): string {
26 26 return esc_html__( 'Code', 'elementor' );
27 27 }
28 -
29 28 public function get_group_id(): string {
30 29 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 30 }
64 31 }