-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfunctions.php
More file actions
34 lines (29 loc) · 978 Bytes
/
functions.php
File metadata and controls
34 lines (29 loc) · 978 Bytes
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
<?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(),
);
}
// 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 MODULR_THEME_DIR . '/inc/theme-setup.php';
require_once MODULR_THEME_DIR . '/inc/template-functions.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/optimization.php';
require_once MODULR_THEME_DIR . '/inc/block-styles.php';
require_once MODULR_THEME_DIR . '/inc/woocommerce.php';