@@ -80,13 +80,13 @@ |
||
| 80 | 80 | $supportName = $module->getVar('mod_support_name'); |
| 81 | 81 | $language = $this->getLanguage($moduleDirname, 'AM'); |
| 82 | 82 | $singleNoVar = $hc->getSmartyNoSimbol('xoModuleIcons32 xoopsmicrobutton.gif'); |
| 83 | - $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true, '',''); |
|
| 84 | - $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img) ; |
|
| 85 | - $content = $hc->getHtmlTag('div', ['class' => 'center'], "\n\t" . $anchor); |
|
| 83 | + $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true, '', ''); |
|
| 84 | + $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img); |
|
| 85 | + $content = $hc->getHtmlTag('div', ['class' => 'center'], "\n\t".$anchor); |
|
| 86 | 86 | $tree = $hc->getHtmlTag('strong', [], $moduleName, false, '', ''); |
| 87 | 87 | $tree .= $hc->getSmartyConst($language, 'MAINTAINEDBY'); |
| 88 | - $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit ' . $supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName); |
|
| 89 | - $content .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], "\n\t" . $tree); |
|
| 88 | + $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit '.$supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName); |
|
| 89 | + $content .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], "\n\t".$tree); |
|
| 90 | 90 | |
| 91 | 91 | $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
| 92 | 92 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $fieldName = $fields[$f]->getVar('field_name'); |
| 85 | 85 | $stuFieldName = mb_strtoupper($fieldName); |
| 86 | 86 | $lang = $hc->getSmartyConst($language, $stuFieldName); |
| 87 | - $th .= $hc->getHtmlTableHead($lang, 'center', '', "\t\t\t"); |
|
| 87 | + $th .= $hc->getHtmlTableHead($lang, 'center', '', "\t\t\t"); |
|
| 88 | 88 | } |
| 89 | 89 | $tr = $hc->getHtmlTableRow($th, 'head', "\t\t"); |
| 90 | 90 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | $td = ''; |
| 109 | 109 | if (1 == $tableAutoincrement) { |
| 110 | 110 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 111 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double); |
|
| 111 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double); |
|
| 112 | 112 | } |
| 113 | 113 | $fields = $this->getTableFields($tableMid, $tableId); |
| 114 | 114 | foreach (array_keys($fields) as $f) { |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">... |
| 127 | 127 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 128 | 128 | $span = $hc->getHtmlTag('span', [], $double); |
| 129 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t"); |
|
| 129 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t"); |
|
| 130 | 130 | /*$ret .= <<<EOT |
| 131 | 131 | <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;"> </span></td>\n |
| 132 | 132 | EOT;*/ |
@@ -134,19 +134,19 @@ discard block |
||
| 134 | 134 | case 10: |
| 135 | 135 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32'); |
| 136 | 136 | $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 137 | - $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'',''); |
|
| 137 | + $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', ''); |
|
| 138 | 138 | $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t"); |
| 139 | 139 | break; |
| 140 | 140 | case 13: |
| 141 | - $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url'); |
|
| 141 | + $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
|
| 142 | 142 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 143 | - $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', true, '', ''); |
|
| 144 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t"); |
|
| 143 | + $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', true, '', ''); |
|
| 144 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t"); |
|
| 145 | 145 | break; |
| 146 | 146 | default: |
| 147 | 147 | if (0 != $f) { |
| 148 | 148 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 149 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t"); |
|
| 149 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t"); |
|
| 150 | 150 | } |
| 151 | 151 | break; |
| 152 | 152 | } |
@@ -156,18 +156,18 @@ discard block |
||
| 156 | 156 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 157 | 157 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png'); |
| 158 | 158 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', ''); |
| 159 | - $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t"); |
|
| 159 | + $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t"); |
|
| 160 | 160 | $lang = $hc->getSmartyConst('', '_DELETE'); |
| 161 | 161 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 162 | 162 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png'); |
| 163 | - $img = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', true, '', ''); |
|
| 164 | - $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t"); |
|
| 165 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor . "\t\t\t", false, "\t\t\t"); |
|
| 163 | + $img = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', true, '', ''); |
|
| 164 | + $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t"); |
|
| 165 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor."\t\t\t", false, "\t\t\t"); |
|
| 166 | 166 | $cycle = $hc->getSmartyNoSimbol('cycle values="odd, even"'); |
| 167 | - $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td. "\t\t", false, "\t\t"); |
|
| 167 | + $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td."\t\t", false, "\t\t"); |
|
| 168 | 168 | //$foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL; |
| 169 | - $foreach = $hc->getSmartyForeach($tableSoleName, 'block', $tr, '','', "\t\t"); |
|
| 170 | - $tbody = $hc->getHtmlTableTbody($foreach,'' , "\t"); |
|
| 169 | + $foreach = $hc->getSmartyForeach($tableSoleName, 'block', $tr, '', '', "\t\t"); |
|
| 170 | + $tbody = $hc->getHtmlTableTbody($foreach, '', "\t"); |
|
| 171 | 171 | |
| 172 | 172 | //return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL; |
| 173 | 173 | return $hc->getSmartyConditions("block", '', '', $tbody, false, true, true, "\t"); |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | $tbody .= $this->getTemplatesBlocksTableTfoot(); |
| 206 | 206 | $single = $hc->getSmartySingleVar('table_type'); |
| 207 | 207 | |
| 208 | - return $hc->getHtmlTable($tbody, 'table table-' . $single); |
|
| 208 | + return $hc->getHtmlTable($tbody, 'table table-'.$single); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | /** |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $str = ''; |
| 93 | 93 | foreach ($attributes as $name => $value) { |
| 94 | 94 | if ('_' !== $name) { |
| 95 | - $str .= ' ' . $name . '="' . $value . '"'; |
|
| 95 | + $str .= ' '.$name.'="'.$value.'"'; |
|
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | |
@@ -177,11 +177,11 @@ discard block |
||
| 177 | 177 | $rDivClass = ('' != $divClass) ? " class='{$divClass}'" : ''; |
| 178 | 178 | |
| 179 | 179 | if ($split) { |
| 180 | - $ret = "{$t}<div{$rDivClass}>{$n}"; |
|
| 180 | + $ret = "{$t}<div{$rDivClass}>{$n}"; |
|
| 181 | 181 | $ret .= "{$content}"; |
| 182 | 182 | $ret .= "{$t}</div>{$n}"; |
| 183 | 183 | } else { |
| 184 | - $ret = "{$t}<div{$rDivClass}>{$content}</div>{$n}"; |
|
| 184 | + $ret = "{$t}<div{$rDivClass}>{$content}</div>{$n}"; |
|
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | return $ret; |
@@ -307,15 +307,15 @@ discard block |
||
| 307 | 307 | * @param bool $split |
| 308 | 308 | * @return string |
| 309 | 309 | */ |
| 310 | - public function getHtmlLi($content = '', $liClass = '', $t = '', $n = "\n", $split = false) |
|
| 310 | + public function getHtmlLi($content = '', $liClass = '', $t = '', $n = "\n", $split = false) |
|
| 311 | 311 | { |
| 312 | 312 | $rLiClass = ('' != $liClass) ? " class='{$liClass}'" : ''; |
| 313 | 313 | if ($split) { |
| 314 | - $ret = "{$t}<li{$rLiClass}>{$n}"; |
|
| 314 | + $ret = "{$t}<li{$rLiClass}>{$n}"; |
|
| 315 | 315 | $ret .= "{$content}"; |
| 316 | 316 | $ret .= "{$t}</li>{$n}"; |
| 317 | 317 | } else { |
| 318 | - $ret = "{$t}<li{$rLiClass}>{$content}</li>{$n}"; |
|
| 318 | + $ret = "{$t}<li{$rLiClass}>{$content}</li>{$n}"; |
|
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | return $ret; |
@@ -447,11 +447,11 @@ discard block |
||
| 447 | 447 | { |
| 448 | 448 | $rTfootClass = ('' != $tfootClass) ? " class='{$tfootClass}'" : ''; |
| 449 | 449 | if ($split) { |
| 450 | - $ret = "{$t}<tfoot{$rTfootClass}>{$n}"; |
|
| 450 | + $ret = "{$t}<tfoot{$rTfootClass}>{$n}"; |
|
| 451 | 451 | $ret .= "{$content}"; |
| 452 | 452 | $ret .= "{$t}</tfoot>{$n}"; |
| 453 | 453 | } else { |
| 454 | - $ret = "{$t}<tfoot{$rTfootClass}>{$content}</tfoot>{$n}"; |
|
| 454 | + $ret = "{$t}<tfoot{$rTfootClass}>{$content}</tfoot>{$n}"; |
|
| 455 | 455 | } |
| 456 | 456 | |
| 457 | 457 | return $ret; |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | $rThClass = ('' != $thClass) ? " class='{$thClass}'" : ''; |
| 493 | 493 | $colspan = ('' != $colspan) ? " colspan='{$colspan}'" : ''; |
| 494 | 494 | if ($split) { |
| 495 | - $ret = "{$t}<th{$colspan}{$rThClass}>{$n}"; |
|
| 495 | + $ret = "{$t}<th{$colspan}{$rThClass}>{$n}"; |
|
| 496 | 496 | $ret .= "{$content}"; |
| 497 | 497 | $ret .= "{$t}</th>{$n}"; |
| 498 | 498 | } else { |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | $rTdClass = ('' != $tdClass) ? " class='{$tdClass}'" : ''; |
| 518 | 518 | $colspan = ('' != $colspan) ? " colspan='{$colspan}'" : ''; |
| 519 | 519 | if ($split) { |
| 520 | - $ret = "{$t}<td{$colspan}{$rTdClass}>{$n}"; |
|
| 520 | + $ret = "{$t}<td{$colspan}{$rTdClass}>{$n}"; |
|
| 521 | 521 | $ret .= "{$content}"; |
| 522 | 522 | $ret .= "{$t}</td>{$n}"; |
| 523 | 523 | } else { |
@@ -81,12 +81,12 @@ discard block |
||
| 81 | 81 | $table = $helper->getHandler('Tables')->get($tableId); |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - $indexFile = XOOPS_UPLOAD_PATH . '/index.html'; |
|
| 84 | + $indexFile = XOOPS_UPLOAD_PATH.'/index.html'; |
|
| 85 | 85 | $stlModuleAuthor = str_replace(' ', '', mb_strtolower($module->getVar('mod_author'))); |
| 86 | 86 | $this->setModuleName($module->getVar('mod_dirname')); |
| 87 | 87 | $uploadPath = $this->getUploadPath(); |
| 88 | 88 | // Creation of "module" folder in the Directory repository |
| 89 | - $this->makeDir($uploadPath . '/' . $this->getModuleName()); |
|
| 89 | + $this->makeDir($uploadPath.'/'.$this->getModuleName()); |
|
| 90 | 90 | if (1 != $module->getVar('mod_user')) { |
| 91 | 91 | // Copied of index.html file in "root module" folder |
| 92 | 92 | $this->copyFile('', $indexFile, 'index.html'); |
@@ -113,8 +113,8 @@ discard block |
||
| 113 | 113 | 'docs' => $indexFile, |
| 114 | 114 | 'assets/images' => $indexFile, |
| 115 | 115 | 'assets/js' => $indexFile, |
| 116 | - 'language/' . $language => $indexFile, |
|
| 117 | - 'language/' . $language . '/help' => $indexFile, |
|
| 116 | + 'language/'.$language => $indexFile, |
|
| 117 | + 'language/'.$language.'/help' => $indexFile, |
|
| 118 | 118 | 'preloads' => $indexFile, |
| 119 | 119 | ]; |
| 120 | 120 | foreach ($copyFiles as $k => $v) { |
@@ -124,20 +124,20 @@ discard block |
||
| 124 | 124 | //Copy the logo of the module |
| 125 | 125 | $modImage = str_replace(' ', '', mb_strtolower($module->getVar('mod_image'))); |
| 126 | 126 | $targetImage = 'logoModule.png'; |
| 127 | - $this->copyFile('assets/images', TDMC_UPLOAD_IMGMOD_PATH . '/' . $modImage, $targetImage); |
|
| 127 | + $this->copyFile('assets/images', TDMC_UPLOAD_IMGMOD_PATH.'/'.$modImage, $targetImage); |
|
| 128 | 128 | |
| 129 | 129 | // Copy of 'module_author_logo.png' file in uploads dir |
| 130 | - $logoPng = $stlModuleAuthor . '_logo.png'; |
|
| 131 | - $logoGifFrom = TDMC_UPLOAD_IMGMOD_PATH . '/' . $logoPng; |
|
| 130 | + $logoPng = $stlModuleAuthor.'_logo.png'; |
|
| 131 | + $logoGifFrom = TDMC_UPLOAD_IMGMOD_PATH.'/'.$logoPng; |
|
| 132 | 132 | // If file exists |
| 133 | 133 | if (!file_exists($logoGifFrom)) { |
| 134 | 134 | // Rename file |
| 135 | - $copyFile = TDMC_IMAGES_LOGOS_URL . '/xoopsdevelopmentteam_logo.gif'; |
|
| 135 | + $copyFile = TDMC_IMAGES_LOGOS_URL.'/xoopsdevelopmentteam_logo.gif'; |
|
| 136 | 136 | $copyNewFile = $logoGifFrom; |
| 137 | 137 | copy($copyFile, $copyNewFile); |
| 138 | 138 | } else { |
| 139 | 139 | // Copy file |
| 140 | - $copyFile = TDMC_IMAGES_LOGOS_URL . '/' . $logoPng; |
|
| 140 | + $copyFile = TDMC_IMAGES_LOGOS_URL.'/'.$logoPng; |
|
| 141 | 141 | $copyNewFile = $logoGifFrom; |
| 142 | 142 | copy($copyFile, $copyNewFile); |
| 143 | 143 | } |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | ]; |
| 154 | 154 | foreach ($docs as $k => $v) { |
| 155 | 155 | // Creation of folder docs and .txt files |
| 156 | - $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH . $k, $v); |
|
| 156 | + $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH.$k, $v); |
|
| 157 | 157 | } |
| 158 | 158 | if (!empty($tableName)) { |
| 159 | 159 | if (1 == $module->getVar('mod_admin') || 1 == $module->getVar('mod_user')) { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $this->makeDirAndCopyFile('sql', $indexFile, 'index.html'); |
| 173 | 173 | if ((1 == $module->getVar('mod_notifications')) && (1 == $table->getVar('table_notifications'))) { |
| 174 | 174 | // Creation of "language/local_language/mail_template" folder and index.html file |
| 175 | - $this->makeDirAndCopyFile('language/' . $language . '/mail_template', $indexFile, 'index.html'); |
|
| 175 | + $this->makeDirAndCopyFile('language/'.$language.'/mail_template', $indexFile, 'index.html'); |
|
| 176 | 176 | } |
| 177 | 177 | } |
| 178 | 178 | } |
@@ -239,64 +239,64 @@ discard block |
||
| 239 | 239 | // Get Table Object |
| 240 | 240 | $table = $helper->getHandler('Tables')->get($tableId); |
| 241 | 241 | // Copy of tables images file |
| 242 | - if (file_exists($uploadTableImage = TDMC_UPLOAD_IMGTAB_PATH . '/' . $tableImage)) { |
|
| 242 | + if (file_exists($uploadTableImage = TDMC_UPLOAD_IMGTAB_PATH.'/'.$tableImage)) { |
|
| 243 | 243 | $this->copyFile($icon32, $uploadTableImage, $tableImage); |
| 244 | - } elseif (file_exists($uploadTableImage = XOOPS_ICONS32_PATH . '/' . $tableImage)) { |
|
| 244 | + } elseif (file_exists($uploadTableImage = XOOPS_ICONS32_PATH.'/'.$tableImage)) { |
|
| 245 | 245 | $this->copyFile($icon32, $uploadTableImage, $tableImage); |
| 246 | 246 | } |
| 247 | 247 | // Creation of admin files |
| 248 | 248 | if (in_array(1, $tableAdmin)) { |
| 249 | 249 | // Admin Pages File |
| 250 | 250 | $adminPages = Tdmcreate\Files\Admin\AdminPages::getInstance(); |
| 251 | - $adminPages->write($module, $table, $tableName . '.php'); |
|
| 251 | + $adminPages->write($module, $table, $tableName.'.php'); |
|
| 252 | 252 | $ret[] = $adminPages->render(); |
| 253 | 253 | // Admin Templates File |
| 254 | 254 | $adminTemplatesPages = Tdmcreate\Files\Templates\Admin\TemplatesAdminPages::getInstance(); |
| 255 | - $adminTemplatesPages->write($module, $table, $moduleDirname . '_admin_' . $tableName . '.tpl'); |
|
| 255 | + $adminTemplatesPages->write($module, $table, $moduleDirname.'_admin_'.$tableName.'.tpl'); |
|
| 256 | 256 | $ret[] = $adminTemplatesPages->render(); |
| 257 | 257 | } |
| 258 | 258 | // Creation of blocks |
| 259 | 259 | if (in_array(1, $tableBlocks)) { |
| 260 | 260 | // Blocks Files |
| 261 | 261 | $blocksFiles = Tdmcreate\Files\Blocks\BlocksFiles::getInstance(); |
| 262 | - $blocksFiles->write($module, $table, $tableName . '.php'); |
|
| 262 | + $blocksFiles->write($module, $table, $tableName.'.php'); |
|
| 263 | 263 | $ret[] = $blocksFiles->render(); |
| 264 | 264 | // Templates Blocks Files |
| 265 | 265 | $templatesBlocks = Tdmcreate\Files\Templates\Blocks\TemplatesBlocks::getInstance(); |
| 266 | - $templatesBlocks->write($module, $table, $moduleDirname . '_block_' . $tableName . '.tpl'); |
|
| 266 | + $templatesBlocks->write($module, $table, $moduleDirname.'_block_'.$tableName.'.tpl'); |
|
| 267 | 267 | $ret[] = $templatesBlocks->render(); |
| 268 | 268 | } |
| 269 | 269 | // Creation of classes |
| 270 | 270 | if (in_array(1, $tableAdmin, true) || in_array(1, $tableUser)) { |
| 271 | 271 | // Class Files |
| 272 | 272 | $classFiles = Tdmcreate\Files\Classes\ClassFiles::getInstance(); |
| 273 | - $classFiles->write($module, $table, $tables, $tableName . '.php'); |
|
| 273 | + $classFiles->write($module, $table, $tables, $tableName.'.php'); |
|
| 274 | 274 | $ret[] = $classFiles->render(); |
| 275 | 275 | } |
| 276 | 276 | // Creation of user files |
| 277 | 277 | if (in_array(1, $tableUser)) { |
| 278 | 278 | // User Pages File |
| 279 | 279 | $userPages = Tdmcreate\Files\User\UserPages::getInstance(); |
| 280 | - $userPages->write($module, $table, $tableName . '.php'); |
|
| 280 | + $userPages->write($module, $table, $tableName.'.php'); |
|
| 281 | 281 | $ret[] = $userPages->render(); |
| 282 | 282 | if (in_array(0, $tableCategory)) { |
| 283 | 283 | // User Templates File |
| 284 | 284 | $userTemplatesPages = Tdmcreate\Files\Templates\User\Pages::getInstance(); |
| 285 | - $userTemplatesPages->write($module, $table, $moduleDirname . '_' . $tableName . '.tpl'); |
|
| 285 | + $userTemplatesPages->write($module, $table, $moduleDirname.'_'.$tableName.'.tpl'); |
|
| 286 | 286 | $ret[] = $userTemplatesPages->render(); |
| 287 | 287 | // User List Templates File |
| 288 | 288 | $userTemplatesPagesList = Tdmcreate\Files\Templates\User\PagesList::getInstance(); |
| 289 | - $userTemplatesPagesList->write($module, $table, $tables, $moduleDirname . '_' . $tableName . '_list' . '.tpl'); |
|
| 289 | + $userTemplatesPagesList->write($module, $table, $tables, $moduleDirname.'_'.$tableName.'_list'.'.tpl'); |
|
| 290 | 290 | $ret[] = $userTemplatesPagesList->render(); |
| 291 | 291 | } |
| 292 | 292 | if (in_array(1, $tableCategory)) { |
| 293 | 293 | // User List Templates File |
| 294 | 294 | $userTemplatesCategories = Templates\User\Categories::getInstance(); |
| 295 | - $userTemplatesCategories->write($module, $table, $moduleDirname . '_' . $tableName . '_cat.tpl'); |
|
| 295 | + $userTemplatesCategories->write($module, $table, $moduleDirname.'_'.$tableName.'_cat.tpl'); |
|
| 296 | 296 | $ret[] = $userTemplatesCategories->render(); |
| 297 | 297 | // User List Templates File |
| 298 | 298 | $userTemplatesCategoriesList = Templates\User\CategoriesList::getInstance(); |
| 299 | - $userTemplatesCategoriesList->write($module, $table, $moduleDirname . '_' . $tableName . '_cat_list' . '.tpl'); |
|
| 299 | + $userTemplatesCategoriesList->write($module, $table, $moduleDirname.'_'.$tableName.'_cat_list'.'.tpl'); |
|
| 300 | 300 | $ret[] = $userTemplatesCategoriesList->render(); |
| 301 | 301 | } |
| 302 | 302 | } |
@@ -337,19 +337,19 @@ discard block |
||
| 337 | 337 | $ret[] = $adminFooter->render(); |
| 338 | 338 | // Templates Admin About File |
| 339 | 339 | $adminTemplatesAbout = Tdmcreate\Files\Templates\Admin\TemplatesAdminAbout::getInstance(); |
| 340 | - $adminTemplatesAbout->write($module, $moduleDirname . '_admin_about.tpl'); |
|
| 340 | + $adminTemplatesAbout->write($module, $moduleDirname.'_admin_about.tpl'); |
|
| 341 | 341 | $ret[] = $adminTemplatesAbout->render(); |
| 342 | 342 | // Templates Admin Index File |
| 343 | 343 | $adminTemplatesIndex = Tdmcreate\Files\Templates\Admin\TemplatesAdminIndex::getInstance(); |
| 344 | - $adminTemplatesIndex->write($module, $moduleDirname . '_admin_index.tpl'); |
|
| 344 | + $adminTemplatesIndex->write($module, $moduleDirname.'_admin_index.tpl'); |
|
| 345 | 345 | $ret[] = $adminTemplatesIndex->render(); |
| 346 | 346 | // Templates Admin Footer File |
| 347 | 347 | $adminTemplatesFooter = Tdmcreate\Files\Templates\Admin\TemplatesAdminFooter::getInstance(); |
| 348 | - $adminTemplatesFooter->write($module, $moduleDirname . '_admin_footer.tpl'); |
|
| 348 | + $adminTemplatesFooter->write($module, $moduleDirname.'_admin_footer.tpl'); |
|
| 349 | 349 | $ret[] = $adminTemplatesFooter->render(); |
| 350 | 350 | // Templates Admin Header File |
| 351 | 351 | $adminTemplatesHeader = Tdmcreate\Files\Templates\Admin\TemplatesAdminHeader::getInstance(); |
| 352 | - $adminTemplatesHeader->write($module, $moduleDirname . '_admin_header.tpl'); |
|
| 352 | + $adminTemplatesHeader->write($module, $moduleDirname.'_admin_header.tpl'); |
|
| 353 | 353 | $ret[] = $adminTemplatesHeader->render(); |
| 354 | 354 | // Language Admin File |
| 355 | 355 | $languageAdmin = Tdmcreate\Files\Language\LanguageAdmin::getInstance(); |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $ret[] = $adminPermissions->render(); |
| 385 | 385 | // Templates Admin Permissions File |
| 386 | 386 | $adminTemplatesPermissions = Tdmcreate\Files\Templates\Admin\TemplatesAdminPermissions::getInstance(); |
| 387 | - $adminTemplatesPermissions->write($module, $moduleDirname . '_admin_permissions.tpl'); |
|
| 387 | + $adminTemplatesPermissions->write($module, $moduleDirname.'_admin_permissions.tpl'); |
|
| 388 | 388 | $ret[] = $adminTemplatesPermissions->render(); |
| 389 | 389 | } |
| 390 | 390 | // Creation of notifications files |
@@ -448,15 +448,15 @@ discard block |
||
| 448 | 448 | if (1 == $module->getVar('mod_admin')) { |
| 449 | 449 | // Templates Index File |
| 450 | 450 | $userTemplatesIndex = Tdmcreate\Files\Templates\User\Index::getInstance(); |
| 451 | - $userTemplatesIndex->write($module, $table, $tables, $moduleDirname . '_index.tpl'); |
|
| 451 | + $userTemplatesIndex->write($module, $table, $tables, $moduleDirname.'_index.tpl'); |
|
| 452 | 452 | $ret[] = $userTemplatesIndex->render(); |
| 453 | 453 | // Templates Footer File |
| 454 | 454 | $userTemplatesFooter = Tdmcreate\Files\Templates\User\Footer::getInstance(); |
| 455 | - $userTemplatesFooter->write($module, $table, $moduleDirname . '_footer.tpl'); |
|
| 455 | + $userTemplatesFooter->write($module, $table, $moduleDirname.'_footer.tpl'); |
|
| 456 | 456 | $ret[] = $userTemplatesFooter->render(); |
| 457 | 457 | // Templates Header File |
| 458 | 458 | $userTemplatesHeader = Tdmcreate\Files\Templates\User\Header::getInstance(); |
| 459 | - $userTemplatesHeader->write($module, $moduleDirname . '_header.tpl'); |
|
| 459 | + $userTemplatesHeader->write($module, $moduleDirname.'_header.tpl'); |
|
| 460 | 460 | $ret[] = $userTemplatesHeader->render(); |
| 461 | 461 | } |
| 462 | 462 | // Creation of user files |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | $ret[] = $userBroken->render(); |
| 483 | 483 | // User Templates Broken File |
| 484 | 484 | $userTemplatesBroken = Templates\User\Broken::getInstance(); |
| 485 | - $userTemplatesBroken->write($module, $table, $moduleDirname . '_broken.tpl'); |
|
| 485 | + $userTemplatesBroken->write($module, $table, $moduleDirname.'_broken.tpl'); |
|
| 486 | 486 | $ret[] = $userTemplatesBroken->render(); |
| 487 | 487 | } |
| 488 | 488 | // User Pdf File |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | $ret[] = $userPdf->render(); |
| 493 | 493 | // User Templates Pdf File |
| 494 | 494 | $userTemplatesPdf = Tdmcreate\Files\Templates\User\Pdf::getInstance(); |
| 495 | - $userTemplatesPdf->write($module, $moduleDirname . '_pdf.tpl'); |
|
| 495 | + $userTemplatesPdf->write($module, $moduleDirname.'_pdf.tpl'); |
|
| 496 | 496 | $ret[] = $userTemplatesPdf->render(); |
| 497 | 497 | } |
| 498 | 498 | // User Print File |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | $ret[] = $userPrint->render(); |
| 503 | 503 | // User Templates Print File |
| 504 | 504 | $userTemplatesPrint = Tdmcreate\Files\Templates\User\UserPrint::getInstance(); |
| 505 | - $userTemplatesPrint->write($module, $table, $moduleDirname . '_print.tpl'); |
|
| 505 | + $userTemplatesPrint->write($module, $table, $moduleDirname.'_print.tpl'); |
|
| 506 | 506 | $ret[] = $userTemplatesPrint->render(); |
| 507 | 507 | } |
| 508 | 508 | // User Rate File |
@@ -512,7 +512,7 @@ discard block |
||
| 512 | 512 | $ret[] = $userRate->render(); |
| 513 | 513 | // User Templates Rate File |
| 514 | 514 | $userTemplatesRate = Tdmcreate\Files\Templates\User\Rate::getInstance(); |
| 515 | - $userTemplatesRate->write($module, $table, $moduleDirname . '_rate.tpl'); |
|
| 515 | + $userTemplatesRate->write($module, $table, $moduleDirname.'_rate.tpl'); |
|
| 516 | 516 | $ret[] = $userTemplatesRate->render(); |
| 517 | 517 | } |
| 518 | 518 | // User Rss File |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | $ret[] = $userRss->render(); |
| 523 | 523 | // User Templates Rss File |
| 524 | 524 | $userTemplatesRss = Tdmcreate\Files\Templates\User\Rss::getInstance(); |
| 525 | - $userTemplatesRss->write($module, $moduleDirname . '_rss.tpl'); |
|
| 525 | + $userTemplatesRss->write($module, $moduleDirname.'_rss.tpl'); |
|
| 526 | 526 | $ret[] = $userTemplatesRss->render(); |
| 527 | 527 | } |
| 528 | 528 | // User Single File |
@@ -532,7 +532,7 @@ discard block |
||
| 532 | 532 | $ret[] = $userSingle->render(); |
| 533 | 533 | // User Templates Single File |
| 534 | 534 | $userTemplatesSingle = Tdmcreate\Files\Templates\User\Single::getInstance(); |
| 535 | - $userTemplatesSingle->write($module, $table, $moduleDirname . '_single.tpl'); |
|
| 535 | + $userTemplatesSingle->write($module, $table, $moduleDirname.'_single.tpl'); |
|
| 536 | 536 | $ret[] = $userTemplatesSingle->render(); |
| 537 | 537 | } |
| 538 | 538 | // User Submit File |
@@ -542,7 +542,7 @@ discard block |
||
| 542 | 542 | $ret[] = $userSubmit->render(); |
| 543 | 543 | // User Templates Submit File |
| 544 | 544 | $userTemplatesSubmit = Tdmcreate\Files\Templates\User\Submit::getInstance(); |
| 545 | - $userTemplatesSubmit->write($module, $table, $moduleDirname . '_submit.tpl'); |
|
| 545 | + $userTemplatesSubmit->write($module, $table, $moduleDirname.'_submit.tpl'); |
|
| 546 | 546 | $ret[] = $userTemplatesSubmit->render(); |
| 547 | 547 | }// User Visit File |
| 548 | 548 | if (in_array(1, $tableVisit)) { |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | $ret[] = $languageMain->render(); |
| 570 | 570 | // User Templates Submit File |
| 571 | 571 | $userTemplatesUserBreadcrumbs = Templates\User\Breadcrumbs::getInstance(); |
| 572 | - $userTemplatesUserBreadcrumbs->write($module, $moduleDirname . '_breadcrumbs.tpl'); |
|
| 572 | + $userTemplatesUserBreadcrumbs->write($module, $moduleDirname.'_breadcrumbs.tpl'); |
|
| 573 | 573 | $ret[] = $userTemplatesUserBreadcrumbs->render(); |
| 574 | 574 | } |
| 575 | 575 | // Css Admin Styles File |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | $ucfRightFiled = ucfirst($rightField); |
| 264 | 264 | $value = "date_create_from_format(_SHORTDATESTRING, \$_POST['{$fieldName}'])"; |
| 265 | 265 | $ret = $this->getXcEqualsOperator("\${$tableSoleName}{$ucfRightFiled}", $value, null, false, $t); |
| 266 | - $ret .= $this->getXcSetVar($tableName, $fieldName, "\${$tableSoleName}{$ucfRightFiled}->getTimestamp()", $t); |
|
| 266 | + $ret .= $this->getXcSetVar($tableName, $fieldName, "\${$tableSoleName}{$ucfRightFiled}->getTimestamp()", $t); |
|
| 267 | 267 | |
| 268 | 268 | return $ret; |
| 269 | 269 | } |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | { |
| 382 | 382 | $ucfModuleDirname = ucfirst($moduleDirname); |
| 383 | 383 | $ret = "{$t}// Get instance of module\n"; |
| 384 | - $ret .= "{$t}\${$moduleDirname} = {$ucfModuleDirname}Helper::getInstance();\n"; |
|
| 384 | + $ret .= "{$t}\${$moduleDirname} = {$ucfModuleDirname}Helper::getInstance();\n"; |
|
| 385 | 385 | |
| 386 | 386 | return $ret; |
| 387 | 387 | } |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | $pTopic = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 479 | 479 | $ret = $pTopic->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t); |
| 480 | 480 | $fieldParent = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, ''); |
| 481 | - $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic . 'Handler', false, $t); |
|
| 481 | + $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic.'Handler', false, $t); |
|
| 482 | 482 | $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t); |
| 483 | 483 | |
| 484 | 484 | return $ret; |
@@ -499,8 +499,8 @@ discard block |
||
| 499 | 499 | public function getXcParentTopicGetVar($moduleDirname, $lpFieldName, $rpFieldName, $tableName, $tableSoleNameTopic, $tableNameTopic, $fieldNameParent, $t = '') |
| 500 | 500 | { |
| 501 | 501 | $pParentTopic = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 502 | - $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic . ' Handler', $t . "\t"); |
|
| 503 | - $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t . "\t"); |
|
| 502 | + $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic.' Handler', $t."\t"); |
|
| 503 | + $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t."\t"); |
|
| 504 | 504 | $elseGroups = $this->getXcEqualsOperator('$groups', 'XOOPS_GROUP_ANONYMOUS'); |
| 505 | 505 | $ret = $pParentTopic->getPhpCodeConditions("!isset(\${$tableNameTopic}Handler", '', '', $parentTopic, $elseGroups); |
| 506 | 506 | $ret .= $this->getXcGetVarFromID("\${$lpFieldName}['{$rpFieldName}']", $tableNameTopic, $tableSoleNameTopic, $tableName, $fieldNameParent, $t); |
@@ -523,8 +523,8 @@ discard block |
||
| 523 | 523 | $pVarFromID = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 524 | 524 | $ret = $pVarFromID->getPhpCodeCommentLine('Get Var', $fieldName, $t); |
| 525 | 525 | $getVarFromID = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, ''); |
| 526 | - $rightGet = $this->getXcAnchorFunction($anchor . 'Handler', 'get' . $var . 'FromId', $getVarFromID); |
|
| 527 | - $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t); |
|
| 526 | + $rightGet = $this->getXcAnchorFunction($anchor.'Handler', 'get'.$var.'FromId', $getVarFromID); |
|
| 527 | + $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t); |
|
| 528 | 528 | |
| 529 | 529 | return $ret; |
| 530 | 530 | } |
@@ -575,7 +575,7 @@ discard block |
||
| 575 | 575 | $phpCodeTextArea = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 576 | 576 | $getVar = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, ''); |
| 577 | 577 | |
| 578 | - return $t . $phpCodeTextArea->getPhpCodeStripTags("{$lpFieldName}['{$rpFieldName}']", $getVar, false, $t); |
|
| 578 | + return $t.$phpCodeTextArea->getPhpCodeStripTags("{$lpFieldName}['{$rpFieldName}']", $getVar, false, $t); |
|
| 579 | 579 | } |
| 580 | 580 | |
| 581 | 581 | /** |
@@ -786,9 +786,9 @@ discard block |
||
| 786 | 786 | { |
| 787 | 787 | $assign = "{$t}\$GLOBALS['xoopsTpl']->assign("; |
| 788 | 788 | if (false === $leftIsString) { |
| 789 | - $ret = $assign . "{$tplString}, {$phpRender});\n"; |
|
| 789 | + $ret = $assign."{$tplString}, {$phpRender});\n"; |
|
| 790 | 790 | } else { |
| 791 | - $ret = $assign . "'{$tplString}', {$phpRender});\n"; |
|
| 791 | + $ret = $assign."'{$tplString}', {$phpRender});\n"; |
|
| 792 | 792 | } |
| 793 | 793 | |
| 794 | 794 | return $ret; |
@@ -857,7 +857,7 @@ discard block |
||
| 857 | 857 | return "{$t}\$GLOBALS['xoopsTpl']->display(\"db:{$displayTpl}\");\n"; |
| 858 | 858 | } |
| 859 | 859 | |
| 860 | - return "{$t}\$GLOBALS['xoopsTpl']->display('db:" . $displayTpl . "');\n"; |
|
| 860 | + return "{$t}\$GLOBALS['xoopsTpl']->display('db:".$displayTpl."');\n"; |
|
| 861 | 861 | } |
| 862 | 862 | |
| 863 | 863 | /** |
@@ -1103,10 +1103,10 @@ discard block |
||
| 1103 | 1103 | $phpCodeSecurity = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 1104 | 1104 | $securityError = $this->getXcSecurityErrors(); |
| 1105 | 1105 | $implode = $phpCodeSecurity->getPhpCodeImplode(',', $securityError); |
| 1106 | - $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '', 3, $implode, $t); |
|
| 1106 | + $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '', 3, $implode, $t); |
|
| 1107 | 1107 | $securityCheck = $this->getXcSecurityCheck(); |
| 1108 | 1108 | |
| 1109 | - return $phpCodeSecurity->getPhpCodeConditions('!' . $securityCheck, '', '', $content, $t); |
|
| 1109 | + return $phpCodeSecurity->getPhpCodeConditions('!'.$securityCheck, '', '', $content, $t); |
|
| 1110 | 1110 | } |
| 1111 | 1111 | |
| 1112 | 1112 | /** |
@@ -1119,7 +1119,7 @@ discard block |
||
| 1119 | 1119 | public function getXcInsertData($tableName, $language, $t = '') |
| 1120 | 1120 | { |
| 1121 | 1121 | $phpCodeInsertData = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 1122 | - $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK"); |
|
| 1122 | + $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK"); |
|
| 1123 | 1123 | $handlerInsert = $this->getXcHandler($tableName, $tableName, false, true, false, 'Obj'); |
| 1124 | 1124 | |
| 1125 | 1125 | return $phpCodeInsertData->getPhpCodeConditions($handlerInsert, '', '', $content, $t); |
@@ -1166,8 +1166,8 @@ discard block |
||
| 1166 | 1166 | $phpXoopsConfirm = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 1167 | 1167 | $array = "array('ok' => 1, '{$fieldId}' => \${$ccFieldId}, 'op' => '{$options}')"; |
| 1168 | 1168 | $server = $phpXoopsConfirm->getPhpCodeGlobalsVariables('REQUEST_URI', 'SERVER'); |
| 1169 | - $getVar = $this->getXcGetVar('', $tableName . 'Obj', $fieldMain, true, ''); |
|
| 1170 | - $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language . 'FORM_SURE_' . $stuOptions, $getVar); |
|
| 1169 | + $getVar = $this->getXcGetVar('', $tableName.'Obj', $fieldMain, true, ''); |
|
| 1170 | + $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language.'FORM_SURE_'.$stuOptions, $getVar); |
|
| 1171 | 1171 | $ret = "{$t}xoops_confirm({$array}, {$server}, {$sprintf});\n"; |
| 1172 | 1172 | |
| 1173 | 1173 | return $ret; |
@@ -1339,7 +1339,7 @@ discard block |
||
| 1339 | 1339 | { |
| 1340 | 1340 | $ret = Tdmcreate\Files\CreatePhpCode::getInstance()->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t); |
| 1341 | 1341 | $paramGet = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, ''); |
| 1342 | - $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic . 'Handler', false, $t); |
|
| 1342 | + $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic.'Handler', false, $t); |
|
| 1343 | 1343 | $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t); |
| 1344 | 1344 | |
| 1345 | 1345 | return $ret; |
@@ -1480,9 +1480,9 @@ discard block |
||
| 1480 | 1480 | $phpCodePageNav = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 1481 | 1481 | $classXCode = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 1482 | 1482 | $ret = $phpCodePageNav->getPhpCodeCommentLine('Display Navigation', null, $t); |
| 1483 | - $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t . "\t"); |
|
| 1484 | - $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName . 'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t . "\t"); |
|
| 1485 | - $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t . "\t"); |
|
| 1483 | + $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t."\t"); |
|
| 1484 | + $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName.'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t."\t"); |
|
| 1485 | + $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t."\t"); |
|
| 1486 | 1486 | $ret .= $phpCodePageNav->getPhpCodeConditions("\${$tableName}Count", ' > ', '$limit', $condition, false, $t); |
| 1487 | 1487 | |
| 1488 | 1488 | return $ret; |
@@ -90,8 +90,8 @@ discard block |
||
| 90 | 90 | $ret .= $this->defines->getAboveDefines($ucfTableName); |
| 91 | 91 | $fields = $this->getTableFields($tables[$t]->getVar('table_mid'), $tables[$t]->getVar('table_id')); |
| 92 | 92 | $stuTableName = mb_strtoupper($tableName); |
| 93 | - $ret .= $this->defines->getDefine($language, $stuTableName . '_TO_DISPLAY', $ucfTableName . ' to Display'); |
|
| 94 | - $ret .= $this->defines->getDefine($language, 'ALL_' . $stuTableName, 'All ' . $ucfTableName); |
|
| 93 | + $ret .= $this->defines->getDefine($language, $stuTableName.'_TO_DISPLAY', $ucfTableName.' to Display'); |
|
| 94 | + $ret .= $this->defines->getDefine($language, 'ALL_'.$stuTableName, 'All '.$ucfTableName); |
|
| 95 | 95 | foreach (array_keys($fields) as $f) { |
| 96 | 96 | $fieldName = $fields[$f]->getVar('field_name'); |
| 97 | 97 | $stuFieldName = mb_strtoupper($fieldName); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $content .= $this->getLanguageBlock($module, $language); |
| 137 | 137 | $content .= $this->getLanguageFooter(); |
| 138 | 138 | |
| 139 | - $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 139 | + $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 140 | 140 | |
| 141 | 141 | return $this->renderFile(); |
| 142 | 142 | } |
@@ -103,13 +103,13 @@ discard block |
||
| 103 | 103 | $tables = $this->getTableTables($module->getVar('mod_id'), 'table_order'); |
| 104 | 104 | $menu = 1; |
| 105 | 105 | $ret = $df->getAboveHeadDefines('Admin Menu'); |
| 106 | - $ret .= $df->getDefine($language, "ADMENU{$menu}", 'Dashboard'); |
|
| 106 | + $ret .= $df->getDefine($language, "ADMENU{$menu}", 'Dashboard'); |
|
| 107 | 107 | $tablePermissions = []; |
| 108 | 108 | foreach (array_keys($tables) as $i) { |
| 109 | 109 | ++$menu; |
| 110 | 110 | $tablePermissions[] = $tables[$i]->getVar('table_permissions'); |
| 111 | 111 | $ucfTableName = ucfirst($tables[$i]->getVar('table_name')); |
| 112 | - $ret .= $df->getDefine($language, "ADMENU{$menu}", $ucfTableName); |
|
| 112 | + $ret .= $df->getDefine($language, "ADMENU{$menu}", $ucfTableName); |
|
| 113 | 113 | } |
| 114 | 114 | if (in_array(1, $tablePermissions)) { |
| 115 | 115 | ++$menu; |
@@ -248,8 +248,8 @@ discard block |
||
| 248 | 248 | $rpFieldName = $this->getRightString($fieldName); |
| 249 | 249 | $ucfFieldName = ucfirst($rpFieldName); |
| 250 | 250 | $stuFieldName = mb_strtoupper($rpFieldName); |
| 251 | - $ret .= $df->getDefine($language, 'EDITOR_' . $stuFieldName, 'Editor'); |
|
| 252 | - $ret .= $df->getDefine($language, 'EDITOR_' . $stuFieldName . '_DESC', 'Select the Editor ' . $ucfFieldName . ' to use'); |
|
| 251 | + $ret .= $df->getDefine($language, 'EDITOR_'.$stuFieldName, 'Editor'); |
|
| 252 | + $ret .= $df->getDefine($language, 'EDITOR_'.$stuFieldName.'_DESC', 'Select the Editor '.$ucfFieldName.' to use'); |
|
| 253 | 253 | } |
| 254 | 254 | if (13 == $fieldElement) { |
| 255 | 255 | $fieldImage = true; |
@@ -347,42 +347,42 @@ discard block |
||
| 347 | 347 | 'CATEGORY_SUBMIT_NOTIFY_CAPTION' => 'Category submit notify caption', |
| 348 | 348 | 'CATEGORY_SUBMIT_NOTIFY_DESC' => 'Category submit notify desc', |
| 349 | 349 | 'CATEGORY_SUBMIT_NOTIFY_SUBJECT' => 'Category submit notify subject', |
| 350 | - $stuTableSoleName . '_NOTIFY' => $ucfTableSoleName . ' notify', |
|
| 351 | - $stuTableSoleName . '_NOTIFY_DESC' => $ucfTableSoleName . ' notify desc', |
|
| 352 | - $stuTableSoleName . '_NOTIFY_CAPTION' => $ucfTableSoleName . ' notify caption', |
|
| 353 | - $stuTableSoleName . '_NOTIFY_SUBJECT' => $ucfTableSoleName . ' notify subject', |
|
| 350 | + $stuTableSoleName.'_NOTIFY' => $ucfTableSoleName.' notify', |
|
| 351 | + $stuTableSoleName.'_NOTIFY_DESC' => $ucfTableSoleName.' notify desc', |
|
| 352 | + $stuTableSoleName.'_NOTIFY_CAPTION' => $ucfTableSoleName.' notify caption', |
|
| 353 | + $stuTableSoleName.'_NOTIFY_SUBJECT' => $ucfTableSoleName.' notify subject', |
|
| 354 | 354 | 'GLOBAL_NEW_CATEGORY_NOTIFY' => 'Global newcategory notify', |
| 355 | 355 | 'GLOBAL_NEW_CATEGORY_NOTIFY_CAPTION' => 'Global newcategory notify caption', |
| 356 | 356 | 'GLOBAL_NEW_CATEGORY_NOTIFY_DESC' => 'Global newcategory notify desc', |
| 357 | 357 | 'GLOBAL_NEW_CATEGORY_NOTIFY_SUBJECT' => 'Global newcategory notify subject', |
| 358 | - 'GLOBAL_' . $stuTableSoleName . '_MODIFY_NOTIFY' => 'Global ' . $tableSoleName . ' modify notify', |
|
| 359 | - 'GLOBAL_' . $stuTableSoleName . '_MODIFY_NOTIFY_CAPTION' => 'Global ' . $tableSoleName . ' modify notify caption', |
|
| 360 | - 'GLOBAL_' . $stuTableSoleName . '_MODIFY_NOTIFY_DESC' => 'Global ' . $tableSoleName . ' modify notify desc', |
|
| 361 | - 'GLOBAL_' . $stuTableSoleName . '_MODIFY_NOTIFY_SUBJECT' => 'Global ' . $tableSoleName . ' modify notify subject', |
|
| 362 | - 'GLOBAL_' . $stuTableSoleName . '_BROKEN_NOTIFY' => 'Global ' . $tableSoleName . ' broken notify', |
|
| 363 | - 'GLOBAL_' . $stuTableSoleName . '_BROKEN_NOTIFY_CAPTION' => 'Global ' . $tableSoleName . ' broken notify caption', |
|
| 364 | - 'GLOBAL_' . $stuTableSoleName . '_BROKEN_NOTIFY_DESC' => 'Global ' . $tableSoleName . ' broken notify desc', |
|
| 365 | - 'GLOBAL_' . $stuTableSoleName . '_BROKEN_NOTIFY_SUBJECT' => 'Global ' . $tableSoleName . ' broken notify subject', |
|
| 366 | - 'GLOBAL_' . $stuTableSoleName . '_SUBMIT_NOTIFY' => 'Global ' . $tableSoleName . ' submit notify', |
|
| 367 | - 'GLOBAL_' . $stuTableSoleName . '_SUBMIT_NOTIFY_CAPTION' => 'Global ' . $tableSoleName . ' submit notify caption', |
|
| 368 | - 'GLOBAL_' . $stuTableSoleName . '_SUBMIT_NOTIFY_DESC' => 'Global ' . $tableSoleName . ' submit notify desc', |
|
| 369 | - 'GLOBAL_' . $stuTableSoleName . '_SUBMIT_NOTIFY_SUBJECT' => 'Global ' . $tableSoleName . ' submit notify subject', |
|
| 370 | - 'GLOBAL_NEW_' . $stuTableSoleName . '_NOTIFY' => 'Global new ' . $tableSoleName . ' notify', |
|
| 371 | - 'GLOBAL_NEW_' . $stuTableSoleName . '_NOTIFY_CAPTION' => 'Global new ' . $tableSoleName . ' notify caption', |
|
| 372 | - 'GLOBAL_NEW_' . $stuTableSoleName . '_NOTIFY_DESC' => 'Global new ' . $tableSoleName . ' notify desc', |
|
| 373 | - 'GLOBAL_NEW_' . $stuTableSoleName . '_NOTIFY_SUBJECT' => 'Global new ' . $tableSoleName . ' notify subject', |
|
| 374 | - 'CATEGORY_' . $stuTableSoleName . '_SUBMIT_NOTIFY' => 'Category ' . $tableSoleName . ' submit notify', |
|
| 375 | - 'CATEGORY_' . $stuTableSoleName . '_SUBMIT_NOTIFY_CAPTION' => 'Category ' . $tableSoleName . ' submit notify caption', |
|
| 376 | - 'CATEGORY_' . $stuTableSoleName . '_SUBMIT_NOTIFY_DESC' => 'Category ' . $tableSoleName . ' submit notify desc', |
|
| 377 | - 'CATEGORY_' . $stuTableSoleName . '_SUBMIT_NOTIFY_SUBJECT' => 'Category ' . $tableSoleName . ' submit notify subject', |
|
| 378 | - 'CATEGORY_NEW_' . $stuTableSoleName . '_NOTIFY' => 'Category new ' . $tableSoleName . ' notify', |
|
| 379 | - 'CATEGORY_NEW_' . $stuTableSoleName . '_NOTIFY_CAPTION' => 'Category new ' . $tableSoleName . ' notify caption', |
|
| 380 | - 'CATEGORY_NEW_' . $stuTableSoleName . '_NOTIFY_DESC' => 'Category new ' . $tableSoleName . ' notify desc', |
|
| 381 | - 'CATEGORY_NEW_' . $stuTableSoleName . '_NOTIFY_SUBJECT' => 'Category new ' . $tableSoleName . ' notify subject', |
|
| 382 | - 'APPROVE_NOTIFY' => $ucfTableSoleName . ' approve notify', |
|
| 383 | - 'APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName . ' approve notify caption', |
|
| 384 | - 'APPROVE_NOTIFY_DESC' => $ucfTableSoleName . ' approve notify desc', |
|
| 385 | - 'APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName . ' approve notify subject', |
|
| 358 | + 'GLOBAL_'.$stuTableSoleName.'_MODIFY_NOTIFY' => 'Global '.$tableSoleName.' modify notify', |
|
| 359 | + 'GLOBAL_'.$stuTableSoleName.'_MODIFY_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' modify notify caption', |
|
| 360 | + 'GLOBAL_'.$stuTableSoleName.'_MODIFY_NOTIFY_DESC' => 'Global '.$tableSoleName.' modify notify desc', |
|
| 361 | + 'GLOBAL_'.$stuTableSoleName.'_MODIFY_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.' modify notify subject', |
|
| 362 | + 'GLOBAL_'.$stuTableSoleName.'_BROKEN_NOTIFY' => 'Global '.$tableSoleName.' broken notify', |
|
| 363 | + 'GLOBAL_'.$stuTableSoleName.'_BROKEN_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' broken notify caption', |
|
| 364 | + 'GLOBAL_'.$stuTableSoleName.'_BROKEN_NOTIFY_DESC' => 'Global '.$tableSoleName.' broken notify desc', |
|
| 365 | + 'GLOBAL_'.$stuTableSoleName.'_BROKEN_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.' broken notify subject', |
|
| 366 | + 'GLOBAL_'.$stuTableSoleName.'_SUBMIT_NOTIFY' => 'Global '.$tableSoleName.' submit notify', |
|
| 367 | + 'GLOBAL_'.$stuTableSoleName.'_SUBMIT_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' submit notify caption', |
|
| 368 | + 'GLOBAL_'.$stuTableSoleName.'_SUBMIT_NOTIFY_DESC' => 'Global '.$tableSoleName.' submit notify desc', |
|
| 369 | + 'GLOBAL_'.$stuTableSoleName.'_SUBMIT_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.' submit notify subject', |
|
| 370 | + 'GLOBAL_NEW_'.$stuTableSoleName.'_NOTIFY' => 'Global new '.$tableSoleName.' notify', |
|
| 371 | + 'GLOBAL_NEW_'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Global new '.$tableSoleName.' notify caption', |
|
| 372 | + 'GLOBAL_NEW_'.$stuTableSoleName.'_NOTIFY_DESC' => 'Global new '.$tableSoleName.' notify desc', |
|
| 373 | + 'GLOBAL_NEW_'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Global new '.$tableSoleName.' notify subject', |
|
| 374 | + 'CATEGORY_'.$stuTableSoleName.'_SUBMIT_NOTIFY' => 'Category '.$tableSoleName.' submit notify', |
|
| 375 | + 'CATEGORY_'.$stuTableSoleName.'_SUBMIT_NOTIFY_CAPTION' => 'Category '.$tableSoleName.' submit notify caption', |
|
| 376 | + 'CATEGORY_'.$stuTableSoleName.'_SUBMIT_NOTIFY_DESC' => 'Category '.$tableSoleName.' submit notify desc', |
|
| 377 | + 'CATEGORY_'.$stuTableSoleName.'_SUBMIT_NOTIFY_SUBJECT' => 'Category '.$tableSoleName.' submit notify subject', |
|
| 378 | + 'CATEGORY_NEW_'.$stuTableSoleName.'_NOTIFY' => 'Category new '.$tableSoleName.' notify', |
|
| 379 | + 'CATEGORY_NEW_'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Category new '.$tableSoleName.' notify caption', |
|
| 380 | + 'CATEGORY_NEW_'.$stuTableSoleName.'_NOTIFY_DESC' => 'Category new '.$tableSoleName.' notify desc', |
|
| 381 | + 'CATEGORY_NEW_'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Category new '.$tableSoleName.' notify subject', |
|
| 382 | + 'APPROVE_NOTIFY' => $ucfTableSoleName.' approve notify', |
|
| 383 | + 'APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName.' approve notify caption', |
|
| 384 | + 'APPROVE_NOTIFY_DESC' => $ucfTableSoleName.' approve notify desc', |
|
| 385 | + 'APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName.' approve notify subject', |
|
| 386 | 386 | ]; |
| 387 | 387 | foreach ($getDefinesNotif as $defn => $descn) { |
| 388 | 388 | $ret .= $df->getDefine($language, $defn, $descn); |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | } |
| 476 | 476 | $content .= $this->getLanguageFooter(); |
| 477 | 477 | |
| 478 | - $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 478 | + $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 479 | 479 | |
| 480 | 480 | return $this->renderFile(); |
| 481 | 481 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $form->addElement(new \XoopsFormRadioYN(_AM_TDMCREATE_MODULE_INROOT_COPY, 'inroot_copy', $helper->getConfig('inroot_copy'))); |
| 74 | 74 | |
| 75 | 75 | $form->addElement(new \XoopsFormHidden('op', 'build')); |
| 76 | - $form->addElement(new \XoopsFormButton(_REQUIRED . ' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit')); |
|
| 76 | + $form->addElement(new \XoopsFormButton(_REQUIRED.' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit')); |
|
| 77 | 77 | |
| 78 | 78 | return $form; |
| 79 | 79 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | public function clearDir($dir, $pattern = '*') |
| 86 | 86 | { |
| 87 | 87 | // Find all files and folders matching pattern |
| 88 | - $files = glob($dir . "/$pattern"); |
|
| 88 | + $files = glob($dir."/$pattern"); |
|
| 89 | 89 | // Interate thorugh the files and folders |
| 90 | 90 | foreach ($files as $file) { |
| 91 | 91 | // if it's a directory then re-call clearDir function to delete files inside this directory |
@@ -112,12 +112,12 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | while (false !== ($file = readdir($dir))) { |
| 114 | 114 | if (('.' !== $file) && ('..' !== $file)) { |
| 115 | - if (is_dir($src . '/' . $file)) { |
|
| 115 | + if (is_dir($src.'/'.$file)) { |
|
| 116 | 116 | // Copy the directory itself |
| 117 | - $this->copyDir($src . '/' . $file, $dst . '/' . $file); |
|
| 117 | + $this->copyDir($src.'/'.$file, $dst.'/'.$file); |
|
| 118 | 118 | } else { |
| 119 | 119 | // Make sure you copy the current script |
| 120 | - copy($src . '/' . $file, $dst . '/' . $file); |
|
| 120 | + copy($src.'/'.$file, $dst.'/'.$file); |
|
| 121 | 121 | } |
| 122 | 122 | } |
| 123 | 123 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $modversion['release_info'] = 'README'; |
| 41 | 41 | $modversion['release_file'] = 'https://github.com/txmodxoops/tdmcreate-1.91/releases'; |
| 42 | 42 | $modversion['manual'] = 'MANUAL'; |
| 43 | -$modversion['manual_file'] = XOOPS_URL . "/modules/{$moduleDirName}/docs/manual.txt"; |
|
| 43 | +$modversion['manual_file'] = XOOPS_URL."/modules/{$moduleDirName}/docs/manual.txt"; |
|
| 44 | 44 | $modversion['image'] = "assets/images/logoModule.png"; |
| 45 | 45 | $modversion['dirname'] = $moduleDirName; |
| 46 | 46 | // Frameworks icons |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | // Module icons |
| 51 | 51 | $modversion['modicons16'] = 'assets/images/icons/16'; |
| 52 | 52 | $modversion['modicons32'] = 'assets/images/icons/32'; |
| 53 | -$modversion['targetdir'] = XOOPS_UPLOAD_PATH . "/{$moduleDirName}/repository/"; |
|
| 53 | +$modversion['targetdir'] = XOOPS_UPLOAD_PATH."/{$moduleDirName}/repository/"; |
|
| 54 | 54 | $modversion['module_website_url'] = 'https://github.com/txmodxoops/tdmcreate-1.91'; |
| 55 | 55 | $modversion['module_website_name'] = 'GitHub Txmodx Xoops'; |
| 56 | 56 | $modversion['min_php'] = '7.0'; |
@@ -86,17 +86,17 @@ discard block |
||
| 86 | 86 | $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; |
| 87 | 87 | // Tables created by sql file (without prefix!) |
| 88 | 88 | $modversion['tables'] = [ |
| 89 | - $moduleDirName . '_' . 'settings', |
|
| 90 | - $moduleDirName . '_' . 'modules', |
|
| 91 | - $moduleDirName . '_' . 'tables', |
|
| 92 | - $moduleDirName . '_' . 'fields', |
|
| 93 | - $moduleDirName . '_' . 'languages', |
|
| 94 | - $moduleDirName . '_' . 'fieldtype', |
|
| 95 | - $moduleDirName . '_' . 'fieldattributes', |
|
| 96 | - $moduleDirName . '_' . 'fieldnull', |
|
| 97 | - $moduleDirName . '_' . 'fieldkey', |
|
| 98 | - $moduleDirName . '_' . 'fieldelements', |
|
| 99 | - $moduleDirName . '_' . 'morefiles', |
|
| 89 | + $moduleDirName.'_'.'settings', |
|
| 90 | + $moduleDirName.'_'.'modules', |
|
| 91 | + $moduleDirName.'_'.'tables', |
|
| 92 | + $moduleDirName.'_'.'fields', |
|
| 93 | + $moduleDirName.'_'.'languages', |
|
| 94 | + $moduleDirName.'_'.'fieldtype', |
|
| 95 | + $moduleDirName.'_'.'fieldattributes', |
|
| 96 | + $moduleDirName.'_'.'fieldnull', |
|
| 97 | + $moduleDirName.'_'.'fieldkey', |
|
| 98 | + $moduleDirName.'_'.'fieldelements', |
|
| 99 | + $moduleDirName.'_'.'morefiles', |
|
| 100 | 100 | ]; |
| 101 | 101 | // Scripts to run upon installation or update |
| 102 | 102 | $modversion['onInstall'] = 'include/install.php'; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $c = 1; |
| 108 | 108 | |
| 109 | 109 | $modversion['config'][] = [ |
| 110 | - 'name' => 'break' . $c, |
|
| 110 | + 'name' => 'break'.$c, |
|
| 111 | 111 | 'title' => '_MI_TDMCREATE_CONFIG_BREAK_GENERAL', |
| 112 | 112 | 'description' => '_MI_TDMCREATE_CONFIG_', |
| 113 | 113 | 'formtype' => 'line_break', |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | ++$c; |
| 197 | 197 | $modversion['config'][] = [ |
| 198 | - 'name' => 'break' . $c, |
|
| 198 | + 'name' => 'break'.$c, |
|
| 199 | 199 | 'title' => '_MI_TDMCREATE_CONFIG_BREAK_REQUIRED', |
| 200 | 200 | 'description' => '_MI_TDMCREATE_CONFIG_', |
| 201 | 201 | 'formtype' => 'line_break', |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | |
| 377 | 377 | ++$c; |
| 378 | 378 | $modversion['config'][] = [ |
| 379 | - 'name' => 'break' . $c, |
|
| 379 | + 'name' => 'break'.$c, |
|
| 380 | 380 | 'title' => '_MI_TDMCREATE_CONFIG_BREAK_OPTIONAL', |
| 381 | 381 | 'description' => '_MI_TDMCREATE_CONFIG_', |
| 382 | 382 | 'formtype' => 'line_break', |
@@ -580,8 +580,8 @@ discard block |
||
| 580 | 580 | */ |
| 581 | 581 | $modversion['config'][] = [ |
| 582 | 582 | 'name' => 'displaySampleButton', |
| 583 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', |
|
| 584 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', |
|
| 583 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', |
|
| 584 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC', |
|
| 585 | 585 | 'formtype' => 'yesno', |
| 586 | 586 | 'valuetype' => 'int', |
| 587 | 587 | 'default' => 1, |
@@ -592,8 +592,8 @@ discard block |
||
| 592 | 592 | */ |
| 593 | 593 | $modversion['config'][] = [ |
| 594 | 594 | 'name' => 'displayDeveloperTools', |
| 595 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', |
|
| 596 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', |
|
| 595 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', |
|
| 596 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', |
|
| 597 | 597 | 'formtype' => 'yesno', |
| 598 | 598 | 'valuetype' => 'int', |
| 599 | 599 | 'default' => 0, |