PluginProbe
Elementor Website Builder – more than just a page builder / 3.5.0-dev9
Elementor Website Builder – more than just a page builder v3.5.0-dev9
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 4.0.7 All 451 releases
← All changes | includes/settings/settings.php +27 -0 3.5.0-dev83.5.0-dev9 View file →
@@ -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.