#2224 [advs-module] Fix lising page style

This commit is contained in:
Diatrex 2020-09-28 09:29:51 +03:00
parent b4941cf6ca
commit e7e1c9e266
4 changed files with 8 additions and 9 deletions

View File

@ -113,7 +113,6 @@
.result-text {
font-size: 13px;
margin: 0 -15px;
}
.result-text span:first-child {

View File

@ -4,7 +4,7 @@
<button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['map']) }}')"
class="mx-auto border-0 text-dark d-flex align-items-center justify-content-center">
<img src="{{ img('visiosoft.module.advs::images/map-icon.svg').url }}" alt="map icon" class="mr-1">
<small>{{ trans("visiosoft.module.advs::field.show_display_mode.map") }}</small>
<small class="d-md-none d-lg-inline">{{ trans("visiosoft.module.advs::field.show_display_mode.map") }}</small>
</button>
{% endif %}
</div>
@ -12,21 +12,21 @@
<button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['list']) }}')"
class="mx-auto border-0 text-dark d-flex align-items-center justify-content-center">
<img src="{{ img('visiosoft.module.advs::images/list-icon.svg').url }}" alt="list icon" class="mr-1">
<small>{{ trans('visiosoft.module.advs::field.show_list_view.name') }}</small>
<small class="d-md-none d-lg-inline">{{ trans('visiosoft.module.advs::field.show_list_view.name') }}</small>
</button>
</div>
<div class="col-3 list-table-view d-none d-md-block">
<button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['table']) }}')"
class="border-0 text-dark d-flex align-items-center justify-content-center">
<img src="{{ img('visiosoft.module.advs::images/table-icon.svg').url }}" alt="table icon" class="mr-1">
<small>{{ trans('visiosoft.module.advs::field.show_table_view.name') }}</small>
<small class="d-md-none d-lg-inline">{{ trans('visiosoft.module.advs::field.show_table_view.name') }}</small>
</button>
</div>
<div class="col-4 col-md-3 pr-0">
<button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['gallery']) }}')"
class="mx-auto border-0 text-dark d-flex align-items-center justify-content-center">
<img src="{{ img('visiosoft.module.advs::images/gallery-icon.svg').url }}" alt="gallery icon" class="mr-1">
<small> {{ trans('visiosoft.module.advs::field.gallery') }}</small>
<small class="d-md-none d-lg-inline"> {{ trans('visiosoft.module.advs::field.gallery') }}</small>
</button>
</div>
</div>

View File

@ -16,11 +16,11 @@
{% endset %}
{% endif %}
{{ formHtml }}
<div class="row">
<div>
<input type="hidden" name="cat" value="{{ app.request.get('cat') }}">
<input type="hidden" name="user" value="{{ app.request.get('user') }}">
<div class="col-md-12 px-4">
<div class="row">
<div>
<div>
<div id="filter" class="w-100 mb-3">
{{ addBlock('ads-list/partials/list-filter',{

View File

@ -293,7 +293,7 @@ class AdvsController extends PublicController
$viewType = $this->requestHttp->cookie('viewType');
$catText = '';
if (!isset($allCats)) {
if (!$allCats) {
if (count($mainCats) == 1 || count($mainCats) == 2) {
$catText = end($mainCats)['val'];
} elseif (count($mainCats) > 2) {