mirror of
https://ghproxy.net/https://github.com/AlxMedia/featureon.git
synced 2025-08-26 05:49:06 +08:00
45 lines
802 B
PHP
45 lines
802 B
PHP
<?php
|
|
/**
|
|
* The main Kirki object
|
|
*
|
|
* @package Kirki
|
|
* @category Core
|
|
* @author Ari Stathopoulos (@aristath)
|
|
* @copyright Copyright (c) 2020, David Vongries
|
|
* @license https://opensource.org/licenses/MIT
|
|
* @since 1.0
|
|
*/
|
|
|
|
// Exit if accessed directly.
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Singleton class
|
|
*/
|
|
final class Kirki_Toolkit {
|
|
|
|
/**
|
|
* Holds the one, true instance of this object.
|
|
*
|
|
* @static
|
|
* @access protected
|
|
* @var object
|
|
*/
|
|
protected static $instance = null;
|
|
|
|
/**
|
|
* Access the single instance of this class.
|
|
*
|
|
* @static
|
|
* @access public
|
|
* @return object Kirki_Toolkit.
|
|
*/
|
|
public static function get_instance() {
|
|
if ( null === self::$instance ) {
|
|
self::$instance = new self();
|
|
}
|
|
return self::$instance;
|
|
}
|
|
}
|