Update sidebar.blade.php

This commit is contained in:
Julian Prieber 2022-03-21 09:13:10 +01:00 committed by GitHub
parent e319301b51
commit bf39efddf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,13 +210,13 @@
<a class="nav-link" href="{{ $EventJson['link'] }}" target="{{ $EventJson['target'] }}"><mark onMouseOver="{{ $EventJson['hoveron'] }}" onMouseOut="{{ $EventJson['hoveroff'] }}" style="{{ $EventJson['style'] }}" title="{{ $EventJson['hover'] }}">{{ $EventJson['title'] }}</mark></a> <a href="?hide_event" title="Click to hide this message"></a> <a class="nav-link" href="{{ $EventJson['link'] }}" target="{{ $EventJson['target'] }}"><mark onMouseOver="{{ $EventJson['hoveron'] }}" onMouseOut="{{ $EventJson['hoveroff'] }}" style="{{ $EventJson['style'] }}" title="{{ $EventJson['hover'] }}">{{ $EventJson['title'] }}</mark></a> <a href="?hide_event" title="Click to hide this message"></a>
<?php <?php
if (strpos($_SERVER['REQUEST_URI'], "hide_event") !== false){ if (strpos($_SERVER['REQUEST_URI'], "hide_event") !== false){
setcookie("HideEvent",$_COOKIE['ID'] = $EventJson['id'], time()+60*60*24*5, "/"); setcookie("HideEvent",$_COOKIE['ID'] = $EventJson['id'], time()+60*60*24*5, "/");
header('Location: ' . url('/panel/index')); header('Location: ' . url('/panel/index'));
exit(); exit();
} }
?> ?>
</div> </div>
</nav> </nav>
@endif @endif