-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathfunctions.php
105 lines (90 loc) · 3.64 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/**
* Astra functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Astra
* @since 1.0.0
*/
/**
* Define Constants
*/
define( 'AST_THEME_VERSION', '1.0.1' );
define( 'AST_THEME_SETTINGS', 'ast-settings' );
define( 'AST_THEME_DIR', get_template_directory() . '/' );
define( 'AST_THEME_URI', get_template_directory_uri() . '/' );
// 'ast-container' has 20px left, right padding. For pixel perfect added ( twice ) 40px padding to the 'ast-container'.
// E.g. If width set 1200px then with padding left ( 20px ) & right ( 20px ) its 1240px for 'ast-container'. But, Actual contents are 1200px.
define( 'AST_THEME_CONTAINER_PADDING', 20 );
define( 'AST_THEME_CONTAINER_PADDING_TWICE', ( 20 * 2 ) );
define( 'AST_THEME_CONTAINER_BOX_PADDED_PADDING', 40 );
define( 'AST_THEME_CONTAINER_BOX_PADDED_PADDING_TWICE', ( 40 * 2 ) );
/**
* Load theme hooks
*/
require_once AST_THEME_DIR . 'inc/core/class-ast-theme-options.php';
require_once AST_THEME_DIR . 'inc/core/class-theme-strings.php';
/**
* Fonts Files
*/
if ( is_admin() ) {
require_once AST_THEME_DIR . 'inc/customizer/class-ast-fonts-data.php';
}
require_once AST_THEME_DIR . 'inc/customizer/class-ast-fonts.php';
require_once AST_THEME_DIR . 'inc/core/common-functions.php';
require_once AST_THEME_DIR . 'inc/core/class-ast-enqueue-scripts.php';
require_once AST_THEME_DIR . 'inc/class-ast-dynamic-css.php';
/**
* Custom template tags for this theme.
*/
require_once AST_THEME_DIR . 'inc/template-tags.php';
require_once AST_THEME_DIR . 'inc/widgets.php';
require_once AST_THEME_DIR . 'inc/core/theme-hooks.php';
require_once AST_THEME_DIR . 'inc/admin-functions.php';
require_once AST_THEME_DIR . 'inc/core/sidebar-manager.php';
/**
* Markup Functions
*/
require_once AST_THEME_DIR . 'inc/class-ast-walker-page.php';
require_once AST_THEME_DIR . 'inc/class-ast-nav-menu-walker.php';
require_once AST_THEME_DIR . 'inc/extras.php';
require_once AST_THEME_DIR . 'inc/blog/blog-config.php';
require_once AST_THEME_DIR . 'inc/blog/blog.php';
require_once AST_THEME_DIR . 'inc/blog/single-blog.php';
/**
* Markup Files
*/
require_once AST_THEME_DIR . 'inc/template-parts.php';
/**
* Functions and definitions.
*/
require_once AST_THEME_DIR . 'inc/class-ast-after-setup-theme.php';
if ( is_admin() ) {
/**
* Metabox additions.
*/
require_once AST_THEME_DIR . 'inc/metabox/class-ast-meta-boxes.php';
}
require_once AST_THEME_DIR . 'inc/metabox/class-ast-meta-box-operations.php';
/**
* Customizer additions.
*/
require_once AST_THEME_DIR . 'inc/customizer/class-ast-customizer.php';
require_once AST_THEME_DIR . 'inc/core/class-ast-theme-update.php';
/**
* Compatibility
*/
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-jetpack.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-woocommerce.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-cornerstone.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-beaver-builder.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-beaver-themer.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-bb-ultimate-addon.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-contact-form-7.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-visual-composer.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-site-origin.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-elementor.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-gravity-forms.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-bnr-flyout.php';
require_once AST_THEME_DIR . 'inc/compatibility/class-ast-lifter-lms.php';