Test module

This commit is contained in:
Roman Pyrih
2026-02-20 12:00:32 +01:00
parent 7f71214aea
commit f62521a504
9 changed files with 8313 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
<section class="project-pro-news">
<div class="project-pro-news__header">
{if $ppn_title}
<h2 class="project-pro-news__title">{$ppn_title|escape:'htmlall':'UTF-8'}</h2>
{/if}
{if $ppn_subtitle}
<div class="project-pro-news__subtitle">{$ppn_subtitle|escape:'htmlall':'UTF-8'}</div>
{/if}
</div>
{if $ppn_products|count > 0}
<div class="project-pro-news__slider swiper">
<div class="swiper-wrapper">
{foreach from=$ppn_products item=product}
<div class="swiper-slide">
<article class="project-pro-news__card">
<a class="project-pro-news__image" href="{$product.url}" title="{$product.name|escape:'htmlall':'UTF-8'}">
{if isset($product.cover.bySize.home_default.url)}
<img src="{$product.cover.bySize.home_default.url}" alt="{$product.name|escape:'htmlall':'UTF-8'}" loading="lazy">
{elseif isset($product.cover.large.url)}
<img src="{$product.cover.large.url}" alt="{$product.name|escape:'htmlall':'UTF-8'}" loading="lazy">
{/if}
</a>
<div class="project-pro-news__meta">
<a class="project-pro-news__name" href="{$product.url}">
{$product.name|escape:'htmlall':'UTF-8'}
</a>
{if isset($product.price) && $product.price}
<div class="project-pro-news__price">
{$product.price}
{if $ppn_price_suffix}
<span class="project-pro-news__priceSuffix">{$ppn_price_suffix|escape:'htmlall':'UTF-8'}</span>
{/if}
</div>
{/if}
</div>
</article>
</div>
{/foreach}
</div>
<div class="project-pro-news__nav">
<div class="project-pro-news__prev" aria-label="Prev"></div>
<div class="project-pro-news__next" aria-label="Next"></div>
</div>
</div>
{/if}
{if $ppn_button_label && $ppn_button_url}
<div class="project-pro-news__footer">
<a class="project-pro-news__more" href="{$ppn_button_url|escape:'htmlall':'UTF-8'}">
{$ppn_button_label|escape:'htmlall':'UTF-8'}
</a>
</div>
{/if}
</section>