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