-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
80 lines (74 loc) · 3.99 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
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<!-- Required meta tags -->
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<meta name="description" content="<?=pincode_value('pincode_description')?>">
<meta name="keywords" content="<?=pincode_value('pincode_keywords')?>">
<?php wp_head(); ?>
<?=pincode_value('pincode_google_analytics_kod')?>
</head>
<body class="<?php echo implode(' ', get_body_class()); ?>">
<!-- Header -->
<header class="container">
<nav class="navbar-top navbar-expand-lg font-18 shadow-sm pincode_header_background">
<div class="container text-center">
<div class="row">
<div class="col-md-4">
<div class="ust-nav d-none"></div>
</div>
<div class="col-md-4">
<a class="navbar-brand header-logo" href="<?=get_site_url();?>">
<img src="<?=pincode_image('pincode_logo')?>" class="img-fluid" alt="Logo">
</a>
</div>
<div class="col-md-4">
<div class="ust-nav" id="sosyal-medya-header-none">
<ul class="sosyal-medya-header mb-n-5">
<?php
if (empty(cs_get_option('pincode_sosyal_medya'))){
echo "<li></li>";
}else{
$getir_grup = cs_get_option('pincode_sosyal_medya');
foreach ($getir_grup as $getir_grup_value){
?>
<li>
<a target="_blank" href="<?=esc_html($getir_grup_value['pincode_hesap_linki'])?>"><i class="<?=esc_html($getir_grup_value['pincode_sosyal_medya_ikon'])?>"></i></a>
</li>
<?php }} ?>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="header pincode_header_background">
<nav class="navbar navbar-expand-lg navbar-light shadow-sm font-18">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#bs4navbar" aria-controls="bs4navbar" aria-expanded="false" aria-label="Toggle navigation">
<div class="pincode-mobil-menu">
<span></span>
<span></span>
<span></span>
</div>
</button>
<?php
wp_nav_menu([
'menu' => 'primary',
'theme_location' => 'primary',
'container' => 'div',
'container_id' => 'bs4navbar',
'container_class' => 'collapse navbar-collapse justify-content-center',
'menu_id' => false,
'menu_class' => 'navbar-nav',
'depth' => 2,
'fallback_cb' => 'bs4navwalker::fallback',
'walker' => new bs4navwalker()
]);
?>
</nav>
</div>
</header>
<!-- Header -->