-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
68 lines (51 loc) · 1.98 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
<?php
/**
* Functions Template
* @package advanceBlog
*/
use ADVANCE_BLOG\Inc\ADVANCE_BLOG;
if (!defined('ADVANCE_DIR_PATH')) {
define('ADVANCE_DIR_PATH', untrailingslashit(get_template_directory()));
}
if (!defined('ADVANCE_DIR_URI')) {
define('ADVANCE_DIR_URI', untrailingslashit(get_template_directory_uri()));
}
if (!defined('ADVANCE_BUILD_URI')) {
define('ADVANCE_BUILD_URI', untrailingslashit(get_template_directory_uri()) . '/Assets/build');
}
if (!defined('ADVANCE_BUILD_PATH')) {
define('ADVANCE_BUILD_PATH', untrailingslashit(get_template_directory()) . '/Assets/build');
}
if (!defined('ADVANCE_BUILD_JS_URI')) {
define('ADVANCE_BUILD_JS_URI', untrailingslashit(get_template_directory_uri()) . '/Assets/build/js');
}
if (!defined('ADVANCE_BUILD_JS_DIR_PATH')) {
define('ADVANCE_BUILD_JS_DIR_PATH', untrailingslashit(get_template_directory()) . '/Assets/build/js');
}
if (!defined('ADVANCE_BUILD_IMG_URI')) {
define('ADVANCE_BUILD_IMG_URI', untrailingslashit(get_template_directory_uri()) . '/Assets/build/src/img');
}
if (!defined('ADVANCE_BUILD_CSS_URI')) {
define('ADVANCE_BUILD_CSS_URI', untrailingslashit(get_template_directory_uri()) . '/Assets/build/css');
}
if (!defined('ADVANCE_BUILD_CSS_DIR_PATH')) {
define('ADVANCE_BUILD_CSS_DIR_PATH', untrailingslashit(get_template_directory()) . '/Assets/build/css');
}
if (!defined('ADVANCE_BUILD_LIB_URI')) {
define('ADVANCE_BUILD_LIB_URI', untrailingslashit(get_template_directory_uri()) . '/Assets/build/library');
}
require_once ADVANCE_DIR_PATH . '/inc/helpers/autoloader.php';
require_once ADVANCE_DIR_PATH . '/inc/helpers/template-tags.php';
function vince_check_active_menu($menu_item)
{
$actual_link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
if ($actual_link == $menu_item->url) {
return 'active';
}
return '';
}
function advance_get_theme_instance()
{
ADVANCE_BLOG::get_instance();
}
advance_get_theme_instance();