forked from artikus11/E-Store-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
64 lines (57 loc) · 1.9 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
add_action( 'after_setup_theme', 'crb_load' );
function crb_load() {
load_template( get_template_directory() . '/includes/carbon-fields/vendor/autoload.php' );
\Carbon_Fields\Carbon_Fields::boot();
}
add_action( 'carbon_fields_register_fields', 'estore_register_custom_fields' );
function estore_register_custom_fields() {
require get_template_directory() . '/includes/custom-fields-options/metabox.php';
require get_template_directory() . '/includes/custom-fields-options/theme-optons.php';
}
/*
* Подключение настроек темы
*/
require get_template_directory() . '/includes/theme-settings.php';
/*
* Подключение области виджетов
*/
require get_template_directory() . '/includes/widget-areas.php';
/*
* Подключение скриптов и стилей
*/
require get_template_directory() . '/includes/enqueue-script-style.php';
/*
* Вспомогательные функции
*/
require get_template_directory() . '/includes/helpers.php';
/**
* Implement the Custom Header feature.
*/
require get_template_directory() . '/includes/custom-header.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/includes/template-tags.php';
/**
* Functions which enhance the theme by hooking into WordPress.
*/
require get_template_directory() . '/includes/template-functions.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/includes/customizer.php';
/**
* Load Jetpack compatibility file.
*/
if ( defined( 'JETPACK__VERSION' ) ) {
require get_template_directory() . '/includes/jetpack.php';
}
/**
* Load WooCommerce compatibility file.
*/
if ( class_exists( 'WooCommerce' ) ) {
require get_template_directory() . '/includes/woocommerce.php';
require get_template_directory() . '/woocommerce/includes/wc-functions.php';
require get_template_directory() . '/woocommerce/includes/wc-functions.php';
}