CoreFiles by mySites.guru
default_form.php59 lines, 2,087 bytes, from Joomla_3.5.0-beta-Beta-Full_Package.zip
Raw History Compare with 3.4.0-beta3
md5
eb0411e0e7abd9437148defc616c0d0c
sha1
283fdf58a7ed94975cf665ffc4bf1ed38962992e
sha256
7f914df7b66faee01021a10376ef76fd3cc8060b704fb9a3c6b7ea58e57186dc
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidator');

if (isset($this->error)) : ?>
	<div class="contact-error">
		<?php echo $this->error; ?>
	</div>
<?php endif; ?>

<div class="contact-form">
	<form id="contact-form" action="<?php echo JRoute::_('index.php'); ?>" method="post" class="form-validate form-horizontal">
		<fieldset>
			<legend><?php echo JText::_('COM_CONTACT_FORM_LABEL'); ?></legend>

			<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
				<?php foreach ($this->form->getFieldset($fieldset->name) as $field) : ?>
					<?php if ($field->name === 'contact_email_copy' && !$this->params->get('show_email_copy')) : ?>
						<?php continue; ?>
					<?php endif; ?>
					<div class="control-group">
						<?php if ($field->hidden) : ?>
							<div class="controls">
								<?php echo $field->input; ?>
							</div>
						<?php else: ?>
							<div class="control-label">
								<?php echo $field->label; ?>
								<?php if (!$field->required && $field->type != 'Spacer') : ?>
									<span class="optional"><?php echo JText::_('COM_CONTACT_OPTIONAL'); ?></span>
								<?php endif; ?>
							</div>
							<div class="controls"><?php echo $field->input; ?></div>
						<?php endif; ?>
					</div>
				<?php endforeach; ?>
			<?php endforeach; ?>

			<div class="form-actions">
				<button class="btn btn-primary validate" type="submit"><?php echo JText::_('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->contact->slug; ?>" />
				<?php echo JHtml::_('form.token'); ?>
			</div>
		</fieldset>
	</form>
</div>

No other release has this exact content. See every version of this file.