-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
70 lines (52 loc) · 2.07 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
69
70
<?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/dist' );
}
if ( ! defined( 'AQUILA_BUILD_PATH' ) ) {
define( 'AQUILA_BUILD_PATH', untrailingslashit( get_template_directory() ) . '/assets/dist' );
}
if ( ! defined( 'AQUILA_BUILD_JS_URI' ) ) {
define( 'AQUILA_BUILD_JS_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/dist/js' );
}
if ( ! defined( 'AQUILA_BUILD_JS_DIR_PATH' ) ) {
define( 'AQUILA_BUILD_JS_DIR_PATH', untrailingslashit( get_template_directory() ) . '/assets/dist/js' );
}
if ( ! defined( 'AQUILA_BUILD_IMG_URI' ) ) {
define( 'AQUILA_BUILD_IMG_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/dist/src/img' );
}
if ( ! defined( 'AQUILA_BUILD_CSS_URI' ) ) {
define( 'AQUILA_BUILD_CSS_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/dist/css' );
}
if ( ! defined( 'AQUILA_BUILD_CSS_DIR_PATH' ) ) {
define( 'AQUILA_BUILD_CSS_DIR_PATH', untrailingslashit( get_template_directory() ) . '/assets/dist/css' );
}
if ( ! defined( 'AQUILA_BUILD_LIB_URI' ) ) {
define( 'AQUILA_BUILD_LIB_URI', untrailingslashit( get_template_directory_uri() ) . '/assets/dist/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();
function enqueue_my_scripts() {
wp_enqueue_script('wp-blocks');
}
add_action('wp_enqueue_scripts', 'enqueue_my_scripts');