-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
107 lines (79 loc) · 3.55 KB
/
header.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package fotobook
*/
$container = get_theme_mod( 'understrap_container_type' );
$telno = get_theme_mod( 'fotobook_telephone_number', '+1-234-567-89' );
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_nav_menu(
array(
'theme_location' => 'primary',
'container' => 'nav',
'container_id' => 'fotobook-menu',
'menu_id' => 'main-menu',
)
); ?>
<div id="fotobook-page"> <!-- jquery mmenu page wrapper -->
<div class="hfeed site" id="page">
<!-- ******************* The Navbar Area ******************* -->
<header class="wrapper-fluid wrapper-navbar fixed-top mm-fixed" id="wrapper-navbar">
<a class="skip-link screen-reader-text sr-only" href="#content"><?php esc_html_e( 'Skip to content',
'fotobook' ); ?></a>
<div class="navbar navbar-light bg-white py-3">
<button class="hamburger-toggler hamburger hamburger--spin ml-auto d-none d-xl-inline-block" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
<div class="container">
<div>
<button class="hamburger-toggler hamburger hamburger--spin d-xl-none" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
<!-- Your site title as branding in the menu -->
<?php if ( ! has_custom_logo() ) { ?>
<?php if ( is_front_page() && is_home() ) : ?>
<h1 class="navbar-brand mb-0"><a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Home','fotobook' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<?php else : ?>
<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Home','fotobook' ); ?>"><?php bloginfo( 'name' ); ?></a>
<?php endif; ?>
<?php } else { ?>
<?php if ( is_front_page() && is_home() ) : ?>
<!-- Tag h1 di home untuk keperluan SEO -->
<h1 class="text-hide"><?php bloginfo( 'name' ); ?></h1>
<?php endif; ?>
<?php the_custom_logo(); ?>
<?php } ?><!-- end custom logo -->
</div>
<div>
<a href="tel:<?php echo ($telno); ?>" class="btn btn-secondary px-5 tel d-none d-sm-inline-block"><?php echo esc_html($telno); ?></a>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>?s=keywords" class="btn btn-outline-dark mr-auto border-0 d-xl-none">
<i class="fa fa-search" aria-hidden="true"></i>
</a>
</div>
</div><!-- .container -->
<a href="<?php echo esc_url( home_url( '/' ) ); ?>?s=keywords" class="btn btn-outline-dark mr-auto border-0 d-none d-xl-inline-block">
<i class="fa fa-search" aria-hidden="true"></i>
</a>
</div><!-- .site-navigation -->
</header><!-- .wrapper-navbar end -->