Skip to content

Commit fb8ddd0

Browse files
authored
add newlines to header.php html output (#413)
1 parent 1706d1e commit fb8ddd0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

resources/templates/header.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,45 +80,45 @@
8080
<nav class="mainNav">
8181
<?php
8282
// Public Items - Always Visible
83-
echo getHyperlink("Home", "index.php");
83+
echo getHyperlink("Home", "index.php") . "\n";
8484

8585
$num_additional_items = count(CONFIG["menuitems"]["labels"]);
8686
for ($i = 0; $i < $num_additional_items; $i++) {
8787
echo "<a target='_blank' href='" . CONFIG["menuitems"]["links"][$i] . "'>" .
88-
CONFIG["menuitems"]["labels"][$i] . "</a>";
88+
CONFIG["menuitems"]["labels"][$i] . "</a>\n";
8989
}
9090

9191
if (isset($_SESSION["user_exists"]) && $_SESSION["user_exists"]) {
9292
// Menu Items for Present Users
93-
echo getHyperlink("Support", "panel/support.php");
94-
echo getHyperlink("Account Settings", "panel/account.php");
95-
echo getHyperlink("My PIs", "panel/groups.php");
93+
echo getHyperlink("Support", "panel/support.php") . "\n";
94+
echo getHyperlink("Account Settings", "panel/account.php") . "\n";
95+
echo getHyperlink("My PIs", "panel/groups.php") . "\n";
9696

9797
if (isset($_SESSION["is_pi"]) && $_SESSION["is_pi"]) {
9898
// PI only pages
99-
echo getHyperlink("My Users", "panel/pi.php");
99+
echo getHyperlink("My Users", "panel/pi.php") . "\n";
100100
}
101101

102102
// additional branding items
103103
$num_additional_items = count(CONFIG["menuitems_secure"]["labels"]);
104104
for ($i = 0; $i < $num_additional_items; $i++) {
105105
echo "<a target='_blank' href='" . CONFIG["menuitems_secure"]["links"][$i] . "'>" .
106-
CONFIG["menuitems_secure"]["labels"][$i] . "</a>";
106+
CONFIG["menuitems_secure"]["labels"][$i] . "</a>\n";
107107
}
108108

109109
// admin pages
110110
if (
111111
isset($_SESSION["is_admin"]) && $_SESSION["is_admin"] && !isset($_SESSION["viewUser"])
112112
) {
113-
echo "<hr class='navHR'>";
113+
echo "<hr class='navHR'>\n";
114114
// Admin only pages
115-
echo getHyperlink("User Management", "admin/user-mgmt.php");
116-
echo getHyperlink("PI Management", "admin/pi-mgmt.php");
117-
echo getHyperlink("Cluster Notices", "admin/notices.php");
118-
echo getHyperlink("Content Management", "admin/content.php");
115+
echo getHyperlink("User Management", "admin/user-mgmt.php") . "\n";
116+
echo getHyperlink("PI Management", "admin/pi-mgmt.php") . "\n";
117+
echo getHyperlink("Cluster Notices", "admin/notices.php") . "\n";
118+
echo getHyperlink("Content Management", "admin/content.php") . "\n";
119119
}
120120
} else {
121-
echo getHyperlink("Login / Request Account", "panel/account.php");
121+
echo getHyperlink("Login / Request Account", "panel/account.php") . "\n";
122122
}
123123
?>
124124
</nav>

0 commit comments

Comments
 (0)