@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | public function render(\Xoops\Form\Element $element):string |
| 24 | 24 | { |
| 25 | - $methodName = 'render' . str_replace('\\' , '', get_class($element)); |
|
| 25 | + $methodName = 'render'.str_replace('\\', '', get_class($element)); |
|
| 26 | 26 | if (true === method_exists($this, $methodName)) { |
| 27 | 27 | return $this->$methodName($element); |
| 28 | 28 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $element->add('class', 'btn btn-default'); |
| 58 | 58 | } |
| 59 | 59 | $attributes = $element->renderAttributeString(); |
| 60 | - return '<input ' . $attributes . $element->getExtra() .' >'; |
|
| 60 | + return '<input '.$attributes.$element->getExtra().' >'; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -71,18 +71,18 @@ discard block |
||
| 71 | 71 | { |
| 72 | 72 | $ret = ''; |
| 73 | 73 | $element->add('class', 'btn'); |
| 74 | - $class = 'class="' . $element->getClass() . '"'; |
|
| 74 | + $class = 'class="'.$element->getClass().'"'; |
|
| 75 | 75 | |
| 76 | 76 | $attributes = $element->renderAttributeString(); |
| 77 | 77 | |
| 78 | - if ((bool) $element->get(':showdelete', false)) { |
|
| 79 | - $ret .= '<input type="submit"' . $class . ' name="delete" id="delete" value="' |
|
| 80 | - . \XoopsLocale::A_DELETE . '" onclick="this.form.elements.op.value=\'delete\'">'; |
|
| 78 | + if ((bool)$element->get(':showdelete', false)) { |
|
| 79 | + $ret .= '<input type="submit"'.$class.' name="delete" id="delete" value="' |
|
| 80 | + . \XoopsLocale::A_DELETE.'" onclick="this.form.elements.op.value=\'delete\'">'; |
|
| 81 | 81 | } |
| 82 | - $ret .= ' <input type="button" ' . $class . ' value="' . \XoopsLocale::A_CANCEL |
|
| 82 | + $ret .= ' <input type="button" '.$class.' value="'.\XoopsLocale::A_CANCEL |
|
| 83 | 83 | . '" onclick="history.go(-1);return true;" />' |
| 84 | - . ' <input type="reset"' . $class . ' name="reset" id="reset" value="' . \XoopsLocale::A_RESET . '" />' |
|
| 85 | - . ' <input ' . $attributes . $element->getExtra() . ' />'; |
|
| 84 | + . ' <input type="reset"'.$class.' name="reset" id="reset" value="'.\XoopsLocale::A_RESET.'" />' |
|
| 85 | + . ' <input '.$attributes.$element->getExtra().' />'; |
|
| 86 | 86 | return $ret; |
| 87 | 87 | } |
| 88 | 88 | |
@@ -99,21 +99,21 @@ discard block |
||
| 99 | 99 | if ($xoops->theme()) { |
| 100 | 100 | $xoops->theme()->addScript('include/color-picker.js'); |
| 101 | 101 | } else { |
| 102 | - echo '<script type="text/javascript" src="' . $xoops->url('/include/color-picker.js') . '"></script>'; |
|
| 102 | + echo '<script type="text/javascript" src="'.$xoops->url('/include/color-picker.js').'"></script>'; |
|
| 103 | 103 | } |
| 104 | 104 | $temp = $element->get('value', ''); |
| 105 | 105 | if (!empty($temp)) { |
| 106 | - $element->set('style', 'background-color:' . $temp . ';'); |
|
| 106 | + $element->set('style', 'background-color:'.$temp.';'); |
|
| 107 | 107 | } |
| 108 | 108 | $element->set('class', 'form-control'); |
| 109 | 109 | $ret = '<div class="input-group">'; |
| 110 | 110 | $attributes = $element->renderAttributeString(); |
| 111 | - $ret .= '<input ' . $attributes . ' ' . $element->getExtra() .' >'; |
|
| 111 | + $ret .= '<input '.$attributes.' '.$element->getExtra().' >'; |
|
| 112 | 112 | $ret .= '<span class="input-group-btn">'; |
| 113 | 113 | $ret .= '<button class="btn btn-default" type="button" '; |
| 114 | - $ret .= 'data-toggle="tooltip" data-placement="left" title="' . \XoopsLocale::A_SELECT . '" '; |
|
| 114 | + $ret .= 'data-toggle="tooltip" data-placement="left" title="'.\XoopsLocale::A_SELECT.'" '; |
|
| 115 | 115 | $ret .= 'onclick="return TCP.popup(\''; |
| 116 | - $ret .= $xoops->url('/include/') . '\',document.getElementById(\'' . $element->getName() . '\'));">'; |
|
| 116 | + $ret .= $xoops->url('/include/').'\',document.getElementById(\''.$element->getName().'\'));">'; |
|
| 117 | 117 | $ret .= '<span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></button>'; |
| 118 | 118 | $ret .= '</span></div>'; |
| 119 | 119 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | $dataList = $element->isDatalist(); |
| 137 | 137 | if (!empty($dataList)) { |
| 138 | - $element->add('list', 'list_' . $element->getName()); |
|
| 138 | + $element->add('list', 'list_'.$element->getName()); |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | $element->add('class', 'form-control'); |
@@ -149,17 +149,17 @@ discard block |
||
| 149 | 149 | $xoops->theme()->addScript( |
| 150 | 150 | '', |
| 151 | 151 | '', |
| 152 | - ' $(function() { $( "#' . $element->get('id') . '" ).datepicker({' . |
|
| 153 | - 'showOn: "focus", changeYear: true, constrainInput: false ' . |
|
| 152 | + ' $(function() { $( "#'.$element->get('id').'" ).datepicker({'. |
|
| 153 | + 'showOn: "focus", changeYear: true, constrainInput: false '. |
|
| 154 | 154 | ' }); }); ' |
| 155 | 155 | ); |
| 156 | 156 | |
| 157 | 157 | $ret = '<div class="input-group">'; |
| 158 | - $ret .= '<input ' . $attributes . ' value="' . $display_value . '" ' . $element->getExtra() .' >'; |
|
| 158 | + $ret .= '<input '.$attributes.' value="'.$display_value.'" '.$element->getExtra().' >'; |
|
| 159 | 159 | $ret .= '<span class="input-group-btn">'; |
| 160 | 160 | $ret .= '<button class="btn btn-default" type="button" '; |
| 161 | - $ret .= 'data-toggle="tooltip" data-placement="left" title="' . \XoopsLocale::A_SELECT . '" '; |
|
| 162 | - $ret .= 'onclick="$( \'#' . $element->get('id') . '\' ).datepicker( \'show\' );"> '; |
|
| 161 | + $ret .= 'data-toggle="tooltip" data-placement="left" title="'.\XoopsLocale::A_SELECT.'" '; |
|
| 162 | + $ret .= 'onclick="$( \'#'.$element->get('id').'\' ).datepicker( \'show\' );"> '; |
|
| 163 | 163 | $ret .= '<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span></button>'; |
| 164 | 164 | $ret .= '</span></div>'; |
| 165 | 165 | |
@@ -184,10 +184,10 @@ discard block |
||
| 184 | 184 | |
| 185 | 185 | $xoops = \Xoops::getInstance(); |
| 186 | 186 | |
| 187 | - $extra = ($element->getExtra() != '' ? " " . $element->getExtra() : ''); |
|
| 187 | + $extra = ($element->getExtra() != '' ? " ".$element->getExtra() : ''); |
|
| 188 | 188 | $ret = ""; |
| 189 | 189 | // actions |
| 190 | - $ret .= $element->xoopsCodeControls() . "<br />\n"; |
|
| 190 | + $ret .= $element->xoopsCodeControls()."<br />\n"; |
|
| 191 | 191 | // fonts |
| 192 | 192 | $ret .= $element->typographyControls(); |
| 193 | 193 | |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | $element->set('class', 'form-control'); |
| 197 | 197 | $attributes = $element->renderAttributeString(); |
| 198 | 198 | |
| 199 | - $ret .= '<textarea ' . $attributes . $extra . '>' . $element->getValue() . "</textarea>\n"; |
|
| 199 | + $ret .= '<textarea '.$attributes.$extra.'>'.$element->getValue()."</textarea>\n"; |
|
| 200 | 200 | |
| 201 | 201 | if (empty($element->skipPreview)) { |
| 202 | 202 | if (!$xoops->theme()) { |
@@ -204,15 +204,15 @@ discard block |
||
| 204 | 204 | } else { |
| 205 | 205 | $xoops->theme()->addScript('media/xoops/image.js', array('type' => 'text/javascript')); |
| 206 | 206 | } |
| 207 | - $button = "<input id='" . $element->getName() . "_preview_button' " . "type='button' " . "class='btn btn-sm btn-default' value='" . \XoopsLocale::A_PREVIEW . "' " . "onclick=\"form_instantPreview('" . XOOPS_URL . "', '" . $element->getName() . "','" . XOOPS_URL . "/images', " . (int)($element->doHtml) . ", '" . $xoops->security()->createToken() . "')\"" . " />"; |
|
| 208 | - $ret .= "<br />" . "<div id='" . $element->getName() . "_hidden' style='display: block;'> " . "<fieldset>" . "<legend>" . $button . "</legend>" . "<div id='" . $element->getName() . "_hidden_data'>" . \XoopsLocale::CLICK_PREVIEW_TO_SEE_CONTENT . "</div>" . "</fieldset>" . "</div>"; |
|
| 207 | + $button = "<input id='".$element->getName()."_preview_button' "."type='button' "."class='btn btn-sm btn-default' value='".\XoopsLocale::A_PREVIEW."' "."onclick=\"form_instantPreview('".XOOPS_URL."', '".$element->getName()."','".XOOPS_URL."/images', ".(int)($element->doHtml).", '".$xoops->security()->createToken()."')\""." />"; |
|
| 208 | + $ret .= "<br />"."<div id='".$element->getName()."_hidden' style='display: block;'> "."<fieldset>"."<legend>".$button."</legend>"."<div id='".$element->getName()."_hidden_data'>".\XoopsLocale::CLICK_PREVIEW_TO_SEE_CONTENT."</div>"."</fieldset>"."</div>"; |
|
| 209 | 209 | } |
| 210 | 210 | // Load javascript |
| 211 | 211 | if (empty($js_loaded)) { |
| 212 | 212 | $javascript = (($element->js) |
| 213 | - ? '<script type="text/javascript">' . $element->js . '</script>' |
|
| 214 | - : '') . '<script type="text/javascript" src="' . \XoopsBaseConfig::get('url') . '/include/formdhtmltextarea.js"></script>'; |
|
| 215 | - $ret = $javascript . $ret; |
|
| 213 | + ? '<script type="text/javascript">'.$element->js.'</script>' |
|
| 214 | + : '').'<script type="text/javascript" src="'.\XoopsBaseConfig::get('url').'/include/formdhtmltextarea.js"></script>'; |
|
| 215 | + $ret = $javascript.$ret; |
|
| 216 | 216 | $js_loaded = true; |
| 217 | 217 | } |
| 218 | 218 | return $ret; |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | { |
| 230 | 230 | $element->add('class', 'form-control'); |
| 231 | 231 | $attributes = $element->renderAttributeString(); |
| 232 | - return '<input ' . $attributes . $element->getExtra() .' >'; |
|
| 232 | + return '<input '.$attributes.$element->getExtra().' >'; |
|
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | /** |
@@ -241,19 +241,19 @@ discard block |
||
| 241 | 241 | */ |
| 242 | 242 | protected function renderXoopsFormSelect(\Xoops\Form\Select $element):string |
| 243 | 243 | { |
| 244 | - $selected = (array) $element->getValue(); |
|
| 244 | + $selected = (array)$element->getValue(); |
|
| 245 | 245 | |
| 246 | 246 | $ele_options = $element->getOptions(); |
| 247 | 247 | |
| 248 | - $extra = ($element->getExtra() != '' ? " " . $element->getExtra() : ''); |
|
| 248 | + $extra = ($element->getExtra() != '' ? " ".$element->getExtra() : ''); |
|
| 249 | 249 | $element->add('class', 'form-control'); |
| 250 | 250 | $attributes = $element->renderAttributeString(); |
| 251 | - $ret = '<select ' . $attributes . $extra .' >' . "\n"; |
|
| 251 | + $ret = '<select '.$attributes.$extra.' >'."\n"; |
|
| 252 | 252 | |
| 253 | 253 | if (empty($ele_optgroup)) { |
| 254 | 254 | foreach ($ele_options as $value => $display) { |
| 255 | 255 | if (is_array($display)) { |
| 256 | - $ret .= '<optgroup label="' . $value . '">' . "\n"; |
|
| 256 | + $ret .= '<optgroup label="'.$value.'">'."\n"; |
|
| 257 | 257 | foreach ($display as $optvalue => $optdisplay) { |
| 258 | 258 | $ret .= $element->renderOption($optvalue, $optdisplay, $selected); |
| 259 | 259 | } |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | } |
| 263 | 263 | } |
| 264 | 264 | } |
| 265 | - $ret .= '</select>' . "\n"; |
|
| 265 | + $ret .= '</select>'."\n"; |
|
| 266 | 266 | |
| 267 | 267 | return $ret; |
| 268 | 268 | } |
@@ -279,11 +279,11 @@ discard block |
||
| 279 | 279 | $element->add('class', 'form-control'); |
| 280 | 280 | $dataList = $element->isDatalist(); |
| 281 | 281 | if (!empty($dataList)) { |
| 282 | - $element->add('list', 'list_' . $element->getName()); |
|
| 282 | + $element->add('list', 'list_'.$element->getName()); |
|
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | $attributes = $element->renderAttributeString(); |
| 286 | - return '<input ' . $attributes . ' ' . $element->getExtra() .' >'; |
|
| 286 | + return '<input '.$attributes.' '.$element->getExtra().' >'; |
|
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | /** |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | $element->suppressRender(['value']); |
| 299 | 299 | $element->add('class', 'form-control'); |
| 300 | 300 | $attributes = $element->renderAttributeString(); |
| 301 | - return '<textarea ' . $attributes . ' ' . $element->getExtra() .' >' |
|
| 302 | - . $element->getValue() . '</textarea>'; |
|
| 301 | + return '<textarea '.$attributes.' '.$element->getExtra().' >' |
|
| 302 | + . $element->getValue().'</textarea>'; |
|
| 303 | 303 | } |
| 304 | 304 | } |
@@ -44,32 +44,32 @@ discard block |
||
| 44 | 44 | return ''; |
| 45 | 45 | }*/ |
| 46 | 46 | |
| 47 | - /** |
|
| 47 | + /** |
|
| 48 | 48 | * Render support for XoopsFormButton |
| 49 | 49 | * |
| 50 | 50 | * @param XoopsFormButton $element form element |
| 51 | 51 | * |
| 52 | 52 | * @return string rendered form element |
| 53 | 53 | */ |
| 54 | - protected function renderXoopsFormButton(\Xoops\Form\Button $element):string |
|
| 54 | + protected function renderXoopsFormButton(\Xoops\Form\Button $element):string |
|
| 55 | 55 | { |
| 56 | - if (false == $element->hasClassLike('btn')) { |
|
| 57 | - $element->add('class', 'btn btn-default'); |
|
| 58 | - } |
|
| 59 | - $attributes = $element->renderAttributeString(); |
|
| 56 | + if (false == $element->hasClassLike('btn')) { |
|
| 57 | + $element->add('class', 'btn btn-default'); |
|
| 58 | + } |
|
| 59 | + $attributes = $element->renderAttributeString(); |
|
| 60 | 60 | return '<input ' . $attributes . $element->getExtra() .' >'; |
| 61 | - } |
|
| 61 | + } |
|
| 62 | 62 | |
| 63 | - /** |
|
| 63 | + /** |
|
| 64 | 64 | * Render support for XoopsFormButtonTray |
| 65 | 65 | * |
| 66 | 66 | * @param XoopsFormButtonTray $element form element |
| 67 | 67 | * |
| 68 | 68 | * @return string rendered form element |
| 69 | 69 | */ |
| 70 | - protected function renderXoopsFormButtonTray(\Xoops\Form\ButtonTray $element):string |
|
| 70 | + protected function renderXoopsFormButtonTray(\Xoops\Form\ButtonTray $element):string |
|
| 71 | 71 | { |
| 72 | - $ret = ''; |
|
| 72 | + $ret = ''; |
|
| 73 | 73 | $element->add('class', 'btn'); |
| 74 | 74 | $class = 'class="' . $element->getClass() . '"'; |
| 75 | 75 | |
@@ -84,16 +84,16 @@ discard block |
||
| 84 | 84 | . ' <input type="reset"' . $class . ' name="reset" id="reset" value="' . \XoopsLocale::A_RESET . '" />' |
| 85 | 85 | . ' <input ' . $attributes . $element->getExtra() . ' />'; |
| 86 | 86 | return $ret; |
| 87 | - } |
|
| 87 | + } |
|
| 88 | 88 | |
| 89 | - /** |
|
| 89 | + /** |
|
| 90 | 90 | * Render support for XoopsFormColorPicker |
| 91 | 91 | * |
| 92 | 92 | * @param XoopsFormColorPicker $element form element |
| 93 | 93 | * |
| 94 | 94 | * @return string rendered form element |
| 95 | 95 | */ |
| 96 | - protected function renderXoopsFormColorPicker(\Xoops\Form\ColorPicker $element):string |
|
| 96 | + protected function renderXoopsFormColorPicker(\Xoops\Form\ColorPicker $element):string |
|
| 97 | 97 | { |
| 98 | 98 | $xoops = \Xoops::getInstance(); |
| 99 | 99 | if ($xoops->theme()) { |
@@ -118,16 +118,16 @@ discard block |
||
| 118 | 118 | $ret .= '</span></div>'; |
| 119 | 119 | |
| 120 | 120 | return $ret; |
| 121 | - } |
|
| 121 | + } |
|
| 122 | 122 | |
| 123 | - /** |
|
| 123 | + /** |
|
| 124 | 124 | * Render support for XoopsFormDateSelect |
| 125 | 125 | * |
| 126 | 126 | * @param XoopsFormDateSelect $element form element |
| 127 | 127 | * |
| 128 | 128 | * @return string rendered form element |
| 129 | 129 | */ |
| 130 | - protected function renderXoopsFormDateSelect(\Xoops\Form\DateSelect $element):string |
|
| 130 | + protected function renderXoopsFormDateSelect(\Xoops\Form\DateSelect $element):string |
|
| 131 | 131 | { |
| 132 | 132 | $xoops = \Xoops::getInstance(); |
| 133 | 133 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $element->add('list', 'list_' . $element->getName()); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - $element->add('class', 'form-control'); |
|
| 141 | + $element->add('class', 'form-control'); |
|
| 142 | 142 | $element->suppressRender(['value']); |
| 143 | 143 | $attributes = $element->renderAttributeString(); |
| 144 | 144 | |
@@ -164,16 +164,16 @@ discard block |
||
| 164 | 164 | $ret .= '</span></div>'; |
| 165 | 165 | |
| 166 | 166 | return $ret; |
| 167 | - } |
|
| 167 | + } |
|
| 168 | 168 | |
| 169 | - /** |
|
| 169 | + /** |
|
| 170 | 170 | * Render support for XoopsFormDhtmlTextArea |
| 171 | 171 | * |
| 172 | 172 | * @param XoopsFormDhtmlTextArea $element form element |
| 173 | 173 | * |
| 174 | 174 | * @return string rendered form element |
| 175 | 175 | */ |
| 176 | - protected function renderXoopsFormDhtmlTextArea(\Xoops\Form\DhtmlTextArea $element):string |
|
| 176 | + protected function renderXoopsFormDhtmlTextArea(\Xoops\Form\DhtmlTextArea $element):string |
|
| 177 | 177 | { |
| 178 | 178 | if ($element->htmlEditor && is_object($element->htmlEditor)) { |
| 179 | 179 | if (!isset($element->htmlEditor->isEnabled) || $element->htmlEditor->isEnabled) { |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | // the textarea box |
| 195 | 195 | $element->suppressRender(['value']); |
| 196 | - $element->set('class', 'form-control'); |
|
| 196 | + $element->set('class', 'form-control'); |
|
| 197 | 197 | $attributes = $element->renderAttributeString(); |
| 198 | 198 | |
| 199 | 199 | $ret .= '<textarea ' . $attributes . $extra . '>' . $element->getValue() . "</textarea>\n"; |
@@ -216,30 +216,30 @@ discard block |
||
| 216 | 216 | $js_loaded = true; |
| 217 | 217 | } |
| 218 | 218 | return $ret; |
| 219 | - } |
|
| 219 | + } |
|
| 220 | 220 | |
| 221 | - /** |
|
| 221 | + /** |
|
| 222 | 222 | * Render support for XoopsFormPassword |
| 223 | 223 | * |
| 224 | 224 | * @param XoopsFormPassword $element form element |
| 225 | 225 | * |
| 226 | 226 | * @return string rendered form element |
| 227 | 227 | */ |
| 228 | - protected function renderXoopsFormPassword(\Xoops\Form\Password $element):string |
|
| 228 | + protected function renderXoopsFormPassword(\Xoops\Form\Password $element):string |
|
| 229 | 229 | { |
| 230 | 230 | $element->add('class', 'form-control'); |
| 231 | - $attributes = $element->renderAttributeString(); |
|
| 231 | + $attributes = $element->renderAttributeString(); |
|
| 232 | 232 | return '<input ' . $attributes . $element->getExtra() .' >'; |
| 233 | - } |
|
| 233 | + } |
|
| 234 | 234 | |
| 235 | - /** |
|
| 235 | + /** |
|
| 236 | 236 | * Render support for XoopsFormSelect |
| 237 | 237 | * |
| 238 | 238 | * @param XoopsFormSelect $element form element |
| 239 | 239 | * |
| 240 | 240 | * @return string rendered form element |
| 241 | 241 | */ |
| 242 | - protected function renderXoopsFormSelect(\Xoops\Form\Select $element):string |
|
| 242 | + protected function renderXoopsFormSelect(\Xoops\Form\Select $element):string |
|
| 243 | 243 | { |
| 244 | 244 | $selected = (array) $element->getValue(); |
| 245 | 245 | |
@@ -265,16 +265,16 @@ discard block |
||
| 265 | 265 | $ret .= '</select>' . "\n"; |
| 266 | 266 | |
| 267 | 267 | return $ret; |
| 268 | - } |
|
| 268 | + } |
|
| 269 | 269 | |
| 270 | - /** |
|
| 270 | + /** |
|
| 271 | 271 | * Render support for XoopsFormText |
| 272 | 272 | * |
| 273 | 273 | * @param XoopsFormText $element form element |
| 274 | 274 | * |
| 275 | 275 | * @return string rendered form element |
| 276 | 276 | */ |
| 277 | - protected function renderXoopsFormText(\Xoops\Form\Text $element):string |
|
| 277 | + protected function renderXoopsFormText(\Xoops\Form\Text $element):string |
|
| 278 | 278 | { |
| 279 | 279 | $element->add('class', 'form-control'); |
| 280 | 280 | $dataList = $element->isDatalist(); |
@@ -284,21 +284,21 @@ discard block |
||
| 284 | 284 | |
| 285 | 285 | $attributes = $element->renderAttributeString(); |
| 286 | 286 | return '<input ' . $attributes . ' ' . $element->getExtra() .' >'; |
| 287 | - } |
|
| 287 | + } |
|
| 288 | 288 | |
| 289 | - /** |
|
| 289 | + /** |
|
| 290 | 290 | * Render support for XoopsFormTextArea |
| 291 | 291 | * |
| 292 | 292 | * @param XoopsFormTextArea $element form element |
| 293 | 293 | * |
| 294 | 294 | * @return string rendered form element |
| 295 | 295 | */ |
| 296 | - protected function renderXoopsFormTextArea(\Xoops\Form\TextArea $element):string |
|
| 296 | + protected function renderXoopsFormTextArea(\Xoops\Form\TextArea $element):string |
|
| 297 | 297 | { |
| 298 | 298 | $element->suppressRender(['value']); |
| 299 | - $element->add('class', 'form-control'); |
|
| 299 | + $element->add('class', 'form-control'); |
|
| 300 | 300 | $attributes = $element->renderAttributeString(); |
| 301 | 301 | return '<textarea ' . $attributes . ' ' . $element->getExtra() .' >' |
| 302 | 302 | . $element->getValue() . '</textarea>'; |
| 303 | - } |
|
| 303 | + } |
|
| 304 | 304 | } |