-
Notifications
You must be signed in to change notification settings - Fork 40
/
functions.php
executable file
·26 lines (23 loc) · 1.13 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
<?php
include_once( get_template_directory() . '/wpflex-options.php' );
if ( ! function_exists( 'wpflex_setup' ) ) :
function wpflex_setup() {
require_once locate_template('/inc/functions/theme-support.php');
require_once locate_template('/inc/functions/asset-loader.php');
require_once locate_template('/inc/functions/title.php');
require_once locate_template('/inc/functions/header.php');
require_once locate_template('/inc/functions/nav-menu.php');
require_once locate_template('/inc/functions/comments.php');
require_once locate_template('/inc/functions/comment-reply.php');
require_once locate_template('/inc/functions/widgets.php');
require_once locate_template('/inc/functions/editor-styles.php');
require_once locate_template('/inc/functions/content-width.php');
add_action( 'after_setup_theme', 'wpflex_setup' );
}
endif;
add_action( 'after_setup_theme', 'wpflex_setup' );
add_action('after_setup_theme', 'setting_text_domain');
function setting_text_domain(){
load_theme_textdomain('wpflex', get_template_directory() . '/languages');
}
?>