1
0

contact.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <div class="container mt-3 py-4">
  2. <div class="row">
  3. <div class="col-lg-4">
  4. <h2><?=htmlspecialchars(__("Contact Info"))?></h2>
  5. <p><?=htmlspecialchars(__("We are always happy to receive correspondence. We try to answer all emails within an hour during working hours."))?></p>
  6. <strong><address><?=htmlspecialchars(COMPANY_NAME)?><br /><?=nl2br(ADDRESS)?></address></strong>
  7. <ul>
  8. <li><i class="fal fa-fw fa-phone"></i> <?=PHONE?></li>
  9. <li><i class="fal fa-fw fa-envelope"></i> <a href="mailto:admin@<?=DOMAIN?>">admin@<?=DOMAIN?></a></li>
  10. </ul>
  11. </div>
  12. <div class="col-lg-8">
  13. <h2><?=htmlspecialchars(__("Contact Form"))?></h2>
  14. <form method="post" data-recaptcha-form>
  15. <div class="row">
  16. <div class="col-md">
  17. <div class="form-group">
  18. <input class="form-control" type="text" name="name" placeholder="<?=htmlspecialchars(__("Enter name"))?>" required />
  19. </div>
  20. </div>
  21. <div class="col-md">
  22. <div class="form-group">
  23. <input class="form-control" type="text" name="email" placeholder="<?=htmlspecialchars(__("Enter email address"))?>" required />
  24. </div>
  25. </div>
  26. <div class="col-md">
  27. <div class="form-group">
  28. <input class="form-control" type="text" name="phone" placeholder="<?=htmlspecialchars(__("Enter contact number"))?>" required />
  29. </div>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <textarea class="form-control mb-3" name="message" placeholder="<?=htmlspecialchars(__("Enter message"))?>" rows="8" required></textarea>
  34. </div>
  35. <?php
  36. if(GOOGLE_RECAPTCHA_SITE_KEY) {
  37. if(GOOGLE_RECAPTCHA_VERSION == 2) {
  38. ?>
  39. <div class="g-recaptcha my-3" data-sitekey="<?=GOOGLE_RECAPTCHA_SITE_KEY?>"></div>
  40. <?php
  41. }
  42. if(GOOGLE_RECAPTCHA_VERSION == 3) {
  43. ?>
  44. <div class="mb-3 text-muted">
  45. <small>
  46. <?=sprintf(htmlspecialchars(__("This site is protected by reCAPTCHA and the Google %sPrivacy Policy%s and %sTerms of Service%s apply.")),
  47. '<a href="https://policies.google.com/privacy">', '</a>',
  48. '<a href="https://policies.google.com/terms">', '</a>'
  49. )?>
  50. </small>
  51. </div>
  52. <?php
  53. }
  54. ?>
  55. <?php
  56. }
  57. ?>
  58. <button class="btn btn-primary" type="submit" name="submit" value="<?=$_SESSION["csrf_token"]?>"><?=htmlspecialchars(__("Send Message"))?></button>
  59. </form>
  60. </div>
  61. </div>
  62. </div>