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

minimized image size

parent aa651d36
No related branches found
No related tags found
2 merge requests!1608Development,!1607Resolve "Reduce size of widget"
...@@ -11,6 +11,7 @@ class SitesearchController extends Controller ...@@ -11,6 +11,7 @@ class SitesearchController extends Controller
return view('widget.sitesearch') return view('widget.sitesearch')
->with('title', trans('titles.sitesearch')) ->with('title', trans('titles.sitesearch'))
->with('site', $request->input('site', '')) ->with('site', $request->input('site', ''))
->with('template', view('widget.websearch-template', ["site" => $request->input('site', '')])->render())
->with('navbarFocus', 'dienste'); ->with('navbarFocus', 'dienste');
} }
} }
This diff is collapsed.
<form class="metager-searchform" action="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/meta/meta.ger3") }}" method="get" accept-charset="UTF-8" >
<a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}"><img class="metager-logo" title="{{ trans('websearch.head.4') }}" alt="MetaGer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGcAAAASCAMAAABxcDC5AAAArlBMVEVHcEz0chb0chb1chbzchXzcRb0cRf0chf0chfzchbzchX0chb0chb0chb/XwD1chbycBf0chb0chb0chb/WwD/cx71chb1chb0chb0chbzchX1cxXzchX0chb1chb3chf0chb1chb1cRX3chb1chX0chX1cxb0cxb4bxb0chbycRT0chb0chb2cRb0cRb0chb0chX2chb2cRP0cRX0chb0cxb1cRb0cRf1chb0chZuEtl5AAAAOXRSTlMA5f3cVZlE7ojdO/Xv7QOqE966+QEGZvLf6j9Ig6SWIcB/Xx5315TPC8IlcNFQybONMxrjn1usLcU6Z1+WAAACFUlEQVQ4y62V23aqMBCGx4oURZUtCBtQAUGkguKp1Xn/F2tOKFBcpav9L0gymeRLJpMA0FJ23Gx/9zuvhbbwe72cG80RlvQnnE6T1RjiwjPgD9XMCdGetRsfKVUFLl/ebMd7Ipm0XUVBS1FSAK/wSx3qN8C3+oTeak7756Yn5qHNFLpY11tCF9q/txcAc17LAJyH33RGOdMaxtSLft0lTS1j9TXhSFy2yorAwgAActyYrizLbqDiFbayjLYsDyhnKlO50StGDZyTjj2JOkg57kl7iaOAzOoSjvD4N+SlhD75Wqom7Ad8L52Pg0th3+GtgSPR7fOA2aoBsEaHN79wEjwDaLi5BwLTEkeTTlD4/b9zzAmTSfPcLAbuMQFDteAJB9QRgPc430VlP7UMFJwDvaUW3eocV0UELcuAMV3MN5y4R3TZoHWqcAY9IexU4+YIzpH1ftg4gVYc/p50poPy/Uk0BVEfsiR6wpH4I9SNtXacxns64Zm+fXnOKY/6jhOypKxw7DIH7ILjVznBIw/acMb6qPaenJEl+qXEyQBO2Ln7rVCh2Xn4CQc2eNEqnA/MQ6DrJboZmkqKGMAYYU/4Xdc0ZEdUd7MfcNwXREv8Vti4o4q4B9hSAFr0OwrZ7RJ+xHJO2HpQF+OWZY7fLSrFzcxYZTBZ94X4+q6XfU55k4wZszjkz0Iu/G7cME79YtwBYNwX5/cJHKxXkx8i86oAAAAASUVORK5CYII="></a>
<input class="metager-searchinput" name="eingabe" placeholder="{{ trans('websearch.head.5') }}" required>
<button class="metager-searchbutton" type="submit">{{ trans('websearch.head.8') }}</button>
<input type="hidden" name="wdgt-version" value="2">
@if(!empty($site))
<input type="hidden" name="site" value="{{ $site }}">
@endif
<style type="text/css" scoped>
.metager-searchinput {
height: 30px;
float: left;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857;
color: #555;
background-color: #FFF;
background-image: none;
border: 1px solid #CCC;
margin:0px;
}
.metager-searchbutton {
height: 30px;
border-left: 0px none;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
border: 1px solid #CCC;
padding: 6px 12px;
margin:0px;
font-size: 14px;
font-weight: normal;
line-height: 1;
white-space: nowrap;
color: #555;
text-align: center;
background-color: #EEE;
}
.metager-logo {
height: 18px;
float: left;
margin: 6px;
}
</style>
</form>
This diff is collapsed.
...@@ -133,7 +133,8 @@ Route::group( ...@@ -133,7 +133,8 @@ Route::group(
Route::get('websearch', function () { Route::get('websearch', function () {
return view('widget.websearch') return view('widget.websearch')
->with('title', trans('titles.websearch')) ->with('title', trans('titles.websearch'))
->with('navbarFocus', 'dienste'); ->with('navbarFocus', 'dienste')
->with('template', view('widget.websearch-template')->render());
}); });
Route::get('zitat-suche', 'ZitatController@zitatSuche'); Route::get('zitat-suche', 'ZitatController@zitatSuche');
...@@ -226,15 +227,15 @@ Route::group( ...@@ -226,15 +227,15 @@ Route::group(
Route::get('metager', function () { Route::get('metager', function () {
return response()->streamDownload(function () { return response()->streamDownload(function () {
$fh = null; $fh = null;
try{ try {
$fh = fopen("https://gitlab.metager.de/open-source/app-en/raw/latest/app/release/app-release.apk?inline=false", "r"); $fh = fopen("https://gitlab.metager.de/open-source/app-en/raw/latest/app/release/app-release.apk?inline=false", "r");
while (!feof($fh)) { while (!feof($fh)) {
echo(fread($fh, 1024)); echo (fread($fh, 1024));
} }
}catch(\Exception $e){ } catch (\Exception $e) {
abort(404); abort(404);
}finally { } finally {
if($fh != null){ if ($fh != null) {
fclose($fh); fclose($fh);
} }
} }
...@@ -243,15 +244,15 @@ Route::group( ...@@ -243,15 +244,15 @@ Route::group(
Route::get('maps', function () { Route::get('maps', function () {
return response()->streamDownload(function () { return response()->streamDownload(function () {
$fh = null; $fh = null;
try{ try {
$fh = fopen("https://gitlab.metager.de/open-source/metager-maps-android/raw/latest/app/release/app-release.apk?inline=false", "r"); $fh = fopen("https://gitlab.metager.de/open-source/metager-maps-android/raw/latest/app/release/app-release.apk?inline=false", "r");
while (!feof($fh)) { while (!feof($fh)) {
echo(fread($fh, 1024)); echo (fread($fh, 1024));
} }
}catch(\Exception $e){ } catch (\Exception $e) {
abort(404); abort(404);
}finally { } finally {
if($fh != null){ if ($fh != null) {
fclose($fh); fclose($fh);
} }
} }
...@@ -266,7 +267,7 @@ Route::group( ...@@ -266,7 +267,7 @@ Route::group(
}); });
}); });
Route::get('metrics', function() { Route::get('metrics', function () {
$registry = \Prometheus\CollectorRegistry::getDefault(); $registry = \Prometheus\CollectorRegistry::getDefault();
$renderer = new RenderTextFormat(); $renderer = new RenderTextFormat();
......
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