templates/template_parts/footer.html.twig line 1

Open in your IDE?
  1. <div class="my-5">
  2.     <footer class=" text-lg-start text-white" style="background-color: #929fba">
  3.         <!-- Grid container -->
  4.         <div class=" p-2 pb-0">
  5.             <!-- Section: Links -->
  6.             <section class="">
  7.                 <div class="">
  8.                     <!--Grid row-->
  9.                     <div class="row">
  10.                         <!-- Grid column -->
  11.                         <div style="text-align: left" class=" col-md-12 col-lg-4  mx-auto mt-3  ">
  12.                             <h6 class="text-uppercase mb-4 font-weight-bold">
  13.                                 {% if CompanyDetails.getCompanyDetails is not null %}
  14.                                     <a style="color: white" href="{{ path('app_home') }}">
  15.                                         {{ CompanyDetails.getCompanyDetails.companyName }}
  16.                                     </a>
  17.                                 {% endif %}
  18.                             </h6>
  19.                         </div>
  20.                         <!-- Grid column -->
  21.                         <hr class="w-100 clearfix d-md-none"/>
  22.                         <!-- Grid column -->
  23.                         {% if CompanyDetails.companyDetails is not null %}
  24.                             <div style="text-align: left" class=" col-md-12 col-lg-4 mx-auto  mt-3 ">
  25.                                 {% if CompanyDetails.companyDetails.footerDisplayProducts ==1 %}
  26.                                     <h6 class="text-uppercase mb-4 font-weight-bold">
  27.                                         {% if CompanyDetails.companyDetails is not null and CompanyDetails.companyDetails.titleProducts is not null %}
  28.                                             {{ CompanyDetails.companyDetails.titleProducts }}
  29.                                         {% else %}
  30.                                             Products
  31.                                         {% endif %}
  32.                                     </h6>
  33.                                     <div class="row">
  34.                                         {% set products = Product.getProductFooter %}
  35.                                         {% for i in 1..2 %}
  36.                                             {% if i == 1 %}
  37.                                                 <div class="col-md-4">
  38.                                                     {% for product in products %}
  39.                                                         {% if loop.index < 6 %}
  40.                                                             <div>
  41.                                                                 <li>
  42.                                                                     <a target="_blank" class="mb-1"
  43.                                                                        href="{{ path('product_display', { product: product.product}) }}">{{ product.product }}</a>
  44.                                                                 </li>
  45.                                                             </div>
  46.                                                         {% endif %}
  47.                                                     {% endfor %}
  48.                                                 </div>
  49.                                             {% else %}
  50.                                                 <div class="col-md-6">
  51.                                                     {% for product in products %}
  52.                                                         {% if loop.index > 5 %}
  53.                                                             <div>
  54.                                                                 <li>
  55.                                                                     <a target="_blank" class="mb-1"
  56.                                                                        href="{{ path('product_display', { product: product.product}) }}">{{ product.product }}</a>
  57.                                                                 </li>
  58.                                                             </div>
  59.                                                         {% endif %}
  60.                                                     {% endfor %}
  61.                                                 </div>
  62.                                             {% endif %}
  63.                                         {% endfor %}
  64.                                     </div>
  65.                                 {% endif %}
  66.                             </div>
  67.                             <!-- Grid column -->
  68.                             <hr class="w-100 clearfix d-md-none"/>
  69.                             <!-- Grid column -->
  70.                             <hr class="w-100 clearfix d-md-none"/>
  71.                             <!-- Grid column -->
  72.                             <div class="col-md-6 mt-3 col-lg-2 mx-auto">
  73.                                 {% if CompanyDetails.companyDetails.footerDisplayContactDetails ==1 %}
  74.                                     <h6 class="text-uppercase mb-4 font-weight-bold">Contact
  75.                                         <a class="btn btn-outline-info btn-sm"
  76.                                            href="{{ path('create_vcard_company') }}">
  77.                                             <i style="color: yellow" class="fas fa-address-card mr-0"></i>
  78.                                         </a>
  79.                                     </h6>
  80.                                     <p>
  81.                                         {% if CompanyDetails.getCompanyDetails is not null %}
  82.                                             {% if CompanyDetails.companyDetails.footerDisplayAddress ==1 %}
  83.                                                 <a target="_blank" href="{{ path('office_address') }}">
  84.                                                     <i style="color: red" class="fa fa-map-marker mr-3"></i></a>
  85.                                                 {{ CompanyDetails.getCompanyDetails.companyAddressStreet }},
  86.                                                 {{ CompanyDetails.getCompanyDetails.companyAddressTown }},
  87.                                                 {{ CompanyDetails.getCompanyDetails.companyAddressCity }}
  88.                                                 {{ CompanyDetails.getCompanyDetails.companyAddressPostalCode }}
  89.                                             {% endif %}
  90.                                         {% endif %}
  91.                                     </p>
  92.                                     <p>
  93.                                     <p>
  94.                                         {% if CompanyDetails.getCompanyDetails.companyEmail is not null %}
  95.                                             <a href="mailto:{{ CompanyDetails.getCompanyDetails.companyEmail }}">
  96.                                                 <i class="fas fa-envelope mr-3"> </i></a>
  97.                                             {{ CompanyDetails.getCompanyDetails.companyEmail }}
  98.                                         {% endif %}
  99.                                     </p>
  100.                                     {% if CompanyDetails.companyDetails.footerDisplayTelNumbers ==1 %}
  101.                                         <p>
  102.                                             {% if CompanyDetails.getCompanyDetails.companyTel is not null %}
  103.                                                 <a href="tel:{{ CompanyDetails.getCompanyDetails.companyTel|replace({' ': ''}) }}"><i
  104.                                                             class="fas fa-phone mr-3"></i></a>
  105.                                                 {{ CompanyDetails.getCompanyDetails.companyTel }}
  106.                                             {% endif %}
  107.                                         </p>
  108.                                         <p>
  109.                                             {% if CompanyDetails.getCompanyDetails.companyMobile is not null %}
  110.                                                 <a target="_blank"
  111.                                                    href="https://wa.me/{{ CompanyDetails.getCompanyDetails.companyMobile|replace({' ': ''}) }}">
  112.                                                     <i class="fab fa-whatsapp mr-3"
  113.                                                        style="color:green; text-align: center"></i></a>
  114.                                                 {{ CompanyDetails.getCompanyDetails.companyMobile }}
  115.                                             {% endif %}
  116.                                         </p>
  117.                                     {% endif %}
  118.                                 {% endif %}
  119.                             </div>
  120.                             <!-- Grid column -->
  121.                             <!-- Grid column -->
  122.                             <div style="text-align: left" class="col-md-6 mt-3 col-lg-2 mx-auto">
  123.                                 {% if CompanyDetails.companyDetails.footerDisplaySocialMedia ==1 %}
  124.                                     <h6 class="text-uppercase mb-4 font-weight-bold">
  125.                                         Follow us
  126.                                     </h6>
  127.                                     <!-- Facebook -->
  128.                                     {% if  CompanyDetails.getCompanyDetails.facebook is not null %}
  129.                                         <a target="_blank"
  130.                                            class="btn btn-primary btn-floating m-1 footer-social-icon-fb"
  131.                                            data-hover-rule="color" data-hover-color="#dd3333"
  132.                                            style="color : #1877F2; font-size: 16px; padding:6px;background-color: #3b5998"
  133.                                            href="https://www.facebook.com/{{ CompanyDetails.getCompanyDetails.facebook }}"
  134.                                            role="button">
  135.                                             <i class="fab fa-facebook-f text-light"></i>
  136.                                         </a>
  137.                                     {% endif %}
  138.                                     <!-- Linkedin -->
  139.                                     {% if  CompanyDetails.getCompanyDetails.linkedIn is not null %}
  140.                                         <a target="_blank"
  141.                                            class="btn btn-primary btn-floating m-1 footer-social-icon-ln"
  142.                                            data-hover-rule="color" data-hover-color="#dd3333"
  143.                                            style="color : #1da1f2; font-size: 16px; padding:6px; background-color: #0082ca"
  144.                                            href="https://www.linkedin.com/in/{{ CompanyDetails.getCompanyDetails.linkedIn }}"
  145.                                            role="button">
  146.                                             <i class="fab fa-linkedin-in text-light"></i>
  147.                                         </a>
  148.                                     {% endif %}
  149.                                     <!-- Instagram -->
  150.                                     {% if  CompanyDetails.getCompanyDetails.instagram is not null %}
  151.                                         <a target="_blank"
  152.                                            class="btn btn-primary btn-floating m-1 footer-social-icon-in"
  153.                                            data-hover-rule="color" data-hover-color="red"
  154.                                            style="color : #1da1f2; font-size: 16px; padding:6px; background-color: #ac2bac"
  155.                                            href="https://www.instagram.com/{{ CompanyDetails.getCompanyDetails.instagram }}"
  156.                                            role="button">
  157.                                             <i class="fab fa-instagram text-light"></i>
  158.                                         </a>
  159.                                     {% endif %}
  160.                                     <!-- Twitter -->
  161.                                     {% if  CompanyDetails.getCompanyDetails.twitter is not null %}
  162.                                         <a target="_blank"
  163.                                            class="btn btn-primary btn-floating m-1 footer-social-icon-tw"
  164.                                            data-hover-rule="color" data-hover-color="#dd3333"
  165.                                            style="color : #1da1f2; font-size: 16px; padding:6px;background-color: #55acee"
  166.                                            href="https://x.com/{{ CompanyDetails.getCompanyDetails.twitter }}"
  167.                                            role="button">
  168.                                             <i class="fab fa-twitter text-light"></i>
  169.                                         </a>
  170.                                     {% endif %}
  171.                                 {% endif %}
  172.                             </div>
  173.                         {% endif %}
  174.                     </div>
  175.                 </div>
  176.                 <!--Grid row-->
  177.             </section>
  178.         </div>
  179.         <!-- Grid container -->
  180.     </footer>
  181.     <!-- Footer -->
  182. </div>