-
Notifications
You must be signed in to change notification settings - Fork 3
/
functions.php
73 lines (68 loc) · 2.01 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
<?php
/**
* The WordPress modul-r template
*
* @package ModulR
*/
if ( ! defined( 'MODULR_THEME_DIR' ) ) {
define( 'MODULR_THEME_DIR', dirname( __FILE__ ) );
}
if ( ! defined( 'MODULR_THEME_URL' ) ) {
define( 'MODULR_THEME_URL', get_template_directory_uri() );
}
// Modul-R defaults
if ( ! isset( $modul_r_defaults ) ) {
$modul_r_defaults = array(
'customizer_options' => array(
'weights' => array( 100, 200, 300, 400, 500, 600, 700, 800, 900 ),
'font_family_default' => array(
array(
'name' => 'light',
'default' => 300,
'input' => 'select',
'select_type' => 'weights',
),
array(
'name' => 'regular',
'default' => 400,
'input' => 'select',
'select_type' => 'weights',
),
array(
'name' => 'bold',
'default' => 700,
'input' => 'select',
'select_type' => 'weights',
),
),
'font_family_title' => array(
array(
'name' => 'regular',
'default' => 400,
'input' => 'select',
'select_type' => 'weights',
),
array(
'name' => 'bold',
'default' => 700,
'input' => 'select',
'select_type' => 'weights',
),
),
),
);
}
// Autoload dependencies
if ( file_exists( get_parent_theme_file_path( 'vendor/autoload.php' ) ) ) {
require_once get_parent_theme_file_path( 'vendor/autoload.php' );
require_once get_parent_theme_file_path( 'vendor/erikyo/webfont-loader/wptt-webfont-loader.php' );
}
require_once MODULR_THEME_DIR . '/inc/theme-setup.php';
require_once MODULR_THEME_DIR . '/inc/template-functions.php';
require_once MODULR_THEME_DIR . '/inc/customizer.php';
require_once MODULR_THEME_DIR . '/inc/enqueue-scripts.php';
require_once MODULR_THEME_DIR . '/inc/enqueue-style.php';
require_once MODULR_THEME_DIR . '/inc/enqueue-fonts.php';
require_once MODULR_THEME_DIR . '/inc/sidebar.php';
require_once MODULR_THEME_DIR . '/inc/block-styles.php';
require_once MODULR_THEME_DIR . '/inc/woocommerce.php';