* colorful dynamic menus!

* and also: blank option for menus
* NOTICE: Not all templates support that options yet
This commit is contained in:
slawkens1
2018-01-14 14:29:53 +01:00
parent 862533fd7f
commit ab73c602c3
10 changed files with 2899 additions and 29 deletions

View File

@@ -91,12 +91,7 @@ defined('MYAAC') or die('Direct access not allowed!');
$i = 0;
foreach($menus[$category] as $menu) {
if(strpos(trim($menu['link']), 'http') === 0) {
echo '<a href="' . $menu['link'] . '" target="_blank">' . $menu['name'] . '</a>';
}
else {
echo '<a href="' . getLink($menu['link']) . '">' . $menu['name'] . '</a>';
}
echo '<a href="' . $menu['link_full'] . '"' . ($menu['blank'] ? ' target="_blank"' : '') . ' style="color: ' . $menu['color'] . ';">' . $menu['name'] . '</a>';
if(++$i != $size) {
echo '<span class="separator"></span>';