| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <div class="container mt-3 py-4">
- <div class="row">
- <div class="col-lg-4">
- <h2><?=htmlspecialchars(__("Contact Info"))?></h2>
- <p><?=htmlspecialchars(__("We are always happy to receive correspondence. We try to answer all emails within an hour during working hours."))?></p>
- <strong><address><?=htmlspecialchars(COMPANY_NAME)?><br /><?=nl2br(ADDRESS)?></address></strong>
- <ul>
- <li><i class="fal fa-fw fa-phone"></i> <?=PHONE?></li>
- <li><i class="fal fa-fw fa-envelope"></i> <a href="mailto:admin@<?=DOMAIN?>">admin@<?=DOMAIN?></a></li>
- </ul>
- </div>
- <div class="col-lg-8">
- <h2><?=htmlspecialchars(__("Contact Form"))?></h2>
- <form method="post" data-recaptcha-form>
- <div class="row">
- <div class="col-md">
- <div class="form-group">
- <input class="form-control" type="text" name="name" placeholder="<?=htmlspecialchars(__("Enter name"))?>" required />
- </div>
- </div>
- <div class="col-md">
- <div class="form-group">
- <input class="form-control" type="text" name="email" placeholder="<?=htmlspecialchars(__("Enter email address"))?>" required />
- </div>
- </div>
- <div class="col-md">
- <div class="form-group">
- <input class="form-control" type="text" name="phone" placeholder="<?=htmlspecialchars(__("Enter contact number"))?>" required />
- </div>
- </div>
- </div>
- <div class="form-group">
- <textarea class="form-control mb-3" name="message" placeholder="<?=htmlspecialchars(__("Enter message"))?>" rows="8" required></textarea>
- </div>
- <?php
- if(GOOGLE_RECAPTCHA_SITE_KEY) {
- if(GOOGLE_RECAPTCHA_VERSION == 2) {
- ?>
- <div class="g-recaptcha my-3" data-sitekey="<?=GOOGLE_RECAPTCHA_SITE_KEY?>"></div>
- <?php
- }
- if(GOOGLE_RECAPTCHA_VERSION == 3) {
- ?>
- <div class="mb-3 text-muted">
- <small>
- <?=sprintf(htmlspecialchars(__("This site is protected by reCAPTCHA and the Google %sPrivacy Policy%s and %sTerms of Service%s apply.")),
- '<a href="https://policies.google.com/privacy">', '</a>',
- '<a href="https://policies.google.com/terms">', '</a>'
- )?>
- </small>
- </div>
- <?php
- }
- ?>
- <?php
- }
- ?>
- <button class="btn btn-primary" type="submit" name="submit" value="<?=$_SESSION["csrf_token"]?>"><?=htmlspecialchars(__("Send Message"))?></button>
- </form>
- </div>
- </div>
- </div>
|