mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
hide price filter by category
This commit is contained in:
parent
fad28121eb
commit
a3f277d919
@ -1,4 +1,14 @@
|
|||||||
{% if setting_value('visiosoft.module.advs::hide_price_filter') == false %}
|
{% set hidePriceCats = setting_value('visiosoft.module.advs::hide_price_categories') %}
|
||||||
|
{% set cats = entries('cats','category').whereIn('id', hidePriceCats).get() %}
|
||||||
|
{% set isHidden = false %}
|
||||||
|
|
||||||
|
{% for cat in cats %}
|
||||||
|
{% if request().segment(2) == cat.slug %}
|
||||||
|
{% set isHidden = true %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% if setting_value('visiosoft.module.advs::hide_price_filter') == false and not isHidden%}
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<div class="card-header breadcrumb mb-0" id="priceHeading">
|
<div class="card-header breadcrumb mb-0" id="priceHeading">
|
||||||
<h5 class="mb-0">
|
<h5 class="mb-0">
|
||||||
@ -41,4 +51,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user