| 1 |
<?php |
| 2 |
namespace Elementor\Modules\Library\Documents; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Elementor container library document. |
| 10 |
* |
| 11 |
* Elementor container library document handler class is responsible for |
| 12 |
* handling a document of a container type. |
| 13 |
* |
| 14 |
* @since 2.0.0 |
| 15 |
*/ |
| 16 |
class Container extends Library_Document { |
| 17 |
|
| 18 |
public static function get_properties() { |
| 19 |
$properties = parent::get_properties(); |
| 20 |
|
| 21 |
$properties['support_kit'] = true; |
| 22 |
|
| 23 |
return $properties; |
| 24 |
} |
| 25 |
|
| 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() { |
| 37 |
return 'container'; |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* Get document title. |
| 42 |
* |
| 43 |
* Retrieve the document title. |
| 44 |
* |
| 45 |
* @since 2.0.0 |
| 46 |
* @access public |
| 47 |
* @static |
| 48 |
* |
| 49 |
* @return string Document title. |
| 50 |
*/ |
| 51 |
public static function get_title() { |
| 52 |
return esc_html__( 'Container', 'elementor' ); |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* Get Type |
| 57 |
* |
| 58 |
* Return the container document type. |
| 59 |
* |
| 60 |
* @return string |
| 61 |
*/ |
| 62 |
public static function get_type() { |
| 63 |
return 'container'; |
| 64 |
} |
| 65 |
} |
| 66 |
|