-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.php
More file actions
executable file
·93 lines (69 loc) · 2.61 KB
/
functions.php
File metadata and controls
executable file
·93 lines (69 loc) · 2.61 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
* Functions and definitions.
*
* Sets up the theme and provides some helper functions, which are used in the
* theme as custom template tags. Others are attached to action and filter
* hooks in WordPress to change core functionality.
*
* @see https://codex.wordpress.org/Plugin_API for more information on hooks, actions, and filters.
* @see https://github.com/wpbrasil/odin for documentation Odin Theme.
*
* @package WordPress
* @subpackage Odin
*/
/**
* Vendors.
*/
if ( file_exists( get_template_directory() . '/vendor/autoload.php' ) ) {
require_once get_template_directory() . '/vendor/autoload.php';
}
/**
* Classes.
*/
require_once get_template_directory() . '/inc/classes/class-bootstrap-nav.php';
require_once get_template_directory() . '/inc/classes/class-thumbnail-resizer.php';
/**
* Shortcodes.
*/
require_once get_template_directory() . '/inc/shortcodes/class-odin-shortcodes.php';
require_once get_template_directory() . '/inc/shortcodes/class-odin-shortcodes-menu.php';
/**
* Widgets.
*/
// Facebook like box widget.
require_once get_template_directory() . '/inc/widgets/class-odin-widget-like-box.php';
/**
* Hooks.
*/
// Theme support options.
require_once get_template_directory() . '/inc/theme-support.php';
// WP Head and other cleanup functions.
require_once get_template_directory() . '/inc/cleanup.php';
// Register scripts and stylesheets.
require_once get_template_directory() . '/inc/enqueue-scripts.php';
// Register custom menus and menu walkers.
require_once get_template_directory() . '/inc/menu.php';
// Register sidebars/widget areas.
require_once get_template_directory() . '/inc/sidebar.php';
// Customize the WordPress admin and login menu.
require_once get_template_directory() . '/inc/admin.php';
// Automatically sets the post thumbnail.
require_once get_template_directory() . '/inc/autoset-featured.php';
/**
* Helpers.
*/
// Allows you to easily require or recommend plugins with TGM Plugin Activation.
require_once get_template_directory() . '/inc/required-plugins.php';
// Custom templates tags.
require_once get_template_directory() . '/inc/template-tags.php';
// Custom comments loop.
require_once get_template_directory() . '/inc/comments-loop.php';
// Replace 'older/newer' post links with numbered navigation.
require_once get_template_directory() . '/inc/pagination.php';
// WooCommerce compatibility files.
require_once get_template_directory() . '/inc/woocommerce.php';
// Post functions.
require_once get_template_directory() . '/inc/post.php';
// Breadcrumbs function - no need to rely on plugins.
require_once get_template_directory() . '/inc/breadcrumbs.php';