summaryrefslogtreecommitdiff
path: root/tests/code/menu.php
diff options
context:
space:
mode:
authorGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2026-07-12 15:51:52 +0300
committerGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2026-07-12 15:51:52 +0300
commit02608271bb2a9f3a65ed536984d306ee14b48e34 (patch)
tree3f23ec48a694ec014e845c4f70d9b5f1c065403c /tests/code/menu.php
downloadkalassa-master.tar.gz
kalassa-master.tar.bz2
kalassa-master.zip
initialize repository; add docker config; migrate configuration to new specsHEADmaster
Diffstat (limited to 'tests/code/menu.php')
-rwxr-xr-xtests/code/menu.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/code/menu.php b/tests/code/menu.php
new file mode 100755
index 0000000..8236f91
--- /dev/null
+++ b/tests/code/menu.php
@@ -0,0 +1,42 @@
+<?php
+
+/* menus
+ * --------------------------------
+ */
+$menu_json = '{
+ "class" : "row",
+ "struct" : [
+ {
+ "title" : "Σχετικά με το site",
+ "entity" : "page",
+ "list" : [2, 1, 3],
+ "template" : "list",
+ "width" : "col-md-4"
+ },
+ {
+ "title" : "",
+ "template" : "null",
+ "width" : "col-md-3"
+ },
+ {
+ "title" : "Eπικοινωνία",
+ "entity" : "page",
+ "content" : "Διεύθυνση: Κάποια Οδός 123 \nΤηλ. 6976.543.210",
+ "template" : "static",
+ "width" : "col-md-5"
+ }
+ ]
+}';
+
+
+
+
+$menu = json_decode($menu_json);
+
+echo "<pre>";
+
+ print_r($menu);
+
+echo "</pre>";
+
+