Skip to content

Commit 76b884c

Browse files
authored
Merge pull request #526 from tblivet/theme-improvements
Improvements : small theme improvements
2 parents 1a9638c + 9b674ea commit 76b884c

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

modules/ps_imageslider/views/templates/hook/slider.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
aria-hidden="{if $smarty.foreach.homeslider.first}false{else}true{/if}">
2121
{if !empty($slide.url)}<a class="carousel-link" href="{$slide.url}">{/if}
2222
<figure class="carousel-content">
23-
<img src="{$slide.image_url}" alt="{$slide.legend|escape}" loading="lazy" {$slide.size|replace: '"':''}>
23+
<img src="{$slide.image_url}" alt="{$slide.legend|escape}" {if $slide@iteration == 1}loading="eager"{else}loading="lazy"{/if} {$slide.size|replace: '"':''}>
2424
{if $slide.title || $slide.description}
2525
<figcaption class="carousel-caption caption">
2626
<h2 class="display-1 text-uppercase">{$slide.title}</h2>

src/scss/core/components/_pagination.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
&-container {
1111
align-items: center;
12-
margin: 1rem 0;
12+
margin-top: 1rem;
13+
margin-bottom: 1rem;
1314
}
1415
}

src/scss/core/pages/_home.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/scss/core/pages/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
@import "home";
21
@import "product";
32
@import "page-not-found";

templates/_partials/microdata/product-jsonld.tpl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,15 @@
3131
{if $product.ean13},"gtin13": "{$product.ean13}"
3232
{else if $product.upc},"gtin13": "{$product.upc}"
3333
{/if}
34-
{if $product_manufacturer->name OR $shop.name},
34+
{if $product_manufacturer->name},
35+
"brand": {
36+
"@type": "Brand",
37+
"name": "{$product_manufacturer->name|escape:'html':'UTF-8'}"
38+
}
39+
{elseif $shop.name},
3540
"brand": {
3641
"@type": "Thing",
37-
"name": "{if $product_manufacturer->name}{$product_manufacturer->name|escape:'html':'UTF-8'}{else}{$shop.name}{/if}"
42+
"name": "{$shop.name}"
3843
}
3944
{/if}
4045
{if $hasAggregateRating},

templates/_partials/pagination.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
{$componentName = 'pagination'}
66

77
<nav class="{$componentName}-container row">
8-
<div class="{$componentName}-number col-md-4">
8+
<div class="{$componentName}-number text-center text-lg-start col-lg-4">
99
{block name='pagination_summary'}
1010
{l s='Showing %from%-%to% of %total% item(s)' d='Shop.Theme.Catalog' sprintf=['%from%' => $pagination.items_shown_from ,'%to%' => $pagination.items_shown_to, '%total%' => $pagination.total_items]}
1111
{/block}
1212
</div>
1313

14-
<div class="{$componentName}-list-container col-md-6 offset-md-2 pr-0">
14+
<div class="{$componentName}-list-container d-flex justify-content-center justify-content-lg-end col-lg-8">
1515
{block name='pagination_page_list'}
1616
<nav aria-label="{l s='Products pagination' d='Shop.Theme.Catalog'}">
1717
{if $pagination.should_be_displayed}
@@ -44,5 +44,4 @@
4444
</nav>
4545
{/block}
4646
</div>
47-
4847
</nav>

templates/index.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*}
55
{extends file=$layout}
66

7+
{block name='breadcrumb'}{/block}
8+
79
{block name="content_columns"}
810
{block name="left_column"}{/block}
911

0 commit comments

Comments
 (0)