-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
52 lines (37 loc) · 1.82 KB
/
functions.php
File metadata and controls
52 lines (37 loc) · 1.82 KB
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
<?php
if ( ! function_exists('msulib_setup')):
function msulib_setup(){
// Let WP handle the title tags
add_theme_support('title-tag');
}
endif;
add_action('after_setup_theme', 'msulib_setup');
/* ----- Register Menus -----*/
function register_msulib_menus(){
register_nav_menus(array(
'primary' => __('Primary Menu'),
'footer' => __('Footer Menu')
));
}
add_action('init', 'register_msulib_menus');
/* ----- Add Style Sheets -----*/
function msulib_scripts(){
/* Enqueue Main Style Sheet */
wp_enqueue_style('msulib_styles', get_stylesheet_uri());
/* Add component style sheets */
wp_enqueue_style( 'content', get_template_directory_uri() . '/css/content.css',false,'1.1','all');
wp_enqueue_style( 'header', get_template_directory_uri() . '/css/header.css',false,'1.1','all');
wp_enqueue_style( 'footer', get_template_directory_uri() . '/css/footer.css',false,'1.1','all');
wp_enqueue_style( 'main-right', get_template_directory_uri() . '/css/main-right.css',false,'1.1','all');
/** Add Bootstrap */
wp_enqueue_style('msulib_bootstrap_css', 'http://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css');
wp_enqueue_style('tabby_tabs_css', 'https://cdnjs.cloudflare.com/ajax/libs/tabby/11.2.0/css/tabby.min.css');
wp_register_script('jQuery', 'http://code.jquery.com/jquery-3.2.1.slim.min.js', null, null, false);
wp_enqueue_script('jQuery');
wp_register_script('popperJs', 'http://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js', null, null, false);
wp_enqueue_script('popperJs');
wp_register_script('bootstrapJs', 'http://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js', null, null, false);
wp_enqueue_script('bootstrapJs');
}
add_action('wp_enqueue_scripts', 'msulib_scripts');
?>