-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfunctions.php
58 lines (47 loc) · 2 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
<?php
/**
* Theme Functions
*
* @package LNarchive
*/
if ( ! defined( 'LNARCHIVE_DIR_PATH' ) ) {
define( 'LNARCHIVE_DIR_PATH', untrailingslashit( get_template_directory() ) );
}
if ( ! defined( 'LNARCHIVE_DIR_URI' ) ) {
define( 'LNARCHIVE_DIR_URI', untrailingslashit( get_template_directory_uri() ) );
}
if ( ! defined( 'LNARCHIVE_BUILD_URI' ) ) {
define( 'LNARCHIVE_BUILD_URI', untrailingslashit( get_template_directory_uri() ) . '/assets' );
}
if ( ! defined( 'LNARCHIVE_BUILD_JS_URI' ) ) {
define( 'LNARCHIVE_BUILD_JS_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/js' );
}
if ( ! defined( 'LNARCHIVE_BUILD_JS_DIR_PATH' ) ) {
define( 'LNARCHIVE_BUILD_JS_DIR_PATH', untrailingslashit( get_template_directory() ) . '/assets/js' );
}
if ( ! defined( 'LNARCHIVE_BUILD_IMG_URI' ) ) {
define( 'LNARCHIVE_BUILD_IMG_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/src/img' );
}
if ( ! defined( 'LNARCHIVE_BUILD_CSS_URI' ) ) {
define( 'LNARCHIVE_BUILD_CSS_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/css' );
}
if ( ! defined( 'LNARCHIVE_BUILD_CSS_DIR_PATH' ) ) {
define( 'LNARCHIVE_BUILD_CSS_DIR_PATH', untrailingslashit( get_template_directory() ) . '/assets/css' );
}
if ( ! defined( 'LNARCHIVE_BUILD_LIB_URI' ) ) {
define( 'LNARCHIVE_BUILD_LIB_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/library' );
}
require_once LNARCHIVE_DIR_PATH . '/inc/helpers/autoloader.php';
require_once LNARCHIVE_DIR_PATH . '/inc/helpers/general.php';
require_once LNARCHIVE_DIR_PATH . '/inc/helpers/post.php';
require_once LNARCHIVE_DIR_PATH . '/inc/helpers/user.php';
require_once LNARCHIVE_DIR_PATH . '/inc/helpers/novel.php';
require_once LNARCHIVE_DIR_PATH . '/inc/helpers/volume.php';
require_once LNARCHIVE_DIR_PATH . '/inc/helpers/taxonomy.php';
require_once LNARCHIVE_DIR_PATH . '/inc/helpers/sanitize.php';
use lnarchive\inc\lnarchive_theme;
function lnarchive_get_theme_instance() {
lnarchive_theme::get_instance();
}
lnarchive_get_theme_instance();
?>