| @@ -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() { |
| @@ -42,24 +38,12 @@ | ||
| 42 | 38 | * @access public |
| 43 | 39 | * @static |
| 44 | 40 | */ |
| 45 | 41 | public static function get_title() { |
| 46 | - return esc_html__( 'Landing Page', 'elementor' ); | |
| 42 | + return __( 'Landing Page', 'elementor' ); | |
| 47 | 43 | } |
| 48 | 44 | |
| 49 | 45 | /** |
| 50 | - * @access public | |
| 51 | - * @static | |
| 52 | - */ | |
| 53 | - 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'; | |
| 59 | - } | |
| 60 | - | |
| 61 | - /** | |
| 62 | 46 | * Save Document. |
| 63 | 47 | * |
| 64 | 48 | * Save an Elementor document. |
| 65 | 49 | * |
| @@ -76,9 +60,9 @@ | ||
| 76 | 60 | if ( empty( $data['settings']['template'] ) ) { |
| 77 | 61 | $data['settings']['template'] = Page_Templates_Module::TEMPLATE_CANVAS; |
| 78 | 62 | } |
| 79 | 63 | |
| 80 | - return parent::save( $data ); | |
| 64 | + parent::save( $data ); | |
| 81 | 65 | } |
| 82 | 66 | |
| 83 | 67 | /** |
| 84 | 68 | * Admin Columns Content |