From 67bd7ddce8349cf75fe74f8b5be73e63975a511f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20V=C3=B6lkl?= Date: Wed, 23 Nov 2022 11:39:41 +0100 Subject: [PATCH] added lists, content types etc. --- content-types.json | 95 +++++++++++++++++++++++ content/contents/news.blade.php | 28 +++---- content/contents/verkaufsstelle.blade.php | 26 ++++++- content/head.blade.php | 6 +- content/includes/footer.blade.php | 10 ++- content/index.blade.php | 52 +++++++++++-- content/lists/aktuelles.blade.php | 54 ++++++------- content/lists/verkaufsstellen.blade.php | 25 +++--- content/pages/baeckerei.blade.php | 2 +- content/pages/huehnerhof.blade.php | 6 +- lists.json | 19 ++++- 11 files changed, 247 insertions(+), 76 deletions(-) create mode 100644 content-types.json diff --git a/content-types.json b/content-types.json new file mode 100644 index 0000000..c65ec06 --- /dev/null +++ b/content-types.json @@ -0,0 +1,95 @@ +[ + { + "slug": "verkaufsstelle", + "name": "Verkaufsstelle", + "description": "Stellenanzeigen", + "icon": "suitcase", + "status": 1, + "blade": "verkaufsstelle", + "default_image": "http://lumino.xps/system/images/content_type_default_image.png", + "fields": [ + { + "name": "Beschreibung", + "type": "textfield", + "description": "", + "position": 2, + "required": 1, + "default_value": "" + }, + { + "name": "Ort", + "type": "text", + "description": "", + "attr": { + "pattern": "", + "maxlength": "", + "minlength": "" + }, + "position": 3, + "required": 1, + "default_value": "" + }, + { + "name": "Öffnungszeiten", + "type": "text", + "description": "", + "attr": { + "pattern": "", + "maxlength": "", + "minlength": "" + }, + "position": 4, + "required": 1, + "default_value": "" + }, + { + "name": "Ankündigung", + "type": "rich-text", + "description": "", + "position": 5, + "required": 0, + "default_value": "" + }, + { + "name": "Andere Marktteilnehmer", + "type": "rich-text", + "description": "", + "position": 5, + "required": 1, + "default_value": "" + } + ] + }, + { + "slug": "news", + "name": "News", + "description": "", + "icon": "/font-awesome/duotone/newspaper.svg", + "status": 1, + "blade": "news", + "default_image": "http://lumino.xps/system/images/content_type_default_image.png", + "fields": [ + { + "name": "Vorschau", + "type": "text", + "description": "", + "attr": { + "pattern": "", + "maxlength": "", + "minlength": "" + }, + "position": 0, + "required": 0, + "default_value": "" + }, + { + "name": "News", + "type": "rich-text", + "description": "", + "position": 1, + "required": 1, + "default_value": "" + } + ] + } +] \ No newline at end of file diff --git a/content/contents/news.blade.php b/content/contents/news.blade.php index d3ed826..cbb91f7 100644 --- a/content/contents/news.blade.php +++ b/content/contents/news.blade.php @@ -4,13 +4,10 @@
-
@@ -22,23 +19,28 @@
-

{{$nach->title}}

+

{{$content->title}}

- @if ($nach->image) - Gallery image + + + @if ($content->image) + Gallery image @endif - {!! isset($nach->additional_fields['4']) ? $nach->additional_fields['4'] : 'keine Angaben' !!} + +
-
-
+

+ {!!$content->data_fields['news']!!} +



+ verkaufsstellen.blade.php

diff --git a/content/contents/verkaufsstelle.blade.php b/content/contents/verkaufsstelle.blade.php index 7d2e6cb..3c516f5 100644 --- a/content/contents/verkaufsstelle.blade.php +++ b/content/contents/verkaufsstelle.blade.php @@ -22,16 +22,40 @@

{{$content->title}}

- @if ($content->image) + @isset($content->data_fields['ankundigung']) + + @endisset + + + @if ($content->image) Gallery image @endif +

+ {{$content->data_fields['ort']}} +
+ {{$content->data_fields['offnungszeiten']}} +

+
+

+ {!!$content->data_fields['beschreibung']!!} +



+ + @isset($content->data_fields['andere_marktteilnehmer']) +

Andre Marktteilnehmer und deren Produkte

+ + + {!!$content->data_fields['andere_marktteilnehmer']!!} + @endisset +

diff --git a/content/head.blade.php b/content/head.blade.php index 5cb73ad..e8c4768 100644 --- a/content/head.blade.php +++ b/content/head.blade.php @@ -21,9 +21,13 @@ } footer a:hover{ - color: #f96b39; + color: #71a866; } + + .card h2{ + color: #71a866; + } Finkenhammer 1
92714 Pleystein
- Anfahrtsplan

- 09654 / 267
- info@finkenhammer.de + Anfahrtsplan +
+
+ 09654 / 267
+ info@finkenhammer.de
@@ -57,7 +59,7 @@
- Entwickelt mit dem Areya CMS + Entwickelt mit dem Areya CMS
@stop \ No newline at end of file diff --git a/content/lists/aktuelles.blade.php b/content/lists/aktuelles.blade.php index 31719c9..56a7859 100644 --- a/content/lists/aktuelles.blade.php +++ b/content/lists/aktuelles.blade.php @@ -5,12 +5,9 @@
-
@@ -27,44 +24,39 @@

{{ $list->name }}

-
-
+

+ {{ $list->description }} +



+ @foreach($contents as $content) - @foreach($contents as $indexContent => $content) +
-
-
- @if ($nach->image) - - @endif -
-

- {{$nach->title}} -

- - {{date('d.m.Y H:i', strtotime($content->created_at))}} - -

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

+ +
+ +
+

{{$content->title}}

+ + + +
-
-
+ + +
- - - @endforeach + + +


diff --git a/content/lists/verkaufsstellen.blade.php b/content/lists/verkaufsstellen.blade.php index fcd4216..a97edaf 100644 --- a/content/lists/verkaufsstellen.blade.php +++ b/content/lists/verkaufsstellen.blade.php @@ -29,31 +29,30 @@



-
-
@foreach($contents as $content) +
+ - @endforeach diff --git a/content/pages/baeckerei.blade.php b/content/pages/baeckerei.blade.php index b794bdb..8b953bf 100644 --- a/content/pages/baeckerei.blade.php +++ b/content/pages/baeckerei.blade.php @@ -62,7 +62,7 @@

Werbevideo

-
+
diff --git a/content/pages/huehnerhof.blade.php b/content/pages/huehnerhof.blade.php index 0769859..3496cd1 100644 --- a/content/pages/huehnerhof.blade.php +++ b/content/pages/huehnerhof.blade.php @@ -63,13 +63,11 @@
-
+

Finkenhammer Bio-Ei Plakat

Finkenhammer Bio-Ei Plakat
-
-

Werbevideo

-
+
diff --git a/lists.json b/lists.json index 5ac8a4d..8830cc8 100644 --- a/lists.json +++ b/lists.json @@ -11,7 +11,24 @@ "sorting_column": "", "sorting_direction": "", "content_types": [ - "Verkaufstelle" + "Verkaufsstelle" + ], + "includes": [], + "excludes": [] + }, + { + "slug": "neuigkeiten", + "name": "Neuigkeiten", + "description": "Hier finden Sie immer alle Neuigkeiten rund um unseren Biohof Finkenhammer", + "search_terms": "", + "image": "", + "seo_title": "", + "seo_description": "", + "blade": "aktuelles", + "sorting_column": "", + "sorting_direction": "", + "content_types": [ + "News" ], "includes": [], "excludes": []