-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
58 lines (53 loc) · 1.7 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
<?php
/**
* Light functions.
*
* @package light
*/
/**
* Set path to Framework and theme specific functions.
*
* @since 1.0
* @return void
*/
$functions_path = get_template_directory() . '/app/backend/';
$includes_path = get_template_directory() . '/app/frontend/';
/**
* Framework init.
*
* @since 1.0
* @return void
*/
require_once ( $functions_path . 'init.php' ); // Framework Init
/**
* Load the theme-specific files, with support for overriding via a child theme.
*
* @since 1.0
* @return void
*/
$includes = array(
'app/frontend/options.php', // Options settings & custom settings
'app/frontend/functions.php', // Theme functions
'app/frontend/actions.php', // Theme actions & user defined hooks
'app/frontend/comments.php', // Custom comments/pingback loop
'app/frontend/enqueue.php', // Load JavaScript & Styles
'app/frontend/integrations.php', // Plugin integrations
'app/frontend/widgets.php', // Widgets
'app/frontend/shortcodes.php', // Theme shortcodes
'app/frontend/extensions/meta/meta.php', // Extensions Meta Manager
'app/frontend/extensions/hooks/hooks.php', // Extensions Hook Manager
'app/frontend/extensions/branding/branding.php', // Extensions Branding Manager
'app/frontend/extensions/tweaks/tweaks.php', // Extensions Tweaks Manager
'app/frontend/extensions/help-me-save/help-me-save.php', // Extensions Help Me Save Manager
);
/**
* Allow child themes/plugins to add widgets to be loaded.
*
* @since 1.0
* @return void
*/
$includes = apply_filters( 'sf_includes', $includes );
foreach ( $includes as $i ) {
locate_template( $i, true );
}
?>