| @@ 235-245 (lines=11) @@ | ||
| 232 | 'url' => XOOPS_URL . '/modules/system/', |
|
| 233 | 'options' => $OPT); |
|
| 234 | ||
| 235 | foreach ($mods as $mod) { |
|
| 236 | $rtn = array(); |
|
| 237 | $sadmin = $moduleperm_handler->checkRight('module_admin', $mod->getVar('mid'), $xoopsUser->getGroups()); |
|
| 238 | if ($sadmin && ($mod->getVar('hasnotification') || is_array($mod->getInfo('config')) || is_array($mod->getInfo('comments')))) { |
|
| 239 | $rtn['link'] = XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mod->getVar('mid'); |
|
| 240 | $rtn['title'] = htmlspecialchars($mod->name(), ENT_QUOTES); |
|
| 241 | $rtn['absolute'] = 1; |
|
| 242 | $rtn['icon'] = XOOPS_ADMINTHEME_URL . '/gui/oxygen/icons/prefs_small.png'; |
|
| 243 | $menu[] = $rtn; |
|
| 244 | } |
|
| 245 | } |
|
| 246 | $tpl->append('navitems', array( |
|
| 247 | 'link' => XOOPS_URL . '/modules/system/admin.php?fct=preferences', |
|
| 248 | 'text' => _OXYGEN_SITEPREF, |
|
| @@ 268-278 (lines=11) @@ | ||
| 265 | 'url' => XOOPS_URL . '/modules/system/', |
|
| 266 | 'options' => $OPT); |
|
| 267 | ||
| 268 | foreach ($mods as $mod) { |
|
| 269 | $rtn = array(); |
|
| 270 | $sadmin = $moduleperm_handler->checkRight('module_admin', $mod->getVar('mid'), $xoopsUser->getGroups()); |
|
| 271 | if ($sadmin && ($mod->getVar('hasnotification') || is_array($mod->getInfo('config')) || is_array($mod->getInfo('comments')))) { |
|
| 272 | $rtn['link'] = XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mod->getVar('mid'); |
|
| 273 | $rtn['title'] = htmlspecialchars($mod->name(), ENT_QUOTES); |
|
| 274 | $rtn['absolute'] = 1; |
|
| 275 | $rtn['icon'] = XOOPS_ADMINTHEME_URL . '/gui/oxygen/icons/prefs_small.png'; |
|
| 276 | $menu[] = $rtn; |
|
| 277 | } |
|
| 278 | } |
|
| 279 | $tpl->append('navitems', array( |
|
| 280 | 'link' => XOOPS_URL . '/modules/system/admin.php?fct=preferences', |
|
| 281 | 'text' => '<span class="fa fa-wrench"></span> ' . _OXYGEN_SITEPREF, |
|