balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

model.php (959B)


      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  * @deprecated since 3.0.0
     15  */
     16 
     17 class Model {
     18 
     19 	public function get_name() {
     20 		return 'general-deprecated';
     21 	}
     22 
     23 	public function get_panel_page_settings() {
     24 		return [];
     25 	}
     26 
     27 	public function get_tabs_controls() {
     28 		return [];
     29 	}
     30 
     31 	public function get_frontend_settings() {
     32 		return [];
     33 	}
     34 
     35 	public function get_controls() {
     36 		return [];
     37 	}
     38 
     39 	public function get_settings( $setting = null ) {
     40 
     41 		if ( $setting ) {
     42 			$setting = str_replace( 'elementor_', '', $setting );
     43 		}
     44 
     45 		return Plugin::$instance->kits_manager->get_current_settings( $setting );
     46 	}
     47 }