|
3 | 3 | * @package Joomla.Site
|
4 | 4 | * @subpackage com_content
|
5 | 5 | *
|
6 |
| - * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved. |
| 6 | + * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. |
7 | 7 | * @license GNU General Public License version 2 or later; see LICENSE.txt
|
8 | 8 | */
|
9 | 9 |
|
|
12 | 12 | JHtml::_('behavior.tabstate');
|
13 | 13 | JHtml::_('behavior.keepalive');
|
14 | 14 | JHtml::_('behavior.calendar');
|
15 |
| -JHtml::_('behavior.formvalidation'); |
| 15 | +JHtml::_('behavior.formvalidator'); |
16 | 16 |
|
17 | 17 | if(version_compare(JVERSION, '3.0', 'ge')){
|
18 | 18 | JHtml::_('formbehavior.chosen', 'select');
|
|
82 | 82 | <?php if ($params->get('show_urls_images_frontend') ) : ?>
|
83 | 83 | <li><a href="#images" data-toggle="tab"><?php echo JText::_('COM_CONTENT_IMAGES_AND_URLS') ?></a></li>
|
84 | 84 | <?php endif; ?>
|
| 85 | + <?php foreach ($this->form->getFieldsets('params') as $name => $fieldSet) : ?> |
| 86 | + <li><a href="#params-<?php echo $name; ?>" data-toggle="tab"><?php echo JText::_($fieldSet->label); ?></a></li> |
| 87 | + <?php endforeach; ?> |
85 | 88 | <li><a href="#publishing" data-toggle="tab"><?php echo JText::_('COM_CONTENT_PUBLISHING') ?></a></li>
|
86 | 89 | <li><a href="#language" data-toggle="tab"><?php echo JText::_('JFIELD_LANGUAGE_LABEL') ?></a></li>
|
87 | 90 | <li><a href="#metadata" data-toggle="tab"><?php echo JText::_('COM_CONTENT_METADATA') ?></a></li>
|
|
91 | 94 | <div class="tab-pane active" id="editor">
|
92 | 95 |
|
93 | 96 | <div class="form-group">
|
94 |
| - <?php echo $this->form->getLabel('title'); ?> |
95 |
| - <?php echo $this->form->getInput('title'); ?> |
| 97 | + <?php echo $this->form->renderField('title'); ?> |
96 | 98 | </div>
|
97 | 99 |
|
98 | 100 | <?php if (is_null($this->item->id)) : ?>
|
99 | 101 | <div class="form-group">
|
100 |
| - <?php echo $this->form->getLabel('alias'); ?> |
101 |
| - <?php echo $this->form->getInput('alias'); ?> |
| 102 | + <?php echo $this->form->renderField('alias'); ?> |
102 | 103 | </div>
|
103 | 104 | <?php endif; ?>
|
104 | 105 |
|
105 | 106 | <div class="form-group">
|
106 | 107 | <?php echo $this->form->getInput('articletext'); ?>
|
107 | 108 | </div>
|
| 109 | + |
| 110 | + <?php if ($this->captchaEnabled) : ?> |
| 111 | + <?php echo $this->form->renderField('captcha'); ?> |
| 112 | + <?php endif; ?> |
108 | 113 | </div>
|
109 | 114 |
|
110 | 115 | <?php if(count($extrafields)) : ?>
|
|
128 | 133 | <div class="tab-pane" id="images">
|
129 | 134 |
|
130 | 135 | <div class="form-group">
|
131 |
| - <?php echo $this->form->getLabel('image_intro', 'images'); ?> |
132 |
| - <?php echo $this->form->getInput('image_intro', 'images'); ?> |
| 136 | + <?php echo $this->form->renderField('image_intro', 'images'); ?> |
133 | 137 | </div>
|
134 | 138 |
|
135 | 139 | <div class="form-group">
|
136 |
| - <?php echo $this->form->getLabel('image_intro_alt', 'images'); ?> |
137 |
| - <?php echo $this->form->getInput('image_intro_alt', 'images'); ?> |
| 140 | + <?php echo $this->form->renderField('image_intro_alt', 'images'); ?> |
138 | 141 | </div>
|
139 | 142 |
|
140 | 143 | <div class="form-group">
|
141 |
| - <?php echo $this->form->getLabel('image_intro_caption', 'images'); ?> |
142 |
| - <?php echo $this->form->getInput('image_intro_caption', 'images'); ?> |
| 144 | + <?php echo $this->form->renderField('image_intro_caption', 'images'); ?> |
143 | 145 | </div>
|
144 | 146 |
|
145 | 147 | <div class="form-group">
|
146 |
| - <?php echo $this->form->getLabel('float_intro', 'images'); ?> |
147 |
| - <?php echo $this->form->getInput('float_intro', 'images'); ?> |
| 148 | + <?php echo $this->form->renderField('float_intro', 'images'); ?> |
148 | 149 | </div>
|
149 | 150 |
|
150 | 151 | <div class="form-group">
|
151 |
| - <?php echo $this->form->getLabel('image_fulltext', 'images'); ?> |
152 |
| - <?php echo $this->form->getInput('image_fulltext', 'images'); ?> |
| 152 | + <?php echo $this->form->renderField('image_fulltext', 'images'); ?> |
153 | 153 | </div>
|
154 | 154 |
|
155 | 155 | <div class="form-group">
|
156 |
| - <?php echo $this->form->getLabel('image_fulltext_alt', 'images'); ?> |
157 |
| - <?php echo $this->form->getInput('image_fulltext_alt', 'images'); ?> |
| 156 | + <?php echo $this->form->renderField('image_fulltext_alt', 'images'); ?> |
158 | 157 | </div>
|
159 | 158 |
|
160 | 159 | <div class="form-group">
|
161 |
| - <?php echo $this->form->getLabel('image_fulltext_caption', 'images'); ?> |
162 |
| - <?php echo $this->form->getInput('image_fulltext_caption', 'images'); ?> |
| 160 | + <?php echo $this->form->renderField('image_fulltext_caption', 'images'); ?> |
163 | 161 | </div>
|
164 | 162 |
|
165 | 163 | <div class="form-group">
|
166 |
| - <?php echo $this->form->getLabel('float_fulltext', 'images'); ?> |
167 |
| - <?php echo $this->form->getInput('float_fulltext', 'images'); ?> |
| 164 | + <?php echo $this->form->renderField('float_fulltext', 'images'); ?> |
168 | 165 | </div>
|
169 | 166 |
|
170 | 167 | <div class="form-group">
|
171 |
| - <?php echo $this->form->getLabel('urla', 'urls'); ?> |
172 |
| - <?php echo $this->form->getInput('urla', 'urls'); ?> |
| 168 | + <?php echo $this->form->renderField('urla', 'urls'); ?> |
173 | 169 | </div>
|
174 | 170 |
|
175 | 171 | <div class="form-group">
|
176 |
| - <?php echo $this->form->getLabel('urlatext', 'urls'); ?> |
177 |
| - <?php echo $this->form->getInput('urlatext', 'urls'); ?> |
| 172 | + <?php echo $this->form->renderField('urlatext', 'urls'); ?> |
178 | 173 | </div>
|
179 | 174 |
|
180 | 175 | <div class="form-group">
|
181 | 176 | <?php echo $this->form->getInput('targeta', 'urls'); ?>
|
182 | 177 | </div>
|
183 | 178 |
|
184 | 179 | <div class="form-group">
|
185 |
| - <?php echo $this->form->getLabel('urlb', 'urls'); ?> |
186 |
| - <?php echo $this->form->getInput('urlb', 'urls'); ?> |
| 180 | + <?php echo $this->form->renderField('urlb', 'urls'); ?> |
187 | 181 | </div>
|
188 | 182 |
|
189 | 183 | <div class="form-group">
|
190 |
| - <?php echo $this->form->getLabel('urlbtext', 'urls'); ?> |
191 |
| - <?php echo $this->form->getInput('urlbtext', 'urls'); ?> |
| 184 | + <?php echo $this->form->renderField('urlbtext', 'urls'); ?> |
192 | 185 | </div>
|
193 | 186 |
|
194 | 187 | <div class="form-group">
|
195 | 188 | <?php echo $this->form->getInput('targetb', 'urls'); ?>
|
196 | 189 | </div>
|
197 | 190 |
|
198 | 191 | <div class="form-group">
|
199 |
| - <?php echo $this->form->getLabel('urlc', 'urls'); ?> |
200 |
| - <?php echo $this->form->getInput('urlc', 'urls'); ?> |
| 192 | + <?php echo $this->form->renderField('urlc', 'urls'); ?> |
201 | 193 | </div>
|
202 | 194 |
|
203 | 195 | <div class="form-group">
|
204 |
| - <?php echo $this->form->getLabel('urlctext', 'urls'); ?> |
205 |
| - <?php echo $this->form->getInput('urlctext', 'urls'); ?> |
| 196 | + <?php echo $this->form->renderField('urlctext', 'urls'); ?> |
206 | 197 | </div>
|
207 | 198 |
|
208 | 199 | <div class="form-group">
|
|
214 | 205 |
|
215 | 206 | <div class="tab-pane" id="publishing">
|
216 | 207 | <div class="form-group">
|
217 |
| - <?php echo $this->form->getLabel('catid'); ?> |
218 |
| - <?php echo $this->form->getInput('catid'); ?> |
| 208 | + <?php echo $this->form->renderField('catid'); ?> |
219 | 209 | </div>
|
220 | 210 |
|
221 | 211 | <div class="form-group">
|
222 |
| - <?php echo $this->form->getLabel('tags'); ?> |
223 |
| - <?php echo str_replace('span12', '', $this->form->getInput('tags')); ?> |
| 212 | + <?php echo $this->form->renderField('tags'); ?> |
224 | 213 | </div>
|
225 | 214 |
|
226 | 215 | <?php if ($params->get('save_history', 0)) : ?>
|
227 | 216 | <div class="form-group">
|
228 |
| - <?php echo $this->form->getLabel('version_note'); ?> |
229 |
| - <?php echo $this->form->getInput('version_note'); ?> |
| 217 | + <?php echo $this->form->renderField('version_note'); ?> |
230 | 218 | </div>
|
231 | 219 | <?php endif; ?>
|
232 | 220 |
|
233 | 221 | <div class="form-group">
|
234 |
| - <?php echo $this->form->getLabel('created_by_alias'); ?> |
235 |
| - <?php echo $this->form->getInput('created_by_alias'); ?> |
| 222 | + <?php echo $this->form->renderField('created_by_alias'); ?> |
236 | 223 | </div>
|
237 | 224 |
|
238 | 225 | <?php if ($this->item->params->get('access-change')) : ?>
|
239 | 226 | <div class="form-group">
|
240 |
| - <?php echo $this->form->getLabel('state'); ?> |
241 |
| - <?php echo $this->form->getInput('state'); ?> |
| 227 | + <?php echo $this->form->renderField('state'); ?> |
242 | 228 | </div>
|
243 | 229 |
|
244 | 230 | <div class="form-group">
|
245 |
| - <?php echo $this->form->getLabel('featured'); ?> |
246 |
| - <?php echo $this->form->getInput('featured'); ?> |
| 231 | + <?php echo $this->form->renderField('featured'); ?> |
247 | 232 | </div>
|
248 | 233 |
|
249 | 234 | <div class="form-group">
|
250 |
| - <?php echo $this->form->getLabel('publish_up'); ?> |
251 |
| - <?php echo str_replace('class="btn"', 'class="btn btn-default"', $this->form->getInput('publish_up')); ?> |
| 235 | + <?php echo $this->form->renderField('publish_up'); ?> |
252 | 236 | </div>
|
253 | 237 |
|
254 | 238 | <div class="form-group">
|
255 |
| - <?php echo $this->form->getLabel('publish_down'); ?> |
256 |
| - <?php echo str_replace('class="btn"', 'class="btn btn-default"', $this->form->getInput('publish_down')); ?> |
| 239 | + <?php echo $this->form->renderField('publish_down'); ?> |
257 | 240 | </div>
|
258 | 241 | <?php endif; ?>
|
259 | 242 |
|
260 | 243 | <div class="form-group">
|
261 |
| - <?php echo $this->form->getLabel('access'); ?> |
262 |
| - <?php echo $this->form->getInput('access'); ?> |
| 244 | + <?php echo $this->form->renderField('access'); ?> |
263 | 245 | </div>
|
264 | 246 |
|
265 | 247 | <?php if (is_null($this->item->id)):?>
|
|
271 | 253 |
|
272 | 254 | <div class="tab-pane" id="language">
|
273 | 255 | <div class="form-group">
|
274 |
| - <?php echo $this->form->getLabel('language'); ?> |
275 |
| - <?php echo $this->form->getInput('language'); ?> |
| 256 | + <?php echo $this->form->renderField('language'); ?> |
276 | 257 | </div>
|
277 | 258 | </div>
|
278 | 259 |
|
279 | 260 | <div class="tab-pane" id="metadata">
|
280 | 261 | <div class="form-group">
|
281 |
| - <?php echo $this->form->getLabel('metadesc'); ?> |
282 |
| - <?php echo $this->form->getInput('metadesc'); ?> |
| 262 | + <?php echo $this->form->renderField('metadesc'); ?> |
283 | 263 | </div>
|
284 | 264 |
|
285 | 265 | <div class="form-group">
|
286 |
| - <?php echo $this->form->getLabel('metakey'); ?> |
287 |
| - <?php echo $this->form->getInput('metakey'); ?> |
| 266 | + <?php echo $this->form->renderField('metakey'); ?> |
288 | 267 | </div>
|
289 | 268 |
|
290 | 269 | <input type="hidden" name="task" value="" />
|
291 | 270 | <input type="hidden" name="return" value="<?php echo $this->return_page; ?>" />
|
292 |
| - <?php if ($this->params->get('enable_category', 0) == 1) :?> |
293 |
| - <input type="hidden" name="jform[catid]" value="<?php echo $this->params->get('catid', 1); ?>" /> |
294 |
| - <?php endif; ?> |
295 | 271 | </div>
|
296 | 272 | </div>
|
297 | 273 | <div class="btn-toolbar">
|
|
0 commit comments