";
foreach ($admin_cat['id'] as $cat_key => $cat_id)
{
$text_check = FALSE;
$text_cat = "
".$admin_cat['title'][$cat_key]."
";
if ($cat_key != 5) // Note the Plugin category.
{
foreach ($newarray as $key => $funcinfo)
{
if ($funcinfo[4] == $cat_key)
{
$text_rend = e107::getNav()->renderAdminButton($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[6], 'classis');
if ($text_rend)
{
$text_check = TRUE;
}
$text_cat .= $text_rend;
}
}
}
else // Plugin category.
{
$text_rend = e107::getNav()->pluginLinks(E_32_PLUGMANAGER, "classis");
if ($text_rend)
{
$text_check = TRUE;
}
$text_cat .= $text_rend;
}
$text_cat .= render_clean();
$text_cat .= "
";
if ($text_check)
{
$text .= $text_cat;
}
}
$text .= "