Skip to content

Commit

Permalink
webpEnabled parameter removed, can be omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed May 7, 2024
1 parent 53200a5 commit a84a34c
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion modules/ps_banner/ps_banner.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*}
<a class="banner" href="{$banner_link}" title="{$banner_desc}">
{if isset($banner_img)}
{images_block webpEnabled=$webpEnabled}
{images_block}
<img src="{$banner_img}" alt="{$banner_desc}" title="{$banner_desc}" class="img-fluid">
{/images_block}
{else}
Expand Down
2 changes: 1 addition & 1 deletion templates/_partials/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

<div class="col-md-4 col header-top__block header-top__block--logo">
<a href="{$urls.pages.index}">
{images_block webpEnabled=$webpEnabled}
{images_block}
<img
{if !empty($shop.logo_details)}
src="{$shop.logo_details.src}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{block name='product_thumbnail'}
<div class="product-miniature__thumb position-relative {$thumbExtraClass|default:''}">
<a href="{$product.url}" class="product-miniature__thumb-link">
{images_block webpEnabled=$webpEnabled}
{images_block}
<img
{if $product.default_image}
data-full-size-image-url="{$product.default_image.large.url}"
Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/_partials/miniatures/pack-product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="row g-0 flex-nowrap">
<div class="col-4 col-md-3 col-xl-2">
<a href="{$product.url}" title="{$product.name}">
{images_block webpEnabled=$webpEnabled}
{images_block}
<img
class="img-fluid"
loading="lazy"
Expand Down
8 changes: 4 additions & 4 deletions templates/catalog/_partials/product-cover-thumbnails.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="js-product-images">
<div class="card">
<div class="card-body">
{images_block webpEnabled=$webpEnabled}
{images_block}
{if $product.default_image}
<img
class="rounded img-fluid"
Expand Down Expand Up @@ -56,7 +56,7 @@
<div class="product-main-images">
{if $product.images|count > 1}
{$index = 0}
{images_block webpEnabled=$webpEnabled}
{images_block}

<div class="js-product-main-images swiper swiper-custom" data-index="{$index}">
<div class="product-main-images__list swiper-wrapper">
Expand Down Expand Up @@ -111,7 +111,7 @@
</div>
{/images_block}
{else}
{images_block webpEnabled=$webpEnabled}
{images_block}
<img
class="rounded img-fluid"
{generateImagesSources image=$product.default_image size='large_default'}
Expand Down Expand Up @@ -139,7 +139,7 @@
{block name='product_images'}
{if $product.images|count > 1}
<div class="js-product-thumbs product-thumbs swiper mt-2 swiper-custom">
{images_block webpEnabled=$webpEnabled}
{images_block}
<div class="product-thumbs__list swiper-wrapper">
<div class="product-thumbs__elem swiper-slide">
<img
Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/_partials/product-description.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

{cms_images_block webpEnabled=$webpEnabled}
{cms_images_block}
<div class="product-description cms-content">{$product.description nofilter}</div>
{/cms_images_block}
2 changes: 1 addition & 1 deletion templates/catalog/_partials/product-details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{if isset($product_manufacturer->id)}
<div class="product-manufacturer">
{if isset($manufacturer_image_url)}
{images_block webpEnabled=$webpEnabled}
{images_block}
<a href="{$product_brand_url}">
<img src="{$manufacturer_image_url}" class="img img-thumbnail manufacturer-logo" alt="{$product_manufacturer->name}" loading="lazy">
</a>
Expand Down
4 changes: 2 additions & 2 deletions templates/catalog/_partials/product-images-modal.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="modal-body">
<div class="js-modal-gallery modal-gallery swiper swiper-custom">
{if $product.default_image}
{images_block webpEnabled=$webpEnabled}
{images_block}
<div class="modal-gallery__list swiper-wrapper">
<div class="swiper-slide modal-gallery__elem">
<img
Expand Down Expand Up @@ -74,7 +74,7 @@
</div>
{/images_block}
{else}
{images_block webpEnabled=$webpEnabled}
{images_block}
<img
class="rounded img-fluid"
{generateImagesSources image=$product.default_image size='large_default'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="product-line-grid">
<div class="product-line-grid__row">
<div class="product-line-grid__block product-line-grid__block--image">
{images_block webpEnabled=$webpEnabled}
{images_block}
<img
{generateImagesSources image=$product.default_image size='cart_default'}
alt="{$product.name|escape:'quotes'}"
Expand Down
2 changes: 1 addition & 1 deletion templates/checkout/_partials/cart-summary-product-line.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{block name='cart_summary_product_line'}
<div class="cart-products">
<div class="cart-products__thumb">
{images_block webpEnabled=$webpEnabled}
{images_block}
<img
{if $product.default_image}
{generateImagesSources image=$product.default_image size='cart_default'}
Expand Down
2 changes: 1 addition & 1 deletion templates/checkout/_partials/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="row">
<div class="col text-md-start text-center">
<a href="{$urls.base_url}">
{images_block webpEnabled=$webpEnabled}
{images_block}
<img
{if !empty($shop.logo_details)}
src="{$shop.logo_details.src}"
Expand Down
2 changes: 1 addition & 1 deletion templates/cms/page.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<section id="content" class="page-content cms-content page-cms page-cms-{$cms.id}">

{block name='cms_content'}
{cms_images_block webpEnabled=$webpEnabled}
{cms_images_block}
{$cms.content nofilter}
{/cms_images_block}
{/block}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</td>

<td class="product-line__cell product-line__cell--img">
{images_block webpEnabled=$webpEnabled}
{images_block}
{if $product.default_image}
<img
{generateImagesSources image=$product.cover size='cart_default'}
Expand Down
2 changes: 1 addition & 1 deletion templates/customer/_partials/product-table-line.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<td class="product-line__cell product-line__cell--img">
{images_block webpEnabled=$webpEnabled}
{images_block}
{if $product.default_image}
<img
{generateImagesSources image=$product.default_image size='cart_default'}
Expand Down

0 comments on commit a84a34c

Please sign in to comment.