added lists, content types etc.

master
Benjamin Völkl 2022-11-23 11:39:41 +01:00
parent fef737316b
commit 67bd7ddce8
11 changed files with 247 additions and 76 deletions

95
content-types.json Normal file
View File

@ -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": ""
}
]
}
]

View File

@ -4,13 +4,10 @@
<div class="container">
<div class="row">
<div class="col-xs-12">
<nav>
<ol class="breadcrumb">

<li><a href="{{ url('/') }}">Startseite</a></li>
<li><a href="{{ url('/aktuelles') }}">Aktuelles</a></li>
<li class="active">{{$nach->title}}</li>

<nav style="--bs-breadcrumb-divider: url(&#34;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E&#34;);" aria-label="breadcrumb"> <ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{url('/')}}">Startseite</a></li>
<li class="breadcrumb-item"><a href="{{url('/neuigkeiten')}}">Neuigkeiten</a></li>
<li class="breadcrumb-item active" aria-current="page">{{$content->title}}</li>
</ol>
</nav>
</div>
@ -22,23 +19,28 @@
<div class="row">

<div class="col-xs-12">
<h1>{{$nach->title}}</h1>
<h1>{{$content->title}}</h1>


@if ($nach->image)
<img class="gallery" alt="Gallery image" src="{{ asset('uploads/' . $nach->image) }}">


@if ($content->image)
<img class="gallery" alt="Gallery image" src="{{ asset('uploads/' . content->image) }}">

@endif

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




<br>
<br>
<br>
<p class="fs-5">
{!!$content->data_fields['news']!!}
</p>
<br>
<br>

verkaufsstellen.blade.php

</div>
<hr class="divider">

View File

@ -22,16 +22,40 @@
<h1>{{$content->title}}</h1>


@if ($content->image)
@isset($content->data_fields['ankundigung'])
<div class="alert alert-success fs-5 pt-4 px-4" role="alert">
{!!$content->data_fields['ankundigung']!!}
</div>
@endisset


@if ($content->image)
<img class="gallery" alt="Gallery image" src="{{ asset('uploads/' . content->image) }}">

@endif


<p class="mt-3 fs-4">
{{$content->data_fields['ort']}}
<br>
{{$content->data_fields['offnungszeiten']}}
</p>


<br>
<p class="fs-5">
{!!$content->data_fields['beschreibung']!!}
</p>
<br>
<br>

@isset($content->data_fields['andere_marktteilnehmer'])
<h2>Andre Marktteilnehmer und deren Produkte</h2>


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

<br>
<br>


View File

@ -21,9 +21,13 @@
}

footer a:hover{
color: #f96b39;
color: #71a866;

}

.card h2{
color: #71a866;
}
</style



View File

@ -45,9 +45,11 @@
Bäckerei und Hühnerhof Finkenhammer<br>
Finkenhammer 1<br>
92714 Pleystein<br>
<a class="footer__link--small text-decoration-none" href="kontakt"> <i class="fa fa-directions"></i> Anfahrtsplan </a><br><br>
<a class="footer__link text-decoration-none" href="tel:+499654267"> <i class="fa fa-phone-alt"></i> 09654 / 267</a> <br>
<a class="footer__link text-decoration-none" href="mailto:info@finkenhammer.de"><i class="fa fa-envelope"></i> info@finkenhammer.de</a>
<a class="footer__link--small text-decoration-none mb-3" href="kontakt"> <i class="fa fa-directions"></i> Anfahrtsplan </a>
<br>
<br>
<a class="fw-bolder text-decoration-none mb-2" href="tel:+499654267"> <i class="fa fa-phone-alt"></i> 09654 / 267</a> <br>
<a class="fw-bolder text-decoration-none" href="mailto:info@finkenhammer.de"><i class="fa fa-envelope"></i> info@finkenhammer.de</a>
</div>
</div>
</div>
@ -57,7 +59,7 @@
<div class="container">
<div class="row">
<div class="col--12 col-sm-6">
Entwickelt mit dem <a class="footer__link" href="https://www.areya.de/software/cms" target="_blank">Areya CMS <i class="fal fa-external-link"></i></a>
Entwickelt mit dem <a class="fw-bolder text-decoration-none" href="https://www.areya.de/software/cms" target="_blank">Areya CMS <i class="fal fa-external-link"></i></a>
</div>
<div class="col--12 col-sm-6">
<div class="footer__text--link fw-bolder text-end">

View File

@ -5,11 +5,14 @@
@section('content')


<img src="{{ asset('template/images/finkenhammer-hof.jpg') }}" class="d-block w-100" alt="...">




<img src="{{ asset('template/images/finkenhammer-hof.jpg') }}" class="d-block w-100" alt="...">






@ -18,18 +21,53 @@
<div class="row">
<div class="col-sm-12">
<h1>Biohof Finkenhammer</h1>
</div>

<hr class="divider">
<div class="text-shrink">
<p class="text-highlight">
Backwaren aus dem Holzbackofen der Traditionsbäckerei Finkenhammer
</p>
</div>
<hr class="divider divider-about">

<div class="col-sm-12">
<h2>Aktuelles</h2>
</div>


<div class="col-12 text-center text-muted">
Derzeit noch keine Neuigkeiten auf der Homepage veröffentlicht

<br>
<br>
<br>
<br>
<br>
</div>
<div class="col-12 col-md-6 col-lg-4 d-none">
<div class="card shadow-sm mb-5" style="background-color: #f8f8f4;">
<img src="https://picsum.photos/400/199" class="img-fluid card-img-top">
<div class="card-body">
<h2 class="h5 fw-bolder">Lorem ipsum dolor sit amet</h2>

<p class="mt-2">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam at, delectus dignissimos distinctio dolores ea et ex maiores obcaecati reiciendis sed sequi vero voluptas? Assumenda ducimus fuga illum? Molestiae, possimus.

</p>
</div>
</div>

</div>




<a href="{{url('/neuigkeiten')}}" class="small text-center mb-5 mt-3 d-none">Ältere Nachrichten</a>




</div>





</div>
</div>
@stop

View File

@ -5,12 +5,9 @@
<div class="container">
<div class="row">
<div class="col-xs-12">
<nav>
<ol class="breadcrumb">

<li><a href="{{ url('/') }}">Startseite</a></li>
<li class="active">Aktuelles</li>

<nav style="--bs-breadcrumb-divider: url(&#34;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E&#34;);" aria-label="breadcrumb"> <ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{url('/')}}">Startseite</a></li>
<li class="breadcrumb-item active" aria-current="page">Verkaufsstellen</li>
</ol>
</nav>
</div>
@ -27,44 +24,39 @@
<h1>{{ $list->name }}</h1>


<br>
<br>
<p class="fs-5">
{{ $list->description }}
</p>
<br>
<br>
<div class="row">

@foreach($contents as $content)

@foreach($contents as $indexContent => $content)
<div class="col-12 col-md-6 col-lg-4 mb-5">

<div class="col-12 col-md-6 col-lg-4" style="margin-bottom: 30px;">
<div class="card h-100 shadow-lg" id="news-{{$content->id}}">
@if ($nach->image)
<img src="{{ asset($content->image) }}" class="img-responsive card-img-top">
@endif
<div class="card-body">
<h3 class="card-title">
{{$nach->title}}
</h3>
<h7 class="card-subtitle mb-2">
<span style="font-weight: normal " class="text-dark">{{date('d.m.Y H:i', strtotime($content->created_at))}}</span>
</h7>
<p style="font-size: 16px;">
{!! isset($nach->additional_fields['4']) ? $nach->additional_fields['4'] : 'keine Angaben' !!}
</p>
<a href="{{($content->path)}}" class="text-decoration-none">
<div class="card shadow-sm" style="background-color: #f8f8f4;">
<img src="https://picsum.photos/600/300" class="card-img-top border-bottom img-fluid">

<div class="card-body">
<h2 class="h5 fw-bolder">{{$content->title}}</h2>



</div>
</div>
<div class="card-footer text-right">
<a href="{{ route_content($content) }}" class="btn btn-sm btn-primary">Mehr lesen</a>
</div>
</div>
</a>


</div>



@endforeach






</div>
<br>
<br>

View File

@ -29,31 +29,30 @@
</p>
<br>
<br>
<br>
<br>
<div class="row">

@foreach($contents as $content)

<div class="col-12 col-md-6 col-lg-4 mb-5">

<a href="{{($content->path)}}" class="text-decoration-none">
<div class="card shadow-sm bg-light h-100">
<img src="{{ $content->image }}" class="card-img-top border-bottom">
<div class="card shadow-sm" style="background-color: #f8f8f4;">
<img src="https://picsum.photos/600/300" class="card-img-top border-bottom img-fluid">

<div class="card-body">
<h2 class="card-title h5">{{$content->title}}</h2>
<p class="text-muted">Schöne Immobilie sofort verfügbar!</p>
<h2 class="h5 fw-bolder">{{$content->title}}</h2>

<p class="text-success fw-bold">
Mittwochs und Samstags von 10-14 Uhr
<p class="mt-3 text-muted">
{{$content->data_fields['ort']}}
<br>
{{$content->data_fields['offnungszeiten']}}
</p>
<span class="text-end" style="color: #71a866">
Mehr Erfahren ⟶
</span>


</div>

</div>
</a>


</div>
@endforeach


View File

@ -62,7 +62,7 @@
</div>
<div class="col-xs-12 col-sm-6">
<h2>Werbevideo</h2>
<iframe width="560" height="315" src="//www.youtube.com/embed/KdnE-alRnH4?rel=0" frameborder="0" allowfullscreen></iframe> </div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/KdnE-alRnH4?rel=0" frameborder="0" allowfullscreen></iframe> </div>
</div>

</div>

View File

@ -63,13 +63,11 @@
</div>

<div class="row">
<div class="col-xs-12 col-sm-6">
<div class="col-xs-12 col-sm-8">
<h2>Finkenhammer Bio-Ei Plakat</h2>
<img src="{{ asset('template/images/bioeier-plakat.jpg') }}" alt="Finkenhammer Bio-Ei Plakat">
</div>
<div class="col-xs-12 col-sm-6">
<h2>Werbevideo</h2>
<iframe width="560" height="315" src="//www.youtube.com/embed/-fRYu842svI?rel=0" frameborder="0" allowfullscreen></iframe> </div>

</div>



View File

@ -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": []