forked from PRNDA/you2php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
66 lines (61 loc) · 2.83 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
<?php
error_reporting( E_ALL&~E_NOTICE );
require_once "lang.conf.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $headtitle ?></title>
<meta name="keywords" content="<?php echo $lang['HEADER_KEYWORDS']?>" />
<meta name="description" content="<?php echo $lang['HEADER_DESCRIPTION']?>" />
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" >
<link href="https://cdn.bootcss.com/Swiper/4.0.6/css/swiper.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/jquery/2.1.4/jquery.js"></script>
<script src="//cdn.bootcss.com/jqueryui/1.11.2/jquery-ui.js"></script>
<link href="//cdn.bootcss.com/video.js/5.20.4/alt/video-js-cdn.min.css" rel="stylesheet" />
<script src="//libs.cdnjs.net/video.js/5.20.4/video.min.js"></script>
<script type="text/javascript" src="./inc/4.js"></script>
<link rel="stylesheet" href="./inc/theme.css" type="text/css">
<link rel="stylesheet" href="./inc/iconfont.css">
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
</head>
<body>
<nav class="navbar navbar-expand-md bg-primary navbar-dark">
<div class="container">
<a class="navbar-brand" href="./"><i class="fa d-inline fa-youtube-play"></i><b> <?php echo TITLENAME ?></b></a><button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbar2SupportedContent" aria-controls="navbar2SupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse text-center justify-content-end" id="navbar2SupportedContent">
<ul class="navbar-nav">
</ul>
<div id="custom-search-input">
<form action="search.php" style="margin-bottom:0px">
<div class="input-group col-md-12">
<input type="text" name="q" class="search-query form-control" id="youtube" placeholder="<?php echo $lang['HEADER_SEARCH']?>"><span class="input-group-btn"><button class="btn btn-danger" type="submit" style="z-index:4"><span class="fa d-inline fa-search"></span></button></span>
</div>
</form>
<script >
$("#youtube").autocomplete({
source: function(request, response){
var query = request.term;
$.ajax({
url: "./ajax/autocomplete.php?q="+query,
dataType: 'jsonp',
success: function(data, textStatus, request) {
response( $.map( data[1], function(item) {
return {
label: item[0],
value: item[0]
}
}));
}
});
},
});
</script>
</div>
</div>
</div>
</nav>