Main Menu
0)
{
echo "
";
$name = " ".$name;
$style = "padding-bottom: 1px; padding-top: 1px";
} else {
echo "";
}
if (!$is_link)
{
$style = "padding-bottom: 0px;";
} else {
$url = $page["script"];
if (str_ends_with($url, "/index.php"))
$url = str_replace('/index.php', '', $url);
if (!str_ends_with($url, ".php") && !empty($url))
$url = $url.'/';
echo "\n";
}
echo "\n";
if ($is_link)
echo "";
if ($nestlevel > 0)
echo "";
else
echo "";
if (!$is_link)
{
foreach ($page as $subname=>$subpage)
show_page_item($subname, $subpage, 1, $small);
}
}
function show_page_item_mobile($name, $page, $nestlevel)
{
$active_page = NULL;
$icon = $style = "";
$class = "nav-link nav-item";
if (is_string($active_page) && $page == $active_page)
$class .= " active";
if ($nestlevel > 0)
{
echo "
";
$name = " ".$name;
$style = "padding-bottom: 1px; padding-top: 1px";
} else {
echo "";
}
if (is_array($page))
{
$style = "padding-bottom: 0px;";
} else {
echo "\n";
}
echo "\n";
if (!is_array($page))
echo "";
if ($nestlevel > 0)
echo "";
else
echo "";
if (is_array($page))
{
foreach ($page as $subname=>$subpage)
show_page_item($subname, $subpage, 1);
}
}
function rpc_server_nav()
{
$active_server = get_active_rpc_server();
if (!$active_server)
return; // eg empty servers
$servers = get_config("unrealircd");
$cnt = count($servers);
?>
$page)
show_page_item($name, $page, 0, true);
?>