templates/component/footer/footer_contact.html.twig line 1

Open in your IDE?
  1. {#
  2.     component: footer-contact
  3.     contactTitle {string}: Titre du contact
  4.     mapLink {string}: Lien vers l'adresse google maps
  5.   address {string}: Adresse
  6.   email {string}: Email
  7.   phone {string}: Numéro de téléphone
  8.   image {image}:
  9.       size: {
  10.         width: "1440",
  11.         height: "835"
  12.       }
  13.       
  14.     form {
  15.         action {string}: Action du formulaire
  16.     title {string}: titre du formulaire
  17.         inputs {array}: tableau d'inputs
  18.         buttonText {string}: Texte du bouton d'envoi
  19.         information {string}: Texte d'information
  20.         mandatory {string}: Texte de champs obligatoires
  21.     }
  22. #}
  23. {% set props = {
  24.   contactTitle: "footer.contact.title"|trans,
  25.   mapLink:"https://www.google.com/maps/search/?api=1&query=Port%20du%20Crouesty,%20Route%20du%20Petit%20Mont%2056640%20Arzon,%20France",
  26.   address: "Port du Crouesty, Route du Petit Mont <br>56640 Arzon, France",
  27.   email: "reservation@miramar-lacigale.com",
  28.   phone: "TEL : 02 97 53 49 13",
  29.   schedule: "footer.horaire"|trans,
  30.   image:  asset('build/images/footer-contact-background.jpg'),
  31.   form:{
  32.     action: url,
  33.         title:"footer.contact.rappel"|trans,
  34.     inputs: inputs_elements,
  35.     buttonText:"footer.contact.bouton"|trans,
  36.   }
  37. }|merge(props|default({}))  %}
  38. <div
  39.     data-component="footer-contact" class="FooterContact-component" id="ffm">
  40.     {# Background image #}
  41.     <div class="FooterContact-backgroundImage">
  42.         {% include "component/image.html.twig" with {
  43.       props: {
  44.         src:props.image
  45.       }
  46.     } %}
  47.     </div>
  48.     <div class="l-container">
  49.         <div
  50.             class="l-row">
  51.             {# Main #}
  52.             <div class="l-column FooterContact-main opened" ref="main">
  53.                 {% for message in app.flashes('footer_success') %}
  54.                     <div class="footer-form-message success" role="alert">
  55.                         {{ message }}
  56.                     </div><br>
  57.                 {% endfor %}
  58.                 {% for message in app.flashes('footer_error') %}
  59.                     <div class="footer-form-message error" role="alert">
  60.                         {{ message }}
  61.                     </div><br>
  62.                 {% endfor %}
  63.                 {# Title #}
  64.                 <p class="FooterContact-title">{{ props.contactTitle }}</p>
  65.                 {# Button contactForm #}
  66.                 <div ref="button">
  67.                     {% include "component/button.html.twig" with {
  68.             class: 'FooterContact-callLink',
  69.             props: {
  70.               text: props.form.buttonText,
  71.               contactButton:true
  72.             }
  73.           } %}
  74.                 </div>
  75.                 {# Address #}
  76.                 <a class="FooterContact-address" target="_blank" rel="noreferrer" href="{{ props.mapLink }}">
  77.                     {% include "component/wysiwyg.html.twig" with {
  78.                         props: {
  79.                             content: props.address
  80.                         }
  81.                     } %}
  82.                 </a>
  83.                 {# Tel #}
  84.                 <a class="FooterContact-tel" href="tel:{{ props.phone }}" title="Appeler le {{ props.phone }}">{{ props.phone }}</a>
  85.                 {# Schedule #}
  86.                 <a class="FooterContact-schedule">{{ props.schedule|raw }}</a>
  87.                 {# Email #}
  88.                 <a class="FooterContact-email" href="mailto:{{ props.email }}" title="Envoyer un email à {{ props.email }}">{{ props.email }}</a>
  89.             </div>
  90.             <div class="l-column FooterContact-form" ref="form">
  91.                 <div class="SimpleForm-closeForm" ref="closeButton"></div>
  92.                 {# Simple form #}
  93.                 {% include "component/form/simple_form.html.twig" with {
  94.                         props: {
  95.                             form: props.form
  96.                         }
  97.                 } %}
  98.             </div>
  99.         </div>
  100.     </div>
  101. </div>