PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.3
Elementor Website Builder – more than just a page builder v3.0.3
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.0.3, at modules/library/documents/not-supported.php

85 lines 1.5 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
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit; // Exit if accessed directly
8 }
9
10 /**
11 * Elementor section library document.
12 *
13 * Elementor section library document handler class is responsible for
14 * handling a document of a section type.
15 *
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
37 $properties['cpt'] = [
38 Source_Local::CPT,
39 ];
40
41 return $properties;
42 }
43
44 /**
45 * Get document name.
46 *
47 * Retrieve the document name.
48 *
49 * @access public
50 *
51 * @return string Document name.
52 */
53 public function get_name() {
54 return 'not-supported';
55 }
56
57 /**
58 * Get document title.
59 *
60 * Retrieve the document title.
61 *
62 * @access public
63 * @static
64 *
65 * @return string Document title.
66 */
67 public static function get_title() {
68 return __( 'Not Supported', 'elementor' );
69 }
70
71 public function save_template_type() {
72 // Do nothing.
73 }
74
75 public function print_admin_column_type() {
76 echo self::get_title();
77 }
78
79 public function filter_admin_row_actions( $actions ) {
80 unset( $actions['view'] );
81
82 return $actions;
83 }
84 }
85