-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.php
More file actions
49 lines (31 loc) · 1.04 KB
/
functions.php
File metadata and controls
49 lines (31 loc) · 1.04 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
42
43
44
45
46
47
48
49
<?php
/**
* Base Theme file includes and definitions.
*
* @package Base-Theme
*/
use Base_Theme\Inc\BASE_THEME;
if ( ! defined( 'BASE_THEME_VERSION' ) ) {
define( 'BASE_THEME_VERSION', 1.0 );
}
if ( ! defined( 'BASE_THEME_TEMPLATE_DIR' ) ) {
define( 'BASE_THEME_TEMPLATE_DIR', untrailingslashit( get_template_directory() ) );
}
if ( ! defined( 'BASE_THEME_BUILD_URI' ) ) {
define( 'BASE_THEME_BUILD_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/build' );
}
if ( ! defined( 'BASE_THEME_BUILD_DIR' ) ) {
define( 'BASE_THEME_BUILD_DIR', untrailingslashit( get_template_directory() ) . '/assets/build' );
}
require_once BASE_THEME_TEMPLATE_DIR . '/inc/helpers/autoloader.php';
require_once BASE_THEME_TEMPLATE_DIR . '/inc/helpers/custom-functions.php';
require_once BASE_THEME_TEMPLATE_DIR . '/inc/helpers/template-tags.php';
/**
* Get base-theme instance.
*
* @return object \Base_Theme\Inc\BASE_THEME
*/
function base_theme_get_theme_instance() {
return BASE_THEME::get_instance();
}
base_theme_get_theme_instance();