| 1 |
<?php |
| 2 |
namespace Elementor\Modules\Library\Documents; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly. |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Elementor section library document. |
| 10 |
* |
| 11 |
* Elementor section library document handler class is responsible for |
| 12 |
* handling a document of a section type. |
| 13 |
* |
| 14 |
* @since 2.0.0 |
| 15 |
*/ |
| 16 |
class Section extends Library_Document { |
| 17 |
|
| 18 |
public static function get_properties() { |
| 19 |
$properties = parent::get_properties(); |
| 20 |
|
| 21 |
$properties['support_kit'] = true; |
| 22 |
$properties['show_in_finder'] = true; |
| 23 |
|
| 24 |
return $properties; |
| 25 |
} |
| 26 |
|
| 27 |
public static function get_type() { |
| 28 |
return 'section'; |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* Get document title. |
| 33 |
* |
| 34 |
* Retrieve the document title. |
| 35 |
* |
| 36 |
* @since 2.0.0 |
| 37 |
* @access public |
| 38 |
* @static |
| 39 |
* |
| 40 |
* @return string Document title. |
| 41 |
*/ |
| 42 |
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' ); |
| 48 |
} |
| 49 |
} |
| 50 |
|