-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
71 lines (58 loc) · 2.27 KB
/
Copy pathheader.php
File metadata and controls
71 lines (58 loc) · 2.27 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title><?php bloginfo('name'); ?><?php wp_title(' '); ?></title>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="description" content="<?php bloginfo('description'); ?>">
<?php wp_head(); ?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link href="https://unpkg.com/ionicons@4.5.5/dist/css/ionicons.min.css" rel="stylesheet"></head>
<?php
if(is_front_page()):
$myBodyClass = array('inFront_page');
else:
$myBodyClass = array('notInFront_page');
endif;
?>
<body <?php body_class( $myBodyClass ); ?> >
<div class="menu_nav">
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( get_template_directory_uri('/') ); ?>/asset/img/logo.png" alt="kevin Bootstrap Template"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<?php wp_nav_menu( array(
'theme_location' => 'header',
'menu' => '',
'container' => false,
'container_class' => 'menu-{menu-slug}-container',
'container_id' => '',
'menu_class' => 'menu navbar-nav mr-auto',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id = "%1$s" class = "%2$s">%3$s</ul>',
'depth' => 0,
'walker' => new Walker_Nav_Primary(),
) ); ?>
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/wp-admin' ) ); ?>" target="_blank">o</a>
</div>
</nav>
<div class="search-form">
<?php get_search_form(); ?>
</div>
</div>
<div class="container-fuild smart-slide-scoll">
<?php
if(is_front_page()||is_home()){
echo do_shortcode('[smartslider3 slider=1]');
}else{
// do nothing
}
?>
</div>