File tree Expand file tree Collapse file tree 8 files changed +125
-17
lines changed
src/scss/prestashop/components Expand file tree Collapse file tree 8 files changed +125
-17
lines changed Original file line number Diff line number Diff line change 1010@import " cart" ;
1111@import " order-confirmation" ;
1212@import " brand" ;
13+ @import " supplier" ;
1314@import " store" ;
1415@import " sitemap" ;
1516@import " address-card" ;
Original file line number Diff line number Diff line change 1+ $component-name : supplier;
2+
3+ .#{$component-name } {
4+ position : relative ;
5+ padding : 1rem ;
6+ text-align : center ;
7+ border : 1px solid var (--bs-border-color );
8+ border-radius : var (--bs-border-radius );
9+ transition : var (--bs-transition-default );
10+
11+ & :hover {
12+ border-color : var (--bs-link-hover-color );
13+ }
14+
15+ & __list {
16+ display : grid ;
17+ grid-template-columns : minmax (0 , 1fr );
18+ gap : 1rem ;
19+ }
20+
21+ & __image {
22+ margin-block-end : 0.5rem ;
23+ }
24+
25+ & __title {
26+ display : block ;
27+ margin-block-end : 0.5rem ;
28+ }
29+
30+ & __description {
31+ margin-block-end : 0.5rem ;
32+ font-size : 0.75rem ;
33+ line-height : 1.2 ;
34+ color : var (--bs-secondary-color );
35+
36+ p {
37+ margin-block-end : 0 ;
38+ }
39+ }
40+
41+ & __products {
42+ margin-block-end : 0 ;
43+ font-size : 0.85rem ;
44+ color : var (--bs-secondary-color );
45+ }
46+
47+ @include media-breakpoint-up (sm) {
48+ & __list {
49+ grid-template-columns : repeat (2 , minmax (0 , 1fr ));
50+ }
51+ }
52+
53+ @include media-breakpoint-up (lg) {
54+ & __list {
55+ grid-template-columns : repeat (4 , minmax (0 , 1fr ));
56+ }
57+ }
58+
59+ @include media-breakpoint-up (xxl) {
60+ & __list {
61+ grid-template-columns : repeat (5 , minmax (0 , 1fr ));
62+ }
63+ }
64+ }
Original file line number Diff line number Diff line change 1+ { **
2+ * For the full copyright and license information, please view the LICENSE
3+ * file that was distributed with this source code.
4+ *}
5+ { block name= ' supplier_miniature_item' }
6+ <li class =" supplier" >
7+ <div class =" supplier__image" >
8+ <picture >
9+ { if ! empty($supplier .image.bySize.small_default.sources.avif)} <source srcset =" { $supplier .image.bySize.small_default.sources.avif} " type =" image/avif" >{ /if }
10+ { if ! empty($supplier .image.bySize.small_default.sources.webp)} <source srcset =" { $supplier .image.bySize.small_default.sources.webp} " type =" image/webp" >{ /if }
11+ <img
12+ class =" supplier__img img-fluid"
13+ src =" { $supplier .image.bySize.small_default.url} "
14+ alt =" { if ! empty($supplier .image.legend)} { $supplier .image.legend} { else } { $supplier .name} { /if } "
15+ width =" { $supplier .image.bySize.small_default.width} "
16+ height =" { $supplier .image.bySize.small_default.height} "
17+ loading =" lazy"
18+ >
19+ </picture >
20+ </div >
21+
22+ <div class =" supplier__infos" >
23+ <a class =" supplier__title stretched-link" href =" { $supplier .url} " >
24+ { $supplier .name}
25+ </a >
26+ </div >
27+
28+ <p class =" supplier__products" >
29+ { if $supplier .nb_products > 1}
30+ { l s= ' %number% products' sprintf= [' %number%' => $supplier .nb_products] d= ' Shop.Theme.Catalog' }
31+ { elseif $supplier .nb_products == 1}
32+ { l s= ' %number% product' sprintf= [' %number%' => $supplier .nb_products] d= ' Shop.Theme.Catalog' }
33+ { else }
34+ { l s= ' No products' d= ' Shop.Theme.Catalog' }
35+ { /if }
36+ </p >
37+ </li >
38+ { /block }
Original file line number Diff line number Diff line change 7272 { if $product .availability_date}
7373 <li class =" details__item" >
7474 <div class =" details__left" >
75- <span class =" details__title" >{ l s= ' Availability date: ' d= ' Shop.Theme.Catalog' } </span >
75+ <span class =" details__title" >{ l s= ' Availability date' d= ' Shop.Theme.Catalog' } </span >
7676 </div >
7777
7878 <div class =" details__right" >
Original file line number Diff line number Diff line change 55{ extends file= $layout }
66
77{ block name= ' content' }
8- { block name= ' brand_and_suppliers_header' } { /block }
8+ { block name= ' brand_header' }
9+ { include file= ' components/page-title-section.tpl' title= {l s= ' Brands' d= ' Shop.Theme.Catalog' } }
10+ { /block }
911
10- { block name= ' brand_and_suppliers_miniature ' }
12+ { block name= ' brand_miniature ' }
1113 <ul class =" brand__list" >
1214 { foreach from= $brands item= brand}
1315 { include file= ' catalog/_partials/miniatures/brand.tpl' brand= $brand }
Original file line number Diff line number Diff line change 55{ extends file= ' catalog/listing/product-list.tpl' }
66
77{ block name= ' product_list_header' }
8- { include file= ' components/page-title-section.tpl' title= {l s= ' List of products by supplier %s ' sprintf= [$supplier .name] d= ' Shop.Theme.Catalog' } }
8+ { include file= ' components/page-title-section.tpl' title= {l s= ' List of products by supplier %supplier_name% ' sprintf= [' %supplier_name% ' = > $supplier .name] d= ' Shop.Theme.Catalog' } }
99
10- <div class =" rich-text" >{ $supplier .description nofilter} </div >
10+ { if $supplier .description}
11+ <div class =" rich-text" >{ $supplier .description nofilter} </div >
12+ { /if }
1113{ /block }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22 * For the full copyright and license information, please view the LICENSE
33 * file that was distributed with this source code.
44 *}
5- { extends file= ' catalog/brands-suppliers.tpl ' }
5+ { extends file= $ layout }
66
7- { block name= ' brand_and_suppliers_header' }
8- { include file= ' components/page-title-section.tpl' title= {l s= ' Suppliers' d= ' Shop.Theme.Catalog' } }
7+ { block name= ' content' }
8+ { block name= ' supplier_header' }
9+ { include file= ' components/page-title-section.tpl' title= {l s= ' Suppliers' d= ' Shop.Theme.Catalog' } }
10+ { /block }
11+
12+ { block name= ' supplier_miniature' }
13+ <ul class =" supplier__list" >
14+ { foreach from= $suppliers item= supplier}
15+ { include file= ' catalog/_partials/miniatures/supplier.tpl' supplier= $supplier }
16+ { /foreach }
17+ </ul >
18+ { /block }
919{ /block }
You can’t perform that action at this time.
0 commit comments