| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Core\Settings\General; |
| 4 |
|
| 5 |
use Elementor\Plugin; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly. |
| 9 |
} |
| 10 |
|
| 11 |
/** |
| 12 |
* This file is deprecated, use Plugin::$instance->kits_manager->get_active_kit_for_frontend() instead. |
| 13 |
* it changed to support call like this: Manager::get_settings_managers( 'general' )->get_model()->get_settings( 'elementor_default_generic_fonts' ) |
| 14 |
* |
| 15 |
* @deprecated 3.0.0 Use `Plugin::$instance->kits_manager->get_active_kit_for_frontend()` instead. |
| 16 |
*/ |
| 17 |
|
| 18 |
class Model { |
| 19 |
|
| 20 |
/** |
| 21 |
* @deprecated 3.0.0 |
| 22 |
*/ |
| 23 |
public function get_name() { |
| 24 |
return 'general-deprecated'; |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* @deprecated 3.0.0 |
| 29 |
*/ |
| 30 |
public function get_panel_page_settings() { |
| 31 |
return []; |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* @deprecated 3.0.0 |
| 36 |
*/ |
| 37 |
public function get_tabs_controls() { |
| 38 |
return []; |
| 39 |
} |
| 40 |
|
| 41 |
/** |
| 42 |
* @deprecated 3.0.0 |
| 43 |
*/ |
| 44 |
public function get_frontend_settings() { |
| 45 |
return []; |
| 46 |
} |
| 47 |
|
| 48 |
/** |
| 49 |
* @deprecated 3.0.0 |
| 50 |
*/ |
| 51 |
public function get_controls() { |
| 52 |
return []; |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* @deprecated 3.0.0 |
| 57 |
*/ |
| 58 |
public function get_settings( $setting = null ) { |
| 59 |
|
| 60 |
if ( $setting ) { |
| 61 |
$setting = str_replace( 'elementor_', '', $setting ); |
| 62 |
} |
| 63 |
|
| 64 |
return Plugin::$instance->kits_manager->get_current_settings( $setting ); |
| 65 |
} |
| 66 |
} |
| 67 |
|