diff --git a/addons/default/visiosoft/advs-module/resources/css/list-new.scss b/addons/default/visiosoft/advs-module/resources/css/list-new.scss index 2d2611d43..94be8d5d1 100644 --- a/addons/default/visiosoft/advs-module/resources/css/list-new.scss +++ b/addons/default/visiosoft/advs-module/resources/css/list-new.scss @@ -33,6 +33,201 @@ ul { padding: 0; margin: 0; } + +/* Filter */ +#listFilterForm, #filterModal { + @media only screen and (min-width: 576px) { + 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: calc(12rem / 16); + 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; + } + } + } + + .range-input-wrapper { + ::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 */ /* End Main styles */ #listingPage { @@ -81,199 +276,6 @@ ul { #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: calc(12rem / 16); - 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; @@ -677,7 +679,7 @@ ul { #mobileListNav { background-color: #F8F9FA; - & > div:not(.divider) { + & > .mobile-list-nav-item { width: percentage(1/3); font-size: calc(11rem / 16); color: #4D5359; diff --git a/addons/default/visiosoft/advs-module/resources/views/list/list.twig b/addons/default/visiosoft/advs-module/resources/views/list/list.twig index 98c7a11fa..b0088dc95 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/list.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/list.twig @@ -2,109 +2,98 @@ {% block styles %} {{ asset_style("visiosoft.module.advs::css/list.css") }} + {{ asset_style("visiosoft.module.advs::css/list-new.scss") }} {% endblock %} {% block content %} -
-
+ {% include "visiosoft.module.advs::list/partials/mobile-list" %} - - {% include "visiosoft.module.advs::list/partials/breadcrumb" %} - +
-
-
- {% include "visiosoft.module.advs::list/partials/list-filter" %} + {% include "visiosoft.module.advs::list/partials/breadcrumb" %} + +
+ + {% include "visiosoft.module.advs::list/partials/list-filter" %} + +
+
+

+ {{ trans('visiosoft.module.advs::field.search_ad_result_text', { + 'count': advs.total, + 'name': catText ? catText : '', + })|raw }} +

+ + + Save Search + {{ img('visiosoft.module.advs::images/listing/save-search.svg').data|raw }} +
-
- -
+ {% include "visiosoft.module.advs::list/partials/filter-modal" %} {% include "visiosoft.module.advs::list/partials/sort-modal" %} + {{ addBlock('list/partials/modal')|raw }} {{ asset_add("scripts.js", "visiosoft.module.advs::js/list.js") }} + {{ asset_add("scripts.js", "visiosoft.module.advs::js/list-new.js") }} {% endblock %} + {% block customjs %} - {{ addBlock('ads-list/list',{'adv':adv})|raw }} -{% endblock %} \ No newline at end of file + {{ addBlock('ads-list/list', {'adv': adv})|raw }} +{% endblock %} diff --git a/addons/default/visiosoft/advs-module/resources/views/list/partials/mobile-list.twig b/addons/default/visiosoft/advs-module/resources/views/list/partials/mobile-list.twig new file mode 100644 index 000000000..54bff7527 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/views/list/partials/mobile-list.twig @@ -0,0 +1,36 @@ +
+ + {% include "visiosoft.module.advs::list/partials/mobile-breadcrumb" %} + +
+
+ {{ img('visiosoft.module.advs::images/listing/mobile-filter.svg').data|raw }} +

{{ trans('visiosoft.module.advs::field.filter') }}

+
+
+
+ {{ img('visiosoft.module.advs::images/listing/mobile-sort.svg').data|raw }} +

{{ trans('visiosoft.module.advs::field.sort') }}

+
+
+ + {{ addBlock('ads-list/mobile/action-bar')|raw }} + +
+ +
+ {% for adv in advs %} + + {{ adv.name }} +
+
{{ adv.name }}
+

{{ adv.country_name }} / {{ adv.city_name }}

+

{{ adv.price != '0' ? currency_format(adv.price,adv.currency) : trans('visiosoft.module.advs::field.free') }}

+
+
+ {% endfor %} +
+ + {% include "visiosoft.module.advs::list/partials/pagination" %} + +
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 121671760..ba9294da5 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 @@ -30,7 +30,7 @@ {% endfor %} -
+