-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
67 lines (56 loc) · 1.47 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
<?php
//---- Enqueue Sripts/Style ----//
function daruma_scripts_styles() {
wp_enqueue_style(
'google-fonts',
'http://fonts.googleapis.com/css?family=Open+Sans:300,600,800|Anaheim',
array()
);
// Loads our main stylesheet.
wp_enqueue_style(
'daruma-style',
get_template_directory_uri() . '/css/style.css',
array( 'google-fonts' )
);
wp_register_script(
'video',
get_stylesheet_directory_uri() . '/js/video.js',
array( 'imagesloaded' ),
'',
true
);
wp_register_script(
'bigvideo',
get_stylesheet_directory_uri() . '/js/bigvideo.js',
array( 'jquery', 'video' ),
'',
true
);
wp_register_script(
'imagesloaded',
get_stylesheet_directory_uri() . '/js/imagesloaded.min.js',
array(),
'',
true
);
wp_register_script(
'waypoints',
get_stylesheet_directory_uri() . '/js/waypoints.min.js',
array( 'jquery' ),
'',
true
);
wp_register_script(
'scripts',
get_stylesheet_directory_uri() . '/js/scripts.js',
array( 'jquery', 'bigvideo' ),
'0.0.1',
true
);
wp_enqueue_script( 'waypoints' );
wp_enqueue_script( 'imagesloaded' );
wp_enqueue_script( 'video' );
wp_enqueue_script( 'bigvideo' );
wp_enqueue_script( 'scripts' );
}
add_action( 'wp_enqueue_scripts', 'daruma_scripts_styles' );