forked from iGovPhil/gwt-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
98 lines (80 loc) · 1.96 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
<?php
/**
* gwt_wp functions and definitions
*
* @package gwt_wp
*/
/**
* Template Initialize
*/
require get_template_directory() . '/inc/function-initialize.php';
/**
* Register widgetized area
*/
require get_template_directory() . '/inc/function-widget.php';
/**
* Breadcrumbs
*/
require get_template_directory() . '/inc/function-breadcrumbs.php';
/**
* Govph Excerpt
*/
require get_template_directory() . '/inc/function-excerpt.php';
/**
* Enqueue scripts and styles
*/
require get_template_directory() . '/inc/function-enqueue_scripts.php';
/**
* Disable comment functions
*/
require get_template_directory() . '/inc/function-disable_comments.php';
/**
* GovPH default widgets
*/
require get_template_directory() . '/inc/govph-widget.php';
/**
* Default sidebar contents
*/
require get_template_directory() . '/inc/sidebar.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Customizer additions.
*/
// require get_template_directory() . '/inc/customizer.php';
/**
* Load Jetpack compatibility file.
*/
// require get_template_directory() . '/inc/jetpack.php';
/**
* Theme Options Page.
*/
require get_template_directory() . '/inc/function-options.php';
/**
* Custom Post Types
*/
// require get_template_directory() . '/inc/custom-post-types.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Envato Flexslider
*/
require get_template_directory() . '/inc/vendors/envato-flex-slider/envato-flex-slider.php';
/**
* GWT only works in WordPress 4.4 or later.
*/
if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) {
require get_template_directory() . '/inc/back-compat.php';
}