-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.php
51 lines (42 loc) · 2.64 KB
/
bootstrap.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
<?php
/*
===================================================================================================
WARNING! DO NOT EDIT THIS FILE OR ANY TEMPLATE FILES IN THIS THEME!
To make it easy to update your theme, you should not edit this file. Instead, you should create a
Child Theme first. This will ensure your template changes are not lost when updating the theme.
You can learn more about creating Child Themes here: http://codex.wordpress.org/Child_Themes
You have been warned! :)
===================================================================================================
*/
$library_path = get_template_directory() . '/lib';
// Set path to function libraries
$admin_path = $library_path . '/admin/';
$functions_path = $library_path . '/functions/';
$scripts_path = $library_path . '/scripts/';
// Load each admin function
require_once( $admin_path . 'theme-options.php' ); // Custom theme options
require_once( $admin_path . 'custom-background.php' ); // Custom background support
require_once( $admin_path . 'social-footer.php' ); // Social footer options
require_once( $admin_path . 'update.php' ); // Check for theme updates
require_once( $admin_path . 'dashboard.php' ); // Custom dashboard widgets
require_once( $admin_path . 'metabox.php' ); // Custom meta box
require_once( $admin_path . 'sidebars.php' ); // Custom sidebars
require_once( $admin_path . 'post-settings.php' ); // Post settings
require_once( $admin_path . 'slide-settings.php' ); // Slide settings
require_once( $admin_path . 'podcast-settings.php' ); // Podcast settings
require_once( $admin_path . 'sermon-settings.php' ); // Sermon settings
require_once( $admin_path . 'location-settings.php' ); // Location settings
require_once( $admin_path . 'person-settings.php' ); // Person settings
require_once( $admin_path . 'reorder/reorder.php' ); // Reorder plugin
// Load each function
require_once( $functions_path . 'prefix-post-types.php' ); // Ensure that all post types are prefixed
require_once( $functions_path . 'functions.php' ); // Specific theme functions
require_once( $functions_path . 'search-excerpt.php' ); // Customize excerpt on searches
require_once( $functions_path . 'post-types.php' ); // Custom post types
require_once( $functions_path . 'widgets.php' ); // Custom theme widgets
require_once( $functions_path . 'force-download.php' ); // Allow force downloads via query var
if ( !function_exists( 'entry_views_update' ) ) {
require_once( $functions_path . 'entry-views.php' ); // Entry views extension
}
// Load scripts
require_once( $scripts_path . 'scheme.php' ); // Custom CSS scheme