-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
112 lines (86 loc) · 2.39 KB
/
functions.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
/**
* Theme functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package _xe
*/
require get_template_directory() . '/includes/class-setup.php';
/**
* Enqueue scripts and styles for admin and front end.
*/
require get_template_directory() . '/includes/class-scripts.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/includes/customizer.php';
/**
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/helpers/jetpack.php';
/**
* Custom nav walker class.
*/
require get_template_directory() . '/helpers/class-wp-bootstrap-navwalker.php';
/**
* Required plugins activation.
*/
require get_template_directory() . '/helpers/class-plugins-activator.php';
/**
* Class that holds helper methods.
*/
require get_template_directory() . '/helpers/class-helpers.php';
/**
* Class to set CSS Selectors.
*/
require get_template_directory() . '/helpers/class-selectors.php';
/**
* Class to set default options.
*/
require get_template_directory() . '/helpers/class-defaults.php';
/**
* Class to get and use Kirki and MetaBox.io options.
*/
require get_template_directory() . '/includes/class-theme-options.php';
/**
* Functions that require Kirki Customizer Framework.
*/
function _xe_theme_options() {
if ( class_exists('Kirki') ) {
require get_template_directory() . '/includes/theme-options.php';
}
}
add_action( 'init', '_xe_theme_options' );
/**
* Functions that require Meta Box.
*/
if ( class_exists('RWMB_Loader') ) {
require get_template_directory() . '/includes/page-options.php';
}
/**
* Enqueue dynamic styles in theme <head> tags.
*/
require get_template_directory() . '/includes/class-dynamic-styles.php';
/**
* Enqueue dynamic scripts in theme footer.
*/
require get_template_directory() . '/includes/class-dynamic-scripts.php';
/**
* Dashboard widgets for admin panel.
*/
require get_template_directory() . '/includes/class-dashboard-widgets.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/includes/class-template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/includes/class-extras.php';
/**
* Elementor
*/
if ( Xe_Theme\Helpers\Helpers::is_plugin_active('elementor/elementor.php') ) {
require get_template_directory() . '/includes/class-elementor.php';
}