diff options
| author | Max | 2017-05-18 14:03:27 +0200 |
|---|---|---|
| committer | Max | 2017-05-18 14:03:27 +0200 |
| commit | f597e2fe949a1e18eb778b9a5bd102de88570555 (patch) | |
| tree | 7e42e6f91dd3e764cd2cf0c4f61f48501c2ed98f /functions.php | |
| download | docs.maxmail.xyz-master.tar.gz | |
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..c86aca0 --- /dev/null +++ b/functions.php @@ -0,0 +1,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' +)); |
