This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
63 lines (52 loc) · 1.98 KB
/
menu.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
<?php
@define('DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']);
require_once DOCUMENT_ROOT . '/common/sql.php';
require_once DOCUMENT_ROOT . '/common/user.php';
require_once DOCUMENT_ROOT . '/common/product-card.php';
require_once DOCUMENT_ROOT . '/common/product-list.php';
require_once DOCUMENT_ROOT . '/common/product-summary.php';
$pages = ['menu', 'ingredients', 'price', 'products'];
$head_attributes = [
'<link rel="stylesheet" href="/css/menu-elements.css">',
'<link rel="stylesheet" href="/css/menu-list.css">',
'<link rel="stylesheet" href="/css/menu-search.css">',
'<link rel="stylesheet" href="/css/menu-summary.css">',
'<script src="/js/menu-search.js"></script>',
'<script src="/js/menu-summary.js"></script>',
'<script src="/js/products-checkbox.js"></script>'
];
include DOCUMENT_ROOT . '/common/header.php';
?>
<body>
<?php include DOCUMENT_ROOT . '/common/navbar.php'; ?>
<div id="mainBody">
<div id="bodyHeadFilters">
<div id="mainBodyHeader"><?php echo $language['menu']['title']; ?></div>
<div id="menuSearch">
<div id="searchForm">
<label for="searchBar"><i class="fas fa-search"></i></label>
<input type="search" name="search" id="searchBar" maxlength="255" spellcheck="false" autocomplete="off" placeholder="<?php echo $language['menu']['content']['search_placeholder']; ?>">
<div class="cancelSearch" title="<?php echo $language['menu']['content']['cancel_search']; ?>"><i class="fas fa-eraser"></i></div>
</div>
</div>
<div id="menuSummary">
<?php ProductSummary::generate_summary($language['menu']['summary']); ?>
</div>
</div>
<div id="menuProductsList">
<?php
// Start SQL connection
$sql_query = new SQLQuery();
// Product Card list generation
ProductList::generate_list($sql_query, $language);
// Stop SQL connection
unset($sql_query);
?>
</div>
</div>
<div id="scrollToTop" class="invisible">
<i class="fas fa-chevron-up"></i>
</div>
<?php include DOCUMENT_ROOT . '/common/footer.php'; ?>
</body>
</html>