section.php (901B)
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 23 return $properties; 24 } 25 26 public static function get_type() { 27 return 'section'; 28 } 29 30 /** 31 * Get document title. 32 * 33 * Retrieve the document title. 34 * 35 * @since 2.0.0 36 * @access public 37 * @static 38 * 39 * @return string Document title. 40 */ 41 public static function get_title() { 42 return esc_html__( 'Section', 'elementor' ); 43 } 44 45 public static function get_plural_title() { 46 return __( 'Sections', 'elementor' ); 47 } 48 }