-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
119 lines (97 loc) · 3.29 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
<?php
/**
* Theme Setup Functions
*/
require get_template_directory() . '/_functions/theme-setup.php';
/**
* Widget Setup Functions
*/
require get_template_directory() . '/_functions/widget-setup.php';
/**
* Enqueue scripts and styles.
*/
require get_template_directory() . '/_functions/scripts-setup.php';
/**
* Implement the Custom Header feature.
*/
require get_template_directory() . '/inc/custom-header.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Functions which enhance the theme by hooking into WordPress.
*/
require get_template_directory() . '/inc/template-functions.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Load Jetpack compatibility file.
*/
if ( defined( 'JETPACK__VERSION' ) ) {
require get_template_directory() . '/inc/jetpack.php';
}
/*======================================
= MOOSE INCLUDES =
======================================*/
/**
* Bootstrap 4 Nav Walker
*/
require get_template_directory() . '/_functions/bootstrap-navwalker.php';
require get_template_directory() . '/_functions/moose-navwalker.php';
/**
* Helper Functions
*/
require get_template_directory() . '/_functions/helpers-setup.php';
/**
*
* React App Setup
*
*/
require get_template_directory() . '/_functions/react-setup.php';
/**
*
* Adding Breadcrums
*
*/
require get_template_directory() . '/_functions/breadcrum-function.php';
/**
*
* CUSTOMIZING THE LOGIN SCREEN
*
*/
require get_template_directory() . '/_functions/wp-logon-screen.php';
/**
*
* ASM CUSTOM FUNCTIONS
*
*/
require get_template_directory() . '/_functions/asm-functions/asm-custom-functions.php';
require get_template_directory() . '/_functions/asm-functions/asm-get-profile-views.php';
require get_template_directory() . '/_functions/asm-functions/asm-get-loggedin-profile-views.php';
/**
* LOAD ALL THE PHP FUNCTION FILES FOR AJAX
*/
require get_template_directory() . '/_functions/univ-loadmore-function.php';
require get_template_directory() . '/_functions/univ-location-loadmore-function.php';
require get_template_directory() . '/_functions/athlete-loadmore-function.php';
require get_template_directory() . '/_functions/athlete-dynamic-location-ajax-function.php';
require get_template_directory() . '/_functions/athlete-dynamic-sports-ajax-function.php';
require get_template_directory() . '/_functions/univ-men-sports-ajax-function.php';
require get_template_directory() . '/_functions/univ-women-sports-ajax-function.php';
// add_action('gform_enqueue_scripts_1', 'enqueue_scroll_to_top', 10, 2);
// function enqueue_scroll_to_top($form, $is_ajax) {
// // enqueue the scroll to top script which is stored in the child theme /js/ subdirectory, and depends on jQuery
// wp_enqueue_script('scroll_to_top', get_stylesheet_directory_uri() . '/assets/dist/js/scroll-to-top.js', array('jquery'));
// }
/**
* ASM WOOCOM FUNCTIONS
*/
require get_template_directory() . '/_functions/asm-functions/asm-woocom-functions.php';
/**
* UNIVERSITY DATA TO JSON FUNCTIONS
*/
require get_template_directory() . '/_functions/asm-functions/wp-to-json/get-all-university-data.php';
require get_template_directory() . '/_functions/asm-functions/wp-to-json/get-state-university-data.php';