Commit bb899223 authored by Karl's avatar Karl
Browse files

Maps lassen sich in den Settings ausstellen

parent df4da43e
......@@ -44,6 +44,7 @@ class MetaGer
protected $mobile;
protected $resultCount;
protected $sprueche;
protected $maps;
protected $domainsBlacklisted = [];
protected $urlsBlacklisted = [];
protected $url;
......@@ -880,6 +881,12 @@ class MetaGer
} else {
$this->sprueche = false;
}
$this->maps = $request->input('maps', 'off');
if ($this->maps === "off") {
$this->maps = true;
} else {
$this->maps = false;
}
# Theme
$this->theme = preg_replace("/[^[:alnum:][:space:]]/u", '', $request->input('theme', 'default'));
# Ergebnisse pro Seite:
......@@ -1306,6 +1313,11 @@ class MetaGer
return $this->sprueche;
}
public function getMaps()
{
return $this->maps;
}
public function getCategory()
{
return $this->category;
......
......@@ -6,13 +6,14 @@ return [
'allgemein.1' => 'Allgemein',
'allgemein.2' => 'Sprüche ausblenden',
'allgemein.3' => 'Links im gleichen Tab öffnen',
'allgemein.4' => 'Sprache auswählen:',
'allgemein.5' => 'Alle Sprachen',
'allgemein.6' => 'Deutsch',
'allgemein.6_1' => 'Englisch',
'allgemein.7' => 'Anzahl der Ergebnisse pro Seite:',
'allgemein.8' => 'Alle',
'allgemein.3' => 'Maps ausblenden',
'allgemein.4' => 'Links im gleichen Tab öffnen',
'allgemein.5' => 'Sprache auswählen:',
'allgemein.6' => 'Alle Sprachen',
'allgemein.7' => 'Deutsch',
'allgemein.8' => 'Englisch',
'allgemein.9' => 'Anzahl der Ergebnisse pro Seite:',
'allgemein.10' => 'Alle',
'zeit.1' => 'Maximale Suchzeit',
'zeit.2' => '1 Sekunde (Standard)',
......
......@@ -32,12 +32,14 @@
@include('layouts.ad', ['ad' => $metager->popAd()])
@endfor
@endif
@if($metager->getMaps())
<div class="result row" id="map">
<div class="col-sm-1"></div>
<div class="col-sm-11">
<iframe class="" src="https://maps.metager.de/metager/{{ $metager->getQ() }}" style="width: 100%; height:0; border:0;"></iframe>
</div>
</div>
@endif
@foreach($metager->getResults() as $result)
@if($result->number % 7 === 0)
@include('layouts.ad', ['ad' => $metager->popAd()])
......
......@@ -25,12 +25,14 @@
@include('layouts.ad', ['ad' => $metager->popAd()])
@endfor
@endif
@if($metager->getMaps())
<div class="result row" id="map">
<div class="col-sm-1"></div>
<div class="col-sm-11">
<iframe class="" src="https://maps.metager.de/metager/{{ $metager->getQ() }}" style="width: 100%; height:0; border:0;"></iframe>
</div>
</div>
@endif
@foreach($metager->getResults() as $result)
@if($result->number % 7 === 0)
@include('layouts.ad', ['ad' => $metager->popAd()])
......
......@@ -12,20 +12,23 @@
<label><input type="checkbox" name="param_sprueche">{!! trans('settings.allgemein.2') !!}</label>
</div>
<div class="checkbox settings-checkbox">
<label><input type="checkbox" name="param_tab">{!! trans('settings.allgemein.3') !!}</label>
<label><input type="checkbox" name="param_maps">{!! trans('settings.allgemein.3') !!}</label>
</div>
<label class="select-label">{!! trans('settings.allgemein.4') !!}</label>
<div class="checkbox settings-checkbox">
<label><input type="checkbox" name="param_tab">{!! trans('settings.allgemein.4') !!}</label>
</div>
<label class="select-label">{!! trans('settings.allgemein.5') !!}</label>
<select class="form-control settings-form-control" name="param_lang">
<option value="all" @if(App::isLocale('de')) selected @endif >{!! trans('settings.allgemein.5') !!}</option>
<option value="de">{!! trans('settings.allgemein.6') !!}</option>
<option value="en" @if(App::isLocale('en')) selected @endif>{!! trans('settings.allgemein.6_1') !!}</option></select>
<label class="select-label">{!! trans('settings.allgemein.7') !!}</label>
<option value="all" @if(App::isLocale('de')) selected @endif >{!! trans('settings.allgemein.6') !!}</option>
<option value="de">{!! trans('settings.allgemein.7') !!}</option>
<option value="en" @if(App::isLocale('en')) selected @endif>{!! trans('settings.allgemein.8') !!}</option></select>
<label class="select-label">{!! trans('settings.allgemein.9') !!}</label>
<select class="form-control settings-form-control" name="param_resultCount">
<option value="10">10</option>
<option value="20" selected>20</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="0">{!! trans('settings.allgemein.8') !!}</option></select>
<option value="0">{!! trans('settings.allgemein.10') !!}</option></select>
<label class="select-label">{!! trans('settings.zeit.1') !!}:</label>
<select class="form-control settings-form-control" name="param_time">
<option value="1000" selected>{!! trans('settings.zeit.2') !!}</option>
......
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