| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\DocumentTypes\Post; |
| 5 | 5 | |
| 6 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | - exit; // Exit if accessed directly. | |
| 7 | + exit; // Exit if accessed directly | |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Elementor page library document. |
| @@ -32,14 +32,23 @@ | ||
| 32 | 32 | $properties = parent::get_properties(); |
| 33 | 33 | |
| 34 | 34 | $properties['support_wp_page_templates'] = true; |
| 35 | 35 | $properties['support_kit'] = true; |
| 36 | - $properties['show_in_finder'] = true; | |
| 37 | 36 | |
| 38 | 37 | return $properties; |
| 39 | 38 | } |
| 40 | 39 | |
| 41 | - public static function get_type() { | |
| 40 | + /** | |
| 41 | + * Get document name. | |
| 42 | + * | |
| 43 | + * Retrieve the document name. | |
| 44 | + * | |
| 45 | + * @since 2.0.0 | |
| 46 | + * @access public | |
| 47 | + * | |
| 48 | + * @return string Document name. | |
| 49 | + */ | |
| 50 | + public function get_name() { | |
| 42 | 51 | return 'page'; |
| 43 | 52 | } |
| 44 | 53 | |
| 45 | 54 | /** |
| @@ -53,17 +62,9 @@ | ||
| 53 | 62 | * |
| 54 | 63 | * @return string Document title. |
| 55 | 64 | */ |
| 56 | 65 | public static function get_title() { |
| 57 | - return esc_html__( 'Page', 'elementor' ); | |
| 58 | - } | |
| 59 | - | |
| 60 | - public static function get_plural_title() { | |
| 61 | - return esc_html__( 'Pages', 'elementor' ); | |
| 62 | - } | |
| 63 | - | |
| 64 | - public static function get_add_new_title() { | |
| 65 | - return esc_html__( 'Add New Page Template', 'elementor' ); | |
| 66 | + return __( 'Page', 'elementor' ); | |
| 66 | 67 | } |
| 67 | 68 | |
| 68 | 69 | /** |
| 69 | 70 | * @since 2.1.3 |