-
Notifications
You must be signed in to change notification settings - Fork 0
/
spacious-toolkit.php
48 lines (43 loc) · 1.2 KB
/
spacious-toolkit.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
<?php
/**
* Plugin Name: Spacious Toolkit
* Plugin URI: https://themegrill.com/themes/spacious/
* Description: Spacious Toolkit is a companion for Spacious WordPress theme by ThemeGrill
* Version: 1.0.5
* Author: ThemeGrill
* Author URI: https://themegrill.com/
* License: GPLv3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
*
* Text Domain: spacious-toolkit
* Domain Path: /languages/
*
* @package Spacious Toolkit
* @category Core
* @author ThemeGrill
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Define SPACIOUS_TOOLKIT_PLUGIN_FILE.
if ( ! defined( 'SPACIOUS_TOOLKIT_PLUGIN_FILE' ) ) {
define( 'SPACIOUS_TOOLKIT_PLUGIN_FILE', __FILE__ );
}
// Include the main Spacious Toolkit class.
if ( ! class_exists( 'Spacious_Toolkit' ) ) {
include_once dirname( __FILE__ ) . '/includes/class-spacious-toolkit.php';
}
/**
* Main instance of Spacious Toolkit.
*
* Returns the main instance of Spacious Toolkit to prevent the need to use globals.
*
* @since 1.0.0
* @return Spacious_Toolkit
*/
function Spacious_Toolkit() {
return Spacious_Toolkit::get_instance();
}
// Global for backwards compatibility.
$GLOBALS['spacious_toolkit'] = Spacious_Toolkit();