-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.php
More file actions
executable file
·67 lines (48 loc) · 2.32 KB
/
functions.php
File metadata and controls
executable file
·67 lines (48 loc) · 2.32 KB
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
<?php
// Folders
define( 'THEME_DIR', get_template_directory() );
define( 'THEME_INCLUDES', THEME_DIR . '/inc' );
define( 'THEME_ACF_JSON', THEME_DIR . '/acf-json' );
// Constants
define( 'IMG_DIR', '/dist/img' );
define( 'IMG_PATH', get_template_directory_uri() . IMG_DIR );
define( 'IMG_ABS_PATH', get_template_directory() . IMG_DIR );
define( 'ICONS_DIR', '/dist/img/icons' );
define( 'ICONS_PATH', get_template_directory_uri() . ICONS_DIR );
define( 'ICONS_ABS_PATH', get_template_directory() . ICONS_DIR );
define( 'FONT_DIR', '/dist/fonts' );
define( 'FONT_PATH', get_template_directory_uri() . FONT_DIR );
define( 'FONT_ABS_PATH', get_template_directory() . FONT_DIR );
define( 'CSS_DIR', '/dist/css' );
define( 'CSS_PATH', get_template_directory_uri() . CSS_DIR );
define( 'CSS_ABS_PATH', get_template_directory() . CSS_DIR );
define( 'JS_DIR', '/dist/js' );
define( 'JS_PATH', get_template_directory_uri() . JS_DIR );
define( 'JS_ABS_PATH', get_template_directory() . JS_DIR );
define( 'ACF_GUTENBERG_DIR', '/parts/acf-blocks-gutenberg' );
define( 'ACF_GUTENBERG_PATH', get_template_directory_uri() . ACF_GUTENBERG_DIR );
define( 'ACF_GUTENBERG_ABS_PATH', get_template_directory() . ACF_GUTENBERG_DIR );
define( 'ACF_GUTENBERG_PREVIEW_DIR', IMG_DIR . '/acf-blocks-gutenberg-preview' );
define( 'ACF_GUTENBERG_PREVIEW_PATH', get_template_directory_uri() . ACF_GUTENBERG_PREVIEW_DIR );
define( 'ACF_GUTENBERG_PREVIEW_ABS_PATH', get_template_directory() . ACF_GUTENBERG_PREVIEW_DIR );
define( 'VENDORS_CSS_FILENAME', 'vendors' );
define( 'CUSTOM_CSS_FILENAME', 'custom' );
define( 'EDITOR_CSS_FILENAME', 'style-editor' );
define( 'ADMIN_CSS_FILENAME', 'admin' );
define( 'VENDORS_JS_FILENAME', 'vendors' );
define( 'CUSTOM_JS_FILENAME', 'custom' );
define( 'POST_TYPE_TEST', 'test_post_type' );
define( 'TAXO_TEST', 'test_taxonomy' );
// Includes
require THEME_INCLUDES . '/theme-actions.php';
require THEME_INCLUDES . '/theme-sub-actions.php';
require THEME_INCLUDES . '/theme-filters.php';
require THEME_INCLUDES . '/theme-sub-filters.php';
require THEME_INCLUDES . '/theme-size-images.php';
require THEME_INCLUDES . '/theme-functions.php';
require THEME_INCLUDES . '/theme-post-types.php';
require THEME_INCLUDES . '/theme-taxonomies.php';
require THEME_INCLUDES . '/theme-acf.php';
// Emails
require_once( 'inc/classes/Mail.php' );
Mail::init();