|
77 | 77 |
|
78 | 78 | <nav class="mainNav"> |
79 | 79 | <?php |
80 | | - $prefix = CONFIG["site"]["prefix"]; |
81 | 80 | // Public Items - Always Visible |
82 | | - echo "<a href='$prefix/index.php'>Home</a>"; |
| 81 | + echo getHyperlink("Home", "index.php"); |
83 | 82 |
|
84 | 83 | $num_additional_items = count(CONFIG["menuitems"]["labels"]); |
85 | 84 | for ($i = 0; $i < $num_additional_items; $i++) { |
|
89 | 88 |
|
90 | 89 | if (isset($_SESSION["user_exists"]) && $_SESSION["user_exists"]) { |
91 | 90 | // Menu Items for Present Users |
92 | | - echo "<a href='$prefix/panel/support.php'>Support</a>"; |
93 | | - echo "<a href='$prefix/panel/account.php'>Account Settings</a>"; |
94 | | - echo "<a href='$prefix/panel/groups.php'>My PIs</a>"; |
| 91 | + echo getHyperlink("Support", "panel/support.php"); |
| 92 | + echo getHyperlink("Account Settings", "panel/account.php"); |
| 93 | + echo getHyperlink("My PIs", "panel/groups.php"); |
95 | 94 |
|
96 | 95 | if (isset($_SESSION["is_pi"]) && $_SESSION["is_pi"]) { |
97 | 96 | // PI only pages |
98 | | - echo "<a href='$prefix/panel/pi.php'>My Users</a>"; |
| 97 | + echo getHyperlink("My Users", "panel/pi.php"); |
99 | 98 | } |
100 | 99 |
|
101 | 100 | // additional branding items |
|
111 | 110 | ) { |
112 | 111 | echo "<hr class='navHR'>"; |
113 | 112 | // Admin only pages |
114 | | - echo "<a href='$prefix/admin/user-mgmt.php'>User Management</a>"; |
115 | | - echo "<a href='$prefix/admin/pi-mgmt.php'>PI Management</a>"; |
116 | | - echo "<a href='$prefix/admin/notices.php'>Cluster Notices</a>"; |
117 | | - echo "<a href='$prefix/admin/content.php'>Content Management</a>"; |
| 113 | + echo getHyperlink("User Management", "admin/user-mgmt.php"); |
| 114 | + echo getHyperlink("PI Management", "admin/pi-mgmt.php"); |
| 115 | + echo getHyperlink("Cluster Notices", "admin/notices.php"); |
| 116 | + echo getHyperlink("Content Management", "admin/content.php"); |
118 | 117 | } |
119 | 118 | } else { |
120 | | - echo "<a href='$prefix/panel/account.php'>Login / Request Account</a>"; |
| 119 | + echo getHyperlink("Login / Request Account", "panel/account.php"); |
121 | 120 | } |
122 | 121 | ?> |
123 | 122 | </nav> |
|
0 commit comments