Commit 4f6178e 1 parent dc2b5af commit 4f6178e Copy full SHA for 4f6178e
File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -115,14 +115,23 @@ function LoginstatusTextAction(source) {
115
115
menu[0] = {};
116
116
var unloadhelper = false;
117
117
118
+ <?php
119
+ $ menuInitStr = '' ;
120
+ foreach ($ config ['menu_categories ' ] as $ item ) {
121
+ if ($ item ['id ' ] !== 'shops ' || setting ('core.gifts_system ' )) {
122
+ $ menuInitStr .= $ item ['id ' ] . '= ' . ($ item ['id ' ] === 'news ' ? '1 ' : '0 ' ) . '& ' ;
123
+ }
124
+ }
125
+ ?>
126
+
118
127
// load the menu and set the active submenu item by using the variable 'activeSubmenuItem'
119
128
function LoadMenu()
120
129
{
121
130
document.getElementById("submenu_"+activeSubmenuItem).style.color = "white";
122
131
document.getElementById("ActiveSubmenuItemIcon_"+activeSubmenuItem).style.visibility = "visible";
123
132
menus = localStorage.getItem('menus');
124
133
if(menus == null || menus.lastIndexOf("&") === -1) {
125
- menus = "news=1&account=0&community=0&library=0&forum=0 <?php if ( setting ( ' core.gifts_system ' )) echo ' &shops=0 ' ; ?> & ";
134
+ menus = "<?= $ menuInitStr ?> ";
126
135
}
127
136
FillMenuArray();
128
137
InitializeMenu();
You can’t perform that action at this time.
0 commit comments