diff options
Diffstat (limited to 'tests/code/menu.php')
| -rwxr-xr-x | tests/code/menu.php | 42 |
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>"; + + |
