FEATURE #1854: add widget settings
This commit is contained in:
+3
-3
@@ -22,9 +22,9 @@ a:focus {
|
||||
padding-bottom: 20px !important;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
margin: .3em 0;
|
||||
}
|
||||
/*.form-control {*/
|
||||
/*margin: .3em 0;*/
|
||||
/*}*/
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
|
||||
@@ -21,8 +21,11 @@ return [
|
||||
],
|
||||
"socialSites" => "Sociální sítě",
|
||||
"successfullySaved" => "Nastavení úspěšně změněno",
|
||||
'recaptcha' => 'reCaptcha',
|
||||
"recaptchaSecret" => "Application secret key",
|
||||
"recaptchaSiteKey" => "Site key",
|
||||
'useInvisibleRecaptcha' => 'Neviditelná reCAPTCHA'
|
||||
'widgets' => [
|
||||
"title" => 'Widgety',
|
||||
'useWidgetPreloading' => 'Používat přednačítání widgetů?',
|
||||
'preloadFrequentedWidgetAreasTreshold' => 'Práh pro přednačtení widgetů',
|
||||
'widgetCacheLifetime' => 'Platnost cache pro widgety'
|
||||
]
|
||||
|
||||
];
|
||||
|
||||
@@ -27,4 +27,7 @@ return [
|
||||
"positionFixed" => "fixní",
|
||||
"positionStatic" => "statické",
|
||||
"sidebar" => "Sidebar",
|
||||
'minutes' => 'minut',
|
||||
'views' => 'zobrazení'
|
||||
|
||||
];
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
return [
|
||||
"containerClass" => "HTML třída použitá pro obalový element widgetu",
|
||||
"containerId" => "Unikátní ID widgetu (může být i prázdné)",
|
||||
"description" => "Popis",
|
||||
"edit" => "Upravuji widget :name",
|
||||
"name" => "Jméno",
|
||||
"new" => "Vytvořit nový widget"
|
||||
"containerClass" => "HTML třída použitá pro obalový element widgetu",
|
||||
"containerId" => "Unikátní ID widgetu (může být i prázdné)",
|
||||
"description" => "Popis",
|
||||
"edit" => "Upravuji widget :name",
|
||||
"name" => "Jméno",
|
||||
"new" => "Vytvořit nový widget",
|
||||
"widgetDescription" => "Jednoduchý widget pro vkládání HTML kódů.",
|
||||
];
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-9">
|
||||
<label>
|
||||
<input class="checkbox" value="1"
|
||||
@if(!isset($settings->useWidgetPreloading) || $settings->useWidgetPreloading['lang'] == null)
|
||||
checked
|
||||
@endif name="useWidgetPreloading" type="checkbox">
|
||||
<span>@lang('admin/settings.widgets.useWidgetPreloading')</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
@include('admin.settings.snippets.commonSettings', ['field' => 'useWidgetPreloading'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-9">
|
||||
<label class="label-control">
|
||||
@lang('admin/settings.widgets.preloadFrequentedWidgetAreasTreshold')
|
||||
</label>
|
||||
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" value="{{old('preloadFrequentedWidgetAreasTreshold', isset($settings->preloadFrequentedWidgetAreasTreshold) ? $settings->preloadFrequentedWidgetAreasTreshold['val'] : 10)}}">
|
||||
<span class="input-group-addon">@lang('common.views')</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
@include('admin.settings.snippets.commonSettings', ['field' => 'author'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-9">
|
||||
<label class="label-control">
|
||||
@lang('admin/settings.widgets.widgetCacheLifetime')
|
||||
</label>
|
||||
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" value="{{old('widgetCacheLifetime', isset($settings->widgetCacheLifetime) ? $settings->widgetCacheLifetime['val'] : 10)}}">
|
||||
<span class="input-group-addon">@lang('common.minutes')</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
@include('admin.settings.snippets.commonSettings', ['field' => 'author'])
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user