forked from imranhsayed/aquila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
67 lines (48 loc) · 1.96 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
<?php
/**
* Theme Functions.
*
* @package Aquila
*/
if ( ! defined( 'AQUILA_DIR_PATH' ) ) {
define( 'AQUILA_DIR_PATH', untrailingslashit( get_template_directory() ) );
}
if ( ! defined( 'AQUILA_DIR_URI' ) ) {
define( 'AQUILA_DIR_URI', untrailingslashit( get_template_directory_uri() ) );
}
if ( ! defined( 'AQUILA_BUILD_URI' ) ) {
define( 'AQUILA_BUILD_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/build' );
}
if ( ! defined( 'AQUILA_BUILD_PATH' ) ) {
define( 'AQUILA_BUILD_PATH', untrailingslashit( get_template_directory() ) . '/assets/build' );
}
if ( ! defined( 'AQUILA_BUILD_JS_URI' ) ) {
define( 'AQUILA_BUILD_JS_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/build/js' );
}
if ( ! defined( 'AQUILA_BUILD_JS_DIR_PATH' ) ) {
define( 'AQUILA_BUILD_JS_DIR_PATH', untrailingslashit( get_template_directory() ) . '/assets/build/js' );
}
if ( ! defined( 'AQUILA_BUILD_IMG_URI' ) ) {
define( 'AQUILA_BUILD_IMG_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/build/src/img' );
}
if ( ! defined( 'AQUILA_BUILD_CSS_URI' ) ) {
define( 'AQUILA_BUILD_CSS_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/build/css' );
}
if ( ! defined( 'AQUILA_BUILD_CSS_DIR_PATH' ) ) {
define( 'AQUILA_BUILD_CSS_DIR_PATH', untrailingslashit( get_template_directory() ) . '/assets/build/css' );
}
if ( ! defined( 'AQUILA_BUILD_LIB_URI' ) ) {
define( 'AQUILA_BUILD_LIB_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/build/library' );
}
if ( ! defined( 'AQUILA_ARCHIVE_POST_PER_PAGE' ) ) {
define( 'AQUILA_ARCHIVE_POST_PER_PAGE', 9 );
}
if ( ! defined( 'AQUILA_SEARCH_RESULTS_POST_PER_PAGE' ) ) {
define( 'AQUILA_SEARCH_RESULTS_POST_PER_PAGE', 9 );
}
require_once AQUILA_DIR_PATH . '/inc/helpers/autoloader.php';
require_once AQUILA_DIR_PATH . '/inc/helpers/template-tags.php';
function aquila_get_theme_instance() {
\AQUILA_THEME\Inc\AQUILA_THEME::get_instance();
}
aquila_get_theme_instance();