Conditions | 4 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public static function eventCoreHeaderAddmeta() |
||
32 | { |
||
33 | global $xoTheme, $xoopsUser; |
||
34 | $xoopsModule = XoopsModule::getByDirname('cssholmes'); |
||
35 | // Add scripts and Css if only User is xoopsAdmin |
||
36 | if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid())) { |
||
37 | $xoTheme->addStylesheet(XOOPS_URL . '/modules/cssholmes/assets/css/style.css'); |
||
38 | } else { |
||
39 | $xoTheme->addStylesheet(XOOPS_URL . '/modules/cssholmes/assets/css/holmes.css'); |
||
40 | $xoTheme->addScript(XOOPS_URL . '/modules/cssholmes/assets/js/holmes.js'); |
||
41 | } |
||
44 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.