-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
54 lines (46 loc) · 1.41 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
<?php
/**
* Universal functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Universal
* @subpackage Core
* @since 1.0.0
* @author Milan Arandjelovic
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
define( 'UNIVERSAL_VERSION', '1.0.0' );
define( 'UNIVERSAL_PATH', wp_normalize_path( get_template_directory() ) );
define( 'UNIVERSAL_URI', get_template_directory_uri() );
define( 'UNIVERSAL_ADMIN_URI', UNIVERSAL_URI . '/includes/admin/' );
define( 'UNIVERSAL_ADMIN_IMAGES_URI', UNIVERSAL_URI . '/includes/admin/images/' );
define( 'UNIVERSAL_STYLES_URI', UNIVERSAL_URI . '/dist/styles/' );
define( 'UNIVERSAL_SCRIPTS_URI', UNIVERSAL_URI . '/dist/scripts/' );
/**
* Include Redux Framework.
*/
include_once UNIVERSAL_PATH . '/includes/admin/options-init.php';
/**
* Include Universal functions.
*/
include_once UNIVERSAL_PATH . '/includes/universal-functions.php';
/**
* Include autoloader for Universal theme.
*/
include_once UNIVERSAL_PATH . '/includes/classes/class-universal-autoloader.php';
/**
* Include main class fo Universal theme.
*/
include_once UNIVERSAL_PATH . '/includes/classes/class-universal.php';
/**
* Instantiate Universal autoloader.
*/
new Universal_Autoloader();
/**
* Register class for Universal theme.
*/
Universal::register_services();