-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
41 lines (33 loc) · 1.15 KB
/
functions.php
File metadata and controls
41 lines (33 loc) · 1.15 KB
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
<?php
/**
* Theme functions
*
* @package Woodstock
*/
if (!defined("WOODSTOCK_DIR_PATH")) {
define("WOODSTOCK_DIR_PATH", untrailingslashit(get_template_directory()));
}
if (!defined("WOODSTOCK_DIR_URI")) {
define(
"WOODSTOCK_DIR_URI",
untrailingslashit(get_template_directory_uri())
);
}
#-----------------------------------------------------------------#
# Vendor Plugins
#-----------------------------------------------------------------#
define("WOODSTOCK_KIRKI_IS_ACTIVE", class_exists("Kirki"));
// Autoloader
require_once WOODSTOCK_DIR_PATH . "/inc/helpers/autoloader.php";
function woodstock_get_theme_instance()
{
\WOODSTOCK_THEME\Inc\WOODSTOCK_THEME::get_instance();
}
woodstock_get_theme_instance();
#-----------------------------------------------------------------#
# Customizer
#-----------------------------------------------------------------#
require_once WOODSTOCK_DIR_PATH . "/inc/customizer/frontend.php";
require_once WOODSTOCK_DIR_PATH . "/inc/customizer/backend.php";
// require_once( WOODSTOCK_DIR_PATH . '/inc/customizer/options.php' );
// require_once( WOODSTOCK_DIR_PATH . '/inc/customizer/customizer.php' );