-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
34 lines (30 loc) · 996 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
<?php
/**
* Designfly file includes and definitions
*
* @package Designfly
*/
if ( ! defined( 'DESIGNFLY_VERSION' ) ) {
define( 'DESIGNFLY_VERSION', 1.0 );
}
if ( ! defined( 'DESIGNFLY_TEMP_DIR' ) ) {
define( 'DESIGNFLY_TEMP_DIR', untrailingslashit( get_template_directory() ) );
}
if ( ! defined( 'DESIGNFLY_BUILD_URI' ) ) {
define( 'DESIGNFLY_BUILD_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/build' );
}
if ( ! defined( 'DESIGNFLY_BUILD_DIR' ) ) {
define( 'DESIGNFLY_BUILD_DIR', untrailingslashit( get_template_directory() ) . '/assets/build' );
}
require_once DESIGNFLY_TEMP_DIR . '/inc/helpers/autoloader.php';
require_once DESIGNFLY_TEMP_DIR . '/inc/helpers/custom-functions.php';
require_once DESIGNFLY_TEMP_DIR . '/inc/helpers/template-tags.php';
/**
* Get designfly instance.
*
* @return object \DESIGNFLY\Inc\DESIGNFLY
*/
function designfly_get_theme_instance() {
return DESIGNFLY\Inc\DESIGNFLY::get_instance();
}
designfly_get_theme_instance();