-
Notifications
You must be signed in to change notification settings - Fork 17
/
functions.php
61 lines (45 loc) · 1.54 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
<?php
/**
* Theme functionality.
*
* @since 1.0.0
*
* @package Trestle
*/
/*===========================================
* Required Files
===========================================*/
// Theme functions.
require_once dirname( __FILE__ ) . '/includes/functions/theme-functions.php';
// Admin functionality.
require_once dirname( __FILE__ ) . '/includes/admin/admin.php';
// Customizer controls.
require_once dirname( __FILE__ ) . '/includes/admin/customizer.php';
// Shortcodes.
require_once dirname( __FILE__ ) . '/includes/shortcodes/shortcodes.php';
// Additional sidebars.
require_once dirname( __FILE__ ) . '/includes/widget-areas/widget-areas.php';
// Plugin activation class.
require_once dirname( __FILE__ ) . '/lib/class-tgm-plugin-activation.php';
// Dev utility functions.
require_once dirname( __FILE__ ) . '/includes/utilities/utilities.php';
add_action( 'genesis_setup', 'trestle_theme_setup', 15 );
/**
* Initialize Trestle.
*
* @since 1.0.0
*/
function trestle_theme_setup() {
/*===========================================
* Theme Setup
===========================================*/
// Child theme definitions (do not remove).
define( 'TRESTLE_THEME_NAME', 'Trestle' );
define( 'TRESTLE_THEME_URL', 'http://demo.mightyminnow.com/theme/trestle/' );
define( 'TRESTLE_THEME_VERSION', '2.2.2' );
define( 'TRESTLE_SETTINGS_FIELD', 'trestle-settings' );
// Setup default theme settings.
trestle_settings_defaults();
// Load theme text domain.
load_theme_textdomain( 'trestle', get_stylesheet_directory() . '/languages' );
}