24 if (!defined(
"NOLOGIN")) {
25 define(
"NOLOGIN",
'1');
27 if (!defined(
'NOIPCHECK')) {
28 define(
'NOIPCHECK',
'1');
30 if (!defined(
'NOBROWSERNOTIF')) {
31 define(
'NOBROWSERNOTIF',
'1');
34 require
'../../main.inc.php';
36 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
38 if (!$conf->global->TAKEPOS_QR_MENU) {
45 <meta charset=
"UTF-8">
46 <title><?php echo $mysoc->name; ?></title>
47 <link rel=
'stylesheet' href=
'https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/css/foundation.min.css'>
48 <link rel=
'stylesheet' href=
'https://fonts.googleapis.com/css?family=Khand:400,300,500,600,700'><link rel=
"stylesheet" href=
"css/style.css">
49 <meta
name=
"viewport" content=
"width=device-width, initial-scale=1">
52 <!-- partial:index.partial.html -->
54 <div
class=
"grid-container">
55 <div
class=
"grid-x grid-padding-x menu2">
56 <div
class=
"cell small-12">
57 <h1><?php print $mysoc->name; ?> - <small><?php print $langs->trans(
'RestaurantMenu'); ?></small></h1>
61 $categories = $categorie->get_full_arbo(
'product', (($conf->global->TAKEPOS_ROOT_CATEGORY_ID > 0) ? $conf->global->TAKEPOS_ROOT_CATEGORY_ID : 0), 1);
62 $levelofrootcategory = 0;
63 if ($conf->global->TAKEPOS_ROOT_CATEGORY_ID > 0) {
64 foreach ($categories as $key => $categorycursor) {
65 if ($categorycursor[
'id'] == $conf->global->TAKEPOS_ROOT_CATEGORY_ID) {
66 $levelofrootcategory = $categorycursor[
'level'];
71 $levelofmaincategories = $levelofrootcategory + 1;
73 $maincategories = array();
74 $subcategories = array();
75 foreach ($categories as $key => $categorycursor) {
76 if ($categorycursor[
'level'] == $levelofmaincategories) {
77 $maincategories[$key] = $categorycursor;
79 $subcategories[$key] = $categorycursor;
85 foreach ($maincategories as $cat) {
86 print
'<div class="text-center">
87 <a id="'.$cat[
'id'].
'"></a><h3>'.$cat[
'label'].
'</h3>
89 <div class="grid-x grid-padding-x">';
92 $result = $object->fetch($cat[
'id']);
93 $prods = $object->getObjectsInCateg(
"product", 0, 0, 0, $conf->global->TAKEPOS_SORTPRODUCTFIELD,
'ASC');
94 foreach ($prods as $pro) {
96 <div class="cell small-6 medium-4">
98 <h4>'.$pro->label.
'</h4>
99 <span class="dots"></span>
100 <span class="price">'.
price($pro->price_ttc, 1).
'</span>
110 <footer
class=
"footer">
111 <div
class=
"container">
112 <p
class=
"text-muted"><?php print $mysoc->name; ?></p>
117 <script src=
'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js'></script>
118 <script src=
'https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/js/foundation.min.js'></script><script src=
"js/script.js"></script>