Benjamin Völkl 2020-10-19 15:50:01 +02:00
parent ba263b9f57
commit 843061369c
9 changed files with 285 additions and 1099 deletions

View File

@ -1,194 +1,11 @@
@extends('template.'.\Setting::get('template', 'default').'.content.master')

@section('content')
<style>
.jumbotron-ln {
background: #ccc;
background-position: left top;
background-repeat: no-repeat;
background-size: cover;
height: 250px;
background-color: #6c23d7;
}

.jumbotron-ln h1{
color: white;
}

body {
overflow-x: hidden;
}

.brand , .brand a{
font-size: 37px;
color: white;
font-weight: 300;
}

.brand a:hover {
color: white;
text-decoration: none;
}

.intro{
font-size: 20px;
margin-bottom: 70px;
}

.top-border-radius{
border-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem;
}

article .card-body{
padding-right: 0.5rem;
padding-left: 0.5rem ;
}

#article-section .container {
padding-left: 7px;
padding-right: 7px;
}

#article-section .container .col-lg-12{
padding-left: 0px;
padding-right: 0px;
}


@media only screen and (min-width: 575px) {

article .card-body{
padding-right: 1.5rem;
padding-left: 1.5rem ;
}
#article-section .container{
padding-left: 15px;
padding-right: 15px;

}

#article-section .container .col-lg-12{
padding-left: 15px;
padding-right: 15px;
}
}
</style>

@if (\Setting::get('image') and !isset($categoryModel) or (isset($categoryModel) and !$categoryModel->image))
<style>
.jumbotron-ln {
background-image: url({{ asset('uploads/' . \Setting::get('image')) }});
}
</style>
@endif


@if (isset($categoryModel) and $categoryModel->image)
<style>
.jumbotron-ln {
background-image: url({{ asset('uploads/categories/' . $categoryModel->image) }});
}


</style>
@endif

<div class="jumbotron-ln">
<div class="container brand">
<br>

<a href="{{url('/')}}" >{{ \Setting::get('name')}}</a>
<br>
<span style="font-size: 50%;">{{ \Setting::get('tagline')}}</span>

</div>

</div>




@if(\Session::get('premium_code'))
<div class="bg-ci text-center bg-premium-code" style="font-size: 12px;display:none; cursor: pointer;" title="View your Code and expiration"><i class="fal fa-gem"></i> {{ __('public.premium-active') }}</div>
@include('template.'.\Setting::get('template', 'default').'.content.includes.premium-banner')
@endif

@if (!\Session::get('premium_code'))

@if (env('PAYMENT', false))
<div class="text-center" id="enter-code" data-toggle="modal" data-target="#exampleModalCode" title="Here you can buy a premium pass or use an existing one to log-in"><i class="fal fa-gem"></i> {{ __('public.buy-login') }}</div>
@endif

<div class="modal fade" id="exampleModalCode" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document" style="max-width: 800px;">
<form method="post" action="" class="enter-premium-code">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">{{ __('public.buy-login') }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>

<div class="modal-body" style="padding-left: 0px; padding-right: 0px;">

@include('template.'.\Setting::get('template', 'default').'.content.includes.premium-pass')

<style>
.modal section{
padding-bottom: 0px;
}
</style>

<div class="container">
<div class="row">

<div class="col-8 offset-2 col-md-6 offset-md-3">


<h5 style="text-align: center">{{ __('public.login-existing') }}</h5>
<br>
<div class="form-group">
<label for="premium_code">{{ __('public.enter-active-code') }}</label>
<input type="text" minlength="6" maxlength="6" class="form-control" id="premium_code" required="required" aria-describedby="emailHelp" placeholder="XXXXXX">
</div>

<div id="content_premium"></div>
<button type="submit" class="btn btn-primary btn-enter-premium float-right" style="margin-bottom: 20px;"><i class="fal fa-sign-in"></i> {{ __('public.login-plan') }} </button>

</div>

</div>

</div>


</div>


</div>
</form>
</div>
</div>
@endif

@if (env('APP_ACCESS', 'public') == 'code')
<div class="container">
<br>

<a href="{{ route('logout') }}" class="float-right" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"><i class="fal fa-sign-out"></i> {{ __('public.logout') }} Logout</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
<br>
<br>


</div>


@endif

@if (\Route::currentRouteName() != 'author.get')
<div class="row" style="margin-top:50px;">
@ -797,695 +614,7 @@
</div>
</section>

<section>
<div class="container">
<div class="row">
<div class="col-lg-12">
<hr>
<br>
<br>
<br>
<h3>{{ __('public.read-more') }}</h3>
<br>
</div>

@foreach ($categories->take(4)->shuffle()->all() as $category)
<div class="col-sm-6 {{ (isset($categoryModel) and $category->id == $categoryModel->id) ? 'd-none' : '' }}" >
<a href="{{ url('/' . $category->slug) }}" onclick="location.href = '{{ url('/' . $category->slug) }}';" >
<div class="card info-card shadow-lg" style="margin-bottom: 30px;">
<div class="card-body">
<div class="row">
<div class="col-8">
<h5 class="card-title">

<i class="

@if($category->icon == 'bitcoin')
fab
@else
fal
@endif

fa-{{$category->icon}}" style="font-size: 1.3rem">


</i> {{ $category->name }}
</h5>

</div>
<div class="col-4 text-right">

<h5><i class="fal fa-arrow-circle-right fa-3x" style="font-size: 30px;"></i></h5>
</div>
</div>
</div>
</div>

</a>

</div>
@endforeach



</div>
</div>
</section>

@include('template.'.\Setting::get('template', 'default').'.content.includes.type-iptt')
@include('template.'.\Setting::get('template', 'default').'.content.includes.new-comment')
@include('template.'.\Setting::get('template', 'default').'.content.includes.premium-pass-qr')

@if(!\Session::get('premium_code'))
@if (env('PAYMENT', false))
@include('template.'.\Setting::get('template', 'default').'.content.includes.premium-pass')
@endif
@else
@include('template.'.\Setting::get('template', 'default').'.content.includes.premium-referral')

@endif
@stop
@section('scripts')

<script src="https://cdnjs.cloudflare.com/ajax/libs/jscroll/2.4.1/jquery.jscroll.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js"></script>

<script src="{{ asset('template/js/dropzone.min.js') }}"></script>
<script src="{{ asset('template/js/fslightbox.js') }}"></script>

<script type="text/javascript" src="https://js.stripe.com/v2/"></script>

<script>
toastr.options = {
"progressBar": true
};
</script>

@if (env('APP_WRITE', false))
<script src="https://cdn.tiny.cloud/1/0015awrvvurgnwz3e0uid83chhzb7lnbi6wyn4ukk7b4lh9k/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script src="{{ asset('template/js/tiny-de.js') }}"></script>
@endif

@if (\Session::has('success_plan'))
<script>
toastr.success('{{ \Session::get('success_plan') }}', 'Success!');
</script>
@endif

<script>
$('.enter-premium-code').submit(function() {
event.preventDefault();

var code = $('#premium_code').val();

$('.btn-enter-premium').append('<i class="fas fa-sync fa-spin fa-premium-enter" style="font-size: 17px;color: #fff;margin-left:12px;position: relative;left:6px;display: inline-block !important;margin:auto;text-align:center;"></i>');

$.ajax({
type: 'GET',
dataType : 'json',
url: "{{ url('enterPremiumCode') }}/" + code,
success: function(data) {
$('.fa-premium-enter').remove();

if (data.code == 1) {
$('#content_premium').html('<div class="alert alert-danger" role="alert">Code not found or expired.</div>');
}

if (data.code == 2) {
$('#content_premium').html('<div class="alert alert-info" role="alert">Make the payment to activate your code. Payment expiration: '+data.payment_expired+' <br> <br><a href="lightning:'+data.payment_request+'"><img src="data:image/png;base64,' + data.qr_code + '" class="img-fluid rounded mx-auto d-block"/></a></div>');
}

if (data.code == 3) {
window.location.href = '{{ url("/") }}';
}
},
error: function(data) {
$('.fa-premium-enter').remove();

alert('error!');
}
});
});

$(document).on('shown.bs.modal', '.modal', function() {
$(this).find('[autofocus]').focus();
});

$.ajaxSetup({
headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }
});

if($.cookie('close_premium_alert') == undefined){
$('#alert-premium').css('display', 'block');
$('.bg-premium-code').css('display', 'none');
} else {
$('#alert-premium').css('display', 'none');
$('.bg-premium-code').css('display', 'block');
}

$('.close-premium').click(function() {
$('#alert-premium').css('display', 'none');
$('.bg-premium-code').css('display', 'block');

$.cookie('close_premium_alert', true);
});

$('.bg-premium-code').click(function() {
$('#alert-premium').css('display', 'block');
$('.bg-premium-code').css('display', 'none');

$.removeCookie('close_premium_alert');
});

function update_counter(){
$(".counter-class").each(function() {
var id = $(this).data('id');
var date = $(this).data('date');

$("#counter_" + id)
.countdown(date, function(event) {
$(this).text(
event.strftime('%-D day%!D %Hh %Mmin %Ssec.')
);
});
});
}

update_counter();

$(document).on('submit', '#formStripePremium', function(event) {
event.preventDefault();

$('.btn-sub-stripe').append('<i class="fa fa-spinner fa-spinner-bt fa-spin fa-3x fa-fw" style="font-size:20px;margin-left:10px;"></i>');

Stripe.setPublishableKey('{{ \Setting::get('stripe_publish_key') }}');

var valid = $('[name="card_valid"]').val();
var valid = valid.split('-');
var year = valid[0];
var moth = valid[1];

Stripe.card.createToken({
number: $('[name="card_number"]').val(),
cvc: $('[name="card_csv"]').val(),
exp_month: moth,
exp_year: year
}, stripeResponseHandler);

function stripeResponseHandler(status, response) {

// Grab the form:
var $form = $('#payment-form');

if (response.error) { // Problem!
toastr.remove();

$('.fa-spinner-bt').remove();

toastr.error('Error!', response.error.message);

return;

} else { // Token was created!

// Get the token ID:
var token = response.id;
var id = $('#stripe_premium_code_id').val();

$.ajax({
type: 'POST',
data: {
'token_stripe' : token,
'email_stripe' : $('#email_stripe').val()
},
dataType : 'json',
url: "{{ url('verifyInvoiceByPlanStripe') }}/" + id,
success: function(data) {
if (data.status == 3) {
toastr.remove();

$('.fa-spinner-bt').remove();

alert('Error! Please try again.');
}

if (data.status == 2) {
window.location.href = '{{ url("/") }}';
}
},
error: function(data) {
toastr.remove();

$('.fa-spinner-bt').remove();

toastr.error('Error!', 'Error Ajax');
}
});
}
}
});

function number_format (number, decimals, dec_point, thousands_sep) {
// Strip all characters but numerical ones.
number = (number + '').replace(/[^0-9+\-Ee.]/g, '');
var n = !isFinite(+number) ? 0 : +number,
prec = !isFinite(+decimals) ? 0 : Math.abs(decimals),
sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep,
dec = (typeof dec_point === 'undefined') ? '.' : dec_point,
s = '',
toFixedFix = function (n, prec) {
var k = Math.pow(10, prec);
return '' + Math.round(n * k) / k;
};
// Fix for IE parseFloat(0.55).toFixed(0) = 0;
s = (prec ? toFixedFix(n, prec) : '' + Math.round(n)).split('.');
if (s[0].length > 3) {
s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
}
if ((s[1] || '').length < prec) {
s[1] = s[1] || '';
s[1] += new Array(prec - s[1].length + 1).join('0');
}
return s.join(dec);
}

$(document).on('click', '.lnd-pay-card', function(event) {
event.preventDefault();

var premium_code_id = $(this).attr('data-premium-id');
var premium_plan_days = $(this).attr('data-premium-days');
var premium_expired_at = $(this).attr('data-expired-at');
var btc_base = parseFloat($('#amountBtc').val());

var premium_amount = (parseInt($(this).attr('data-amount')) / 100000000 * btc_base);
console.log(premium_amount);

var formatted_amount = number_format(premium_amount, 2, '.', '');

$('#stripe_premium_code_id').val(premium_code_id);

if (premium_code_id > 0) {
$('#exampleModalLabelPremiumStripe').html('<i class="fal fa-gem"></i> Buy '+premium_plan_days +' day Premium Plan');
$('.span-cost-premium-stripe').html('$' + formatted_amount);
$('.span-date-premium-stripe').html(premium_expired_at);
$('.span-days-premium-stripe').html(premium_plan_days);

$('.modal').modal('hide');
$('#stripe-modal').modal('show');
}
});

$(document).on("click", '.get-premium-invoice', function(event) {
event.preventDefault();

var id = $(this).data('id');

$(this).append('<i class="fas fa-sync fa-spin fa-premium-plan-icon" style="font-size: 20px;color: #fff;margin-left:12px;position: relative;left:12px;display: inline-block !important;margin:auto;text-align:center;"></i>');

$.ajax({
type: 'GET',
dataType : 'json',
url: "{{ url('createInvoicePlan') }}/" + id,
success: function(data) {
$('.fa-premium-plan-icon').remove();

$('#exampleModalLabelPremium').html('<i class="fal fa-gem"></i> Buy '+data.premium_plan_days +' day Premium Plan');
$('.span-cost-premium').html(data.amount + ' sats');
$('.span-date-premium').html(data.expired_at);
$('.span-days-premium').html(data.premium_plan_days);
$('.span-qrcode-premium').empty().html('<a href="LIGHTNING:'+data.payment_request+'"><img src="data:image/png;base64,' + data.qr_code + '" class="img-fluid rounded mx-auto d-block"/></a>');

$('.lnd-pay-card').attr('data-premium-id', data.premium_code_id);
$('.lnd-pay-card').attr('data-premium-days', data.premium_plan_days);
$('.lnd-pay-card').attr('data-expired-at', data.expired_at);
$('.lnd-pay-card').attr('data-amount', data.amount);

$('.modal').modal('hide');
$('#buy-pass').modal('show');

let interval = setInterval(function(){
verifyIntervalPremium(data.add_index, data.premium_code_id);
}, 1000);

function verifyIntervalPremium(add_index, premium_code_id)
{
$.ajax({
type: 'GET',
dataType : 'json',
url: "{{ url('verifyInvoicePlan') }}/" + add_index + "/" + premium_code_id,
success: function(data) {
if (data.status == 3) {
stopInterval();

alert('Error! Please try again.');
}

if (data.status == 2) {
stopInterval();

//data.days

window.location.href = '{{ url("/") }}';
}
},
error: function(data) {
//alert('error!');
}
});
}

function stopInterval()
{
clearInterval(interval);
}
},
error: function(data) {
$('.fa-premium-plan-icon').remove();

alert('error!');
}
});
});

$(document).on("click", '.get-action-invoice', function(event) {
event.preventDefault();

var id = $(this).data('id');
var type = $(this).data('type');
var message = '';

if (type == 2) {
if ($('#message_action_' + id).val()) {
var message = $('#message_action_' + id).val();
}
}

$(this).append('<i class="fas fa-sync fa-spin fa-action-plan-icon" style="font-size: 20px;color: #fff;margin-left:12px;position: relative;left:12px;display: inline-block !important;margin:auto;text-align:center;"></i>');

$.ajax({
type: 'POST',
dataType : 'json',
data: {
'message' : message
},
url: "{{ url('createInvoiceAction') }}/" + id,
success: function(data) {
$('.fa-action-plan-icon').remove();

$('#exampleModalLabelAction').html('<i class="fal fa-play-circle"></i> '+data.action_name +' for '+data.action_amount+' sats.');
$('.span-cost-action').html(data.action_amount + ' sats');
$('.span-qrcode-action').empty().html('<a href="LIGHTNING:'+data.payment_request+'"><img src="data:image/png;base64,' + data.qr_code + '" class="img-fluid rounded mx-auto d-block"/></a>');
$('.span-name-action').html(data.action_name);

$('#iot-invoice').modal('show');

let interval = setInterval(function(){
verifyIntervalAction(data.add_index, data.id, id);
}, 3000);

function verifyIntervalAction(add_index, id, actionId)
{
console.log($('#action'+actionId).data('execute'));

if ($('#action'+actionId).data('execute') == 1) {
return;
}

$('#action'+actionId).data('execute', 1);

$.ajax({
type: 'GET',
dataType : 'json',
url: "{{ url('verifyInvoiceAction') }}/" + add_index + "/" + id,
success: function(data) {
if (data.status == 3) {
stopInterval();

$('#action'+data.action.id).data('execute', 0);

alert('Error! Please try again.');
}

if (data.status == 2) {
stopInterval();

$('#action'+data.action.id).attr('data-execute', 1);

if (data.action.type == 1) {
window.location.href = '{{ url("/") }}';
}

if (data.action.type == 2) {
toastr.success(data.action.name, 'Success!');
$('.modal').modal('hide');
}

if (data.action.type == 3) {
toastr.success(data.action.name, 'Success!');

$('.modal').modal('hide');
}

if (data.action.type == 4) {
window.open(
data.action.target,
'_blank'
);
toastr.success(data.action.name, 'Success!');
$('.modal').modal('hide');
}
}

if (data.status == 1) {
$('#action'+actionId).data('execute', 0);
}
},
error: function(data) {
//alert('error!');
}
});
}

function stopInterval()
{
clearInterval(interval);
}
},
error: function(data) {
$('.fa-action-plan-icon').remove();

alert('error!');
}
});
});

</script>

<script>
$(document).on('focusin', function(e) {
if ($(e.target).closest(".tox").length) {
e.stopImmediatePropagation();
}
});

$('[name="paid"]').change(function() {
event.preventDefault();

if (this.value == 1) {
var data_html = '<div class="form-group"><label for="paidAmount">Bezahlbarer Betrag</label><input type="number" value="1000" class="form-control" id="paidAmount" placeholder="Bezahlbarer Betrag" name="paidAmount" required="required"></div>';

$('.form-amount').html(data_html);
} else {
$('.form-amount').empty();
}
});

$(document).on("click", '.get-collapse-invoice', function(event) {
event.preventDefault();

var id = $(this).data('id');

var isExpanded = $('#ln-invoice-' + id).hasClass('show');

$('#ln-invoice-' + id).collapse('toggle');

if (isExpanded == false) {
$('.pay-news-' + id).html('<i class="fas fa-sync fa-spin" style="font-size: 34px;color: #fff;display: block;margin:auto;text-align:center;"></i>');

$.ajax({
type: 'GET',
dataType : 'json',
url: "{{ url('createInvoice') }}/" + id,
success: function(data) {
$('.pay-news-' + id).empty().html('<img src="data:image/png;base64,' + data.qr_code + '" class="img-fluid rounded mx-auto d-block"/>');
$('.pay-news-' + id).attr('href', 'LIGHTNING:' + data.payment_request);
$('#pay-news-title-' + id).empty().html('<div class="input-group mb-3"><div class="input-group-prepend"><span class="input-group-text" id="basic-addon1"> <a href=""><i class="fal fa-copy"></i></a></span></div><input type="text" class="form-control" value="'+data.payment_request+'" aria-describedby="basic-addon1"></div>');

let interval = setInterval(function(){
verifyInterval(data.add_index, data.id);
}, 2000);

function verifyInterval(add_index, id)
{
$.ajax({
type: 'GET',
dataType : 'json',
url: "{{ url('verifyInvoice') }}/" + add_index + "/" + id,
success: function(data) {
if (data.status == 3) {
stopInterval();

alert('erro tente novamente!');
}

if (data.status == 2) {
stopInterval();

var content = data.content;
var idContent = data.id;

toastr.remove();
toastr.success('Premium content unlocked.', 'Success!');

$('#payment-request-' + idContent).remove();
$('.pay-preview-' + idContent).remove();
$('.card-preview-' + idContent).css('background', 'none');
$('#text_news_' + idContent).html(content);

if (data.nach_type == 2) {
if (data.additional_fields.workplace) {
var workplace = data.additional_fields.workplace;
} else {
var workplace = "";
}

if (data.additional_fields.contact_info) {
var contact_info = data.additional_fields.contact_info;
} else {
var contact_info = "";
}
}

if (data.nach_type == 3) {
var content_action = '<hr><div class="row">';

jQuery.each( data.actions, function( i, val ) {
var class_act = 'col-md-6';

if (data.actions.length == 1) {
var class_act = 'col-md-12';
}

content_action += '<div class="'+class_act+'">';
content_action += '<small>Description: '+val.description+'</small><br>';

if (data.show_total_paid_action) {
if (data.total_actions == 1) {
content_action += '<p>Total paid: '+data.total_paid_action+' sats</p>';
} else {
if (data.total_paid_action > 0) {
var diff = (val.total_paid * 100) / data.total_paid_action;
} else {
var diff = 0;
}

content_action+= '<div class="progress">';
content_action+= '<div class="progress-bar bg-'+val.color+'" role="progressbar" style="width: '+ diff +'%" aria-valuenow="66" aria-valuemin="0" aria-valuemax="100">'+val.total_paid+' sats</div>';
content_action+= '</div>';
}
}

content_action += '<a href="" id="action'+val.id+'" style="margin-top: 20px;" class="btn btn-'+val.color+' mx-0 d-block get-action-invoice" data-id="'+val.id+'" data-type="'+val.type+'" data-execute="0"><i class="fal fa-'+val.icon+'"></i> '+val.name+' for '+val.amount+' sats.</a>';
content_action += '</div>';
});

content_action += '</div>';

$('#box_action_' +idContent).html(content_action);
}

$('#text_news_workplace_' + idContent).html(workplace);
$('#text_news_contact_info_' + idContent).html(contact_info);

}
},
error: function(data) {
//alert('error!');
}
});
}

function stopInterval()
{
clearInterval(interval);
}
},
error: function(data) {
alert('error!');
}
});
} else {
$('.pay-news-' + id).empty();
$('#pay-news-title-' + id).empty();
}
});

tinymce.init({
selector: '#exampleFormControlTextarea1',
plugins: 'advlist link image lists',
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent | link | unlink | image',
height: '250',
directionality : 'de',
language : 'de',
setup: function (editor) {
editor.on('change', function (e) {
editor.save();
});
}
});

var uploadedDocumentMap = {}
myDropzone = Dropzone.options.imageDropzone = {
url: '{{ url('addFile') }}',
maxFilesize: 2, // MB
acceptedFiles: 'image/*,application/pdf,.doc,.docx,.xls,.xlsx',
addRemoveLinks: true,
headers: {
'X-CSRF-TOKEN': "{{ csrf_token() }}"
},
success: function (file, response) {
$('form').append('<input type="hidden" name="files[]" value="' + response.name + '|'+ response.original_name +'">')
uploadedDocumentMap[file.name] = response.name
},
removedfile: function (file) {
file.previewElement.remove()
var name = ''
if (typeof file.file_name !== 'undefined') {
name = file.file_name
} else {
name = uploadedDocumentMap[file.name]
}
$('form').find('input[name="files[]"][value="' + name + '"]').remove()
}
}
</script>
<script>
function setCommentId(id) {
document.getElementById('comment_nach_id').value = id
}

function showComments(event, id) {
event.preventDefault();
document.getElementById('comment_button_' + id).style.display = 'none';
document.getElementById('comments_' + id).style.display = "";

return false;
}

function angebote() {
window.location.href = "{{url('angebote')}}"
}
</script>
@stop

View File

@ -0,0 +1,2 @@
<link href="{{asset('template/css/bootstrap.css')}}" rel="stylesheet" >
<link href="{{asset('template/css/main.css')}}" rel="stylesheet" >

View File

@ -0,0 +1,80 @@
<footer class="js--page-footer">
<div class="footer-widgets">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-3">
<div class="footer-widgets__social">
<img class="push-down-10" alt="Footer Logo" src="{{ asset('template/images/logo-footer.png') }}" width="139" height="35">

<p class="push-down-15">Neuigkeiten, Informationen sowie Bilder rund um den Biohof Finkenhammer. Folgen Sie uns auf Ihrem bevorzugten sozialen Netzwerken:</p>
<a href="https://www.facebook.com/finkenhammer" ><i class="fab fa-facebook fa-2x"></i></a>
<a href="https://twitter.com/finkenhammer" ><i class="fab fa-twitter fa-2x"></i></a>
<a href="https://www.instagram.com/finkenhammer/"><i class="fab fa-instagram fa-2x"></i></a>

</div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="col-xs-12 col-sm-6">
<nav class="footer-widgets__navigation">
<div class="footer-wdgets__heading--line">
<h4 class="footer-widgets__heading">Informationen</h4>
</div>
<ul class="nav nav-footer">
<li><a href="{{ url('ueber-uns/presse') }}">Presse</a></li>

</ul>
</nav>
</div>

<div class="col-xs-12 col-sm-6">



<div class="footer-widgets__navigation">
<div class="footer-wdgets__heading--line">
<h4 class="footer-widgets__heading">ELER</h4>
</div>
<a href="{{url('/foerderung')}}">
<img src="{{asset('template/images/europa-flag.jpg')}}" class="center-block">
</a>
</div>
</div>


</div>

<div class="col-xs-12 col-sm-3">
<div class="footer-widgets__navigation">
<div class="footer-wdgets__heading--line">
<h4 class="footer-widgets__heading">Kontakt</h4>
</div>
Bäckerei und Hühnerhof Finkenhammer<br>
Finkenhammer 1<br>
92714 Pleystein<br>
<a class="footer__link--small" href="kontakt"> <i class="fa fa-directions"></i> Anfahrtsplan </a><br><br>
<a class="footer__link" href="tel:+499654267"> <i class="fa fa-phone-alt"></i> 09654 / 267</a> <br>
<a class="footer__link" href="mailto:info@finkenhammer.de"><i class="fa fa-envelope"></i> info@finkenhammer.de</a>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6">
<div class="footer__text">
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>
</div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="footer__text--link">
<a class="footer__links" href="{{ url('datenschutz') }}">Datenschutz</a>
<a class="footer__links" href="{{ url('impressum') }}">Impressum</a>
</div>
</div>

</div>
</div>
</div>
</footer>

View File

@ -0,0 +1,88 @@
<header class="header">
<div class="container">
<div class="row">
<div class="col-xs-10 col-md-6">
<div class="header-logo">
<a href="{{ url('/') }}"><img alt="Logo" src="{{ asset('template/images/logo.png') }}" width="251" height="79"></a>

</div>
</div>
<div class="col-xs-2 visible-sm visible-xs">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapsible-navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
</div>
<div class="col-xs-12 col-md-6">
<nav class="navbar navbar-default" role="navigation">
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="collapsible-navbar">
<ul class="nav navbar-nav">
<li>
<a href="{{url('/baeckerei')}}"
class="">Bäckerei</a>
</li>

<li>
<a href="{{url('/huehnerhof')}}"
class="">Hühnerhof</a>
</li>

<li class="dropdown sfHover">
<a class="dropdown-toggle" data-toggle="dropdown"
href="{{url('/verkaufsstellen')}}">Verkaufsstellen</a>
<ul class=dropdown-menu>
<li>
<a class="" href="{{url('/hofladen-pleystein')}}">Pleystein</a>
</li>
<li>
<a class="" href="{{url('/bauernmarkt-vohenstrauss')}}">Vohenstrauß</a>
</li>
<li>
<a class="" href="{{url('/bauernmarkt-weiden')}}">Weiden</a>
</li>

<li>
<a class="" href="{{url('/donaumarkt-regensburg')}}">Regensburg</a>
</li>

<li>
<a class="" href="{{url('/wochenmarkt-neutraubling')}}">Neutraubling</a>
</li>

<li>
<a class="" href="{{url('/wochenmarkt-burglengenfeld')}}">Burglengenfeld</a>
</li>


</ul>
</li>


<li>
<a href="{{url('/ueber-uns')}}"
class="">Über uns</a>
</li>

<li>
<a href="{{url('/kontakt')}}"
class="">Kontakt</a>
</li>


</ul>

</div><!-- /.navbar-collapse -->
</nav>
</div>

</div>
</div>


</header>

View File

@ -0,0 +1,37 @@
@if(App::environment('production'))


@if (!empty(\Setting::get('facebook', '')))


<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '{{\Setting::get('facebook') }}');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id={{\Setting::get('facebook') }}&ev=PageView&noscript=1"
/></noscript>

@endif

@if (!empty(\Setting::get('analytics', '')))

<script async src="https://www.googletagmanager.com/gtag/js?id={{\Setting::get('analytics') }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{\Setting::get('analytics') }}');
</script>
@endif

@endif

View File

@ -0,0 +1,23 @@
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>

<!-- Google fonts -->
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Arvo:700:latin', 'Open+Sans:400,600,700:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>



<script src="https://kit.fontawesome.com/ce5792b591.js"></script>
<script data-main="scripts/main" src="{{ asset('js/requirejs/require.js') }}"></script>

View File

@ -21,25 +21,54 @@


<div class="container">
<!-- Navigation for products -->
<div class="row">
<h1>Biohof Finkenhammer - Aktuelle Angebote und Informationen</h1>


<!-- Products -->

<!-- Banners medium -->

<h1>Biohof Finkenhammer - Aktuelle Angebote und Informationen</h1>



<div class="col-xs-12">
<div class="banners--big">
Achtung!
</div>
<div class="row">
<div class="col-12">
<h2 id="aktuelles">Aktuelles</h2>
<br>
Ab sofort wieder Markt in Weiden. Gilt ab Samstag 25.04.2020

</div>

@foreach($nachrichten as $nach)
<div class="col-12 col-md-6 col-lg-4" style="margin-bottom: 80px;">
<div class="card h-100 shadow-lg" id="news-{{$nach->id}}">
@if ($nach->image)
<img src="{{ asset('uploads/' . $nach->image) }}" class="img-responsive">
@endif
<div class="card-body">
<h3 class="card-title">
{{$nach->title}}
</h3>
<h7 class="card-subtitle mb-2">
@if ($nach->user and $nach->user->public_author == 1)
<a class="text-dark" href="{{ route('author.get', [$nach->user->slug]) }}">
<img src="{{ $nach->user->gravatar() }}" width="32" class="rounded-circle">
{{ $nach->user->name }}</a> -
@endif
<span style="font-weight: normal " class="text-dark">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</span>

</h7>


{!!Str::limit( $nach->nachrichten ,600)!!}

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

@endforeach



</div>




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

View File

@ -1,148 +1,28 @@
<!DOCTYPE html>
<html lang="de">
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">

<title>{{ \Setting::get('name')}}</title>



<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Finkenhammer">
@if (!empty(\Setting::get('favicon_image', '')))
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('uploads/' . \Setting::get('favicon_image', '')) }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('uploads/' . \Setting::get('favicon_image', '')) }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/' . \Setting::get('favicon_image', '')) }}">
@endif
<title>finkenhammer.de | Biowaren Finkenhammer</title>



<link href="{{asset('template/css/bootstrap.css')}}" rel="stylesheet" >
<link href="{{asset('template/css/main.css')}}" rel="stylesheet" >



<!-- endbuild -->

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

<!-- Google fonts -->
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Arvo:700:latin', 'Open+Sans:400,600,700:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>

@include('template.'.\Setting::get('template', 'default').'.content.includes.css')

@include('template.'.\Setting::get('template', 'default').'.content.includes.integrations')

</head>
<body>
@include('template.'.\Setting::get('template', 'default').'.content.includes.header')


<header class="header">
<div class="container">
<div class="row">
<div class="col-xs-10 col-md-6">
<div class="header-logo">
<a href="{{ url('/') }}"><img alt="Logo" src="{{ asset('template/images/logo.png') }}" width="251" height="79"></a>

</div>
</div>
<div class="col-xs-2 visible-sm visible-xs">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapsible-navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
</div>
<div class="col-xs-12 col-md-6">
<nav class="navbar navbar-default" role="navigation">
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="collapsible-navbar">
<ul class="nav navbar-nav">
<li>
<a href="{{url('/baeckerei')}}"
class="">Bäckerei</a>
</li>

<li>
<a href="{{url('/huehnerhof')}}"
class="">Hühnerhof</a>
</li>

<li class="dropdown sfHover">
<a class="dropdown-toggle" data-toggle="dropdown"
href="{{url('/verkaufsstellen')}}">Verkaufsstellen</a>
<ul class=dropdown-menu>
<li>
<a class="" href="{{url('/hofladen-pleystein')}}">Pleystein</a>
</li>
<li>
<a class="" href="{{url('/bauernmarkt-vohenstrauss')}}">Vohenstrauß</a>
</li>
<li>
<a class="" href="{{url('/bauernmarkt-weiden')}}">Weiden</a>
</li>

<li>
<a class="" href="{{url('/donaumarkt-regensburg')}}">Regensburg</a>
</li>

<li>
<a class="" href="{{url('/wochenmarkt-neutraubling')}}">Neutraubling</a>
</li>

<li>
<a class="" href="{{url('/wochenmarkt-burglengenfeld')}}">Burglengenfeld</a>
</li>


</ul>
</li>


<li>
<a href="{{url('/ueber-uns')}}"
class="">Über uns</a>
</li>

<li>
<a href="{{url('/kontakt')}}"
class="">Kontakt</a>
</li>






</ul>

</div><!-- /.navbar-collapse -->
</nav>
</div>

<!--Search open pannel-->

</header>



@yield('content')
@ -150,92 +30,10 @@



<footer class="js--page-footer">
<div class="footer-widgets">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-3">
<div class="footer-widgets__social">
<img class="push-down-10" alt="Footer Logo" src="{{ asset('template/images/logo-footer.png') }}" width="139" height="35">

<p class="push-down-15">Neuigkeiten, Informationen sowie Bilder rund um den Biohof Finkenhammer. Folgen Sie uns auf Ihrem bevorzugten sozialen Netzwerken:</p>
<a href="https://www.facebook.com/finkenhammer" ><i class="fab fa-facebook fa-2x"></i></a>
<a href="https://twitter.com/finkenhammer" ><i class="fab fa-twitter fa-2x"></i></a>
<a href="https://www.instagram.com/finkenhammer/"><i class="fab fa-instagram fa-2x"></i></a>

</div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="col-xs-12 col-sm-6">
<nav class="footer-widgets__navigation">
<div class="footer-wdgets__heading--line">
<h4 class="footer-widgets__heading">Informationen</h4>
</div>
<ul class="nav nav-footer">
<li><a href="{{ url('ueber-uns/presse') }}">Presse</a></li>

</ul>
</nav>
</div>

<div class="col-xs-12 col-sm-6">



<div class="footer-widgets__navigation">
<div class="footer-wdgets__heading--line">
<h4 class="footer-widgets__heading">ELER</h4>
</div>
<a href="{{url('/foerderung')}}">
<img src="{{asset('template/images/europa-flag.jpg')}}" class="center-block">
</a>
</div>
</div>


</div>

<div class="col-xs-12 col-sm-3">
<div class="footer-widgets__navigation">
<div class="footer-wdgets__heading--line">
<h4 class="footer-widgets__heading">Kontakt</h4>
</div>
Bäckerei und Hühnerhof Finkenhammer<br>
Finkenhammer 1<br>
92714 Pleystein<br>
<a class="footer__link--small" href="kontakt"> <i class="fa fa-directions"></i> Anfahrtsplan </a><br><br>
<a class="footer__link" href="tel:+499654267"> <i class="fa fa-phone-alt"></i> 09654 / 267</a> <br>
<a class="footer__link" href="mailto:info@finkenhammer.de"><i class="fa fa-envelope"></i> info@finkenhammer.de</a>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6">
<div class="footer__text">
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>
</div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="footer__text--link">
<a class="footer__links" href="{{ url('datenschutz') }}">Datenschutz</a>
<a class="footer__links" href="{{ url('impressum') }}">Impressum</a>
</div>
</div>
</div>
</div>
</div>
</footer>
@include('template.'.\Setting::get('template', 'default').'.content.includes.footer')

@include('template.'.\Setting::get('template', 'default').'.content.includes.scripts')

</body>
<script src="https://kit.fontawesome.com/ce5792b591.js"></script>
<script data-main="scripts/main" src="{{ asset('js/requirejs/require.js') }}"></script>



</html>