Odyssey
compass-menu.i
1 <?php
2 /**
3  * Removes the inline HTML/PHP logic for the top right nav element and outputs the
4  * menu from a standard JSON file.
5  *
6  * @param string $json_path - path the menu template. Currently local, no dot-toothpick syntax required.
7  * @param string $json from global functions file hcuFunctions.i. Should already be included.
8  */
9 include_once('CreateMenu.php');
10 include_once('CompassMenu.php');
11 $compass_menu = new CompassMenu($HB_ENV);
12 
13 if ($compass_menu->isCuAndUser()) {
14 
15  // Path to the menu creator template.
16  $json_path = '../library/menu-creators/compass-menu-config.json';
17 
18  // Get the menu json for all platforms, app/web/shared/library/hcuFunctions.i. Should be an object!
19  $json = CompassMenuJson($HB_ENV, $dbh);
20  echo $compass_menu->composeCompassMenu($json_path, $json);
21 }