--- /dev/null
+@if(!isset($_COOKIE['privacy-cookie-consent']) || $_COOKIE['privacy-cookie-consent']!='1')
+ <div id="cookie-consent">
+ @markdown($global->get('cookies_consent_text'))
+ <button>{{$global->cookies_consent_button}}</button>
+ </div>
+ <style type="text/css">
+ #cookie-consent {
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ transition: opacity 500ms;
+ }
+
+ #cookie-consent.hide {
+ opacity: 0;
+ }
+ </style>
+ <script>
+ document.addEventListener('DOMContentLoaded', function () {
+ document.querySelector('#cookie-consent button').addEventListener('click', function () {
+ document.getElementById('cookie-consent').classList.add('hide');
+
+ var expires = new Date();
+ expires.setFullYear(expires.getFullYear() + 1);
+
+ document.cookie = "privacy-cookie-consent=1; expires= " + expires.toUTCString() + "; path=/ "
+ });
+ })
+ </script>
+@endif
\ No newline at end of file