templates/contact.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %} {{ 'contact'|trans}} {% endblock %}
  3. {% block css %}
  4.     <style>
  5.         .contact .info-wrap {
  6.             box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  7.             padding: 30px;
  8.         }
  9.         .contact .info {
  10.             background: #fff;
  11.         }
  12.         .contact .info i {
  13.             font-size: 20px;
  14.             color: #0084d6;
  15.             float: left;
  16.             width: 44px;
  17.             height: 44px;
  18.             border: 1px solid #0084d6;
  19.             display: flex;
  20.             justify-content: center;
  21.             align-items: center;
  22.             border-radius: 50px;
  23.             transition: all 0.3s;
  24.         }
  25.         .contact .info h4 {
  26.             padding: 0 0 0 60px;
  27.             font-size: 22px;
  28.             font-weight: 600;
  29.             margin-bottom: 5px;
  30.             color: #111;
  31.         }
  32.         .contact .info p {
  33.             padding: 0 0 0 60px;
  34.             margin-bottom: 0;
  35.             font-size: 14px;
  36.             color: #444444;
  37.         }
  38.         .contact .info:hover i {
  39.             background: #0084d6;
  40.             color: #fff;
  41.         }
  42.         .contact .php-email-form2 {
  43.             width: 100%;
  44.             box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
  45.             padding: 30px;
  46.             background: #fff;
  47.         }
  48.         .contact .php-email-form2 .form-group {
  49.             padding-bottom: 8px;
  50.         }
  51.         .contact .php-email-form2 .validate {
  52.             display: none;
  53.             color: red;
  54.             margin: 0 0 15px 0;
  55.             font-weight: 400;
  56.             font-size: 13px;
  57.         }
  58.         .contact .php-email-form2 .error-message {
  59.             display: none;
  60.             color: #fff;
  61.             background: #ed3c0d;
  62.             text-align: left;
  63.             padding: 15px;
  64.             font-weight: 600;
  65.         }
  66.         .contact .php-email-form2 .error-message br + br {
  67.             margin-top: 25px;
  68.         }
  69.         .contact .php-email-form2 .sent-message {
  70.             display: none;
  71.             color: #fff;
  72.             background: #0084d6;
  73.             text-align: center;
  74.             padding: 15px;
  75.             font-weight: 600;
  76.         }
  77.         .contact .php-email-form2 .loading {
  78.             display: none;
  79.             background: #fff;
  80.             text-align: center;
  81.             padding: 15px;
  82.         }
  83.         .contact .php-email-form2 .loading:before {
  84.             content: "";
  85.             display: inline-block;
  86.             border-radius: 50%;
  87.             width: 24px;
  88.             height: 24px;
  89.             margin: 0 10px -6px 0;
  90.             border: 3px solid #0084d6;
  91.             border-top-color: #eee;
  92.             -webkit-animation: animate-loading 1s linear infinite;
  93.             animation: animate-loading 1s linear infinite;
  94.         }
  95.         .contact .php-email-form2 input, .contact .php-email-form2 textarea {
  96.             border-radius: 0;
  97.             box-shadow: none;
  98.             font-size: 14px;
  99.             border-radius: 4px;
  100.         }
  101.         .contact .php-email-form2 input:focus, .contact .php-email-form2 textarea:focus {
  102.             border-color: #0084d6;
  103.         }
  104.         .contact .php-email-form2 input {
  105.             height: 44px;
  106.         }
  107.         .contact .php-email-form2 textarea {
  108.             padding: 10px 12px;
  109.         }
  110.         .contact .php-email-form2 button[type="submit"] {
  111.             background: #7f3e98!important;
  112.             border: 0;
  113.             padding: 10px 24px;
  114.             color: #fff;
  115.             transition: 0.4s;
  116.             border-radius: 4px;
  117.         }
  118.         .contact .php-email-form2 button[type="submit"]:hover {
  119.             background: #7f3e98!important;
  120.         }
  121.         a{
  122.             color: #3b3939;!important;
  123.         }
  124.     </style>
  125. {% endblock %}
  126. {% block body %}
  127.     <div class=" d-flex flex-column flex-row-fluid">
  128.         <section id="contact" class="contact">
  129.             <div class="row mb-5 mt-5 justify-content-center" data-aos="">
  130.                 <div class="col-lg-6">
  131.                     <div class="info-wrap">
  132.                         {% for p in phones %}
  133.                             {% if p.isWhatsapp == 1 %}
  134.                                 <p class="fs-6">
  135.                                     <a target="_blank" href="https://api.whatsapp.com/send?phone{{ p.number|replace({' ': ''}) }}=&text=Hi"><span class="bi bi-whatsapp" style="color: green"></span> {{ p.number }}</a>
  136.                                 </p>
  137.                             {% endif %}
  138.                             {% if p.isTelegram == 1 %}
  139.                                 <p class="fs-6">
  140.                                     <span class="bi bi-telegram" style="color: #5959bf"></span> {{ p.number }}
  141.                                 </p>
  142.                             {% endif %}
  143.                         {% endfor %}
  144.                         {% if email !=''  %}
  145.                             <p class="fs-6">
  146.                                 <a target="_blank" href="mailto:{{ email }}"><span class="fa fa-mail-bulk" ></span> {{ email }}</a>
  147.                             </p>
  148.                         {% endif %}
  149.                     </div>
  150.                     <div class="info-wrap">
  151.                         <form action="" method="get" role="form" class="php-email-form2">
  152.                             <div class="form-row">
  153.                                 <div class="col-md-12 form-group">
  154.                                     <input type="text" name="name" class="form-control" id="name" placeholder="{{ 'name'|trans }}" required/>
  155.                                 </div>
  156.                                 <div class="col-md-12 form-group">
  157.                                     <input type="email" class="form-control" name="email" id="email" placeholder="{{ 'email'|trans }}" required/>
  158.                                 </div>
  159.                             </div>
  160.                             <div class="form-group">
  161.                                 <textarea class="form-control" name="message" rows="8"  placeholder="{{ 'message'|trans }}" required></textarea>
  162.                             </div>
  163.                             <div class="form-row" style="align-items: flex-end;margin: 20px">
  164.                                 <div class="col-md-12 form-group ">
  165.                                     <button class="" style="float: right"  type="submit">{{ 'send_message'|trans }}</button>
  166.                                 </div>
  167.                             </div>
  168.                         </form>
  169.                     </div>
  170.                 </div>
  171.                 <div class="col-lg-6">
  172.                     <div class="info-wrap">
  173.                         {% for d in days %}
  174.                             {% set da = 'day_'~d.day  %}
  175.                             <p class="fs-6">
  176.                                 <span class="bi bi-calendar-day"></span> {{ da|trans }} {{ d.start }} - {{ d.end }} <em class="fs-8">{{ 'open'|trans }}</em>
  177.                             </p>
  178.                         {% endfor %}
  179.                     </div>
  180.                     <div class="info-wrap">
  181.                         <p style="display: flex"> {% if twitter != ''%}
  182.                                 <a class="fs-5 m-4" target="_blank" href="{{ twitter }}" class="twitter"><i class="bi bi-twitter" style="color: #669be0"></i> </a> <br/>
  183.                             {% endif %}
  184.                             {% if facebook != '' %}
  185.                                 <a class="fs-5 m-4" target="_blank" href="{{ facebook }}" class="facebook"><i class="bi bi-facebook" style="color: #0492e0"></i> </a> <br/>
  186.                             {% endif %}
  187.                             {% if instagram != ''%}
  188.                                 <a class="fs-5 m-4" target="_blank" href="{{ instagram }}" class="instagram"><i class="bi bi-instagram" style="color: #5b3434"></i> </a> <br/>
  189.                             {% endif %}
  190.                             {% if youtube != ''%}
  191.                                 <a class="fs-5 m-4" target="_blank" href="{{ youtube }}" class="instagram"><i class="bi bi-youtube" style="color: #ec4040"></i> </a> <br/>
  192.                             {% endif %}
  193.                         </p>
  194.                     </div>
  195.                     {% if location_description != '' %}
  196.                         <div class="info-wrap" style="display: flex">
  197.                             <p><span class="fa fa-map-marker-alt" style="margin-right: 8px"></span> {{ location_description|raw }}</p>
  198.                         </div>
  199.                     {% endif %}
  200.                     {% if location_plan != '' %}
  201.                         <div class="info-wrap" id="lightgallery">
  202.                             <div data-aos="fade"data-src="{{ asset('uploads/'~location_plan) }}" >
  203.                                 <a href="{{ asset('uploads/'~location_plan) }}" download><img alt=""   class="img-thumbnail mb-5" style="max-height: 100%; max-width: 100%;" src="{{ asset('uploads/'~location_plan) }}"/></a>
  204.                             </div>
  205.                         </div>
  206.                     {% endif %}
  207.                 </div>
  208.             </div>
  209.         </section><!-- End Contact Section -->
  210.         {% if location_plan != ''%}
  211.             <div class="map-section mt-5 mb-5">
  212.                 {% if google_map != '' %}
  213.                     {{ google_map|raw }}
  214.                 {% endif %}
  215.             </div>
  216.         {% endif %}
  217.     </div>
  218. {% endblock %}
  219.  {% block js %}
  220.  {% endblock %}