관리-도구
편집 파일: e54e4bbd7c8e7e192ade0275355b1da9.php
<?php $cookieConfig = $cookieConsentConfig ?? []; $readLess = translate('Read less'); $readMore = translate('Read more'); ?> <?php if($cookieConfig['cookie_enabled'] && !$alreadyConsentedWithCookies): ?> <?php echo $__env->make('theme::cookie.dialogContents', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <script> window.laravelCookieConsent = (function() { const COOKIE_VALUE = 1; const COOKIE_DOMAIN = '<?php echo e(config('session.domain') ?? request()->getHost()); ?>'; function consentWithCookies() { setCookie('<?php echo e($cookieConfig['cookie_name']); ?>', COOKIE_VALUE, <?php echo e($cookieConfig['cookie_lifetime']); ?>); hideCookieDialog(); } function cookieExists(name) { return (document.cookie.split('; ').indexOf(name + '=' + COOKIE_VALUE) !== -1); } function hideCookieDialog() { const dialogs = document.getElementsByClassName('js-cookie-consent'); for (let i = 0; i < dialogs.length; ++i) { dialogs[i].style.display = 'none'; } } function setCookie(name, value, expirationInDays) { const date = new Date(); date.setTime(date.getTime() + (expirationInDays * 24 * 60 * 60 * 1000)); document.cookie = name + '=' + value + ';expires=' + date.toUTCString() + ';domain=' + COOKIE_DOMAIN + ';path=/<?php echo e(config('session.secure') ? ';secure' : null); ?>' + '<?php echo e(config('session.same_site') ? ';samesite=' . config('session.same_site') : null); ?>'; } if (cookieExists('<?php echo e($cookieConfig['cookie_name']); ?>')) { hideCookieDialog(); } const buttons = document.getElementsByClassName('js-cookie-consent-agree'); let rejectButton = document.getElementsByClassName("js-cookie-consent-reject"); for (let i = 0; i < buttons.length; ++i) { buttons[i].addEventListener('click', consentWithCookies); } for (let i = 0; i < rejectButton.length; ++i) { rejectButton[i].addEventListener('click', consentWithCookies); } return { consentWithCookies: consentWithCookies, hideCookieDialog: hideCookieDialog }; })(); $('.cookie-see-more-btn').click(function() { $('.cookie-description').slideToggle(); if ($('.cookie-see-more-btn').text() == "Read more") { $(this).html(`<b>${$readMore}</b>`) } else { $(this).html(`<b>${$readMore}</b>`) } }); </script> <?php endif; ?> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\theme\cookie\index.blade.php ENDPATH**/ ?>