templates/frontend/contact/model_1.html.twig line 1

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