@@ -259,7 +259,7 @@ |
||
| 259 | 259 | { |
| 260 | 260 | $retSet = []; |
| 261 | 261 | foreach ($this->options as $option) { |
| 262 | - if (1 == $this->getVar('set_' . $option)) { |
|
| 262 | + if (1 == $this->getVar('set_'.$option)) { |
|
| 263 | 263 | array_push($retSet, $option); |
| 264 | 264 | } |
| 265 | 265 | } |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $imageIcon = imagecreatefrompng($iconFile); |
| 385 | 385 | // Write text |
| 386 | 386 | $textColor = imagecolorallocate($imageModule, 0, 0, 0); |
| 387 | - $spaceBorder = (92 - strlen($moduleDirname) * 7.5) / 2; |
|
| 387 | + $spaceBorder = (92-strlen($moduleDirname) * 7.5) / 2; |
|
| 388 | 388 | imagefttext($imageModule, 8.5, 0, $spaceBorder, 45, $textColor, $font, ucfirst($moduleDirname), []); |
| 389 | 389 | imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32); |
| 390 | 390 | $logoImg = '/'.$moduleDirname.'_logo.png'; |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | { |
| 435 | 435 | $retModules = []; |
| 436 | 436 | foreach ($this->options as $option) { |
| 437 | - if (1 == $this->getVar('mod_' . $option)) { |
|
| 437 | + if (1 == $this->getVar('mod_'.$option)) { |
|
| 438 | 438 | array_push($retModules, $option); |
| 439 | 439 | } |
| 440 | 440 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $link = $sc->getSmartyDoubleVar('itm', 'link'); |
| 83 | 83 | $glyph = $hc->getHtmlTag('i', ['class' => 'glyphicon glyphicon-home'], '', false, true); |
| 84 | 84 | $anchor = $hc->getHtmlAnchor('<{xoAppUrl index.php}>', $glyph, 'home'); |
| 85 | - $into = $hc->getHtmlTag('li', ['class' => 'bc-item'], $anchor, false, true, $t) . PHP_EOL; |
|
| 85 | + $into = $hc->getHtmlTag('li', ['class' => 'bc-item'], $anchor, false, true, $t).PHP_EOL; |
|
| 86 | 86 | $anchorIf = $hc->getHtmlAnchor($link, $title, $title, '', '', '', $t."\t").PHP_EOL; |
| 87 | 87 | $breadcrumb = $sc->getSmartyConditions('itm.link', '', '', $anchorIf, $titleElse, false, false, $t); |
| 88 | 88 | $foreach = $hc->getHtmlTag('li', ['class' => 'bc-item'], $breadcrumb, false, false, $t); |
@@ -96,12 +96,12 @@ |
||
| 96 | 96 | $stuFieldName = strtoupper($fieldName); |
| 97 | 97 | if ((1 == $tableAutoincrement) || (1 == $fields[$f]->getVar('field_user'))) { |
| 98 | 98 | $const = $hc->getSmartyConst($language, $stuFieldName); |
| 99 | - $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const) . PHP_EOL; |
|
| 99 | + $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const).PHP_EOL; |
|
| 100 | 100 | } |
| 101 | 101 | } |
| 102 | - $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL; |
|
| 102 | + $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL; |
|
| 103 | 103 | |
| 104 | - return $hc->getHtmlTag('thead', ['class' => 'outer'], $tr) . PHP_EOL; |
|
| 104 | + return $hc->getHtmlTag('thead', ['class' => 'outer'], $tr).PHP_EOL; |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true).PHP_EOL; |
| 78 | 78 | $content .= $hc->getHtmlComment('About Page').PHP_EOL; |
| 79 | 79 | $single = $hc->getSmartySingleVar('about'); |
| 80 | - $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single) . PHP_EOL; |
|
| 80 | + $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single).PHP_EOL; |
|
| 81 | 81 | $content .= $hc->getHtmlComment('Footer').PHP_EOL; |
| 82 | 82 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'footer', true, true); |
| 83 | 83 | |
@@ -85,8 +85,8 @@ |
||
| 85 | 85 | { |
| 86 | 86 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
| 87 | 87 | $form = $hc->getSmartySingleVar('form'); |
| 88 | - $ret = $hc->getHtmlTag('div', ['class' => 'spacer'], $form) . PHP_EOL; |
|
| 89 | - $ret .= $hc->getHtmlTag('br', [], '', false) . PHP_EOL; |
|
| 88 | + $ret = $hc->getHtmlTag('div', ['class' => 'spacer'], $form).PHP_EOL; |
|
| 89 | + $ret .= $hc->getHtmlTag('br', [], '', false).PHP_EOL; |
|
| 90 | 90 | |
| 91 | 91 | return $ret; |
| 92 | 92 | } |
@@ -78,12 +78,12 @@ |
||
| 78 | 78 | $language = $this->getLanguage($moduleDirname, 'AM'); |
| 79 | 79 | |
| 80 | 80 | $singleNoVar = $hc->getSmartyNoSimbol('xoModuleIcons32 xoopsmicrobutton.gif'); |
| 81 | - $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', false) . PHP_EOL; |
|
| 82 | - $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img) . PHP_EOL; |
|
| 83 | - $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor) . PHP_EOL; |
|
| 81 | + $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', false).PHP_EOL; |
|
| 82 | + $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img).PHP_EOL; |
|
| 83 | + $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor).PHP_EOL; |
|
| 84 | 84 | $tree = $hc->getHtmlTag('strong', [], $moduleName); |
| 85 | 85 | $tree .= $hc->getSmartyConst($language, 'MAINTAINEDBY').PHP_EOL; |
| 86 | - $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit ' . $supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName); |
|
| 86 | + $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit '.$supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName); |
|
| 87 | 87 | $content .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], $tree); |
| 88 | 88 | |
| 89 | 89 | $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true).PHP_EOL; |
| 79 | 79 | $content .= $hc->getHtmlComment('Index Page').PHP_EOL; |
| 80 | 80 | $single = $hc->getSmartySingleVar('index'); |
| 81 | - $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single) . PHP_EOL; |
|
| 81 | + $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single).PHP_EOL; |
|
| 82 | 82 | $content .= $hc->getHtmlComment('Footer').PHP_EOL; |
| 83 | 83 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'footer', true, true); |
| 84 | 84 | |
@@ -75,9 +75,9 @@ |
||
| 75 | 75 | $moduleDirname = $module->getVar('mod_dirname'); |
| 76 | 76 | |
| 77 | 77 | $navigation = $hc->getSmartySingleVar('navigation'); |
| 78 | - $due = $hc->getHtmlTag('span', ['class' => 'left'], $navigation) . PHP_EOL; |
|
| 78 | + $due = $hc->getHtmlTag('span', ['class' => 'left'], $navigation).PHP_EOL; |
|
| 79 | 79 | $buttons = $hc->getSmartySingleVar('buttons'); |
| 80 | - $right = $hc->getHtmlTag('span', ['class' => 'left'], $buttons . ' '); |
|
| 80 | + $right = $hc->getHtmlTag('span', ['class' => 'left'], $buttons.' '); |
|
| 81 | 81 | $due .= $hc->getSmartyConditions('buttons', '', '', $right).PHP_EOL; |
| 82 | 82 | $content = $hc->getHtmlTag('div', ['class' => 'top'], $due); |
| 83 | 83 | |