-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
48 lines (42 loc) · 2.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
<?php
function pinnacle_lang_setup() {
load_theme_textdomain('ona-white-angus', get_template_directory() . '/languages');
}
add_action( 'after_setup_theme', 'pinnacle_lang_setup' );
/*
* Init Customizer Options
*/
require_once locate_template('/themeoptions/redux/framework.php'); // Customizer framework
require_once locate_template('/themeoptions/theme_options.php'); // Customizer framework
require_once locate_template('/themeoptions/options_assets/pinnacle_extension.php'); // Customizer framework
/*
* Init Theme Startup/Core utilities
*/
require_once locate_template('/lib/utils.php'); // Utility functions
require_once locate_template('/lib/init.php'); // Initial theme setup and constants
require_once locate_template('/lib/aq_resizer.php'); // Resize on the fly
require_once locate_template('/lib/sidebar.php'); // Sidebar class
require_once locate_template('/lib/config.php'); // Configuration
require_once locate_template('/lib/cleanup.php'); // Cleanup
require_once locate_template('/lib/nav.php'); // Custom nav modifications
require_once locate_template('/lib/custom.php'); // Custom functions
require_once locate_template('/lib/metaboxes.php'); // Custom metaboxes
require_once locate_template('/lib/plugin-activate.php'); // Plugin Activation
/*
* Init Widget areas
*/
require_once locate_template('/lib/widgets.php'); // Sidebars and widgets
/*
* Template Hooks
*/
require_once locate_template('/lib/comments.php'); // Custom comments modifications
require_once locate_template('/lib/authorbox.php'); // Author box
require_once locate_template('/lib/custom-woocommerce.php'); // Woocommerce functions
require_once locate_template('/lib/woo-account.php'); // Woocommerce functions
require_once locate_template('/lib/template-actions.php'); // Template actions
/*
* Load Scripts
*/
require_once locate_template('/lib/admin_scripts.php'); // Admin Scripts functions
require_once locate_template('/lib/scripts.php'); // Scripts and stylesheets
require_once locate_template('/lib/output_css.php'); // Fontend Custom CSS