pidgin/old.pidgin.im
Clone
Summary
Browse
Changes
Graph
closing merged branch
Robbie/support-update-common-issues-section-to-1473936966513
2019-05-27, Gary Kramlich
e03ac9415bf6
closing merged branch
<?php
if ($sub_sections == NULL || !is_array($sub_sections)) {
$sub_sections = array();
}
if ($page == NULL || !is_array($page)) {
$page = array();
}
if (!array_key_exists('subsect', $page)) {
$page[
'subsect'
] = '';
}
?>
<div
class=
"box_nav"
>
<ul>
<?php
foreach ($sub_sections as $name => $link) {
$escaped = htmlspecialchars ($name);
if ($page[
'abslink'
] && !preg_match("%^[
a
-z
]+:%", $link)) {
$link = $page[
'siteroot'
] . $link;
}
if ($page[
'subsect'
] == $name) {
echo ' <li class="active"><a href="' . $link . '">' . $escaped . "</a></li>\n";
} else {
echo ' <li><a href="' . $link . '">' . $escaped . "</a></li>\n";
}
}
?>
</ul>
</div>