Benjamin Völkl 2021-12-27 13:46:46 +01:00
parent a425ea2bf1
commit 356e3cb13d
8 changed files with 200 additions and 78 deletions

View File

@ -1,4 +1,4 @@
# Jobs Oberpfalz - _Areya CMS - Theme_
# Alpakas Konradenhof - _Areya CMS - Theme_




View File

@ -41,7 +41,7 @@
</style>
<br>
<br>
{!! isset($content->data_fields['beschreibung'])?$content->data_fields['beschreibung']:'keine Angaben' !!}
{!! isset($content->data_fields['neuigkeit'])?$content->data_fields['neuigkeit']:'keine Angaben' !!}
<br>
<br>
<br>

View File

@ -0,0 +1,63 @@
@extends('template.'.config('settings.template').'.content.master')
@section('content')


<link rel="stylesheet" href="{{ asset('template/css/pages/news.css') }}">
<span id="database"
data-new-id="{{$content->id}}"
data-new-url="{{route_content($content)}}"
data-new-title="{{$content->title}}"
data-new-date="{{date('Y-m-d h:i:s', strtotime($content->created_at))}}"
data-author-url="{{route('author.get', [$content->user->slug])}}"
data-author-name="{{$content->user->name}}"
data-author-image="{{$content->user->gravatar()}}"
></span>
<div class="container">
<!-- Modal -->
<div class="row" style="padding-top:60px; padding-bottom: 20px;">
<div class="col-9 col-md-11 d-flex align-items-center" >
<h1>{{$content->title}}</h1>
</div>
</div>
<div class="row">
<div class="col-6 text-muted">
<i class="fal fa-calendar"></i> Veröffentlicht: {{date('d.m.Y', strtotime($content->created_at))}}
</div>
</div>
<div class="row">
<div class="col-md-9">
@if ($content->image)
<br>
<img src="{{ asset('uploads/' . $content->image) }}" class="img-fluid">
<br>
@endif
<br>
<style>
h2 {
font-size: 1.4rem;
padding-top:55px;
}
h5{
font-size: 0.9rem;
}
</style>
<br>
<br>
{!! isset($content->data_fields['neuigkeit'])?$content->data_fields['neuigkeit']:'keine Angaben' !!}
<br>
<br>
<br>
</div>
</div>
</div>
@stop

@section('scripts')
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>

<script src="{{ asset('template/js/pages/news/methods.js') }}"></script>
<script src="{{ asset('template/js/pages/news/events.js') }}"></script>
<script src="{{ asset('template/js/pages/news/script.js') }}"></script>

@stop

View File

@ -0,0 +1,69 @@
@extends('template.'.config('settings.template').'.content.master')
@section('content')

<link rel="stylesheet" href="{{ asset('template/css/pages/news.css') }}">
<span id="database"
data-new-id="{{$content->id}}"
data-new-url="{{route_content($content)}}"
data-new-title="{{$content->title}}"
data-new-date="{{date('Y-m-d h:i:s', strtotime($content->created_at))}}"
data-author-url="{{route('author.get', [$content->user->slug])}}"
data-author-name="{{$content->user->name}}"
data-author-image="{{$content->user->gravatar()}}"
></span>
<div class="container">
<!-- Modal -->
<div class="row" style="padding-top:60px; padding-bottom: 20px;">
<div class="col-9 col-md-11 d-flex align-items-center" >
<h1>{{$content->title}}</h1>
</div>
</div>
<div class="row">
<div class="col-6 text-muted">
<i class="fal fa-calendar"></i> Veröffentlicht: {{date('d.m.Y', strtotime($content->created_at))}}
</div>
</div>
<div class="row">
<div class="col-md-9">
@if ($content->image)
<br>
<img src="{{ asset('uploads/' . $content->image) }}" class="img-fluid">
<br>
@endif
<br>
<style>
h2 {
font-size: 1.4rem;
padding-top:55px;
}
h5{
font-size: 0.9rem;
}
</style>
<br>
<br>
{!! isset($content->data_fields['beschreibung'])?$content->data_fields['beschreibung']:'keine Angaben' !!}
<br>
<br>
<br>
<div class="text-end fs-5 ci-color" style="color: #4c3131">
{!! isset($content->data_fields['preis'])?$content->data_fields['preis']." €":'keine Angaben' !!}

</div>
<br>
<br>
<br>
</div>
</div>
</div>
@stop

@section('scripts')
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>

<script src="{{ asset('template/js/pages/news/methods.js') }}"></script>
<script src="{{ asset('template/js/pages/news/events.js') }}"></script>
<script src="{{ asset('template/js/pages/news/script.js') }}"></script>

@stop

View File

@ -126,7 +126,7 @@
<small class="card-subtitle mb-2 text-muted" title="{{date('d.m.Y', strtotime($content->created_at))}}"> {{ $content->created_at->diffForHumans() }}</small>
</div>
<div class="col-12 mt-2">
{!! strIsset($content->data_fields['neuigkeit'], 'keine Angaben') !!}
{!! strIsset(Str::limit(strip_tags(html_entity_decode($content->data_fields['neuigkeit'])), 600,'...'), 'keine Angaben') !!}
</div>
</div>
</div>
@ -141,7 +141,7 @@
</div>
</div>
@endforeach
<a href="{{url('/news')}}" class="small text-center">Ältere Nachrichten</a>
<a href="{{url('/neuigkeiten')}}" class="small text-center">Ältere Nachrichten</a>
</div>
</section>


View File

@ -1,73 +0,0 @@
@extends('template.'.config('settings.template').'.content.master')
@section('content')
<div class="row" style="padding-top: 60px;">
<div class="col-xs-12">
<h1 class="mt-2">{{ $list->name }}</h1>
<br>
@if (isset($list))
{{ $list->description }}
@endif
</div>
</div>
<section>
<div class="row">
@foreach($contents as $content)
<div class="col-12 col-md-4 pb-5">
<div class="card h-100 shadow-sm" style="background-color: #f8f8f8;">
@if ($content->image)
<img class="rounded-top img-fluid" src="{{ asset('uploads/'.$content->image) }}">
@else
<img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}">
@endif
<div class="card-body">
<div class="row">
<div class="col-12">
<h5 class="card-title" style="margin-top: 20px;">
<a href="{{ route_content($content) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">
{{$content->title}}
</a>
</h5>
</div>
<div class="col-12">
<small class="card-subtitle mb-2 text-muted" title="{{date('d.m.Y', strtotime($nach->created_at))}}"> {{ $nach->created_at->diffForHumans() }}</small>
</div>
<div class="col-12 mt-2">
{!! isset($content->data_fields['beschreibung'])?$content->data_fields['beschreibung']:'keine Angaben' !!}
</div>
</div>
</div>
<div class="card-footer text-end">
<a class="btn btn-sm btn-ci" href="{{ route_content($content) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">
Mehr lesen
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" />
</svg>
</a>
</div>
</div>
</div>
@endforeach



{!! $contents->render() !!}

<div class="col-12">
<br>
<br>
<br>
<br>
</div>

</div>
</section>




@stop


@section('scripts')

@stop

View File

@ -0,0 +1,62 @@
@extends('template.'.config('settings.template').'.content.master')
@section('content')
<div class="row" style="padding-top: 60px;">
<div class="col-xs-12">
<h1 class="mt-2">{{ $list->name }}</h1>
<br>
@if (isset($list))
{{ $list->description }}
@endif
</div>
</div>
<section>
<div class="row">
@foreach($contents as $content)

<div class="col-12 col-md-4 mb-4" >
<div class="card h-100" style="background-color: #f8f8f8;">
@if ($content->image)
<img class="rounded-top img-fluid" src="{{ asset('uploads/' . $content->image) }}" loading="lazy">
@else
<img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}" loading="lazy">
@endif
<div class="card-body">
<div class="row">
<div class="col-12">
<h5 class="card-title" style="margin-top: 20px;">
<a href="{{ route_content($content) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$content->title}}'});">
{{$content->title}}
</a>
</h5>
</div>
<div class="col-12">
<small class="card-subtitle mb-2 text-muted" title="{{date('d.m.Y', strtotime($content->created_at))}}"> {{ $content->created_at->diffForHumans() }}</small>
</div>
<div class="col-12 mt-2">
{!! strIsset(Str::limit(strip_tags(html_entity_decode($content->data_fields['neuigkeit'])), 600,'...'), 'keine Angaben') !!}
</div>
</div>
</div>
<div class="card-footer text-end">
<a class="btn btn-sm btn-ci" href="{{ route_content($content) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$content->title}}'});">
Mehr lesen
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" />
</svg>
</a>
</div>
</div>
</div>


@endforeach
{!! $contents->render() !!}
<div class="col-12">
<br>
<br>
<br>
<br>
</div>
</div>
</section>
@stop

View File

@ -25,8 +25,9 @@
<div class="col-12">
<h5 class="card-title">{{$content->title}}</h5>
</div>

<div class="col-12 mt-2 text-muted text-end">
{!! isset($content->data_fields['beschreibung'])?$content->data_fields['beschreibung']:'keine Angaben' !!}
{!! isset($content->data_fields['preis'])?$content->data_fields['preis']." €":'keine Angaben' !!}
</div>
</div>
</div>