Skip to content
Snippets Groups Projects
Commit 6f115809 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Spendenaufruf entfernt

parent fae03cc9
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -38,9 +38,6 @@ ...@@ -38,9 +38,6 @@
</header> </header>
@include('parts.sidebar', ['id' => 'staticPagesSideBar']) @include('parts.sidebar', ['id' => 'staticPagesSideBar'])
<div class="wrapper"> <div class="wrapper">
@if(LaravelLocalization::getCurrentLocale() == "de" && strpos(url()->current(), '/beitritt') === false && strpos(url()->current(), '/spendenaufruf') === false)
@include('parts.spendenaufruf')
@endif
<main class="mg-panel container"> <main class="mg-panel container">
@if (isset($success)) @if (isset($success))
<div class="alert alert-success" role="alert">{{ $success }}</div> <div class="alert alert-success" role="alert">{{ $success }}</div>
......
...@@ -23,15 +23,12 @@ ...@@ -23,15 +23,12 @@
@endif @endif
<main id="results"> <main id="results">
{{-- Show initial products or ads --}} {{-- Show initial products or ads --}}
@if(!$apiAuthorized && !$metager->validated && LaravelLocalization::getCurrentLocale() == "de" && strpos(url()->current(), '/beitritt') === false && strpos(url()->current(), '/spendenaufruf') === false)
@include('parts.spendenaufruf')
@endif
@if($metager->hasProducts()) @if($metager->hasProducts())
@if( $metager->getFokus() !== "produktsuche" && !$apiAuthorized) @if( $metager->getFokus() !== "produktsuche" && !$apiAuthorized)
@include('layouts.products', ['products' => $metager->getProducts()]) @include('layouts.products', ['products' => $metager->getProducts()])
@endif @endif
@else @else
@for($i = 0; $i <= 1; $i++) @for($i = 0; $i <= 2; $i++)
@include('layouts.ad', ['ad' => $metager->popAd()]) @include('layouts.ad', ['ad' => $metager->popAd()])
@endfor @endfor
@endif @endif
......
...@@ -19,16 +19,13 @@ ...@@ -19,16 +19,13 @@
</div> </div>
@endif @endif
<div id="results"> <div id="results">
@if(!$apiAuthorized && !$metager->validated && LaravelLocalization::getCurrentLocale() == "de" && strpos(url()->current(), '/beitritt') === false && strpos(url()->current(), '/spendenaufruf') === false)
@include('parts.spendenaufruf')
@endif
{{-- Show initial products or a {{-- Show initial products or a
@if($metager->hasProducts()) @if($metager->hasProducts())
@if( $metager->getFokus() !== "produktsuche" && !$apiAuthorized) @if( $metager->getFokus() !== "produktsuche" && !$apiAuthorized)
@include('layouts.products', ['products' => $metager->getProducts()]) @include('layouts.products', ['products' => $metager->getProducts()])
@endif @endif
@else @else
@for($i = 0; $i <= 1; $i++) @for($i = 0; $i <= 2; $i++)
@include('layouts.ad', ['ad' => $metager->popAd()]) @include('layouts.ad', ['ad' => $metager->popAd()])
@endfor @endfor
@endif @endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment