-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
executable file
·77 lines (70 loc) · 2.48 KB
/
functions.php
File metadata and controls
executable file
·77 lines (70 loc) · 2.48 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
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
<?php
/**
* Functions and definitions
*/
// Useful global constants
define( 'CCL_VERSION', '0.1.0' );
define( 'CCL_URL', get_stylesheet_directory_uri() );
define( 'CCL_TEMPLATE_URL', get_template_directory_uri() );
//define( 'CCL_PATH', get_template_directory() . '/' );
define( 'CCL_PATH', dirname( __FILE__ ) . '/' );
define( 'CCL_INC', CCL_PATH . 'includes/' );
define( 'CCL_ASSETS', CCL_TEMPLATE_URL . '/assets/' );
if ( ! defined( 'DAY_IN_SECONDS' ) ) {
define( 'DAY_IN_SECONDS', 24 * 60 * 60 );
}
// Include compartmentalized functions
require_once CCL_INC . 'core.php';
require_once CCL_INC . 'admin.php';
require_once CCL_INC . 'comments.php';
require_once CCL_INC . 'databases.php';
require_once CCL_INC . 'events.php';
require_once CCL_INC . 'faqs.php';
require_once CCL_INC . 'footer.php';
require_once CCL_INC . 'guides.php';
require_once CCL_INC . 'helpers.php';
require_once CCL_INC . 'metaboxes.php';
require_once CCL_INC . 'post-types.php';
require_once CCL_INC . 'rooms.php';
require_once CCL_INC . 'search.php';
require_once CCL_INC . 'shortcodes.php';
require_once CCL_INC . 'staff.php';
require_once CCL_INC . 'staff-settings.php';
require_once CCL_INC . 'staff-roles.php';
require_once CCL_INC . 'subjects.php';
require_once CCL_INC . 'taxonomies.php';
require_once CCL_INC . 'template-tags.php';
require_once CCL_INC . 'crons.php';
// Include integrations
require_once CCL_INC . 'integrations/libanswers.php';
require_once CCL_INC . 'integrations/libcal.php';
require_once CCL_INC . 'integrations/libguides.php';
require_once CCL_INC . 'integrations/libwizard.php';
require_once CCL_INC . 'integrations/settings.php';
// Include lib classes
include( CCL_INC . 'libraries/extended-cpts.php' );
include( CCL_INC . 'libraries/extended-taxos.php' );
include( CCL_INC . 'libraries/cmb2.addons.php' );
include( CCL_INC . 'libraries/cmb2/init.php' );
include( CCL_INC . 'libraries/cmb2-attached-posts/cmb2-attached-posts-field.php' );
include( CCL_INC . 'libraries/cmb2-post-search-field/cmb2_post_search_field.php' );
// Run the setup functions
CCL\Core\setup();
CCL\Admin\setup();
CCL\Comments\setup();
CCL\Databases\setup();
// CCL\Events\setup();
CCL\Faqs\setup();
CCL\Footer\setup();
CCL\Guides\setup();
CCL\Integrations\Settings\setup();
CCL\Rooms\setup();
CCL\Search\setup();
CCL\Shortcodes\setup();
CCL\Staff\setup();
CCL\Staff\Settings\setup();
CCL\StaffRoles\setup();
CCL\Subjects\setup();
CCL\PostTypes\setup();
CCL\Taxonomies\setup();
CCL\Crons\setup();