Commit bbe2d647 authored by Dominik Hebeler's avatar Dominik Hebeler

Produkte können nun auch per AJAX nachgeladen werden.

Produkte für die Uni Mainz deaktiviert
parent 11f8c638
......@@ -252,6 +252,7 @@ class MetaGer
$password = md5($eingabe . $password);
if ($this->password === $password) {
$this->ads = [];
$this->products = [];
$this->validated = true;
}
}
......
......@@ -17,10 +17,14 @@
</div>
@endif
<div class="col-xs-12 col-md-8">
{{-- 3-Mal Werbung --}}
@for($i = 0; $i <= 2; $i++)
@include('layouts.ad', ['ad' => $metager->popAd()])
@endfor
@if($metager->hasProducts())
@include('layouts.products', ['products' => $metager->getProducts()])
@else
{{-- 3-Mal Werbung --}}
@for($i = 0; $i <= 2; $i++)
@include('layouts.ad', ['ad' => $metager->popAd()])
@endfor
@endif
@foreach($metager->getResults() as $result)
@if($result->number % 7 === 0)
@include('layouts.ad', ['ad' => $metager->popAd()])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment