-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05d7dcf
commit 7d385f1
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
templates/shaper_helix3/html/com_contact/contact/default_form.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
/** | ||
* @package Joomla.Site | ||
* @subpackage com_contact | ||
* | ||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
use Joomla\CMS\HTML\HTMLHelper; | ||
use Joomla\CMS\Language\Text; | ||
use Joomla\CMS\Router\Route; | ||
|
||
HTMLHelper::_('behavior.keepalive'); | ||
HTMLHelper::_('behavior.formvalidator'); | ||
|
||
?> | ||
<div class="com-contact__form contact-form"> | ||
<form id="contact-form" action="<?php echo Route::_('index.php'); ?>" method="post" class="form-validate well"> | ||
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?> | ||
<?php if ($fieldset->name === 'captcha' && $this->captchaEnabled) : ?> | ||
<?php continue; ?> | ||
<?php endif; ?> | ||
<?php $fields = $this->form->getFieldset($fieldset->name); ?> | ||
<?php if (count($fields)) : ?> | ||
<fieldset class="m-0 col-8 m-auto"> | ||
<?php if (isset($fieldset->label) && ($legend = trim(Text::_($fieldset->label))) !== '') : ?> | ||
<legend><?php echo $legend; ?></legend> | ||
<?php endif; ?> | ||
<?php foreach ($fields as $field) : ?> | ||
<?php echo $field->renderField(); ?> | ||
<?php endforeach; ?> | ||
</fieldset> | ||
<?php endif; ?> | ||
<?php endforeach; ?> | ||
<?php if ($this->captchaEnabled) : ?> | ||
<?php echo $this->form->renderFieldset('captcha'); ?> | ||
<?php endif; ?> | ||
<div class="control-group"> | ||
<div class="controls col-8 m-auto"> | ||
<button class="btn btn-primary validate" type="submit"><?php echo Text::_('COM_CONTACT_CONTACT_SEND'); ?></button> | ||
<input type="hidden" name="option" value="com_contact"> | ||
<input type="hidden" name="task" value="contact.submit"> | ||
<input type="hidden" name="return" value="<?php echo $this->return_page; ?>"> | ||
<input type="hidden" name="id" value="<?php echo $this->item->slug; ?>"> | ||
<?php echo HTMLHelper::_('form.token'); ?> | ||
</div> | ||
</div> | ||
</form> | ||
</div> |