@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesUserSearch extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return TemplatesUserSearch |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -53,10 +53,10 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @public function write |
|
| 57 | - * @param string $module |
|
| 58 | - * @param string $table |
|
| 59 | - * @param string $filename |
|
| 56 | + * @public function write |
|
| 57 | + * @param string $module |
|
| 58 | + * @param string $table |
|
| 59 | + * @param string $filename |
|
| 60 | 60 | */ |
| 61 | 61 | public function write($module, $table, $filename) |
| 62 | 62 | { |
@@ -66,10 +66,10 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @private function getTemplatesUserSearchHeader |
|
| 70 | - * @param string $moduleDirname |
|
| 71 | - * @param string $table |
|
| 72 | - * @param string $language |
|
| 69 | + * @private function getTemplatesUserSearchHeader |
|
| 70 | + * @param string $moduleDirname |
|
| 71 | + * @param string $table |
|
| 72 | + * @param string $language |
|
| 73 | 73 | * |
| 74 | 74 | * @return string |
| 75 | 75 | */ |
@@ -100,10 +100,10 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | - * @private function getTemplatesUserSearchBody |
|
| 104 | - * @param string $moduleDirname |
|
| 105 | - * @param string $table |
|
| 106 | - * @param string $language |
|
| 103 | + * @private function getTemplatesUserSearchBody |
|
| 104 | + * @param string $moduleDirname |
|
| 105 | + * @param string $table |
|
| 106 | + * @param string $language |
|
| 107 | 107 | * |
| 108 | 108 | * @return string |
| 109 | 109 | */ |
@@ -156,10 +156,10 @@ discard block |
||
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | - * @private function getTemplatesUserSearchBodyFieldnameEmpty |
|
| 160 | - * @param string $moduleDirname |
|
| 161 | - * @param string $table |
|
| 162 | - * @param string $language |
|
| 159 | + * @private function getTemplatesUserSearchBodyFieldnameEmpty |
|
| 160 | + * @param string $moduleDirname |
|
| 161 | + * @param string $table |
|
| 162 | + * @param string $language |
|
| 163 | 163 | * |
| 164 | 164 | * @return string |
| 165 | 165 | */ |
@@ -206,8 +206,8 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | /** |
| 209 | - * @private function getTemplatesUserSearchFooter |
|
| 210 | - * @param string $moduleDirname |
|
| 209 | + * @private function getTemplatesUserSearchFooter |
|
| 210 | + * @param string $moduleDirname |
|
| 211 | 211 | * @return string |
| 212 | 212 | */ |
| 213 | 213 | private function getTemplatesUserSearchFooter($moduleDirname) |
@@ -220,8 +220,8 @@ discard block |
||
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | /** |
| 223 | - * @public function render |
|
| 224 | - * @param null |
|
| 223 | + * @public function render |
|
| 224 | + * @param null |
|
| 225 | 225 | * @return bool|string |
| 226 | 226 | */ |
| 227 | 227 | public function render() |
@@ -28,14 +28,14 @@ discard block |
||
| 28 | 28 | class TemplatesUserFooter extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @var string |
|
| 32 | - */ |
|
| 31 | + * @var string |
|
| 32 | + */ |
|
| 33 | 33 | private $tdmcfile = null; |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @public function constructor |
|
| 37 | - * @param null |
|
| 38 | - */ |
|
| 36 | + * @public function constructor |
|
| 37 | + * @param null |
|
| 38 | + */ |
|
| 39 | 39 | |
| 40 | 40 | public function __construct() |
| 41 | 41 | { |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @static function getInstance |
|
| 48 | - * @param null |
|
| 47 | + * @static function getInstance |
|
| 48 | + * @param null |
|
| 49 | 49 | * @return TemplatesUserFooter |
| 50 | 50 | */ |
| 51 | 51 | public static function getInstance() |
@@ -59,10 +59,10 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @public function write |
|
| 63 | - * @param string $module |
|
| 64 | - * @param mixed $table |
|
| 65 | - * @param string $filename |
|
| 62 | + * @public function write |
|
| 63 | + * @param string $module |
|
| 64 | + * @param mixed $table |
|
| 65 | + * @param string $filename |
|
| 66 | 66 | */ |
| 67 | 67 | public function write($module, $table, $filename) |
| 68 | 68 | { |
@@ -94,8 +94,8 @@ discard block |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @public function render |
|
| 98 | - * @param null |
|
| 97 | + * @public function render |
|
| 98 | + * @param null |
|
| 99 | 99 | * @return bool|string |
| 100 | 100 | */ |
| 101 | 101 | public function render() |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesUserFacebookComments extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return TemplatesUserFacebookComments |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -53,9 +53,9 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @public function write |
|
| 57 | - * @param string $module |
|
| 58 | - * @param string $filename |
|
| 56 | + * @public function write |
|
| 57 | + * @param string $module |
|
| 58 | + * @param string $filename |
|
| 59 | 59 | * |
| 60 | 60 | * @return string |
| 61 | 61 | */ |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @private function getTemplatesCommentCode |
|
| 69 | + * @private function getTemplatesCommentCode |
|
| 70 | 70 | * @param null |
| 71 | 71 | * |
| 72 | 72 | * @return string |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * @public function render |
|
| 82 | + * @public function render |
|
| 83 | 83 | * @return bool|string |
| 84 | 84 | */ |
| 85 | 85 | public function render() |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesUserRate extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return TemplatesUserRate |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -53,10 +53,10 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @public function write |
|
| 57 | - * @param string $module |
|
| 58 | - * @param string $table |
|
| 59 | - * @param string $filename |
|
| 56 | + * @public function write |
|
| 57 | + * @param string $module |
|
| 58 | + * @param string $table |
|
| 59 | + * @param string $filename |
|
| 60 | 60 | */ |
| 61 | 61 | public function write($module, $table, $filename) |
| 62 | 62 | { |
@@ -66,10 +66,10 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @private function getTemplatesUserRateHeader |
|
| 70 | - * @param string $moduleDirname |
|
| 71 | - * @param string $table |
|
| 72 | - * @param string $language |
|
| 69 | + * @private function getTemplatesUserRateHeader |
|
| 70 | + * @param string $moduleDirname |
|
| 71 | + * @param string $table |
|
| 72 | + * @param string $language |
|
| 73 | 73 | * |
| 74 | 74 | * @return string |
| 75 | 75 | */ |
@@ -100,10 +100,10 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | - * @private function getTemplatesUserRateBody |
|
| 104 | - * @param string $moduleDirname |
|
| 105 | - * @param string $table |
|
| 106 | - * @param string $language |
|
| 103 | + * @private function getTemplatesUserRateBody |
|
| 104 | + * @param string $moduleDirname |
|
| 105 | + * @param string $table |
|
| 106 | + * @param string $language |
|
| 107 | 107 | * |
| 108 | 108 | * @return string |
| 109 | 109 | */ |
@@ -156,10 +156,10 @@ discard block |
||
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | - * @private function getTemplatesUserRateBodyFieldnameEmpty |
|
| 160 | - * @param string $moduleDirname |
|
| 161 | - * @param string $table |
|
| 162 | - * @param string $language |
|
| 159 | + * @private function getTemplatesUserRateBodyFieldnameEmpty |
|
| 160 | + * @param string $moduleDirname |
|
| 161 | + * @param string $table |
|
| 162 | + * @param string $language |
|
| 163 | 163 | * |
| 164 | 164 | * @return string |
| 165 | 165 | */ |
@@ -206,8 +206,8 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | /** |
| 209 | - * @private function getTemplatesUserRateFooter |
|
| 210 | - * @param string $moduleDirname |
|
| 209 | + * @private function getTemplatesUserRateFooter |
|
| 210 | + * @param string $moduleDirname |
|
| 211 | 211 | * |
| 212 | 212 | * @return string |
| 213 | 213 | */ |
@@ -221,8 +221,8 @@ discard block |
||
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | - * @public function render |
|
| 225 | - * @param null |
|
| 224 | + * @public function render |
|
| 225 | + * @param null |
|
| 226 | 226 | * @return bool|string |
| 227 | 227 | */ |
| 228 | 228 | public function render() |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesAdminPages extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return TemplatesAdminPages |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -66,10 +66,10 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @private function getTemplatesAdminPagesHeader |
|
| 70 | - * @param string $moduleDirname |
|
| 71 | - * @return string |
|
| 72 | - */ |
|
| 69 | + * @private function getTemplatesAdminPagesHeader |
|
| 70 | + * @param string $moduleDirname |
|
| 71 | + * @return string |
|
| 72 | + */ |
|
| 73 | 73 | private function getTemplatesAdminPagesHeader($moduleDirname) |
| 74 | 74 | { |
| 75 | 75 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
@@ -244,10 +244,10 @@ discard block |
||
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | /** |
| 247 | - * @private function getTemplatesAdminPagesFooter |
|
| 248 | - * @param string $moduleDirname |
|
| 249 | - * @return string |
|
| 250 | - */ |
|
| 247 | + * @private function getTemplatesAdminPagesFooter |
|
| 248 | + * @param string $moduleDirname |
|
| 249 | + * @return string |
|
| 250 | + */ |
|
| 251 | 251 | private function getTemplatesAdminPagesFooter($moduleDirname) |
| 252 | 252 | { |
| 253 | 253 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
@@ -259,10 +259,10 @@ discard block |
||
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | /** |
| 262 | - * @public function render |
|
| 263 | - * @param null |
|
| 264 | - * @return bool|string |
|
| 265 | - */ |
|
| 262 | + * @public function render |
|
| 263 | + * @param null |
|
| 264 | + * @return bool|string |
|
| 265 | + */ |
|
| 266 | 266 | public function render() |
| 267 | 267 | { |
| 268 | 268 | $module = $this->getModule(); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $lang = $hc->getSmartyConst($language, 'FORM_ACTION'); |
| 110 | 110 | $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, false, "\t\t\t"); |
| 111 | - $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL; |
|
| 111 | + $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL; |
|
| 112 | 112 | $ret = $hc->getHtmlTag('thead', [], $tr); |
| 113 | 113 | |
| 114 | 114 | return $ret; |
@@ -156,12 +156,12 @@ discard block |
||
| 156 | 156 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32'); |
| 157 | 157 | $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 158 | 158 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false); |
| 159 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t" . $img); |
|
| 159 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t".$img); |
|
| 160 | 160 | break; |
| 161 | 161 | case 13: |
| 162 | 162 | $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
| 163 | 163 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 164 | - $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false); |
|
| 164 | + $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false); |
|
| 165 | 165 | $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, false, "\t\t"); |
| 166 | 166 | break; |
| 167 | 167 | default: |
@@ -177,13 +177,13 @@ discard block |
||
| 177 | 177 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 178 | 178 | $src = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png'); |
| 179 | 179 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false); |
| 180 | - $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img); |
|
| 180 | + $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img); |
|
| 181 | 181 | $lang = $hc->getSmartyConst('', '_DELETE'); |
| 182 | 182 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 183 | 183 | $src = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png'); |
| 184 | 184 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false); |
| 185 | - $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img); |
|
| 186 | - $td .= $hc->getHtmlTag('td', ['class' => 'center width5'], "\n" . $anchor); |
|
| 185 | + $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img); |
|
| 186 | + $td .= $hc->getHtmlTag('td', ['class' => 'center width5'], "\n".$anchor); |
|
| 187 | 187 | $cycle = $hc->getSmartyNoSimbol('cycle values=\'odd, even\''); |
| 188 | 188 | $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td); |
| 189 | 189 | $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr); |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesAdminFooter extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -52,9 +52,9 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @public function write |
|
| 56 | - * @param string $module |
|
| 57 | - * @param string $filename |
|
| 55 | + * @public function write |
|
| 56 | + * @param string $module |
|
| 57 | + * @param string $filename |
|
| 58 | 58 | */ |
| 59 | 59 | public function write($module, $filename) |
| 60 | 60 | { |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @public function render |
|
| 67 | - * @param null |
|
| 66 | + * @public function render |
|
| 67 | + * @param null |
|
| 68 | 68 | * @return bool|string |
| 69 | 69 | */ |
| 70 | 70 | public function render() |
@@ -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'], '', true) . 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'], '', true).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); |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesAdminPermissions extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return TemplatesAdminPermissions |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -53,8 +53,8 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @public function write |
|
| 57 | - * @param string $module |
|
| 56 | + * @public function write |
|
| 57 | + * @param string $module |
|
| 58 | 58 | * @param $filename |
| 59 | 59 | */ |
| 60 | 60 | public function write($module, $filename) |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @private function getTemplatesAdminPermissionsHeader |
|
| 68 | - * @param string $moduleDirname |
|
| 67 | + * @private function getTemplatesAdminPermissionsHeader |
|
| 68 | + * @param string $moduleDirname |
|
| 69 | 69 | * |
| 70 | 70 | * @return string |
| 71 | 71 | */ |
@@ -77,8 +77,8 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | - * @private function getTemplatesAdminPermissions |
|
| 81 | - * @param null |
|
| 80 | + * @private function getTemplatesAdminPermissions |
|
| 81 | + * @param null |
|
| 82 | 82 | * @return string |
| 83 | 83 | */ |
| 84 | 84 | private function getTemplatesAdminPermissions() |
@@ -92,8 +92,8 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @private function getTemplatesAdminPermissionsFooter |
|
| 96 | - * @param string $moduleDirname |
|
| 95 | + * @private function getTemplatesAdminPermissionsFooter |
|
| 96 | + * @param string $moduleDirname |
|
| 97 | 97 | * |
| 98 | 98 | * @return string |
| 99 | 99 | */ |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | - * @public function render |
|
| 109 | - * @param null |
|
| 108 | + * @public function render |
|
| 109 | + * @param null |
|
| 110 | 110 | * @return bool|string |
| 111 | 111 | */ |
| 112 | 112 | public function render() |
@@ -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 | } |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesAdminHeader extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -52,9 +52,9 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @public function write |
|
| 56 | - * @param string $module |
|
| 57 | - * @param string $filename |
|
| 55 | + * @public function write |
|
| 56 | + * @param string $module |
|
| 57 | + * @param string $filename |
|
| 58 | 58 | */ |
| 59 | 59 | public function write($module, $filename) |
| 60 | 60 | { |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @public function render |
|
| 67 | - * @param null |
|
| 66 | + * @public function render |
|
| 67 | + * @param null |
|
| 68 | 68 | * @return bool|string |
| 69 | 69 | */ |
| 70 | 70 | public function render() |
@@ -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 | |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesAdminIndex extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -52,9 +52,9 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @public function write |
|
| 56 | - * @param string $module |
|
| 57 | - * @param string $filename |
|
| 55 | + * @public function write |
|
| 56 | + * @param string $module |
|
| 57 | + * @param string $filename |
|
| 58 | 58 | */ |
| 59 | 59 | public function write($module, $filename) |
| 60 | 60 | { |
@@ -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 | |