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
74
75
76
|
<?php
/**
* understrap functions and definitions
*
* @package understrap
*/
/**
* Theme setup and custom theme supports.
*/
require get_template_directory() . '/inc/setup.php';
/**
* Register widget area.
*
* @link http://codex.wordpress.org/Function_Reference/register_sidebar
*/
require get_template_directory() . '/inc/widgets.php';
/**
* Enqueue scripts and styles.
*/
/*
wp_enqueue_style( 'bootstrap-material-design-wfont', get_template_directory_uri() .'/css/material-wfont.min.css',array(),'0.5.10' );
wp_enqueue_style( 'bootstrap-material-design-material', get_template_directory_uri() .'/css/test-material.min.css',array(),'0.5.10' );
wp_enqueue_style( 'bootstrap-material-design-testripples', get_template_directory_uri() .'/css/test-ripples.min.css',array(),'0.5.10' );
*/
function add_material_styles() {
wp_dequeue_style( 'bootstrap-material-design-wfont' );
wp_dequeue_style( 'bootstrap-material-design-material' );
wp_dequeue_style( 'bootstrap-material-design-testripples' );
wp_enqueue_style( 'bootstrap-material-design', get_template_directory_uri() .'/css/bootstrap-material-design.min.css',array(),'0.5.10' );
wp_enqueue_style( 'bootstrap-material-design-ripples', get_template_directory_uri() .'/css/ripples.min.css',array(),'0.5.10' );
wp_enqueue_style( 'bootstrap-material-design-custom', get_template_directory_uri() .'/css/custom.css',array(),'0.1' );
wp_enqueue_script( 'bootstrap-material-design-min-js', get_template_directory_uri() . '/js/material.min.js', array(), '0.5.10', true );
wp_enqueue_script( 'bootstrap-material-design-ripples-js', get_template_directory_uri() . '/js/ripples.js', array(), '0.5.10', true );
wp_enqueue_script( 'bootstrap-material-design-custom-js', get_template_directory_uri() . '/js/custom.js', array(), '0.5.10', true );
}
require get_template_directory() . '/inc/enqueue.php';
add_action("wp_enqueue_scripts", "add_material_styles");
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/custom-comments.php';
/**
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/inc/jetpack.php';
/**
* Load custom WordPress nav walker.
*/
require get_template_directory() . '/inc/bootstrap-wp-navwalker.php';
register_nav_menus( array(
'navbar-right' => 'Right side on the navbar'
));
|