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

Merge branch '238-confidential-issue' into 'development'

Produkte können nun auch per AJAX nachgeladen werden.

Produkte für die Uni Mainz deaktiviert
Closes #238

See merge request !398
parents 7bf32fc3 17d4804c
No related branches found
No related tags found
2 merge requests!404Development,!398Produkte können nun auch per AJAX nachgeladen werden.
......@@ -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()])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment