app/Resources/views/Areas/commercialcontactform/view.html.php line 138

Open in your IDE?
  1. <section id="<?= $id ?>" class="<?= $class ?>">
  2.     <style><?= file_get_contents__DIR__.'/style.css' ?></style>
  3.     <style>
  4.         @media screen and (min-width: 0px) {
  5.             <?php if( $ContactObject->getMainBgColor() ) : ?>
  6.                 section.theme-area.commercialcontactform#<?= $id ?> {
  7.                     background-color: <?= $ContactObject->getMainBgColor() ?>;
  8.                 }
  9.             <?php endif; ?>
  10.             <?php if( $ContactObject->getMainBgBranding() && $ContactObject->getMainBgBranding() != 'disabled' ) : ?>
  11.                 section.theme-area.commercialcontactform#<?= $id ?> {
  12.                     background-image: url('<?= $ContactObject->getMainBgBranding() ?>');
  13.                 }
  14.             <?php endif; ?>
  15.             <?php if( $ContactObject->getMainHeroImage() ) : ?>
  16.                 section.theme-area.commercialcontactform#<?= $id ?> .background-image-wrapper {
  17.                     background-image: url('<?= $ContactObject->getMainHeroImage()->getFullPath() ?>');
  18.                 }
  19.             <?php endif; ?>
  20.             <?php if( $ContactObject->getMainHeroImageAlign() ) : ?>
  21.                 section.theme-area.commercialcontactform#<?= $id ?> .background-image-wrapper {
  22.                     background-position: top <?= $ContactObject->getMainHeroImageAlign() ?>;
  23.                 }
  24.             <?php endif; ?>
  25.             <?php if( $ContactObject->getSidebarDashColor() ) : ?>
  26.                 section.theme-area.commercialcontactform#<?= $id ?> .info-content::before {
  27.                     background-color: <?= $ContactObject->getSidebarDashColor() ?>;
  28.                 }
  29.             <?php endif; ?>
  30.             <?php if( $ContactObject->getMainHeroHeadingColor() ) : ?>
  31.                 section.theme-area.commercialcontactform#<?= $id ?> h1.heading {
  32.                     color: <?= $ContactObject->getMainHeroHeadingColor() ?>;
  33.                 }
  34.             <?php endif; ?>
  35.             <?php if( $ContactObject->getSidebarHeadingColor() ) : ?>
  36.                 section.theme-area.commercialcontactform#<?= $id ?> h2.info-heading {
  37.                     color: <?= $ContactObject->getSidebarHeadingColor() ?>;
  38.                 }
  39.             <?php endif; ?>
  40.             <?php if( $ContactObject->getSidebarBgColor() ) : ?>
  41.                 section.theme-area.commercialcontactform#<?= $id ?> .contact-information {
  42.                     background-color: <?= $ContactObject->getSidebarBgColor() ?>;
  43.                 }
  44.             <?php endif; ?>
  45.             <?php if( $ContactObject->getSidebarTextColor() ) : ?>
  46.                 section.theme-area.commercialcontactform#<?= $id ?> .contact-information {
  47.                     color: <?= $ContactObject->getSidebarTextColor() ?>;
  48.                 }
  49.             <?php endif; ?>
  50.         }
  51.     </style>
  52.     <div class="background-image-wrapper">
  53.         <div class="interior">
  54.             <?php /* HEADING */ ?>
  55.             <?php if( $ContactObject->getMainHeroHeadingText() ) : ?>
  56.                 <h1 class="heading"><?= $ContactObject->getMainHeroHeadingText() ?></h1>
  57.             <?php endif; ?>
  58.             <div class="grid-x contact-form-container">
  59.                 <?php /* SIDEBAR */ ?>
  60.                 <div class="medium-4 cell contact-information">
  61.                     <?php foreach( $ContactObject->getSidebarInfo() as $SidebarInfo ) : ?>
  62.                         <div class="info-wrapper">
  63.                             <?php if( !empty( $SidebarInfo'Heading' ]->getData() ) ) : ?>
  64.                                 <h2 class="info-heading"><?= $SidebarInfo'Heading' ]->getData() ?></h2>
  65.                             <?php endif; ?>
  66.                             <?php if( !empty( $SidebarInfo'Content' ]->getData() ) ) : ?>
  67.                                 <div class="info-content"><?= $SidebarInfo'Content' ]->getData() ?></div>
  68.                             <?php endif; ?>
  69.                         </div>
  70.                     <?php endforeach; ?>
  71.                 </div>
  72.                 <?php /* CONTACT FORM */ ?>
  73.                 <div class="medium-8 cell contact-form">
  74.                     <?php /* FEEDBACK MESSAGING */ ?>
  75.                     <?php if( $RequestResponse ) : ?>
  76.                         <div class="callout <?= substr$RequestResponse0) == 'Success' 'success' 'alert' ?>"><?= $RequestResponse ?></div>
  77.                     <?php endif; ?>
  78.                     <form method="POST">
  79.                         <input type="hidden" name="component_id" value="<?= $id ?>" />
  80.                         <input type="hidden" name="object_id" value="<?= $ContactObject->getId() ?>" />
  81.                         <fieldset class="form-columns-2">
  82.                             <div class="hs_firstname hs-firstname hs-fieldtype-text field hs-form-field">
  83.                                 <div class="input">
  84.                                     <input type="text" id="fName" name="fName" placeholder="First Name" required />
  85.                                 </div>
  86.                             </div>
  87.                             <div class="hs_lastname hs-lastname hs-fieldtype-text field hs-form-field">
  88.                                 <div class="input">
  89.                                     <input type="text" id="lName" name="lName" placeholder="Last Name" required />
  90.                                 </div>
  91.                             </div>
  92.                         </fieldset>
  93.                         <fieldset class="form-columns-2">
  94.                             <div class="email">
  95.                                 <div class="input">
  96.                                     <input type="email" id="email" name="email" placeholder="Primary Email Address" required />
  97.                                 </div>
  98.                             </div>
  99.                             <div class="phone">
  100.                                 <div class="input">
  101.                                     <input type="tel" id="phone" name="phone" placeholder="XXX-XXX-XXXX" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" />
  102.                                 </div>
  103.                             </div>
  104.                         </fieldset>
  105.                         <fieldset class="form-columns-1">
  106.                             <div class="hs_message hs-message hs-fieldtype-textarea field hs-form-field">
  107.                                 <div class="input">
  108.                                     <textarea name="message" id="message" cols="5" rows="10" placeholder="What can we assist you with?"></textarea>
  109.                                     <div class="hp-wrap"><textarea name="additional" id="additional" cols="5" rows="10" placeholder="Any additional requests?" tabindex="-1"></textarea></div>
  110.                                 </div>
  111.                             </div>
  112.                         </fieldset>
  113.                         <fieldset class="form-columns-1">
  114.                             <div class="hs_desired_county hs-desired_county hs-fieldtype-select field hs-form-field">
  115.                                 <legend class="hs-field-desc" style="display:block;">Which location are you intersted in?</legend>
  116.                                 <div class="input">
  117.                                     <select class="hs-input" name="location" id="location" placeholder="Please choose you location" required>
  118.                                         <option value="" disabled selected>Select location...</option>
  119.                                         <?php foreach( $select_options as $select_option ) : ?>
  120.                                             <option value="<?= $select_option ?>"><?= $select_option ?></option>
  121.                                         <?php endforeach; ?>
  122.                                     </select>
  123.                                 </div>
  124.                             </div>
  125.                         </fieldset>
  126.                         <div class="input">
  127.                             <div class="g-recaptcha" data-sitekey="6LfTvr0UAAAAAMxrQ8hvTvljTHHpicRPgETlx6v0"></div>
  128.                         </div>
  129.                         <div class="hs_submit">
  130.                             <div class="class=">
  131.                                 <input type="submit" value="Get In Touch" class="hs-button">
  132.                             </div>
  133.                         </div>
  134.                     </form>
  135.                 </div>
  136.             </div>
  137.         </div>
  138.     </div>
  139.     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  140. </section>