← All changes
|
modules/landing-pages/documents/landing-page.php
+2
-10
4.3.0
→
3.4.0-dev9
View file →
| @@ -8,9 +8,9 @@ | ||
| 8 | 8 | use Elementor\Plugin; |
| 9 | 9 | use Elementor\TemplateLibrary\Source_Local; |
| 10 | 10 | |
| 11 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | - exit; // Exit if accessed directly. | |
| 12 | + exit; // Exit if accessed directly | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | class Landing_Page extends PageBase { |
| 16 | 16 | |
| @@ -26,12 +26,8 @@ | ||
| 26 | 26 | |
| 27 | 27 | return $properties; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public static function get_type() { | |
| 31 | - return Landing_Pages_Module::DOCUMENT_TYPE; | |
| 32 | - } | |
| 33 | - | |
| 34 | 30 | /** |
| 35 | 31 | * @access public |
| 36 | 32 | */ |
| 37 | 33 | public function get_name() { |
| @@ -50,13 +46,9 @@ | ||
| 50 | 46 | * @access public |
| 51 | 47 | * @static |
| 52 | 48 | */ |
| 53 | 49 | public static function get_plural_title() { |
| 54 | - return esc_html__( 'Landing Pages', 'elementor' ); | |
| 55 | - } | |
| 56 | - | |
| 57 | - public static function get_create_url() { | |
| 58 | - return parent::get_create_url() . '#library'; | |
| 50 | + return __( 'Landing Pages', 'elementor' ); | |
| 59 | 51 | } |
| 60 | 52 | |
| 61 | 53 | /** |
| 62 | 54 | * Save Document. |