PluginProbe
Elementor Website Builder – more than just a page builder / 3.21.5
Elementor Website Builder – more than just a page builder v3.21.5
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / modules / library / documents / not-supported.php

not-supported.php in Elementor Website Builder – more than just a page builder 3.21.5, at modules/library/documents/not-supported.php

74 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 */
18 class Not_Supported extends Library_Document {
19
20 /**
21 * Get document properties.
22 *
23 * Retrieve the document properties.
24 *
25 * @access public
26 * @static
27 *
28 * @return array Document properties.
29 */
30 public static function get_properties() {
31 $properties = parent::get_properties();
32
33 $properties['admin_tab_group'] = '';
34 $properties['register_type'] = false;
35 $properties['is_editable'] = false;
36 $properties['show_in_library'] = false;
37 $properties['show_in_finder'] = false;
38
39 return $properties;
40 }
41
42 public static function get_type() {
43 return 'not-supported';
44 }
45
46 /**
47 * Get document title.
48 *
49 * Retrieve the document title.
50 *
51 * @access public
52 * @static
53 *
54 * @return string Document title.
55 */
56 public static function get_title() {
57 return esc_html__( 'Not Supported', 'elementor' );
58 }
59
60 public function save_template_type() {
61 // Do nothing.
62 }
63
64 public function print_admin_column_type() {
65 Utils::print_unescaped_internal_string( self::get_title() );
66 }
67
68 public function filter_admin_row_actions( $actions ) {
69 unset( $actions['view'] );
70
71 return $actions;
72 }
73 }
74