deprecated
1 month ago
Aliases.php
2 months ago
Config.php
5 months ago
Control.php
5 months ago
Deprecated.php
5 months ago
Field.php
2 months ago
Framework.php
5 months ago
Init.php
2 months ago
Kirki.php
2 months ago
Modules.php
2 months ago
Pro_Namespace_Compatibility.php
5 months ago
Sanitize_Values.php
5 months ago
Scripts.php
2 months ago
Settings.php
5 months ago
Values.php
5 months ago
Framework.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The main Kirki object |
| 4 | * |
| 5 | * @package Kirki |
| 6 | * @category Core |
| 7 | * @author Themeum |
| 8 | * @copyright Copyright (c) 2023, Themeum |
| 9 | * @license https://opensource.org/licenses/MIT |
| 10 | * @since 1.0 |
| 11 | */ |
| 12 | |
| 13 | namespace Kirki\Compatibility; |
| 14 | |
| 15 | // Exit if accessed directly. |
| 16 | if ( ! defined( 'ABSPATH' ) ) { |
| 17 | exit; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Singleton class |
| 22 | */ |
| 23 | final class Framework { |
| 24 | public $modules; |
| 25 | /** |
| 26 | * Holds the one, true instance of this object. |
| 27 | * |
| 28 | * @static |
| 29 | * @access protected |
| 30 | * @var object |
| 31 | */ |
| 32 | protected static $instance = null; |
| 33 | |
| 34 | /** |
| 35 | * Access the single instance of this class. |
| 36 | * |
| 37 | * @static |
| 38 | * @access public |
| 39 | * @return Kirki\Compatibility\Framework |
| 40 | */ |
| 41 | public static function get_instance() { |
| 42 | if ( null === self::$instance ) { |
| 43 | self::$instance = new self(); |
| 44 | } |
| 45 | return self::$instance; |
| 46 | } |
| 47 | } |
| 48 |