-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
129 lines (96 loc) · 3.33 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Theme functions for X.
// =============================================================================
// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
// 01. Set Paths
// 02. Require Files
// =============================================================================
// Set Paths
// =============================================================================
$func_path = 'framework/functions';
$glob_path = 'framework/functions/global';
$admn_path = 'framework/functions/global/admin';
$tmgp_path = 'framework/functions/global/admin/tmg';
$eque_path = 'framework/functions/global/enqueue';
$plgn_path = 'framework/functions/global/plugins';
// Require Files
// =============================================================================
//
// Helpers, conditionals, and stack data.
//
require_once( $glob_path . '/debug.php' );
require_once( $glob_path . '/helper.php' );
require_once( $glob_path . '/conditionals.php' );
require_once( $glob_path . '/stack-data.php' );
//
// Admin.
//
require_once( $admn_path . '/thumbnails/setup.php' );
require_once( $admn_path . '/setup.php' );
require_once( $admn_path . '/migration.php' );
require_once( $admn_path . '/meta/setup.php' );
require_once( $admn_path . '/sidebars.php' );
require_once( $admn_path . '/widgets.php' );
require_once( $admn_path . '/custom-post-types.php' );
require_once( $admn_path . '/customizer/setup.php' );
require_once( $admn_path . '/addons/setup.php' );
//
// TMG plugin activation.
//
require_once( $tmgp_path . '/activation.php' );
require_once( $tmgp_path . '/registration.php' );
require_once( $tmgp_path . '/updates.php' );
//
// Enqueue styles and scripts.
//
require_once( $eque_path . '/styles.php' );
require_once( $eque_path . '/scripts.php' );
//
// Global functions.
//
require_once( $glob_path . '/meta.php' );
require_once( $glob_path . '/featured.php' );
require_once( $glob_path . '/pagination.php' );
require_once( $glob_path . '/navbar.php' );
require_once( $glob_path . '/breadcrumbs.php' );
require_once( $glob_path . '/classes.php' );
require_once( $glob_path . '/portfolio.php' );
require_once( $glob_path . '/social.php' );
require_once( $glob_path . '/content.php' );
require_once( $glob_path . '/remove.php' );
//
// Stack specific functions.
//
require_once( $func_path . '/integrity.php' );
require_once( $func_path . '/renew.php' );
require_once( $func_path . '/icon.php' );
require_once( $func_path . '/ethos.php' );
//
// Integrated plugins.
//
if ( X_BBPRESS_IS_ACTIVE ) {
require_once( $plgn_path . '/bbpress.php' );
}
if ( X_BUDDYPRESS_IS_ACTIVE ) {
require_once( $plgn_path . '/buddypress.php' );
}
if ( X_REVOLUTION_SLIDER_IS_ACTIVE ) {
require_once( $plgn_path . '/revolution-slider.php' );
}
if ( X_SOLILOQUY_IS_ACTIVE ) {
require_once( $plgn_path . '/soliloquy.php' );
}
if ( X_VISUAL_COMOPSER_IS_ACTIVE ) {
require_once( $plgn_path . '/visual-composer.php' );
}
if ( X_WOOCOMMERCE_IS_ACTIVE ) {
require_once( $plgn_path . '/woocommerce.php' );
}
if ( X_WPML_IS_ACTIVE ) {
require_once( $plgn_path . '/wpml.php' );
}