v1.5.24a - Fixed code
This commit is contained in:
parent
ad3a1e7570
commit
e24b06d27c
|
@ -128,7 +128,7 @@
|
|||
@foreach($news as $new)
|
||||
<!--Code to list events-->
|
||||
@if($new->type == 'News')<!--Code that prints news-->
|
||||
@if(\Carbon\Carbon::now() < date("Y-m-d H:i", strtotime($new->news_expiration_date)))
|
||||
@if(\Carbon\Carbon::now() > date("Y-m-d H:i", strtotime($new->news_expiration_date)))
|
||||
<div class="card">
|
||||
<div class="img"><img src="{{URL::asset('/images/icons/news.svg')}}" alt="News:"></div>
|
||||
<div class="title">
|
||||
|
@ -163,7 +163,7 @@
|
|||
</div>
|
||||
@endif
|
||||
@elseif($new->type == 'Activity')<!--Code that prints events-->
|
||||
@if(\Carbon\Carbon::now() < date("Y-m-d H:i", strtotime($new->news_expiration_date)))
|
||||
@if(\Carbon\Carbon::now() > date("Y-m-d H:i", strtotime($new->news_expiration_date)))
|
||||
<div class="card">
|
||||
<div class="img"><a href="{{ route('events.index') }}"><img src="{{URL::asset('/images/icons/Aktiviteter.svg')}}" alt="Aktiviteter:"></a></div>
|
||||
<div class="title">{{ $new->subname }}
|
||||
|
@ -202,7 +202,7 @@
|
|||
</div>
|
||||
@endif
|
||||
@elseif($new->type == 'Guide')<!--Code that prints guides-->
|
||||
@if(\Carbon\Carbon::now() < date("Y-m-d H:i", strtotime($new->news_expiration_date)))
|
||||
@if(\Carbon\Carbon::now() > date("Y-m-d H:i", strtotime($new->news_expiration_date)))
|
||||
<div class="card">
|
||||
<div class="img"><a href="{{ route('guides.index') }}"><img src="{{URL::asset('/images/icons/Vejledninger.svg')}}" alt="Vejledninger:"></a></div>
|
||||
<div class="title">{{ $new->subname }}
|
||||
|
@ -225,7 +225,7 @@
|
|||
@endif
|
||||
<!---->
|
||||
@elseif($new->type == 'MultipleEvent')
|
||||
@if(\Carbon\Carbon::now() < date("Y-m-d H:i:s", strtotime($new->news_expiration_date)))
|
||||
@if(\Carbon\Carbon::now() > date("Y-m-d H:i:s", strtotime($new->news_expiration_date)))
|
||||
<div class="card">
|
||||
<div class="img"><a href="{{ route('multiple-events.index') }}"><img src="{{URL::asset('/images/icons/calendar2.svg')}}" alt="aktiviteter:"></a></div>
|
||||
<div class="title">Ugentlig aktiviteter for uge {{ $new->subname }}
|
||||
|
|
Loading…
Reference in New Issue