|
51 | 51 |
|
52 | 52 | <LABEL title=hello<?php |
53 | 53 | $_input = end($this->global->formsStack)["username"]; |
54 | | - echo $_input->getLabelPart()->addAttributes(array ( |
55 | | - 'title' => NULL, |
56 | | - ))->attributes() ?>>Name</LABEL> |
| 54 | + echo $_input->getLabelPart()->addAttributes(['title' => null])->attributes() ?>>Name</LABEL> |
57 | 55 | <input value=val type class="hello"<?php |
58 | 56 | $_input = end($this->global->formsStack)["username"]; |
59 | | - echo $_input->getControlPart()->addAttributes(array ( |
60 | | - 'value' => NULL, |
61 | | - 'type' => NULL, |
62 | | - 'class' => NULL, |
63 | | - ))->attributes() ?>> |
| 57 | + echo $_input->getControlPart()->addAttributes(['value' => null, 'type' => null, 'class' => null])->attributes() ?>> |
64 | 58 |
|
65 | 59 | <label<?php |
66 | 60 | $_input = is_object($form['username']) ? $form['username'] : end($this->global->formsStack)[$form['username']]; |
|
104 | 98 |
|
105 | 99 | <label title=hello<?php |
106 | 100 | $_input = end($this->global->formsStack)["sex"]; |
107 | | - echo $_input->getLabelPart($key)->addAttributes(array ( |
108 | | - 'title' => NULL, |
109 | | - ))->attributes() ?>> <input<?php |
| 101 | + echo $_input->getLabelPart($key)->addAttributes(['title' => null])->attributes() ?>> <input<?php |
110 | 102 | $_input = end($this->global->formsStack)["sex"]; |
111 | 103 | echo $_input->getControlPart($key)->attributes() ?>> </label> |
112 | 104 | <?php |
|
120 | 112 | echo $_input->getLabelPart()->attributes() ?>><?php echo $_input->getLabelPart()->getHtml() ?></label> |
121 | 113 | <label title="hello"<?php |
122 | 114 | $_input = end($this->global->formsStack)["sex"]; |
123 | | - echo $_input->getLabelPart()->addAttributes(array ( |
124 | | - 'title' => NULL, |
125 | | - ))->attributes() ?>><?php echo $_input->getLabelPart()->getHtml() ?></label> |
| 115 | + echo $_input->getLabelPart()->addAttributes(['title' => null])->attributes() ?>><?php echo $_input->getLabelPart()->getHtml() ?></label> |
126 | 116 |
|
127 | 117 |
|
128 | 118 | <?php if ($_label = end($this->global->formsStack)["checkbox"]->getLabelPart("")) echo $_label->startTag() ?> <?php |
129 | 119 | echo end($this->global->formsStack)["checkbox"]->getControlPart("") /* line 41 */ ?> Label<?php if ($_label) echo $_label->endTag() ?> |
130 | 120 |
|
131 | 121 | <label title=hello<?php |
132 | 122 | $_input = end($this->global->formsStack)["checkbox"]; |
133 | | - echo $_input->getLabelPart("")->addAttributes(array ( |
134 | | - 'title' => NULL, |
135 | | - ))->attributes() ?>> <input<?php |
| 123 | + echo $_input->getLabelPart("")->addAttributes(['title' => null])->attributes() ?>> <input<?php |
136 | 124 | $_input = end($this->global->formsStack)["checkbox"]; |
137 | 125 | echo $_input->getControlPart("")->attributes() ?>> </label> |
138 | 126 | <label title=hello<?php |
139 | 127 | $_input = end($this->global->formsStack)["checkbox"]; |
140 | | - echo $_input->getLabelPart()->addAttributes(array ( |
141 | | - 'title' => NULL, |
142 | | - ))->attributes() ?>> <input<?php |
| 128 | + echo $_input->getLabelPart()->addAttributes(['title' => null])->attributes() ?>> <input<?php |
143 | 129 | $_input = end($this->global->formsStack)["checkbox"]; |
144 | 130 | echo $_input->getControlPart()->attributes() ?>> </label> |
145 | 131 | <label<?php |
146 | 132 | $_input = end($this->global->formsStack)["checkbox"]; |
147 | 133 | echo $_input->getLabelPart("")->attributes() ?>><?php echo $_input->getLabelPart()->getHtml() ?></label> |
148 | 134 | <label title=hello<?php |
149 | 135 | $_input = end($this->global->formsStack)["checkbox"]; |
150 | | - echo $_input->getLabelPart()->addAttributes(array ( |
151 | | - 'title' => NULL, |
152 | | - ))->attributes() ?>><?php echo $_input->getLabelPart()->getHtml() ?></label> |
| 136 | + echo $_input->getLabelPart()->addAttributes(['title' => null])->attributes() ?>><?php echo $_input->getLabelPart()->getHtml() ?></label> |
153 | 137 |
|
154 | 138 |
|
155 | 139 | <?php |
|
164 | 148 | $_input = end($this->global->formsStack)["checklist"]; |
165 | 149 | echo $_input->getLabelPart($key)->attributes() ?>> <input title=hello<?php |
166 | 150 | $_input = end($this->global->formsStack)["checklist"]; |
167 | | - echo $_input->getControlPart($key)->addAttributes(array ( |
168 | | - 'title' => NULL, |
169 | | - ))->attributes() ?>> </label> |
| 151 | + echo $_input->getControlPart($key)->addAttributes(['title' => null])->attributes() ?>> </label> |
170 | 152 | <?php |
171 | 153 | $iterations++; |
172 | 154 | } |
|
178 | 160 | echo $_input->getLabelPart()->attributes() ?>><?php echo $_input->getLabelPart()->getHtml() ?></label> |
179 | 161 | <label title="hello"<?php |
180 | 162 | $_input = end($this->global->formsStack)["checklist"]; |
181 | | - echo $_input->getLabelPart()->addAttributes(array ( |
182 | | - 'title' => NULL, |
183 | | - ))->attributes() ?>><?php echo $_input->getLabelPart()->getHtml() ?></label> |
| 163 | + echo $_input->getLabelPart()->addAttributes(['title' => null])->attributes() ?>><?php echo $_input->getLabelPart()->getHtml() ?></label> |
184 | 164 |
|
185 | 165 |
|
186 | 166 | <?php |
187 | 167 | $form = $_form = $this->global->formsStack[] = $this->global->uiControl["myForm"]; |
188 | 168 | if (1) { |
189 | | - ?><form id="myForm" class="ajax"<?php |
190 | | - echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), array ( |
191 | | - 'id' => NULL, |
192 | | - 'class' => NULL, |
193 | | - ), false) ?>> |
| 169 | + ?><form id="myForm" class="ajax"<?php echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), ['id' => null, 'class' => null], false) ?>> |
194 | 170 | <input<?php |
195 | 171 | $_input = end($this->global->formsStack)["username"]; |
196 | 172 | echo $_input->getControlPart()->attributes() ?>> |
|
205 | 181 | <?php |
206 | 182 | $form = $_form = $this->global->formsStack[] = $this->global->uiControl["myForm"]; |
207 | 183 | ?><form<?php |
208 | | - if ($_tmp = array_filter(['nclass'])) echo ' class="', LR\Filters::escapeHtmlAttr(implode(" ", array_unique($_tmp))), '"'; |
209 | | - echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), array ( |
210 | | - 'class' => NULL, |
211 | | - ), false) ?>> |
| 184 | + echo ($_tmp = array_filter(['nclass'])) ? ' class="' . LR\Filters::escapeHtmlAttr(implode(" ", array_unique($_tmp))) . '"' : ""; |
| 185 | + echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), ['class' => null], false) ?>> |
212 | 186 | <input<?php |
213 | 187 | $_input = end($this->global->formsStack)["username"]; |
214 | | - echo $_input->getControlPart()->addAttributes(array ( |
215 | | - 'class' => NULL, |
216 | | - ))->attributes(); |
217 | | - if ($_tmp = array_filter(['nclass'])) echo ' class="', LR\Filters::escapeHtmlAttr(implode(" ", array_unique($_tmp))), '"' ?>> |
| 188 | + echo $_input->getControlPart()->addAttributes(['class' => null])->attributes(); |
| 189 | + echo ($_tmp = array_filter(['nclass'])) ? ' class="' . LR\Filters::escapeHtmlAttr(implode(" ", array_unique($_tmp))) . '"' : ""; |
| 190 | +?>> |
218 | 191 | <?php |
219 | 192 | echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd(array_pop($this->global->formsStack), false); |
220 | 193 | ?></form> |
221 | 194 |
|
222 | 195 |
|
223 | 196 | <?php |
224 | 197 | $form = $_form = $this->global->formsStack[] = is_object($this->global->uiControl['myForm']) ? $this->global->uiControl['myForm'] : $this->global->uiControl[$this->global->uiControl['myForm']]; |
225 | | - ?><FORM<?php |
226 | | - echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), array ( |
227 | | - ), false) ?>> |
| 198 | + ?><FORM<?php echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), [], false) ?>> |
228 | 199 | <input<?php |
229 | 200 | $_input = end($this->global->formsStack)["username"]; |
230 | 201 | echo $_input->getControlPart()->attributes() ?>> |
|
240 | 211 |
|
241 | 212 | <textarea title="<?php echo LR\Filters::escapeHtmlAttr(10) /* line 76 */ ?>"<?php |
242 | 213 | $_input = end($this->global->formsStack)["area"]; |
243 | | - echo $_input->getControlPart()->addAttributes(array ( |
244 | | - 'title' => NULL, |
245 | | - ))->attributes() ?>><?php echo $_input->getControl()->getHtml() ?></textarea> |
| 214 | + echo $_input->getControlPart()->addAttributes(['title' => null])->attributes() ?>><?php echo $_input->getControl()->getHtml() ?></textarea> |
246 | 215 |
|
247 | 216 |
|
248 | 217 | <select<?php |
|
0 commit comments