From 81c9e45e34503b42a0b3e0a68c4bfb535ccd5573 Mon Sep 17 00:00:00 2001 From: Diatrex Date: Fri, 9 Apr 2021 11:19:21 +0300 Subject: [PATCH 1/5] #3472 listing design improvments - Integrate --- .../advs-module/resources/css/list-new.scss | 729 ++++++++++++++++++ .../advs-module/resources/css/list.css | 5 - .../resources/images/listing/add-favorite.svg | 5 + .../resources/images/listing/compare.svg | 7 + .../resources/images/listing/filter-arrow.svg | 3 + .../resources/images/listing/gallery-type.svg | 3 + .../resources/images/listing/list-type.svg | 10 + .../resources/images/listing/list.svg | 7 + .../images/listing/location-arrow.svg | 3 + .../resources/images/listing/map.svg | 3 + .../images/listing/mobile-bookmark.svg | 5 + .../images/listing/mobile-filter.svg | 3 + .../resources/images/listing/mobile-sort.svg | 3 + .../images/listing/sample-cat-icon.svg | 16 + .../resources/images/listing/save-search.svg | 7 + .../resources/images/listing/sort.svg | 3 + .../advs-module/resources/js/list-new.js | 3 + .../advs-module/resources/lang/en/field.php | 1 + .../resources/views/list/gallery.twig | 87 +-- .../views/list/partials/breadcrumb.twig | 29 +- .../list/partials/mobile-breadcrumb.twig | 10 + .../views/list/partials/pagination.twig | 2 +- .../views/list/partials/price-filter.twig | 65 +- .../ads-list/partials/breadcrumb-mobile.twig | 9 + .../views/ads-list/partials/breadcrumb.twig | 9 +- .../views/ads-list/partials/list-filter.twig | 55 -- .../resources/css/filterLocation.css | 1 - .../resources/js/filterLocation.js | 14 +- .../views/ads-list/partials/list-filter.twig | 38 +- .../ads-list/partials/location-fields.twig | 205 ++--- 30 files changed, 1047 insertions(+), 293 deletions(-) create mode 100644 addons/default/visiosoft/advs-module/resources/css/list-new.scss create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/add-favorite.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/compare.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/filter-arrow.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/gallery-type.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/list-type.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/list.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/location-arrow.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/map.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/mobile-bookmark.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/mobile-filter.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/mobile-sort.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/sample-cat-icon.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/save-search.svg create mode 100644 addons/default/visiosoft/advs-module/resources/images/listing/sort.svg create mode 100644 addons/default/visiosoft/advs-module/resources/js/list-new.js create mode 100644 addons/default/visiosoft/advs-module/resources/views/list/partials/mobile-breadcrumb.twig create mode 100644 addons/default/visiosoft/cats-module/resources/views/ads-list/partials/breadcrumb-mobile.twig delete mode 100644 addons/default/visiosoft/cats-module/resources/views/ads-list/partials/list-filter.twig diff --git a/addons/default/visiosoft/advs-module/resources/css/list-new.scss b/addons/default/visiosoft/advs-module/resources/css/list-new.scss new file mode 100644 index 000000000..29440b350 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/css/list-new.scss @@ -0,0 +1,729 @@ +/* Main styles */ +html { + @media only screen and (min-width: 576px) { + font-size: 7.5789px; + } + @media only screen and (min-width: 768px) { + font-size: 10.1052px; + } + @media only screen and (min-width: 992px) { + font-size: 13.4736px; + } + @media only screen and (min-width: 1200px) { + font-size: 16px; + } +} + +#main { + margin: 0; + + .container { + @media only screen and (max-width: 575.98px) { + padding: 0; + } + } +} + +p { + margin-bottom: 0; +} + +ul { + list-style: none; + padding: 0; + margin: 0; +} +/* End Main styles */ + +#listingPage { + /* Breadcrumb */ + #breadcrumb { + border-radius: 0 0 .25rem .25rem; + padding: .2rem 1.5rem; + background-color: #FCFCFC; + + div { + &:first-child { + span { + color: #8598AA; + font-size: calc(13rem / 16); + + &:not(:first-child):before { + content: '>'; + margin-left: 0.4rem; + } + + a { + color: #8598AA; + } + } + } + + &:last-child { + span { + color: #87BBF1; + font-size: calc(11rem / 16); + + &:not(:first-child):before { + content: '|'; + margin: 0 .25rem; + } + + a { + color: #87BBF1; + } + } + } + } + } + /* End Breadcrumb */ + + #mainContainer { + margin-top: .75rem; + + /* Filter */ + #listFilterForm { + width: 25%; + + .filter-box { + background-color: #FCFCFC; + + & > div { + &:first-child { + color: #373535; + font-weight: 500; + font-size: calc(17rem / 16); + + svg { + width: calc(11rem / 16); + height: auto; + } + } + + & > label { + font-size: calc(14rem / 16); + } + } + } + + /* Category */ + #category { + background-color: #FCFCFC; + + #categoryNav { + a { + border-bottom: calc(2rem / 16) solid #D7DEEC; + + svg { + height: 1rem; + width: 1rem; + } + + p { + color: #9FA4A4; + font-weight: 500; + font-size: calc(17rem / 16); + } + + &.active { + border-bottom-color: #373535; + + svg path { + fill: #373535; + } + + p { + color: #373535; + } + } + } + } + + #categoryList { + & > li { + margin-bottom: .4rem; + + & > div { + div { + line-height: 1; + } + + svg, img { + width: 1.15rem; + height: 1.15rem; + object-fit: contain; + flex-shrink: 0; + } + + a { + color: #183F8A; + font-size: calc(13rem / 16); + line-height: 1; + } + + .sub-cat { + li { + margin-bottom: .25rem; + + a { + font-size: calc(12rem / 16); + } + + ul { + padding-left: .5rem; + margin-top: .25rem; + } + } + } + } + } + } + } + /* End Category */ + + /* Location */ + #location { + button:not(.filter-modal-close) { + height: 2rem; + background: #fff; + color: #707070; + font-size: 12px; + padding: 0 1.25rem; + + svg { + width: .48rem; + height: auto; + flex-shrink: 0; + } + } + } + /* End Location */ + + /* Price */ + #price { + li { + & + & { + margin-left: 0.5em; + } + + label { + display: inline-block; + padding: 0.15em; + color: #373535; + border: calc(1rem / 16) solid #E5E5E5; + font-size: calc(13rem / 16); + cursor: pointer; + } + + input[type=radio] { + border: 0; + clip: rect(0, 0, 0, 0); + height: calc(1rem / 16); + overflow: hidden; + padding: 0; + position: absolute !important; + white-space: nowrap; + width: calc(1rem / 16); + + &:checked + label { + background-color: #E5E5E5; + border: calc(1rem / 16) solid #E5E5E5; + font-weight: 500; + } + } + } + + #priceInputWrapper { + ::placeholder { + color: #DFDFDF; + opacity: 1; + } + + :-ms-input-placeholder { + color: #DFDFDF; + } + + ::-ms-input-placeholder { + color: #DFDFDF; + } + + input { + width: 5rem; + font-size: calc(14rem / 16); + } + } + } + /* End Price */ + + /* Map */ + #mapFilter { + label { + font-size: calc(14rem / 16); + } + } + /* End Map */ + + /* Filter submit */ + #filterSubmit { + button { + background-color: #52C946; + font-size: calc(12rem / 16); + } + } + /* End Filter submit */ + } + /* End Filter */ + + /* Listing container */ + #listingContainer { + min-width: 0; + + /* Page title */ + #pageTitle { + p, a { + color: #8598AA; + } + + p { + font-size: calc(14rem / 16); + } + + a { + font-size: calc(14rem / 16); + + svg { + height: .8rem; + width: auto; + } + } + } + /* End Page title */ + + /* Query bar */ + #queryBar { + & > div { + margin: calc(3rem / 16) calc(16rem / 16) calc(4rem / 16) 0; + + & > span { + font-weight: 500; + color: #292d2e; + font-size: calc(13rem / 16); + } + } + + a { + background-color: #eee; + font-size: calc(12rem / 16); + padding: calc(4rem / 16) calc(7rem / 16); + border-radius: calc(2rem / 16); + text-decoration: none; + max-width: calc(400rem / 16); + + &:hover { + background-color: #e0e0e0; + } + + span { + color: #666; + } + + button { + height: calc(12rem / 16); + width: calc(12rem / 16); + background-color: #EC9C4A; + border-radius: calc(2rem / 16); + + &:focus { + outline: none; + } + } + + svg { + flex-shrink: 0; + height: calc(6rem / 16); + width: calc(6rem / 16); + } + } + + div:last-child { + a { + background-color: unset; + font-size: calc(10rem / 16); + padding: 0; + text-decoration: none; + color: #039; + + &:hover { + text-decoration: underline; + + span { + color: #444; + } + + button { + background-color: #CD7D22; + } + } + } + } + } + /* End Query bar */ + + /* View types */ + #viewTypes { + margin-bottom: .75rem; + + ul { + background-color: #F0F2F4; + + li { + font-size: calc(13rem / 16); + font-weight: 500; + + &:not(:first-child) { + border-left: calc(1rem / 16) solid rgba(72, 154, 241, .33); + } + + a { + color: #489AF1; + } + + &.active { + a { + color: #707070; + } + } + } + } + + & > div { + background-color: #F0F2F4; + + p { + font-size: calc(12rem / 16); + font-weight: 500; + color: #707070; + margin-right: .75rem; + } + + svg { + width: auto; + height: .75rem; + } + + a { + &.active { + svg path { + fill: #489AF1; + } + } + } + + .dropdown { + button { + background: none; + + &:after { + content: none; + } + } + + .dropdown-item { + cursor: pointer; + } + } + } + } + /* End View types */ + + /* Listing */ + #listingWrapper { + #listing { + table { + border-collapse: separate; + border-spacing: 0 .25rem; + + thead { + tr { + th { + background-color: #3F475F; + font-weight: 400; + font-size: calc(12rem / 16); + padding: .2rem; + + &:first-child { + border-top-left-radius: .25rem; + } + + &:last-child { + border-top-right-radius: .25rem; + } + } + } + } + + tbody { + tr { + background-color: #F6F6F6; + + &:hover { + .action-data > a { + visibility: visible; + } + } + + td { + padding: .4rem 0; + + & > a { + img { + width: 6.5rem; + height: 5rem; + object-fit: cover; + } + } + + &:first-child { + width: 17%; + border-radius: .25rem 0 0 .25rem; + } + + &:last-child { + border-radius: 0 .25rem .25rem 0; + } + + .id-data { + font-size: calc(10rem / 16); + color: rgba(34, 34, 34, .29); + } + + h6 { + font-size: calc(14rem / 16); + color: #489AF1; + } + + .cat-data { + font-size: calc(12rem / 16); + color: rgba(34, 34, 34, .4); + } + + .action-data { + color: #A1A1A1; + font-size: calc(8rem / 16); + + & > a { + visibility: hidden; + color: #A1A1A1; + } + + & > a.active { + visibility: visible; + + svg { + path { + fill: #FFE900; + } + + rect { + fill: #EDA862; + } + } + } + + svg { + width: .4rem; + height: auto; + } + } + + &.location-data, &.date-data { + width: 13%; + font-size: calc(13rem / 16); + color: #707070; + } + + &.price-data { + width: 20%; + color: #D33023; + font-weight: 700; + } + } + } + } + } + } + + #gallerying { + .gallery-item-wrapper { + &:nth-child(odd) { + padding-right: .125rem; + } + + &:nth-child(even) { + padding-left: .125rem; + } + + &:hover { + .action-data > a { + visibility: visible !important; + } + } + + .gallery-item { + background-color: #F6F6F6; + + img { + width: 6.5rem; + height: 5rem; + object-fit: cover; + } + + .action-data-wrapper { + .action-data { + margin-top: .7rem; + + & > a { + visibility: hidden; + font-size: calc(8rem / 16); + color: #A1A1A1; + margin-bottom: .25rem; + + svg { + width: calc(6rem / 16); + height: auto; + } + } + + & > a.active { + visibility: visible; + + svg { + path { + fill: #FFE900; + } + + rect { + fill: #EDA862; + } + } + } + } + } + + .id-data { + font-size: calc(10rem / 16); + color: #B8B8B8; + } + + h6 { + font-size: calc(14rem / 16); + + a { + color: #489AF1; + } + } + + .cat-data { + font-size: calc(11rem / 16); + color: #A1A1A1; + } + + .price-data { + color: #D33023; + font-weight: 700; + font-size: calc(15rem / 16); + } + + .location-data { + margin-bottom: .15rem; + } + + .location-data, .date-data { + color: #707070; + font-size: calc(12rem / 16); + } + } + } + } + } + /* End Listing */ + } + /* End Listing container */ + } +} + +#mobileListingPage { + #breadcrumb { + padding: .6rem 1rem; + + ul { + font-size: 11px; + color: #8598AA; + + li { + &:not(:first-child):before { + content: '>'; + margin-left: .125rem; + } + + a { + color: #8598AA; + } + } + } + } + + #mobileListNav { + background-color: #F8F9FA; + + & > div:not(.divider) { + width: percentage(1/3); + font-size: 11px; + color: #4D5359; + + svg { + height: 1.1rem; + width: auto; + } + } + + .divider { + border-left: 1px solid #E1E1E2; + height: 1.8rem; + } + } + + #mobileListing { + .listing-item { + &:nth-child(odd) { + background-color: #F6F6F6; + } + + img { + height: 5rem; + width: 7rem; + object-fit: cover; + } + + div { + h6 { + font-size: 13px; + color: #393939; + } + + p { + &:first-of-type { + color: #A1A1A1; + font-size: 10px; + } + + &:last-of-type { + color: #1592E6; + font-size: 14px; + font-weight: 700; + } + } + } + } + } +} diff --git a/addons/default/visiosoft/advs-module/resources/css/list.css b/addons/default/visiosoft/advs-module/resources/css/list.css index 0693c4ff8..59d80e93d 100644 --- a/addons/default/visiosoft/advs-module/resources/css/list.css +++ b/addons/default/visiosoft/advs-module/resources/css/list.css @@ -215,11 +215,6 @@ a.sort-by-open-dropdown:hover { color: #8598AA; } -.sort-by-item:hover { - text-decoration: underline; - cursor: pointer; -} - .gallery-tn { object-fit: cover; } diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/add-favorite.svg b/addons/default/visiosoft/advs-module/resources/images/listing/add-favorite.svg new file mode 100644 index 000000000..194134a0b --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/add-favorite.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/compare.svg b/addons/default/visiosoft/advs-module/resources/images/listing/compare.svg new file mode 100644 index 000000000..962c5c881 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/compare.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/filter-arrow.svg b/addons/default/visiosoft/advs-module/resources/images/listing/filter-arrow.svg new file mode 100644 index 000000000..f420d5955 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/filter-arrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/gallery-type.svg b/addons/default/visiosoft/advs-module/resources/images/listing/gallery-type.svg new file mode 100644 index 000000000..dae47e5ad --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/gallery-type.svg @@ -0,0 +1,3 @@ + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/list-type.svg b/addons/default/visiosoft/advs-module/resources/images/listing/list-type.svg new file mode 100644 index 000000000..522e2bbc0 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/list-type.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/list.svg b/addons/default/visiosoft/advs-module/resources/images/listing/list.svg new file mode 100644 index 000000000..6a50e2a8f --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/list.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/location-arrow.svg b/addons/default/visiosoft/advs-module/resources/images/listing/location-arrow.svg new file mode 100644 index 000000000..94756e660 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/location-arrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/map.svg b/addons/default/visiosoft/advs-module/resources/images/listing/map.svg new file mode 100644 index 000000000..5be80e132 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/map.svg @@ -0,0 +1,3 @@ + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/mobile-bookmark.svg b/addons/default/visiosoft/advs-module/resources/images/listing/mobile-bookmark.svg new file mode 100644 index 000000000..1b73a6ed9 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/mobile-bookmark.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/mobile-filter.svg b/addons/default/visiosoft/advs-module/resources/images/listing/mobile-filter.svg new file mode 100644 index 000000000..f091d75d3 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/mobile-filter.svg @@ -0,0 +1,3 @@ + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/mobile-sort.svg b/addons/default/visiosoft/advs-module/resources/images/listing/mobile-sort.svg new file mode 100644 index 000000000..f3ab76704 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/mobile-sort.svg @@ -0,0 +1,3 @@ + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/sample-cat-icon.svg b/addons/default/visiosoft/advs-module/resources/images/listing/sample-cat-icon.svg new file mode 100644 index 000000000..d8122ec34 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/sample-cat-icon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/save-search.svg b/addons/default/visiosoft/advs-module/resources/images/listing/save-search.svg new file mode 100644 index 000000000..3da1e02cc --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/save-search.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/addons/default/visiosoft/advs-module/resources/images/listing/sort.svg b/addons/default/visiosoft/advs-module/resources/images/listing/sort.svg new file mode 100644 index 000000000..dedb11b00 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/listing/sort.svg @@ -0,0 +1,3 @@ + + + diff --git a/addons/default/visiosoft/advs-module/resources/js/list-new.js b/addons/default/visiosoft/advs-module/resources/js/list-new.js new file mode 100644 index 000000000..e1540325a --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/js/list-new.js @@ -0,0 +1,3 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip() +}) diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/field.php b/addons/default/visiosoft/advs-module/resources/lang/en/field.php index c7bf94723..384be6a8c 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/field.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/field.php @@ -211,6 +211,7 @@ return [ 'featured_ads' => "Featured Ads", 'trending_ads' => 'Trendind Ads', 'search_ad_result_prefix' => 'on', + 'search_ad_result_text' => ':count ads were found in your :name search', 'search_ads_result_message' => [ 'name' => ':count ads found for :name search', ], diff --git a/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig b/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig index 45e5b3895..9b915cdb7 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig @@ -1,55 +1,52 @@ {% extends "visiosoft.module.advs::list/list" %} -{% block listContent %} - {{ addBlock('ad-list/partials/gallery',{'featured_advs':featured_advs})|raw }} - {% for adv in advs %} -
-
- -
- {% if setting_value('visiosoft.theme.base::price_fields') %} -
- {{ adv.price != '0' - ? currency_format(adv.price,adv.currency) - : trans('visiosoft.module.advs::field.free') }} -
- {% endif %} -
- -

{{ adv.name }}

-
+{% block listContent %} + {% set showPrice = setting_value('visiosoft.theme.base::price_fields') %} + {% set showLocation = setting_value('visiosoft.module.location::home_page_location') %} + {% set showDate = setting_value('visiosoft.theme.base::date_fields') %} + +
+ + {{ addBlock('ad-list/partials/gallery',{'featured_advs':featured_advs})|raw }} + + {% for adv in advs %} + + {% endfor %} +
{% endblock %} + {% block customjs %} {{ asset_add("scripts.js", "visiosoft.module.advs::js/list-table.js") }} {% include "theme::scroll-modal" %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/addons/default/visiosoft/advs-module/resources/views/list/partials/breadcrumb.twig b/addons/default/visiosoft/advs-module/resources/views/list/partials/breadcrumb.twig index abc2f4382..3b54c0db7 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/partials/breadcrumb.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/partials/breadcrumb.twig @@ -1,18 +1,19 @@ - \ No newline at end of file +
+ +
+ + {{ addBlock('ads-list/partials/breadcrumb/action')|raw }} + +
+
diff --git a/addons/default/visiosoft/advs-module/resources/views/list/partials/mobile-breadcrumb.twig b/addons/default/visiosoft/advs-module/resources/views/list/partials/mobile-breadcrumb.twig new file mode 100644 index 000000000..a30f57ccd --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/views/list/partials/mobile-breadcrumb.twig @@ -0,0 +1,10 @@ + diff --git a/addons/default/visiosoft/advs-module/resources/views/list/partials/pagination.twig b/addons/default/visiosoft/advs-module/resources/views/list/partials/pagination.twig index 40625b560..633d5f966 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/partials/pagination.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/partials/pagination.twig @@ -1,3 +1,3 @@ -
+
{{ advs.appends(request_query()).links()|raw }}
\ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/resources/views/list/partials/price-filter.twig b/addons/default/visiosoft/advs-module/resources/views/list/partials/price-filter.twig index 06734c9a3..121671760 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/partials/price-filter.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/partials/price-filter.twig @@ -1,5 +1,3 @@ -{% 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 %} @@ -9,45 +7,36 @@ {% endfor %} {% if setting_value('visiosoft.module.advs::hide_price_filter') == false and not isHidden%} -
-