-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
69 lines (58 loc) · 1.55 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
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* Torro DevHub functions and definitions
*
* @package Torro_DevHub
* @license GPL-2.0-or-later
* @link http://developer.torro-forms.com
*/
define( 'TORRO_DEVHUB_VERSION', '1.0.0' );
/**
* Loads the theme's textdomain.
*
* @since 1.0.0
*/
function torro_devhub_load_textdomain() {
load_theme_textdomain( 'torro-devhub', get_template_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'torro_devhub_load_textdomain', 0 );
/**
* The theme only works in WordPress 4.7 or later.
*/
if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) {
require get_template_directory() . '/inc/back-compat.php';
return;
}
/**
* Theme setup.
*/
require get_template_directory() . '/inc/setup.php';
/**
* Asset management functions.
*/
require get_template_directory() . '/inc/assets.php';
/**
* Functions which enhance the theme by hooking into WordPress.
*/
require get_template_directory() . '/inc/template-hooks.php';
/**
* Additional theme functions to use from within templates.
*/
require get_template_directory() . '/inc/template-functions.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* DevHub functionality.
*/
require get_template_directory() . '/inc/devhub.php';
/**
* Plugin compatibility.
*/
require get_template_directory() . '/inc/plugin-compat.php';
/**
* Widgets.
*/
require get_template_directory() . '/inc/widgets/class-torro-devhub-widget-featured-tutorials.php';
require get_template_directory() . '/inc/widgets/class-torro-devhub-widget-latest-tutorials.php';