-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathheader.php
53 lines (47 loc) · 1.4 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>
<?php
global $page, $paged;
if( is_search() ){
wp_title( '', true, 'left' );
echo ' | ';
}else wp_title('|', true, 'right');
bloginfo('name');
if( is_front_page() ){
echo ' | ';
bloginfo('description');
}
if( $paged >= 2 || $page >=2 ){
echo ' | ' . sprintf( 'Halaman %s', max($paged, $page) );
}
?>
</title>
<meta name="viewport" content="width=device-width, user-scalable=2" />
<!-- Style Sheet -->
<?php if ( ! empty(mesjidThemeGetOption('styleRequest')) ): ?>
<link rel="<?php echo mesjidThemeGetOption('styleRequest');?>" href="<?php bloginfo('stylesheet_url');?>" as="style">
<?php endif; ?>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url');?>">
<?php wp_head(); ?>
<!-- EndStyle Sheet -->
</head>
<body <?php body_class(); ?> >
<div id="wrap">
<!-- Header -->
<header class="header">
<div class="menu-header container">
<div class="brand">
<a href="<?php echo esc_url(home_url('/')); ?>"><h1> <?php bloginfo('name'); ?> </h1></a>
</div>
<?php
wp_nav_menu([
'container' => 'nav',
'container_id' => 'utility-nav',
'theme_location' => 'place_utility'
]);
?>
</div>
</header>
<!-- EndHeader -->