/var/www/html_us/wp-content/plugins/elementor/core/settings/general/model.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
<?php

namespace Elementor\Core\Settings\General;

use 
Elementor\Plugin;

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

/**
 * This file is deprecated, use Plugin::$instance->kits_manager->get_active_kit_for_frontend() instead.
 * it changed to support call like this: Manager::get_settings_managers( 'general' )->get_model()->get_settings( 'elementor_default_generic_fonts' )
 *
 * @deprecated 3.0.0 Use `Plugin::$instance->kits_manager->get_active_kit_for_frontend()` instead.
 */

class Model {

    
/**
     * @deprecated 3.0.0
     */
    
public function get_name() {
        return 
'general-deprecated';
    }

    
/**
     * @deprecated 3.0.0
     */
    
public function get_panel_page_settings() {
        return [];
    }

    
/**
     * @deprecated 3.0.0
     */
    
public function get_tabs_controls() {
        return [];
    }

    
/**
     * @deprecated 3.0.0
     */
    
public function get_frontend_settings() {
        return [];
    }

    
/**
     * @deprecated 3.0.0
     */
    
public function get_controls() {
        return [];
    }

    
/**
     * @deprecated 3.0.0
     */
    
public function get_settings$setting null ) {

        if ( 
$setting ) {
            
$setting str_replace'elementor_'''$setting );
        }

        return 
Plugin::$instance->kits_manager->get_current_settings$setting );
    }
}