| @@ -160,8 +160,19 @@ | ||
| 160 | 160 | ); |
| 161 | 161 | |
| 162 | 162 | add_submenu_page( |
| 163 | 163 | self::PAGE_ID, |
| 164 | + __( 'Custom Code', 'elementor' ), | |
| 165 | + __( 'Custom Code', 'elementor' ), | |
| 166 | + 'manage_options', | |
| 167 | + 'elementor_custom_custom_code', | |
| 168 | + function() { | |
| 169 | + $this->elementor_custom_code(); | |
| 170 | + } | |
| 171 | + ); | |
| 172 | + | |
| 173 | + add_submenu_page( | |
| 174 | + self::PAGE_ID, | |
| 164 | 175 | '', |
| 165 | 176 | '<span class="dashicons dashicons-star-filled" style="font-size: 17px"></span> ' . esc_html__( 'Go Pro', 'elementor' ), |
| 166 | 177 | 'manage_options', |
| 167 | 178 | 'go_elementor_pro', |
| @@ -621,8 +632,24 @@ | ||
| 621 | 632 | return; |
| 622 | 633 | } |
| 623 | 634 | |
| 624 | 635 | remove_all_actions( 'admin_notices' ); |
| 636 | + } | |
| 637 | + | |
| 638 | + /** | |
| 639 | + * Output the content for custom_code page. | |
| 640 | + */ | |
| 641 | + private function elementor_custom_code() { | |
| 642 | + ?> | |
| 643 | + <div class="wrap"> | |
| 644 | + <div class="elementor-blank_state"> | |
| 645 | + <img src="<?php esc_url( ELEMENTOR_ASSETS_URL . 'images/go-pro-wp-dashboard.svg' ); ?>" alt="go-pro-wp-dashboard" /> | |
| 646 | + <h2><?php echo esc_html__( 'Add Your Custom Code', 'elementor' ); ?></h2> | |
| 647 | + <p><?php echo esc_html__( '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.', 'elementor' ); ?></p> | |
| 648 | + <a class="elementor-button elementor-button-default elementor-button-go-pro" target="_blank" href="<?php echo esc_url( Utils::get_pro_link( 'http://go.elementor.com/go-pro-custom-code' ) ); ?>"><?php echo esc_html__( 'Go Pro', 'elementor' ); ?></a> | |
| 649 | + </div> | |
| 650 | + </div><!-- /.wrap --> | |
| 651 | + <?php | |
| 625 | 652 | } |
| 626 | 653 | |
| 627 | 654 | /** |
| 628 | 655 | * Settings page constructor. |