-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
228 lines (157 loc) · 8.24 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<?php
include 'adminn/netting/baglan.php';
include 'adminn/ponki.php';
$ayarsor=$db->prepare("select * from ayar where ayar_id=?");
$ayarsor->execute(array(0));
$ayarcek=$ayarsor->fetch(PDO::FETCH_ASSOC);
//date_default_timezone_get('Europe/Istanbul');
?>
<!DOCTYPE html>
<html>
<head>
<!-- Basic -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo $ayarcek['ayar_title']; ?></title>
<meta name="keywords" content="<?php echo $ayarcek['ayar_keywords']; ?>" />
<meta name="description" content="<?php echo $ayarcek['ayar_description']; ?>">
<meta name="author" content="<?php echo $ayarcek["ayar_author"]; ?>">
<!-- Favicon -->
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="img/apple-touch-icon.png">
<!-- Mobile Metas -->
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Web Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800%7CShadows+Into+Light" rel="stylesheet" type="text/css">
<!-- Vendor CSS -->
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendor/simple-line-icons/css/simple-line-icons.min.css">
<link rel="stylesheet" href="vendor/owl.carousel/assets/owl.carousel.min.css">
<link rel="stylesheet" href="vendor/owl.carousel/assets/owl.theme.default.min.css">
<link rel="stylesheet" href="vendor/magnific-popup/magnific-popup.min.css">
<!-- Theme CSS -->
<link rel="stylesheet" href="css/theme.css">
<link rel="stylesheet" href="css/theme-elements.css">
<link rel="stylesheet" href="css/theme-blog.css">
<link rel="stylesheet" href="css/theme-shop.css">
<link rel="stylesheet" href="css/theme-animate.css">
<!-- Current Page CSS -->
<link rel="stylesheet" href="vendor/rs-plugin/css/settings.css">
<link rel="stylesheet" href="vendor/rs-plugin/css/layers.css">
<link rel="stylesheet" href="vendor/rs-plugin/css/navigation.css">
<!-- Skin CSS -->
<link rel="stylesheet" href="css/skins/skin-law-firm.css">
<!-- Demo CSS -->
<link rel="stylesheet" href="css/demos/demo-law-firm.css">
<!-- Theme Custom CSS -->
<link rel="stylesheet" href="css/custom.css">
<!-- Head Libs -->
<script src="vendor/modernizr/modernizr.min.js"></script>
</head>
<body>
<div class="body">
<div class="body">
<header id="header" class="header-no-border-bottom" data-plugin-options='{"stickyEnabled": true, "stickyEnableOnBoxed": true, "stickyEnableOnMobile": true, "stickyStartAt": 115, "stickySetTop": "-115px", "stickyChangeLogo": false}'>
<div class="header-body">
<div class="header-container container">
<div class="header-row">
<div class="header-column">
<div class="header-logo">
<a href="index.php">
<img alt="<?php echo $ayarcek["ayar_title"]; ?>" width="164" height="54" data-sticky-width="82" data-sticky-height="40" data-sticky-top="33" src="<?php echo $ayarcek["ayar_logo"]; ?>">
</a>
</div>
</div>
<div class="header-column">
<ul class="header-extra-info">
<li>
<div class="feature-box feature-box-call feature-box-style-2">
<div class="feature-box-icon">
<i class="icon-call-end icons"></i>
</div>
<div class="feature-box-info">
<h4 class="mb-none"><?php echo $ayarcek['ayar_tel']; ?></h4>
</div>
</div>
</li>
<li class="hidden-xs">
<div class="feature-box feature-box-mail feature-box-style-2">
<div class="feature-box-icon">
<i class="icon-envelope icons"></i>
</div>
<div class="feature-box-info">
<h4 class="mb-none"><a href="mailto:[email protected]"><?php echo $ayarcek['ayar_mail']; ?></a></h4>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="header-container header-nav header-nav-bar header-nav-bar-primary">
<div class="container">
<button class="btn header-btn-collapse-nav" data-toggle="collapse" data-target=".header-nav-main">
Menu <i class="fa fa-bars"></i>
</button>
<!-- <div class="header-search visible-lg">
<form id="searchForm" action="page-search-results.html" method="get">
<div class="input-group">
<input type="text" class="form-control" name="q" id="q" placeholder="Arama..." required>
<span class="input-group-btn">
<button class="btn btn-default" type="submit"><i class="icon-magnifier icons"></i></button>
</span>
</div>
</form>
</div>-->
<div class="header-nav-main header-nav-main-light header-nav-main-effect-1 header-nav-main-sub-effect-1 collapse">
<nav>
<ul class="nav nav-pills" id="mainNav">
<?php
$menusor=$db->prepare("select * from menu where menu_ust=:menu_ust order by menu_sira");
$menusor->execute(array(
'menu_ust' => 0));
while ($menucek=$menusor->fetch(PDO::FETCH_ASSOC)) {
$menu_id=$menucek['menu_id'];
$altmenusor=$db->prepare("select * from menu where menu_ust=:menu_id order by menu_sira ");
$altmenusor->execute(array(
'menu_id' => $menu_id ));
$say=$altmenusor->rowCount();
?>
<li <?php
if ($say>0) {
echo "class='dropdown'";
# code...
}
?>>
<a href="<?php
if (strlen($menucek['menu_url'])>0) {
echo $menucek['menu_url'];
}elseif(strlen($menucek['menu_url'])==0){?>
sayfa-<?=seo($menucek["menu_ad"]).'-'.$altmenucek["menu_id"]?>
<?php }
?>"><?php echo $menucek['menu_ad']; ?></a>
<ul class="dropdown-menu">
<?php
while($altmenucek=$altmenusor->fetch(PDO::FETCH_ASSOC)){
?>
<li>
<a href="<?php
if (strlen($altmenucek['menu_url'])>0) {
echo $altmenucek['menu_url'];
}elseif(strlen($altmenucek['menu_url'])==0){?>
sayfa-<?=seo($altmenucek["menu_ad"]).'-'.$menucek["menu_id"]?>
<?php }
?>"><?php echo $altmenucek['menu_ad']; ?></a>
</li>
<?php } ?>
</ul>
</li>
<?php } ?>
</ul>
</nav>
</div>
</div>
</div>
</div>
</header>