-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfunctions.php
40 lines (32 loc) · 1000 Bytes
/
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
<?php
/**
* Setup the modules directory
*/
! defined( 'VUETIFUL_MODULES_DIR' ) ? define( 'VUETIFUL_MODULES_DIR', get_template_directory() . '/modules/' ) : null;
/**
* Initial theme setup
*
* Includes the module manager, the hook methods and the theme support(s)
*
* @return void
*/
function vuetiful_theme_setup() {
include_once( 'lib/modules/Module.php' );
include_once( 'lib/modules/Module_Manager.php' );
include_once( 'includes/actions.php' );
include_once( 'includes/filters.php' );
include_once( 'includes/helpers.php' );
add_theme_support( 'html5' );
register_nav_menus( array(
'main-menu' => __( 'Main Menu', 'vuetiful' ),
) );
$module_manager = Vuetiful\Module_Manager::instance();
$module_manager->load_modules();
if ( ! isset( $content_width ) ) {
$content_width = 860;
}
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'automatic-feed-links' );
}
add_action( 'after_setup_theme', 'vuetiful_theme_setup' );