| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Modules\Library\Documents; |
| 3 | 3 | |
| 4 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | - exit; // Exit if accessed directly. | |
| 5 | + exit; // Exit if accessed directly | |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Elementor section library document. |
| @@ -18,14 +18,23 @@ | ||
| 18 | 18 | public static function get_properties() { |
| 19 | 19 | $properties = parent::get_properties(); |
| 20 | 20 | |
| 21 | 21 | $properties['support_kit'] = true; |
| 22 | - $properties['show_in_finder'] = true; | |
| 23 | 22 | |
| 24 | 23 | return $properties; |
| 25 | 24 | } |
| 26 | 25 | |
| 27 | - public static function get_type() { | |
| 26 | + /** | |
| 27 | + * Get document name. | |
| 28 | + * | |
| 29 | + * Retrieve the document name. | |
| 30 | + * | |
| 31 | + * @since 2.0.0 | |
| 32 | + * @access public | |
| 33 | + * | |
| 34 | + * @return string Document name. | |
| 35 | + */ | |
| 36 | + public function get_name() { | |
| 28 | 37 | return 'section'; |
| 29 | 38 | } |
| 30 | 39 | |
| 31 | 40 | /** |
| @@ -39,11 +48,7 @@ | ||
| 39 | 48 | * |
| 40 | 49 | * @return string Document title. |
| 41 | 50 | */ |
| 42 | 51 | public static function get_title() { |
| 43 | - return esc_html__( 'Section', 'elementor' ); | |
| 44 | - } | |
| 45 | - | |
| 46 | - public static function get_plural_title() { | |
| 47 | - return esc_html__( 'Sections', 'elementor' ); | |
| 52 | + return __( 'Section', 'elementor' ); | |
| 48 | 53 | } |
| 49 | 54 | } |