Merge pull request #1060 from openclassify/muammertop

#3835 gg-theme improving for igamkoop
This commit is contained in:
Fatih Alp 2021-04-29 11:29:13 +03:00 committed by GitHub
commit 8788beb47d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 32 additions and 9 deletions

View File

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

View File

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

View File

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

View File

@ -268,4 +268,8 @@ return [
'show_price_to_members_only' => [ 'show_price_to_members_only' => [
'name' => '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' => [ 'old_price' => [
'name' => 'Eski fiyat' 'name' => 'Eski fiyat'
], ],
'save_search' => 'Aramayı Kaydet',
]; ];

View File

@ -264,5 +264,9 @@ return [
], ],
'show_subcats_mobile' => [ 'show_subcats_mobile' => [
'name' => 'Alt kategorileri mobil görünümde göster', '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"> <h6 class="mb-1">
<a href="{{ adv.detail_url }}">{{ adv.name }}</a> <a href="{{ adv.detail_url }}">{{ adv.name }}</a>
</h6> </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 %} {% if showPrice %}
<p class="price-data mb-1"> <p class="price-data mb-1">
{{ adv.price != '0' ? currency_format(adv.price,adv.currency) : trans('visiosoft.module.advs::field.free') }} {{ adv.price != '0' ? currency_format(adv.price,adv.currency) : trans('visiosoft.module.advs::field.free') }}

View File

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

View File

@ -35,7 +35,9 @@
<h6 class="mb-1"> <h6 class="mb-1">
<a href="{{ adv.detail_url }}">{{ adv.name }}</a> <a href="{{ adv.detail_url }}">{{ adv.name }}</a>
</h6> </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"> <div class="action-data d-flex align-items-center">
{{ addBlock('list/extra-actions', {'ad': adv, 'vars': _context})|raw }} {{ 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 }} {{ img('visiosoft.module.advs::images/listing/list.svg').data|raw }}
<p class="ml-2">{{ trans("visiosoft.module.advs::field.list") }}</p> <p class="ml-2">{{ trans("visiosoft.module.advs::field.list") }}</p>
</a> </a>
<a href="{{ url_route('visiosoft.module.advs::view_type', ['map']) }}" rel="nofollow" {% if setting_value('visiosoft.module.location::list_page_location') %}
class="d-flex w-50 align-items-center pr-2 pb-1 justify-content-end{{ request().cookie.viewType == "map" ? ' active' }}"> <a href="{{ url_route('visiosoft.module.advs::view_type', ['map']) }}" rel="nofollow"
{{ img('visiosoft.module.advs::images/listing/map.svg').data|raw }} class="d-flex w-50 align-items-center pr-2 pb-1 justify-content-end{{ request().cookie.viewType == "map" ? ' active' }}">
<p class="ml-2">{{ trans("visiosoft.module.advs::field.map.name") }}</p> {{ img('visiosoft.module.advs::images/listing/map.svg').data|raw }}
</a> <p class="ml-2">{{ trans("visiosoft.module.advs::field.map.name") }}</p>
</a>
{% endif %}
</div> </div>
{% include 'visiosoft.module.cats::ads-list/partials/cat-filter' %} {% include 'visiosoft.module.cats::ads-list/partials/cat-filter' %}