PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.4
Elementor Website Builder – more than just a page builder v3.0.4
4.3.0-beta3 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 All 452 releases
← All changes | modules/library/documents/not-supported.php +18 -6 4.1.0-dev23.0.4 View file →
@@ -1,12 +1,11 @@
1 1 <?php
2 2 namespace Elementor\Modules\Library\Documents;
3 3
4 4 use Elementor\TemplateLibrary\Source_Local;
5 -use Elementor\Utils;
6 5
7 6 if ( ! defined( 'ABSPATH' ) ) {
8 - exit; // Exit if accessed directly.
7 + exit; // Exit if accessed directly
9 8 }
10 9
11 10 /**
12 11 * Elementor section library document.
@@ -12,8 +11,9 @@
12 11 * Elementor section library document.
13 12 *
14 13 * Elementor section library document handler class is responsible for
15 14 * handling a document of a section type.
15 + *
16 16 */
17 17 class Not_Supported extends Library_Document {
18 18
19 19 /**
@@ -32,14 +32,26 @@
32 32 $properties['admin_tab_group'] = '';
33 33 $properties['register_type'] = false;
34 34 $properties['is_editable'] = false;
35 35 $properties['show_in_library'] = false;
36 - $properties['show_in_finder'] = false;
37 36
37 + $properties['cpt'] = [
38 + Source_Local::CPT,
39 + ];
40 +
38 41 return $properties;
39 42 }
40 43
41 - public static function get_type() {
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() {
42 54 return 'not-supported';
43 55 }
44 56
45 57 /**
@@ -52,9 +64,9 @@
52 64 *
53 65 * @return string Document title.
54 66 */
55 67 public static function get_title() {
56 - return esc_html__( 'Not Supported', 'elementor' );
68 + return __( 'Not Supported', 'elementor' );
57 69 }
58 70
59 71 public function save_template_type() {
60 72 // Do nothing.
@@ -60,9 +72,9 @@
60 72 // Do nothing.
61 73 }
62 74
63 75 public function print_admin_column_type() {
64 - Utils::print_unescaped_internal_string( self::get_title() );
76 + echo self::get_title();
65 77 }
66 78
67 79 public function filter_admin_row_actions( $actions ) {
68 80 unset( $actions['view'] );