Skip to content

Instantly share code, notes, and snippets.

@janstieler
Created January 8, 2016 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janstieler/9cebcf3e835cd395f449 to your computer and use it in GitHub Desktop.
Save janstieler/9cebcf3e835cd395f449 to your computer and use it in GitHub Desktop.
<form class="contactform" action="" method="post" accept-charset="UTF-8" role="form">
<?php if($contactalert): ?>
<div class="alert" role="alert">
<h4 class="pull-left"><?php echo l::get('alert')?></h4>
<button type="button" class="unloadalert btn btn-default-white pull-right" aria-label="Close"><i class="icon-cross" aria-hidden="true"></i></button>
<ul style="clear: both">
<?php foreach($contactalert as $contactmessage): ?>
<li><?php echo html($contactmessage) ?></li>
<?php endforeach ?>
</ul>
</div>
<?php endif ?>
<div class="form-group col-xs-24 col-sm-24 col-md-24 col-lg-24">
<label for="contactname" class="sr-only"><?php echo l::get('contactname') ?></label>
<input type="text" id="contactname" class="form-control col-xs-24 col-sm-24 col-md-24 col-lg-24" name="contactname" placeholder="<?php echo l::get('contactname') ?>" value="<?php if (isset($_POST['contactname'])) : echo $_POST['contactname']; else: ''; endif ?>">
</div>
<div class="form-group col-xs-24 col-sm-24 col-md-24 col-lg-24">
<label for="contactemail" class="sr-only"><?php echo l::get('contactemail') ?></label>
<input type="email" id="contactemail" class="form-control col-xs-24 col-sm-24 col-md-24 col-lg-24" name="contactemail" placeholder="<?php echo l::get('contactemail') ?>"value="<?php if (isset($_POST['contactemail'])) : echo $_POST['contactemail']; else: ''; endif ?>" >
</div>
<div class="form-group col-xs-24 col-sm-24 col-md-24 col-lg-24">
<label for="contactsubject" class="sr-only"><?php echo l::get('contactsubject') ?></label>
<input type="text" id="contactsubject" class="form-control col-xs-24 col-sm-24 col-md-24 col-lg-24" name="contactsubject" placeholder="<?php echo l::get('contactsubject') ?>" value="<?php if (isset($_POST['contactsubject'])) : echo $_POST['contactsubject']; else: ''; endif ?>">
</div>
<div class="form-group col-xs-24 col-sm-24 col-md-24 col-lg-24">
<label for="contacttext" class="sr-only"><?php echo l::get('contacttext') ?></label>
<textarea id="contacttext" name="contacttext" class="form-control col-xs-24 col-sm-24 col-md-24 col-lg-24" rows="6" placeholder="<?php echo l::get('contacttext') ?>"><?php if (isset($_POST['contacttext'])) : echo $_POST['contacttext']; else: ''; endif ?></textarea>
</div>
<div class="form-group col-xs-24 col-sm-24 col-md-24 col-lg-24">
<!--
<div class="form-group col-xs-24 col-sm-24 col-md-24 col-lg-24 nopadding">
<div class="captchaimage col-xs-12 col-sm-8 col-md-8 col-lg-4">
<img id="captchaimage" src="<?php /* echo url('captcha') */ ?>" alt="CAPTCHA Image" class="img-responsive">
</div>
<label for="contactcaptcha" class="sr-only"><?php /* echo l::get('captcha') */ ?></label>
<input type="text" class="col-xs-12 col-sm-16 col-md-16 col-lg-20 pull-right" id="contactcaptcha" name="contactcaptcha" maxlength="6" placeholder="<?php /* echo l::get('captcha') */ ?>">
</div>
-->
<!-- <button class="newCaptcha btn btn-default col-xs-11 col-sm-11 col-md-11 col-lg-7 pull-left text-right clearfix" onclick="document.getElementById('captchaimg').src = '<?php /* echo url('captcha') */ ?>?' + Math.random(); return false"><?php /* echo l::get('captchaimage') */ ?></button> -->
<button class="submit btn btn-green col-xs-11 col-sm-11 col-md-11 col-lg-7 pull-right" type="submit" name="contactsubmit" value="Submit"><?php echo l::get('submit') ?></button>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment