/var/www/html_us/wp-content/plugins/elementor/modules/library/documents/not-supported.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
namespace Elementor\Modules\Library\Documents;

use 
Elementor\TemplateLibrary\Source_Local;
use 
Elementor\Utils;

if ( ! 
defined'ABSPATH' ) ) {
    exit; 
// Exit if accessed directly
}

/**
 * Elementor section library document.
 *
 * Elementor section library document handler class is responsible for
 * handling a document of a section type.
 *
 */
class Not_Supported extends Library_Document {

    
/**
     * Get document properties.
     *
     * Retrieve the document properties.
     *
     * @access public
     * @static
     *
     * @return array Document properties.
     */
    
public static function get_properties() {
        
$properties parent::get_properties();

        
$properties['admin_tab_group'] = '';
        
$properties['register_type'] = false;
        
$properties['is_editable'] = false;
        
$properties['show_in_library'] = false;
        
$properties['show_in_finder'] = false;

        return 
$properties;
    }

    public static function 
get_type() {
        return 
'not-supported';
    }

    
/**
     * Get document title.
     *
     * Retrieve the document title.
     *
     * @access public
     * @static
     *
     * @return string Document title.
     */
    
public static function get_title() {
        return 
esc_html__'Not Supported''elementor' );
    }

    public function 
save_template_type() {
        
// Do nothing.
    
}

    public function 
print_admin_column_type() {
        
Utils::print_unescaped_internal_stringself::get_title() );
    }

    public function 
filter_admin_row_actions$actions ) {
        unset( 
$actions['view'] );

        return 
$actions;
    }
}