From a21572c92d140135e18f37d63cdd49c40809638a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20V=C3=B6lkl?= Date: Mon, 20 Sep 2021 09:30:28 +0200 Subject: [PATCH] on home just news --- content/index.blade.php | 7 +++-- content/news.blade.php | 66 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 content/news.blade.php diff --git a/content/index.blade.php b/content/index.blade.php index 836a87f..c5a520e 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -37,8 +37,8 @@ - @foreach($nachrichten as $nach) -
+ @foreach(filterByContentType($mdNachrichten, "News")->take(3) as $nach) +
@if ($nach->image) @@ -50,6 +50,9 @@ {{date('d.m.Y H:i', strtotime($nach->created_at))}} +

+ {!! isset($nach->additional_fields['4']) ? $nach->additional_fields['4'] : 'keine Angaben' !!} +

diff --git a/content/news.blade.php b/content/news.blade.php new file mode 100644 index 0000000..30fe3ea --- /dev/null +++ b/content/news.blade.php @@ -0,0 +1,66 @@ +@extends('template.'.config('settings.template').'.content.master') +@section('content') + + +
+
+ +
+

Unsere Verkaufsstandorte

+
+

{{$nach->title}}

+ + + {!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!} + +

Bilder

+ +
+
+ @if ($nach->image) + Gallery image + @else + Gallery image + @endif +
+ +
+ +
+
+
+
+
+ +@stop