-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
68 lines (60 loc) · 1.84 KB
/
index.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
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
define('BLUDIT', true);
include('config.php');
?>
<!DOCTYPE html>
<html lang="<?php echo $currentLanguage ?>">
<?php include(PATH_HTML.'head.php'); ?>
<body>
<!-- Top Bar -->
<?php include(PATH_HTML.'topnavbar.php'); ?>
<!-- Main -->
<?php
if ($_whereAmI==='item') {
include(PATH_HTML.'item.php');
} elseif ($_whereAmI==='author') {
include(PATH_HTML.'author.php');
} else {
include(PATH_HTML.'home.php');
}
?>
<!-- Footer -->
<?php include(PATH_HTML.'footer.php'); ?>
<!-- Javascript stuff -->
<script src="<?php echo DOMAIN ?>/js/jquery-3.4.1.min.js?version=<?php echo VERSION ?>"></script>
<script src="<?php echo DOMAIN ?>/js/bootstrap.bundle-4.3.1.min.js?version=<?php echo VERSION ?>"></script>
<script>
$(document).ready(function() {
$("#search").on("keyup", function() {
$("div.item").hide();
var textToSearch = $(this).val().toLowerCase();
$(".card-title, .card-description").each( function() {
var element = $(this).text().toLowerCase();
if (element.indexOf(textToSearch)!=-1) {
$(this).parent().parent().parent().show();
}
});
});
});
</script>
<!--
Yandex.Metrika counter
Masking IP addresses enabled for GDPR
-->
<script>
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(51979046, "init", {
id:51979046,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/51979046" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
</body>
</html>