| 1 |
<?php |
| 2 |
namespace Elementor\Modules\Library\Documents; |
| 3 |
|
| 4 |
use Elementor\TemplateLibrary\Source_Local; |
| 5 |
use Elementor\Utils; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly. |
| 9 |
} |
| 10 |
|
| 11 |
/** |
| 12 |
* Elementor section library document. |
| 13 |
* |
| 14 |
* Elementor section library document handler class is responsible for |
| 15 |
* handling a document of a section type. |
| 16 |
*/ |
| 17 |
class Not_Supported extends Library_Document { |
| 18 |
|
| 19 |
/** |
| 20 |
* Get document properties. |
| 21 |
* |
| 22 |
* Retrieve the document properties. |
| 23 |
* |
| 24 |
* @access public |
| 25 |
* @static |
| 26 |
* |
| 27 |
* @return array Document properties. |
| 28 |
*/ |
| 29 |
public static function get_properties() { |
| 30 |
$properties = parent::get_properties(); |
| 31 |
|
| 32 |
$properties['admin_tab_group'] = ''; |
| 33 |
$properties['register_type'] = false; |
| 34 |
$properties['is_editable'] = false; |
| 35 |
$properties['show_in_library'] = false; |
| 36 |
$properties['show_in_finder'] = false; |
| 37 |
|
| 38 |
return $properties; |
| 39 |
} |
| 40 |
|
| 41 |
public static function get_type() { |
| 42 |
return 'not-supported'; |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* Get document title. |
| 47 |
* |
| 48 |
* Retrieve the document title. |
| 49 |
* |
| 50 |
* @access public |
| 51 |
* @static |
| 52 |
* |
| 53 |
* @return string Document title. |
| 54 |
*/ |
| 55 |
public static function get_title() { |
| 56 |
return esc_html__( 'Not Supported', 'elementor' ); |
| 57 |
} |
| 58 |
|
| 59 |
public function save_template_type() { |
| 60 |
// Do nothing. |
| 61 |
} |
| 62 |
|
| 63 |
public function print_admin_column_type() { |
| 64 |
Utils::print_unescaped_internal_string( self::get_title() ); |
| 65 |
} |
| 66 |
|
| 67 |
public function filter_admin_row_actions( $actions ) { |
| 68 |
unset( $actions['view'] ); |
| 69 |
|
| 70 |
return $actions; |
| 71 |
} |
| 72 |
} |
| 73 |
|