summaryrefslogtreecommitdiff
path: root/tests/code
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-26 21:43:02 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-26 21:43:02 +0300
commit546daa78721e6abdbc89afcecc158118c2239865 (patch)
treeae68219fb5ab69fd45d615cf059cc5d0ea279355 /tests/code
parent9cb35f2bf2127cc8ac077aae17514a57e576217d (diff)
downloadclassroom-546daa78721e6abdbc89afcecc158118c2239865.tar.gz
classroom-546daa78721e6abdbc89afcecc158118c2239865.tar.bz2
classroom-546daa78721e6abdbc89afcecc158118c2239865.zip
alfa.3 version; backend designer and front-end embeder enabled
Diffstat (limited to 'tests/code')
-rw-r--r--tests/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 100644
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>";
+
+