mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00

* added option to uninstall plugin * added option to require specified myaac or php version for plugins * added links loaded from database to admin panel - for future plugins * added few characters hooks * fixed some kathrine template js bug when shop is disabled
33 lines
627 B
Twig
33 lines
627 B
Twig
var list = new Array();
|
|
list[0] = 'news';
|
|
list[1] = 'account';
|
|
list[2] = 'community';
|
|
list[3] = 'library';
|
|
{% if config.gifts_system %}
|
|
list[4] = 'shops';
|
|
{% endif %}
|
|
|
|
function initMenu()
|
|
{
|
|
var length = list.length;
|
|
for(i = 0; i < length; i++)
|
|
{
|
|
if(list[i] == category)
|
|
{
|
|
document.getElementById(list[i]).className = 'tab-active';
|
|
document.getElementById(list[i] + "-submenu").style.display = 'block';
|
|
}
|
|
else
|
|
{
|
|
document.getElementById(list[i]).className = 'tab';
|
|
document.getElementById(list[i] + "-submenu").style.display = 'none';
|
|
}
|
|
}
|
|
}
|
|
|
|
function menuSwitch(cat)
|
|
{
|
|
category = cat;
|
|
initMenu();
|
|
}
|