#3835 gg-theme improving for igamkoop

This commit is contained in:
Muammer Top 2021-04-27 12:01:04 +03:00
parent 8211541e5c
commit f1322c825f
10 changed files with 32 additions and 9 deletions

View File

@ -18,6 +18,7 @@ return [
'tcmb_exchange_url',
'enabled_currencies',
'disable_sentry',
'hide_ad_cat',
],
],
'ads' => [

View File

@ -449,4 +449,10 @@ return [
'default_value' => false,
]
],
'hide_ad_cat' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => false,
]
],
];

View File

@ -367,4 +367,5 @@ return [
'old_price' => [
'name' => 'Old Price'
],
'save_search' => 'Save Search',
];

View File

@ -268,4 +268,8 @@ return [
'show_price_to_members_only' => [
'name' => 'Show Price To Members Only',
],
'hide_ad_cat' => [
'name' => 'Hide Categories',
'instructions' => 'Hide categories in ads list'
]
];

View File

@ -369,4 +369,5 @@ return [
'old_price' => [
'name' => 'Eski fiyat'
],
'save_search' => 'Aramayı Kaydet',
];

View File

@ -264,5 +264,9 @@ return [
],
'show_subcats_mobile' => [
'name' => 'Alt kategorileri mobil görünümde göster',
]
],
'hide_ad_cat' => [
'name' => 'Kategorileri Gizle',
'instructions' => 'İlan listelemede ilan kategorilerini gizle'
]
];

View File

@ -28,7 +28,9 @@
<h6 class="mb-1">
<a href="{{ adv.detail_url }}">{{ adv.name }}</a>
</h6>
<p class="cat-data mb-1">{{ adv.cat1_name }} /{{ adv.cat2_name }}</p>
{% if not setting_value('visiosoft.module.advs::hide_ad_cat') %}
<p class="cat-data mb-1">{{ adv.cat1_name }} /{{ adv.cat2_name }}</p>
{% endif %}
{% if showPrice %}
<p class="price-data mb-1">
{{ adv.price != '0' ? currency_format(adv.price,adv.currency) : trans('visiosoft.module.advs::field.free') }}

View File

@ -27,7 +27,7 @@
</p>
<a href="javascript:void(0)" class="d-flex align-items-center fav-search-modal">
<span class="mr-2">Save Search</span>
<span class="mr-2">{{ trans('visiosoft.module.advs::field.save_search') }}</span>
{{ img('visiosoft.module.advs::images/listing/save-search.svg').data|raw }}
</a>
</div>

View File

@ -35,7 +35,9 @@
<h6 class="mb-1">
<a href="{{ adv.detail_url }}">{{ adv.name }}</a>
</h6>
<p class="cat-data mb-1">{{ adv.cat1_name }} /{{ adv.cat2_name }}</p>
{% if not setting_value('visiosoft.module.advs::hide_ad_cat') %}
<p class="cat-data mb-1">{{ adv.cat1_name }} /{{ adv.cat2_name }}</p>
{% endif %}
<div class="action-data d-flex align-items-center">
{{ addBlock('list/extra-actions', {'ad': adv, 'vars': _context})|raw }}

View File

@ -14,11 +14,13 @@
{{ img('visiosoft.module.advs::images/listing/list.svg').data|raw }}
<p class="ml-2">{{ trans("visiosoft.module.advs::field.list") }}</p>
</a>
<a href="{{ url_route('visiosoft.module.advs::view_type', ['map']) }}" rel="nofollow"
class="d-flex w-50 align-items-center pr-2 pb-1 justify-content-end{{ request().cookie.viewType == "map" ? ' active' }}">
{{ img('visiosoft.module.advs::images/listing/map.svg').data|raw }}
<p class="ml-2">{{ trans("visiosoft.module.advs::field.map.name") }}</p>
</a>
{% if setting_value('visiosoft.module.location::list_page_location') %}
<a href="{{ url_route('visiosoft.module.advs::view_type', ['map']) }}" rel="nofollow"
class="d-flex w-50 align-items-center pr-2 pb-1 justify-content-end{{ request().cookie.viewType == "map" ? ' active' }}">
{{ img('visiosoft.module.advs::images/listing/map.svg').data|raw }}
<p class="ml-2">{{ trans("visiosoft.module.advs::field.map.name") }}</p>
</a>
{% endif %}
</div>
{% include 'visiosoft.module.cats::ads-list/partials/cat-filter' %}