PluginProbe
Elementor Website Builder – more than just a page builder / 3.2.0
Elementor Website Builder – more than just a page builder v3.2.0
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 | modules/library/documents/page.php +13 -12 4.2.23.2.0 View file →
@@ -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