@@ -131,7 +131,7 @@ |
||
| 131 | 131 | $form->addElement($fileInfolder, true); |
| 132 | 132 | |
| 133 | 133 | $form->addElement(new \XoopsFormHidden('op', 'save')); |
| 134 | - $form->addElement(new \XoopsFormButton(_REQUIRED . ' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit')); |
|
| 134 | + $form->addElement(new \XoopsFormButton(_REQUIRED.' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit')); |
|
| 135 | 135 | |
| 136 | 136 | return $form; |
| 137 | 137 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $ret = false; |
| 74 | 74 | |
| 75 | - $class = '\\XoopsModules\\' . ucfirst(mb_strtolower(basename(dirname(__DIR__)))) . '\\' . $name . 'Handler'; |
|
| 75 | + $class = '\\XoopsModules\\'.ucfirst(mb_strtolower(basename(dirname(__DIR__)))).'\\'.$name.'Handler'; |
|
| 76 | 76 | if (!class_exists($class)) { |
| 77 | 77 | throw new \RuntimeException("Class '$class' not found"); |
| 78 | 78 | } |
@@ -69,14 +69,14 @@ |
||
| 69 | 69 | { |
| 70 | 70 | $ret = ''; |
| 71 | 71 | if (is_array($selector)) { |
| 72 | - $ret .= $t . implode("\n", $selector) . ' {'; |
|
| 72 | + $ret .= $t.implode("\n", $selector).' {'; |
|
| 73 | 73 | } else { |
| 74 | - $ret .= $selector . ' {'; |
|
| 74 | + $ret .= $selector.' {'; |
|
| 75 | 75 | } |
| 76 | 76 | if (is_array($content)) { |
| 77 | - $ret .= $t . implode("\n", $content) . ';'; |
|
| 77 | + $ret .= $t.implode("\n", $content).';'; |
|
| 78 | 78 | } else { |
| 79 | - $ret .= $content . ';'; |
|
| 79 | + $ret .= $content.';'; |
|
| 80 | 80 | } |
| 81 | 81 | $ret = '}'; |
| 82 | 82 | |
@@ -81,10 +81,10 @@ |
||
| 81 | 81 | */ |
| 82 | 82 | public function getTemplatesUserHeader($moduleDirname) |
| 83 | 83 | { |
| 84 | - $ret = $this->htmlcode->getSmartyIncludeFile($moduleDirname, 'breadcrumbs', false, true) . PHP_EOL; |
|
| 84 | + $ret = $this->htmlcode->getSmartyIncludeFile($moduleDirname, 'breadcrumbs', false, true).PHP_EOL; |
|
| 85 | 85 | $var = $this->htmlcode->getSmartySingleVar('ads'); |
| 86 | - $div = $this->htmlcode->getHtmlDiv($var, 'center') . PHP_EOL; |
|
| 87 | - $ret .= $this->htmlcode->getSmartyConditions('ads', ' != ', '\'\'', $div) . PHP_EOL; |
|
| 86 | + $div = $this->htmlcode->getHtmlDiv($var, 'center').PHP_EOL; |
|
| 87 | + $ret .= $this->htmlcode->getSmartyConditions('ads', ' != ', '\'\'', $div).PHP_EOL; |
|
| 88 | 88 | |
| 89 | 89 | return $ret; |
| 90 | 90 | } |
@@ -92,7 +92,7 @@ |
||
| 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 | |
@@ -110,9 +110,9 @@ |
||
| 110 | 110 | </div> |
| 111 | 111 | EOT; |
| 112 | 112 | if ('english' !== $language) { |
| 113 | - $this->create($moduleDirname, 'language/' . $language . '/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 113 | + $this->create($moduleDirname, 'language/'.$language.'/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 114 | 114 | } |
| 115 | - $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'] . '/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 115 | + $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'].'/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 116 | 116 | |
| 117 | 117 | return $this->renderFile(); |
| 118 | 118 | } |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | webmaster |
| 102 | 102 | {X_ADMINMAIL} |
| 103 | 103 | EOT; |
| 104 | - $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'] . '/mail_template', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 104 | + $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'].'/mail_template', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 105 | 105 | |
| 106 | 106 | return $this->renderFile(); |
| 107 | 107 | } |
@@ -41,16 +41,16 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function render() |
| 43 | 43 | { |
| 44 | - $ret = ($this->getTitle() ? '<div class=" center head ">' . $this->getTitle() . '</div>' : ''); |
|
| 45 | - $ret .= '<form name="' . $this->getName() . '" id="' . $this->getName() . '" action="' . $this->getAction() . '" method="' . $this->getMethod() . '"' . $this->getExtra() . '>' . NWLINE; |
|
| 44 | + $ret = ($this->getTitle() ? '<div class=" center head ">'.$this->getTitle().'</div>' : ''); |
|
| 45 | + $ret .= '<form name="'.$this->getName().'" id="'.$this->getName().'" action="'.$this->getAction().'" method="'.$this->getMethod().'"'.$this->getExtra().'>'.NWLINE; |
|
| 46 | 46 | foreach ($this->getElements() as $ele) { |
| 47 | 47 | if (!$ele->isHidden()) { |
| 48 | - $ret .= '<div class="' . $ele->getClass() . '"><strong>' . $ele->getCaption() . '</strong>' . $ele->render() . '</div>' . NWLINE; |
|
| 48 | + $ret .= '<div class="'.$ele->getClass().'"><strong>'.$ele->getCaption().'</strong>'.$ele->render().'</div>'.NWLINE; |
|
| 49 | 49 | } else { |
| 50 | 50 | $ret .= $ele->render(); |
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | - $ret .= NWLINE . '</form>'; |
|
| 53 | + $ret .= NWLINE.'</form>'; |
|
| 54 | 54 | |
| 55 | 55 | return $ret; |
| 56 | 56 | } |
@@ -51,11 +51,11 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | $ret .= '<td class="radio">'; |
| 53 | 53 | } |
| 54 | - $ret .= '<input type="radio" name="' . $ele_name . '" id="' . $ele_name . '[' . $value . ']' . $id_ele . '" title = "' . htmlspecialchars($ele_title, ENT_QUOTES) . '" value="' . htmlspecialchars($value, ENT_QUOTES) . '"'; |
|
| 54 | + $ret .= '<input type="radio" name="'.$ele_name.'" id="'.$ele_name.'['.$value.']'.$id_ele.'" title = "'.htmlspecialchars($ele_title, ENT_QUOTES).'" value="'.htmlspecialchars($value, ENT_QUOTES).'"'; |
|
| 55 | 55 | if (isset($ele_value) && $value == $ele_value) { |
| 56 | 56 | $ret .= ' checked'; |
| 57 | 57 | } |
| 58 | - $ret .= $ele_extra . ' />' . "<label name='xolb_{$ele_name}' for='" . $ele_name . '[' . $value . ']' . $id_ele . "'><span><span></span></span>" . $name . '</label>' . $ele_delimeter; |
|
| 58 | + $ret .= $ele_extra.' />'."<label name='xolb_{$ele_name}' for='".$ele_name.'['.$value.']'.$id_ele."'><span><span></span></span>".$name.'</label>'.$ele_delimeter; |
|
| 59 | 59 | if (!empty($this->columns)) { |
| 60 | 60 | $ret .= '</td>'; |
| 61 | 61 | if (0 == ++$i % $this->columns) { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | if (!empty($this->columns)) { |
| 67 | 67 | $span = $i % $this->columns; |
| 68 | 68 | if ($span) { |
| 69 | - $ret .= '<td colspan="' . ($this->columns - $span) . '"></td></tr>'; |
|
| 69 | + $ret .= '<td colspan="'.($this->columns - $span).'"></td></tr>'; |
|
| 70 | 70 | } |
| 71 | 71 | $ret .= '</table>'; |
| 72 | 72 | } |