-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·30 lines (24 loc) · 1.05 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
<?php
//session_start();
// Exit if accessed directly
if ( !defined('ABSPATH')) exit;
// Script version, used to add version for scripts and styles
define( 'KT_THEME_VER', '1.0' );
define( 'KT_THEME_OPTIONS', 'adroit_option' );
define( 'KT_THEME_DIR', trailingslashit(get_template_directory()));
define( 'KT_THEME_URL', trailingslashit(get_template_directory_uri()));
define( 'KT_THEME_TEMP', KT_THEME_DIR.'templates/');
define( 'KT_THEME_DATA', KT_THEME_URL.'dummy-data/');
define( 'KT_THEME_DATA_DIR', KT_THEME_DIR.'dummy-data/');
define( 'KT_THEME_ASSETS', KT_THEME_URL . 'assets/');
define( 'KT_THEME_FONTS', KT_THEME_ASSETS . 'fonts/');
define( 'KT_THEME_LIBS', KT_THEME_ASSETS . 'libs/');
define( 'KT_THEME_JS', KT_THEME_ASSETS . 'js/');
define( 'KT_THEME_CSS', KT_THEME_ASSETS . 'css/');
define( 'KT_THEME_IMG', KT_THEME_ASSETS . 'images/');
//Include framework
require KT_THEME_DIR .'framework/core.php';
// Get All meta box for all post type.
if ( class_exists( 'KT_Meta_Box' ) ) {
require THEME_KT_FW_DATA . 'data-metaboxes.php';
}