@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | </div> |
28 | 28 | <{/xoBlkTpl}> |
29 | 29 | */ |
30 | -function smarty_block_xoBlkTpl ($params, $content, $smarty, &$repeat) { |
|
30 | +function smarty_block_xoBlkTpl($params, $content, $smarty, &$repeat) { |
|
31 | 31 | static $old_block; |
32 | 32 | /** @var Smarty $smarty */ |
33 | 33 | if (empty($content)) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $var = $xoBlk->buildBlock(); |
45 | 45 | } |
46 | 46 | if (isset($params['cachetime'])) { |
47 | - XoopsCache::write($cache_key, $var, (int)$params['cachetime']); |
|
47 | + XoopsCache::write($cache_key, $var, (int) $params['cachetime']); |
|
48 | 48 | } |
49 | 49 | $old_block = $smarty->get_template_vars('block'); |
50 | 50 | $smarty->assign('block', $var); |
@@ -9,23 +9,6 @@ |
||
9 | 9 | * how to use |
10 | 10 | * The following code inserted in the template |
11 | 11 | * |
12 | - * @param string $module module dirname |
|
13 | - * @param string $file block function file |
|
14 | - * @param string $show_func show block function |
|
15 | - * @param string $options show block function's option |
|
16 | - * @param int $cachetime cachetime Unit for seconds |
|
17 | - * @param mixed $user Generate cache solution |
|
18 | - |
|
19 | -<{xoBlkTpl module="ilog" file="ilog_block_tag.php" show_func="ilog_tag_block_cloud_show" options="100|0|100|80" cachetime=5 userid=$xoops_userid}> |
|
20 | - <link rel="stylesheet" href="<{$xoops_url}>/modules/tag/templates/style.css" /> |
|
21 | - <div class="tag-cloud" style="line-height: 150%; padding: 5px;"> |
|
22 | - <{foreach item=tag from=$block.tags}> |
|
23 | - <span class="tag-level-<{$tag.level}>" style="font-size: <{$tag.font}>%; display: inline; padding-right: 5px;"> |
|
24 | - <a href="<{$xoops_url}>/modules/<{$block.tag_dirname}>/view.tag.php<{$smarty.const.URL_DELIMITER}><{$tag.id}>/" title="<{$tag.term}>"><{$tag.term}></a> |
|
25 | - </span> |
|
26 | - <{/foreach}> |
|
27 | - </div> |
|
28 | -<{/xoBlkTpl}> |
|
29 | 12 | */ |
30 | 13 | function smarty_block_xoBlkTpl ($params, $content, $smarty, &$repeat) { |
31 | 14 | static $old_block; |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * @author XOOPS Development Team |
16 | 16 | */ |
17 | 17 | |
18 | -use Xmf\Module\Admin; |
|
18 | +use Xmf\Module\Admin; |
|
19 | 19 | use XoopsModules\Tools; |
20 | 20 | |
21 | 21 | require_once dirname(__DIR__) . '/preloads/autoloader.php'; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | use Xmf\Module\Admin; |
19 | 19 | use XoopsModules\Tools; |
20 | 20 | |
21 | -require_once dirname(__DIR__) . '/preloads/autoloader.php'; |
|
21 | +require_once dirname(__DIR__).'/preloads/autoloader.php'; |
|
22 | 22 | |
23 | 23 | $moduleDirName = \basename(\dirname(__DIR__)); |
24 | 24 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); //$capsDirName |
@@ -37,20 +37,20 @@ discard block |
||
37 | 37 | //$categoryHandler = new Tools\CategoryHandler($db); |
38 | 38 | //$downloadHandler = new Tools\DownloadHandler($db); |
39 | 39 | |
40 | -if (!defined($moduleDirNameUpper . '_CONSTANTS_DEFINED')) { |
|
41 | - define($moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__))); |
|
42 | - define($moduleDirNameUpper . '_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/'); |
|
43 | - define($moduleDirNameUpper . '_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/'); |
|
44 | - define($moduleDirNameUpper . '_URL', XOOPS_URL . '/modules/' . $moduleDirName . '/'); |
|
45 | - define($moduleDirNameUpper . '_IMAGE_URL', constant($moduleDirNameUpper . '_URL') . '/assets/images/'); |
|
46 | - define($moduleDirNameUpper . '_IMAGE_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/assets/images'); |
|
47 | - define($moduleDirNameUpper . '_ADMIN_URL', constant($moduleDirNameUpper . '_URL') . '/admin/'); |
|
48 | - define($moduleDirNameUpper . '_ADMIN_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/admin/'); |
|
49 | - define($moduleDirNameUpper . '_ADMIN', constant($moduleDirNameUpper . '_URL') . '/admin/index.php'); |
|
50 | - define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', constant($moduleDirNameUpper . '_URL') . '/assets/images/logoModule.png'); |
|
51 | - define($moduleDirNameUpper . '_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
52 | - define($moduleDirNameUpper . '_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
53 | - define($moduleDirNameUpper . '_CONSTANTS_DEFINED', 1); |
|
40 | +if (!defined($moduleDirNameUpper.'_CONSTANTS_DEFINED')) { |
|
41 | + define($moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__))); |
|
42 | + define($moduleDirNameUpper.'_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/'); |
|
43 | + define($moduleDirNameUpper.'_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/'); |
|
44 | + define($moduleDirNameUpper.'_URL', XOOPS_URL.'/modules/'.$moduleDirName.'/'); |
|
45 | + define($moduleDirNameUpper.'_IMAGE_URL', constant($moduleDirNameUpper.'_URL').'/assets/images/'); |
|
46 | + define($moduleDirNameUpper.'_IMAGE_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/assets/images'); |
|
47 | + define($moduleDirNameUpper.'_ADMIN_URL', constant($moduleDirNameUpper.'_URL').'/admin/'); |
|
48 | + define($moduleDirNameUpper.'_ADMIN_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/admin/'); |
|
49 | + define($moduleDirNameUpper.'_ADMIN', constant($moduleDirNameUpper.'_URL').'/admin/index.php'); |
|
50 | + define($moduleDirNameUpper.'_AUTHOR_LOGOIMG', constant($moduleDirNameUpper.'_URL').'/assets/images/logoModule.png'); |
|
51 | + define($moduleDirNameUpper.'_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.$moduleDirName); // WITHOUT Trailing slash |
|
52 | + define($moduleDirNameUpper.'_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.$moduleDirName); // WITHOUT Trailing slash |
|
53 | + define($moduleDirNameUpper.'_CONSTANTS_DEFINED', 1); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | $pathIcon16 = Admin::iconUrl('', 16); |
@@ -59,15 +59,15 @@ discard block |
||
59 | 59 | //$pathModIcon32 = $helper->getModule()->getInfo('modicons32'); |
60 | 60 | |
61 | 61 | $icons = [ |
62 | - 'edit' => "<img src='" . $pathIcon16 . "/edit.png' alt=" . _EDIT . "' align='middle'>", |
|
63 | - 'delete' => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>", |
|
64 | - 'clone' => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>", |
|
65 | - 'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>", |
|
66 | - 'print' => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>", |
|
67 | - 'pdf' => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>", |
|
68 | - 'add' => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>", |
|
69 | - '0' => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>", |
|
70 | - '1' => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>", |
|
62 | + 'edit' => "<img src='".$pathIcon16."/edit.png' alt="._EDIT."' align='middle'>", |
|
63 | + 'delete' => "<img src='".$pathIcon16."/delete.png' alt='"._DELETE."' align='middle'>", |
|
64 | + 'clone' => "<img src='".$pathIcon16."/editcopy.png' alt='"._CLONE."' align='middle'>", |
|
65 | + 'preview' => "<img src='".$pathIcon16."/view.png' alt='"._PREVIEW."' align='middle'>", |
|
66 | + 'print' => "<img src='".$pathIcon16."/printer.png' alt='"._CLONE."' align='middle'>", |
|
67 | + 'pdf' => "<img src='".$pathIcon16."/pdf.png' alt='"._CLONE."' align='middle'>", |
|
68 | + 'add' => "<img src='".$pathIcon16."/add.png' alt='"._ADD."' align='middle'>", |
|
69 | + '0' => "<img src='".$pathIcon16."/0.png' alt='".0."' align='middle'>", |
|
70 | + '1' => "<img src='".$pathIcon16."/1.png' alt='".1."' align='middle'>", |
|
71 | 71 | ]; |
72 | 72 | |
73 | 73 | $debug = false; |
@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | $GLOBALS['xoopsTpl'] = new \XoopsTpl(); |
81 | 81 | } |
82 | 82 | |
83 | -$GLOBALS['xoopsTpl']->assign('mod_url', XOOPS_URL . '/modules/' . $moduleDirName); |
|
83 | +$GLOBALS['xoopsTpl']->assign('mod_url', XOOPS_URL.'/modules/'.$moduleDirName); |
|
84 | 84 | // Local icons path |
85 | 85 | if (is_object($helper->getModule())) { |
86 | 86 | $pathModIcon16 = $helper->getModule()->getInfo('modicons16'); |
87 | 87 | $pathModIcon32 = $helper->getModule()->getInfo('modicons32'); |
88 | 88 | |
89 | - $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL . '/modules/' . $moduleDirName . '/' . $pathModIcon16); |
|
89 | + $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL.'/modules/'.$moduleDirName.'/'.$pathModIcon16); |
|
90 | 90 | $GLOBALS['xoopsTpl']->assign('pathModIcon32', $pathModIcon32); |
91 | 91 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | * @author Michael Beck (aka Mamba) |
14 | 14 | */ |
15 | 15 | |
16 | -use Xmf\Database\TableLoad; |
|
17 | -use Xmf\Request; |
|
16 | +use Xmf\Database\TableLoad; |
|
17 | +use Xmf\Request; |
|
18 | 18 | use Xmf\Yaml; |
19 | 19 | use XoopsModules\Tools\{ |
20 | 20 | Helper, |
@@ -38,24 +38,24 @@ |
||
38 | 38 | $helper->loadLanguage('common'); |
39 | 39 | |
40 | 40 | switch ($op) { |
41 | - case 'load': |
|
42 | - if (Request::hasVar('ok', 'REQUEST') && 1 === Request::getInt('ok', 0)) { |
|
43 | - if (!$GLOBALS['xoopsSecurity']->check()) { |
|
44 | - redirect_header($helper->url('admin/index.php'), 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
45 | - } |
|
46 | - loadSampleData(); |
|
47 | - } else { |
|
48 | - xoops_cp_header(); |
|
49 | - xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_CONFIRM')), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true); |
|
50 | - xoops_cp_footer(); |
|
41 | +case 'load': |
|
42 | + if (Request::hasVar('ok', 'REQUEST') && 1 === Request::getInt('ok', 0)) { |
|
43 | + if (!$GLOBALS['xoopsSecurity']->check()) { |
|
44 | + redirect_header($helper->url('admin/index.php'), 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
51 | 45 | } |
52 | - break; |
|
53 | - case 'save': |
|
54 | - saveSampleData(); |
|
55 | - break; |
|
56 | - case 'clear': |
|
57 | - clearSampleData(); |
|
58 | - break; |
|
46 | + loadSampleData(); |
|
47 | + } else { |
|
48 | + xoops_cp_header(); |
|
49 | + xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_CONFIRM')), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true); |
|
50 | + xoops_cp_footer(); |
|
51 | + } |
|
52 | + break; |
|
53 | +case 'save': |
|
54 | + saveSampleData(); |
|
55 | + break; |
|
56 | +case 'clear': |
|
57 | + clearSampleData(); |
|
58 | + break; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | // XMF TableLoad for SAMPLE data |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | /** @var Utility $utility */ |
26 | 26 | /** @var Configurator $configurator */ |
27 | 27 | |
28 | -require dirname(__DIR__, 3) . '/include/cp_header.php'; |
|
29 | -require dirname(__DIR__) . '/preloads/autoloader.php'; |
|
28 | +require dirname(__DIR__, 3).'/include/cp_header.php'; |
|
29 | +require dirname(__DIR__).'/preloads/autoloader.php'; |
|
30 | 30 | |
31 | 31 | $op = Request::getCmd('op', ''); |
32 | 32 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | loadSampleData(); |
47 | 47 | } else { |
48 | 48 | xoops_cp_header(); |
49 | - xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_CONFIRM')), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true); |
|
49 | + xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_CONFIRM')), constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'), true); |
|
50 | 50 | xoops_cp_footer(); |
51 | 51 | } |
52 | 52 | break; |
@@ -75,20 +75,20 @@ discard block |
||
75 | 75 | $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables'); |
76 | 76 | |
77 | 77 | $language = 'english/'; |
78 | - if (is_dir(__DIR__ . '/' . $xoopsConfig['language'])) { |
|
79 | - $language = $xoopsConfig['language'] . '/'; |
|
78 | + if (is_dir(__DIR__.'/'.$xoopsConfig['language'])) { |
|
79 | + $language = $xoopsConfig['language'].'/'; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | // load module tables |
83 | 83 | foreach ($tables as $table) { |
84 | - $tabledata = Yaml::readWrapped($language . $table . '.yml'); |
|
84 | + $tabledata = Yaml::readWrapped($language.$table.'.yml'); |
|
85 | 85 | TableLoad::truncateTable($table); |
86 | 86 | TableLoad::loadTableFromArray($table, $tabledata); |
87 | 87 | } |
88 | 88 | |
89 | 89 | // load permissions |
90 | 90 | $table = 'group_permission'; |
91 | - $tabledata = Yaml::readWrapped($language . $table . '.yml'); |
|
91 | + $tabledata = Yaml::readWrapped($language.$table.'.yml'); |
|
92 | 92 | $mid = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getVar('mid'); |
93 | 93 | loadTableFromArrayWithReplace($table, $tabledata, 'gperm_modid', $mid); |
94 | 94 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $utility::rcopy($src, $dest); |
102 | 102 | } |
103 | 103 | } |
104 | - \redirect_header('../admin/index.php', 1, \constant('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_SUCCESS')); |
|
104 | + \redirect_header('../admin/index.php', 1, \constant('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_SUCCESS')); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -115,26 +115,26 @@ discard block |
||
115 | 115 | $helper = Helper::getInstance(); |
116 | 116 | $tables = $helper->getModule()->getInfo('tables'); |
117 | 117 | |
118 | - $languageFolder = __DIR__ . '/' . $xoopsConfig['language']; |
|
119 | - if (!file_exists($languageFolder . '/')) { |
|
120 | - Utility::createFolder($languageFolder . '/'); |
|
118 | + $languageFolder = __DIR__.'/'.$xoopsConfig['language']; |
|
119 | + if (!file_exists($languageFolder.'/')) { |
|
120 | + Utility::createFolder($languageFolder.'/'); |
|
121 | 121 | } |
122 | - $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/'; |
|
122 | + $exportFolder = $languageFolder.'/Exports-'.date('Y-m-d-H-i-s').'/'; |
|
123 | 123 | Utility::createFolder($exportFolder); |
124 | 124 | |
125 | 125 | // save module tables |
126 | 126 | foreach ($tables as $table) { |
127 | - TableLoad::saveTableToYamlFile($table, $exportFolder . $table . '.yml'); |
|
127 | + TableLoad::saveTableToYamlFile($table, $exportFolder.$table.'.yml'); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | // save permissions |
131 | 131 | $criteria = new \CriteriaCompo(); |
132 | 132 | $criteria->add(new \Criteria('gperm_modid', $helper->getModule()->getVar('mid'))); |
133 | 133 | $skipColumns[] = 'gperm_id'; |
134 | - TableLoad::saveTableToYamlFile('group_permission', $exportFolder . 'group_permission.yml', $criteria, $skipColumns); |
|
134 | + TableLoad::saveTableToYamlFile('group_permission', $exportFolder.'group_permission.yml', $criteria, $skipColumns); |
|
135 | 135 | unset($criteria); |
136 | 136 | |
137 | - \redirect_header('../admin/index.php', 1, \constant('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA_SUCCESS')); |
|
137 | + \redirect_header('../admin/index.php', 1, \constant('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA_SUCCESS')); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | // |
153 | 153 | // redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS')); |
154 | 154 | } catch (\Throwable $e) { |
155 | - exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR')); |
|
155 | + exit(constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR')); |
|
156 | 156 | } |
157 | 157 | } |
158 | 158 | |
@@ -176,12 +176,12 @@ discard block |
||
176 | 176 | $prefixedTable = $db->prefix($table); |
177 | 177 | $count = 0; |
178 | 178 | |
179 | - $sql = 'DELETE FROM ' . $prefixedTable . ' WHERE `' . $search . '`=' . $db->quote($replace); |
|
179 | + $sql = 'DELETE FROM '.$prefixedTable.' WHERE `'.$search.'`='.$db->quote($replace); |
|
180 | 180 | |
181 | 181 | $result = $db->queryF($sql); |
182 | 182 | |
183 | 183 | foreach ($data as $row) { |
184 | - $insertInto = 'INSERT INTO ' . $prefixedTable . ' ('; |
|
184 | + $insertInto = 'INSERT INTO '.$prefixedTable.' ('; |
|
185 | 185 | $valueClause = ' VALUES ('; |
186 | 186 | $first = true; |
187 | 187 | foreach ($row as $column => $value) { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | } |
201 | 201 | } |
202 | 202 | |
203 | - $sql = $insertInto . ') ' . $valueClause . ')'; |
|
203 | + $sql = $insertInto.') '.$valueClause.')'; |
|
204 | 204 | |
205 | 205 | $result = $db->queryF($sql); |
206 | 206 | if (false !== $result) { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | /** |
215 | 215 | * |
216 | 216 | */ |
217 | -function clearSampleData(){ |
|
217 | +function clearSampleData() { |
|
218 | 218 | $moduleDirName = \basename(\dirname(__DIR__)); |
219 | 219 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
220 | 220 | $helper = Helper::getInstance(); |
@@ -225,5 +225,5 @@ discard block |
||
225 | 225 | foreach ($tables as $table) { |
226 | 226 | \Xmf\Database\TableLoad::truncateTable($table); |
227 | 227 | } |
228 | - redirect_header($helper->url('admin/index.php'), 1, constant('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA_OK')); |
|
228 | + redirect_header($helper->url('admin/index.php'), 1, constant('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA_OK')); |
|
229 | 229 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | //Help |
28 | 28 | define('_MI_TOOLS_DIRNAME', basename(dirname(__DIR__, 2))); |
29 | -define('_MI_TOOLS_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
29 | +define('_MI_TOOLS_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
30 | 30 | define('_MI_TOOLS_BACK_2_ADMIN', 'Back to Administration of '); |
31 | 31 | define('_MI_TOOLS_OVERVIEW', 'Overview'); |
32 | 32 |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | // database tables, not applicable for this module |
49 | 49 | $modversion['sqlfile']['mysql'] = 'sql/sql.sql'; |
50 | 50 | $modversion['tables'] = [ |
51 | - $moduleDirName . '_' . 'blocks', |
|
51 | + $moduleDirName.'_'.'blocks', |
|
52 | 52 | ]; |
53 | 53 | |
54 | 54 | // Admin things, not applicable for this module |
@@ -74,9 +74,9 @@ discard block |
||
74 | 74 | |
75 | 75 | // ------------------- Templates ------------------- // |
76 | 76 | $modversion['templates'] = [ |
77 | - ['file' => 'tools_admin_blockscall.tpl', 'description' => '',], |
|
78 | - ['file' => 'tools_admin_blockscall_new.tpl', 'description' => '',], |
|
79 | - ['file' => 'tools_admin_blockscall_edit.tpl', 'description' => '',], |
|
77 | + ['file' => 'tools_admin_blockscall.tpl', 'description' => '', ], |
|
78 | + ['file' => 'tools_admin_blockscall_new.tpl', 'description' => '', ], |
|
79 | + ['file' => 'tools_admin_blockscall_edit.tpl', 'description' => '', ], |
|
80 | 80 | ]; |
81 | 81 | |
82 | 82 | // ------------------- Blocks ------------------- // |
@@ -23,11 +23,11 @@ |
||
23 | 23 | $pathIcon32 = Xmf\Module\Admin::iconUrl('', 32); |
24 | 24 | |
25 | 25 | echo "<div class='adminfooter'>\n" |
26 | - . " <div style='text-align: center;'>\n" |
|
27 | - . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
|
28 | - . " </div>\n" |
|
29 | - . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" |
|
30 | - . '</div>'; |
|
26 | + . " <div style='text-align: center;'>\n" |
|
27 | + . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
|
28 | + . " </div>\n" |
|
29 | + . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" |
|
30 | + . '</div>'; |
|
31 | 31 | |
32 | 32 | |
33 | 33 | xoops_cp_footer(); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | . " <div style='text-align: center;'>\n" |
27 | 27 | . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
28 | 28 | . " </div>\n" |
29 | - . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" |
|
29 | + . ' '._AM_MODULEADMIN_ADMIN_FOOTER."\n" |
|
30 | 30 | . '</div>'; |
31 | 31 | |
32 | 32 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | Utility |
22 | 22 | }; |
23 | 23 | |
24 | -require_once __DIR__ . '/admin_header.php'; |
|
24 | +require_once __DIR__.'/admin_header.php'; |
|
25 | 25 | // Display Admin header |
26 | 26 | xoops_cp_header(); |
27 | 27 | $adminObject = Admin::getInstance(); |
@@ -39,4 +39,4 @@ discard block |
||
39 | 39 | /** @var Utility $utility */ |
40 | 40 | echo $utility::getServerStats(); |
41 | 41 | |
42 | -require_once __DIR__ . '/admin_footer.php'; |
|
42 | +require_once __DIR__.'/admin_footer.php'; |
@@ -21,10 +21,10 @@ discard block |
||
21 | 21 | use XoopsModules\Tools\{Helper |
22 | 22 | }; |
23 | 23 | |
24 | -require dirname(__DIR__) . '/preloads/autoloader.php'; |
|
24 | +require dirname(__DIR__).'/preloads/autoloader.php'; |
|
25 | 25 | |
26 | -require dirname(__DIR__, 3) . '/include/cp_header.php'; |
|
27 | -require dirname(__DIR__) . '/include/common.php'; |
|
26 | +require dirname(__DIR__, 3).'/include/cp_header.php'; |
|
27 | +require dirname(__DIR__).'/include/common.php'; |
|
28 | 28 | |
29 | 29 | $moduleDirName = \basename(\dirname(__DIR__)); |
30 | 30 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $helper->loadLanguage('common'); |
41 | 41 | |
42 | 42 | if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { |
43 | - require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
43 | + require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
44 | 44 | $xoopsTpl = new \XoopsTpl(); |
45 | 45 | } |
46 | 46 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html) |
15 | 15 | * @author XOOPS Development Team |
16 | 16 | */ |
17 | -require_once __DIR__ . '/admin_header.php'; |
|
17 | +require_once __DIR__.'/admin_header.php'; |
|
18 | 18 | xoops_cp_header(); |
19 | 19 | |
20 | 20 | /** @var Admin $adminObject */ |
@@ -22,4 +22,4 @@ discard block |
||
22 | 22 | $adminObject::setPaypal('[email protected]'); |
23 | 23 | $adminObject->displayAbout(false); |
24 | 24 | |
25 | -require_once __DIR__ . '/admin_footer.php'; |
|
25 | +require_once __DIR__.'/admin_footer.php'; |