contact.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. $bodyclasses = 'contact page';
  3. $title = 'Contact me';
  4. $tagline = '';
  5. $description = 'Everything you need to know to get in touch with me.';
  6. $keywords = 'music, learning, tabletop, research, the open university';
  7. $twitter_image = 'images/colopic.jpg';
  8. $js = array('H5F', 'contact');
  9. session_start();
  10. ?>
  11. <?=i('_header')?>
  12. <article class="body bottom_padding">
  13. <section class="links">
  14. <p>You can find me on these web sites…</p>
  15. <ul class="nobullets">
  16. <!-- <li><span class="fa fa-envelope-o fa-fw" style="color: #abc"></span> <a href="mailto:"></a> -->
  17. <li><span class="fa fa-linkedin-square fa-fw" style="color: #0077b5"></span> <a href="//www.linkedin.com/in/andreafranceschini" target="_blank">LinkedIn</a></li>
  18. <li><span class="fa fa-twitter-square fa-fw" style="color: #55acee"></span> @<a href="//www.twitter.com/morpheu5" target="_blank">morpheu5</a></li>
  19. <li><span class="fa fa-google-plus-square fa-fw" style="color: #dd4b39"></span> +<a href="//plus.google.com/+AndreaFranceschini" target="_blank">AndreaFranceschini</a></li>
  20. <li><span class="fa fa-github fa-fw" style="color: black"></span> <a href="//github.com/Morpheu5" target="_blank">Morpheu5</a></li>
  21. </ul>
  22. </section>
  23. <section class="form">
  24. <?php if((array_key_exists('contact_thanks', $_SESSION) && $_SESSION['contact_thanks'] == 1)) : ?>
  25. <p class="contact_thanks">Thanks for your message, I'll try to answer as soon as I can!</p>
  26. <p class="meanwhile">In the meanwhile, why don't you have a look at those links on the left?</p>
  27. <?php unset($_SESSION['contact_thanks']) ?>
  28. <?php else : ?>
  29. <p>&nbsp;… or you can drop me a line.</p>
  30. <p>&nbsp;</p>
  31. <form id="theContactForm" action="<?=$baseurl?>api/mailer" method="post">
  32. <div class="text field" id="senderName">
  33. <label for="senderNameBox">Name</label>
  34. <input id="senderNameBox" name="name" type="text" required autocomplete="name" />
  35. </div>
  36. <div class="text field" id="senderEmail">
  37. <label for="senderEmailBox">E-mail</label>
  38. <input id="senderEmailBox" name="email" type="email" required autocomplete="email" pattern="^.+@.+\..+"/>
  39. </div>
  40. <div class="textarea field" id="message">
  41. <label for="messageBox">Message</label>
  42. <textarea id="messageBox" name="message" required></textarea>
  43. </div>
  44. <div class="text field" id="captcha" style="display: none">
  45. <label for="captchaBox">If you are human, you'll leave this box alone</label>
  46. <input type="text" style="display: none" id="captchaBox" name="captcha" />
  47. </div>
  48. <div class="button" id="submit">
  49. <button type="submit" id="submitButton" disabled><span class="fa fa-paper-plane"></span> Send</button>
  50. </div>
  51. </form>
  52. <?php endif ?>
  53. </section>
  54. </article>
  55. <?=i('_footer')?>