Test version

This commit is contained in:
Jorit Tijsen
2024-03-05 17:22:55 +01:00
parent 8acacc0c68
commit 55aa88c0f6
128 changed files with 46700 additions and 9645 deletions

View File

@@ -1,6 +1,6 @@
@extends('layouts.master')
@section('title')
@section('title')
NH Gooi - Nieuws
@endsection
@@ -15,7 +15,7 @@
{{-- Desktop --}}
<div class="grid_view">
<div class="row">
<div class="column">
<div class="col-8">
@if($item = current($news))
<div class="post large">
<a href="{{url($item->url)}}" title="{{$item->title}}">
@@ -39,10 +39,10 @@
</div>
@endif
</div>
<div class="column">
@for($i = 0; ($i < 3) && ($item = next($news)); ++$i)
<div class="col-4">
<div class="row">
<div class="post small">
@for($i = 0; ($i < 4) && ($item = next($news)); ++$i)
<div class="post small col-6">
<a href="{{url($item->url)}}" title="{{$item->title}}">
@if($item->video)
<span class="icon video"></span>
@@ -62,8 +62,8 @@
<h5><a href="{{url($item->url)}}" title="{{$item->title}}">{!!$item->title!!}</a></h5>
</div>
</div>
@endfor
</div>
@endfor
</div>
</div>
</div>
@@ -92,7 +92,7 @@
</ul>
<h2 style="display:none;"><a href="{{url($item->url)}}" title="{{$item->title}}">{{Formatter::excerpt($item->title, 50)}}</a></h2>
<h5><a href="{{url($item->url)}}" title="sfd">{!!$item->title!!}</a></h5>
</div>
</li>
@endforeach
@@ -104,7 +104,7 @@
</div>
</div>
</div>
{{-- Meer nieuws --}}
<div class="row page_margin_top">
<div class="column column_2_3">
@@ -138,9 +138,9 @@
@endif
36 @if($item->edited && ($item->edited != $item->published))
<li class="date edited">
Bijgewerkt
Bijgewerkt
@if($item->edited->format('d m') != $item->published->format('d m'))
op {{Formatter::relativeDate($item->edited)}}
op {{Formatter::relativeDate($item->edited)}}
@endif
om {{$item->edited->format('H:i')}} uur
</li>
@@ -198,10 +198,10 @@
?>
<ul class="taxonomies clearfix page_margin_top">
@foreach($regions as $slug => $title)
@foreach($regions as $slug => $title)
<li><a href="{{route('nieuws.regio', $slug)}}" title="Meer nieuws uit regio {{$title}}"><span class="fa fa-map-marker"></span> Uit {{$title}}</a></li>
@endforeach
@foreach($themes as $slug => $title)
@foreach($themes as $slug => $title)
<li class="active"><a href="{{route('nieuws.thema', $slug)}}" title="Meer nieuws met thema {{$title}}"><span class="fa fa-tag"></span> Over {{$title}}</a></li>
@endforeach
</ul>
@@ -218,7 +218,7 @@
<div id="items">
@include('partial/newslistitems', ['news' => $news])
</div>
<div id="loading" style="display: none">
<div class="progress progress-striped active">
<div class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
@@ -242,24 +242,24 @@
isLoading = 1;
$isLoading.show();
var $button = $(this).attr("disabled", "disabled");
// Fire request for the next page
$.ajax({ url: document.location.pathname + '?pagina=' + nextPage })
.always(function() {
.always(function() {
// Whether success or failure, update the UI again
isLoading = 0;
$isLoading.hide();
isLoading = 0;
$isLoading.hide();
$button.removeAttr("disabled");
})
.done(function(data) {
if(!data) {
.done(function(data) {
if(!data) {
// When no data was returned, disable the button permanently
page = -1;
$button.attr("disabled", "disabled").text("Geen nieuws meer.");
return;
}
$('#items').append(data);
$('#items').append(data);
++nextPage;
});
}