@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | require_once \dirname(__DIR__, 2) . '/mainfile.php'; |
| 27 | 27 | $dirname = $GLOBALS['xoopsModule']->getVar('dirname'); |
| 28 | -$pathname = \XOOPS_ROOT_PATH. '/modules/'.$dirname; |
|
| 28 | +$pathname = \XOOPS_ROOT_PATH . '/modules/' . $dirname; |
|
| 29 | 29 | include_once $pathname . '/include/common.php'; |
| 30 | 30 | // Get instance of module |
| 31 | 31 | $helper = Helper::getInstance(); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | // |
| 39 | 39 | $myts = MyTextSanitizer::getInstance(); |
| 40 | 40 | $style = \WGSITENOTICE_URL . '/assets/css/style.css'; |
| 41 | -if(\file_exists($style)) { return true; } |
|
| 41 | +if (\file_exists($style)) { return true; } |
|
| 42 | 42 | // |
| 43 | 43 | $sysPathIcon16 = $GLOBALS['xoopsModule']->getInfo('sysicons16'); |
| 44 | 44 | $sysPathIcon32 = $GLOBALS['xoopsModule']->getInfo('sysicons32'); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $modPathIcon16 = $xoopsModule->getInfo('modicons16'); |
| 48 | 48 | $modPathIcon32 = $xoopsModule->getInfo('modicons32'); |
| 49 | 49 | // Breadcrumbs |
| 50 | -$xoBreadcrumbs = []; |
|
| 50 | +$xoBreadcrumbs = []; |
|
| 51 | 51 | // |
| 52 | 52 | \xoops_loadLanguage('modinfo', $dirname); |
| 53 | 53 | \xoops_loadLanguage('main', $dirname); |
@@ -28,12 +28,12 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | $GLOBALS['xoopsOption']['template_main'] = 'user/' . $helper->getConfig('wgsitenotice_template') . '/wgsitenotice_index_' |
| 30 | 30 | . $helper->getConfig('wgsitenotice_template') . '.tpl'; |
| 31 | -include_once \XOOPS_ROOT_PATH.'/header.php'; |
|
| 31 | +include_once \XOOPS_ROOT_PATH . '/header.php'; |
|
| 32 | 32 | |
| 33 | 33 | // Define Stylesheet |
| 34 | -$xoTheme->addStylesheet( $style ); |
|
| 34 | +$xoTheme->addStylesheet($style); |
|
| 35 | 35 | |
| 36 | -$breadcrumb ='<a href="' . \XOOPS_URL . '">' . \_YOURHOME . '</a> » ' . $xoopsModule->name(); |
|
| 36 | +$breadcrumb = '<a href="' . \XOOPS_URL . '">' . \_YOURHOME . '</a> » ' . $xoopsModule->name(); |
|
| 37 | 37 | |
| 38 | 38 | $version_id = Request::getInt('version_id'); |
| 39 | 39 | |
@@ -93,11 +93,11 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | |
| 95 | 95 | // keywords |
| 96 | -wgsitenotice_meta_keywords($helper->getConfig('keywords').', '. \implode(', ', $keywords)); |
|
| 96 | +wgsitenotice_meta_keywords($helper->getConfig('keywords') . ', ' . \implode(', ', $keywords)); |
|
| 97 | 97 | unset($keywords); |
| 98 | 98 | // description |
| 99 | 99 | wgsitenotice_meta_description(\_MA_WGSITENOTICE_DESC); |
| 100 | 100 | // |
| 101 | -$GLOBALS['xoopsTpl']->assign('xoops_mpageurl', \WGSITENOTICE_URL.'/contents.php'); |
|
| 101 | +$GLOBALS['xoopsTpl']->assign('xoops_mpageurl', \WGSITENOTICE_URL . '/contents.php'); |
|
| 102 | 102 | // |
| 103 | 103 | include_once __DIR__ . '/footer.php'; |