-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
56 lines (40 loc) · 1.21 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
<?php
/**
* URI Modern Home functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package uri-modern-home
*/
/**
* Enqueue scripts and styles.
*/
function uri_modern_home_enqueues() {
$parent_style = 'uri-modern-style';
$parent_dir_name = wp_get_theme()->get( 'Template' );
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css', array(), wp_get_theme( $parent_dir_name )->get( 'Version' ) );
wp_enqueue_style( 'uri-modern-home-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get( 'Version' ) );
}
add_action( 'wp_enqueue_scripts', 'uri_modern_home_enqueues' );
/**
* Wrapper for Advanced Custom Fields get_field()
*/
function uri_modern_home_get_field() {
$r = false;
if ( function_exists( 'get_field' ) ) {
$r = call_user_func_array( 'get_field', func_get_args() );
}
return $r;
}
/**
* Custom fields
*/
require get_stylesheet_directory() . '/inc/custom-fields.php';
/**
* Customizer addons
*/
require get_stylesheet_directory() . '/inc/customizer-addons.php';
/**
* Blue Minds shortcodes
*/
include get_stylesheet_directory() . '/features/2019/blue-minds/blue-minds.php';