-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
75 lines (63 loc) · 1.73 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* This file initiates and setup Reflex Custom theme.
*
* Reflex is a custom theme developed by {@author}. Reflex comes with the following pre-packaged plugins: Custom Review Items Plugin (CRIP), Timber
*
* @author RADD Web Studio <[email protected]>
* @package Reflex
*
* @version 1.0.0
*/
/** Global Variables */
if(!defined('MAKEIT_DIR')){
/**
* Theme's full top system path
*/
define('MAKEIT_DIR', trailingslashit( get_template_directory() ) );
}
if(!defined('MAKEIT_URI')){
/**
* Theme's full top system path
*/
define('MAKEIT_URI', trailingslashit( get_template_directory_uri() ) );
}
if(!defined('MAKEIT_FRAMEWORK_URI')){
/**
* Theme's full top system path
*/
define('MAKEIT_FRAMEWORK_URI', MAKEIT_URI."framework");
}
if(!defined('MAKEIT_FRAMEWORK_DIR')){
/**
* Theme's full top system path
*/
define('MAKEIT_FRAMEWORK_DIR', MAKEIT_DIR."framework" );
}
if(!defined('MAKEIT_ASSETS_URI')){
/**
* Theme's full top system path
*/
define('MAKEIT_ASSETS_URI', trailingslashit( MAKEIT_URI.'assets' ));
}
if(!defined('MAKEIT_ASSETS_DIR')){
/**
* Theme's full top system path
*/
define('MAKEIT_ASSETS_DIR', trailingslashit( MAKEIT_DIR."assets") );
}
if(!defined('HOME_URL')){
/**
* Wrapper constact for the Wordpress' ({@link http://codex.wordpress.org/Function_Reference/get_home_url})
*/
define('HOME_URL', trailingslashit( get_home_url() ) );
}
if(!defined('MAKEIT_VER')){
$my_theme = wp_get_theme();
/**
* Theme's full top system path
*/
define('MAKEIT_VER', $my_theme->get( 'Version' ) );
}
if(!class_exists('MAKEIT')) require_once('makeit.php');