{get_articles product_id=$body.product.id section='all' assign="articles" count=2}
{if $articles.articles}
   <div class="product-articles">
      <p class="h3">{t}Články k produktu{/t}</p>
      <div class="row">
          {foreach $articles.articles as $article}
              {url s=article IDa=$article.id TITLE=$article.seo_url assign=article_url}
                <div class="product-article-item">
                   <a href="{$article_url}" title="{$article.title}">
                      <div class="img">
                          {$photo_dimensions = $cfg.Photo.types["article_thumb"].size}
                         <img src="{get_photo photo=$article.image size='article_thumb'}" alt="{$article.title}"
                              class="img-fluid" width="{$photo_dimensions[0]}" height="{$photo_dimensions[1]}" loading="lazy">
                      </div>
                      <p class="title">{$article.title}</p>
                      <p class="article-date">{$article.date|date_format:"%e.%-m.%Y"}</p>
                   </a>
                   <a href="{$article_url}" class="btn-read">Přečíst</a>
             </div>
          {/foreach}
      </div>
   </div>
{/if}
