-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfunctions.php
40 lines (33 loc) · 1.06 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
<?php
/**
* Theme functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Elementary-Theme
*/
if ( ! defined( 'ELEMENTARY_THEME_VERSION' ) ) :
define( 'ELEMENTARY_THEME_VERSION', wp_get_theme()->get( 'Version' ) );
endif;
if ( ! defined( 'ELEMENTARY_THEME_TEMP_DIR' ) ) :
define( 'ELEMENTARY_THEME_TEMP_DIR', untrailingslashit( get_template_directory() ) );
endif;
if ( ! defined( 'ELEMENTARY_THEME_BUILD_URI' ) ) :
define( 'ELEMENTARY_THEME_BUILD_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/build' );
endif;
if ( ! defined( 'ELEMENTARY_THEME_BUILD_DIR' ) ) :
define( 'ELEMENTARY_THEME_BUILD_DIR', untrailingslashit( get_template_directory() ) . '/assets/build' );
endif;
require_once ELEMENTARY_THEME_TEMP_DIR . '/vendor/autoload.php';
/**
* Theme bootstrap instance.
*
* @since 1.0.0
*
* @return object Theme bootstrap instance.
*/
function elementary_theme_instance() {
return Elementary_Theme\Elementary_Theme::get_instance();
}
// Instantiate theme.
elementary_theme_instance();