You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

footer.html 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {{"<!-- end Contact Area -->" | safeHTML}}
  2. <footer id="footer" class="section-bg">
  3. <div class="container">
  4. <div class="row wow fadeInUp" data-wow-duration="500ms">
  5. <div class="col-xl-12">
  6. {{"<!-- Footer Social Links -->" | safeHTML}}
  7. <div class="social-icon">
  8. <ul class="list-inline">
  9. {{ range site.Params.social }}
  10. <li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
  11. {{ end }}
  12. </ul>
  13. </div>
  14. {{"<!-- copyright -->" | safeHTML}}
  15. <div class="copyright text-center">
  16. <a href="{{ site.Home.Permalink }}">
  17. <img src="{{ site.Params.logo | absURL }}" alt="{{ site.Title }}" height="42" />
  18. </a>
  19. <br>
  20. <p>{{ site.Params.copyright | markdownify }}</p>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </footer>
  26. {{"<!-- /footer -->" | safeHTML}}
  27. {{ "<!-- Google Map API -->" | safeHTML }}
  28. {{ if site.Params.map.enable }}
  29. <script src="{{ site.Params.map.gmap_api | safeURL }}"></script>
  30. {{ end }}
  31. {{ "<!-- JS Plugins -->" | safeHTML }}
  32. {{ range site.Params.plugins.js}}
  33. <script src="{{ .link | absURL }}"></script>
  34. {{ end }}
  35. {{ "<!-- Main Script -->" | safeHTML }}
  36. {{ $script := resources.Get "js/script.js" | minify | fingerprint "sha384"}}
  37. <script src="{{ $script.Permalink }}" integrity="{{ $script.Data.Integrity }}"></script>
  38. <!-- cookie -->
  39. {{ if site.Params.cookies.enable }}
  40. <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.1/js.cookie.min.js"></script>
  41. <div id="js-cookie-box" class="cookie-box cookie-box-hide">
  42. This site uses cookies. By continuing to use this website, you agree to their use. <span id="js-cookie-button" class="btn btn-transparent">I Accept</span>
  43. </div>
  44. <script>
  45. (function ($) {
  46. const cookieBox = document.getElementById('js-cookie-box');
  47. const cookieButton = document.getElementById('js-cookie-button');
  48. if (!Cookies.get('cookie-box')) {
  49. cookieBox.classList.remove('cookie-box-hide');
  50. cookieButton.onclick = function () {
  51. Cookies.set('cookie-box', true, {
  52. expires: {{ site.Params.cookies.expire_days }}
  53. });
  54. cookieBox.classList.add('cookie-box-hide');
  55. };
  56. }
  57. })(jQuery);
  58. </script>
  59. {{ end }}