<a href="#description" class="alter-nav-link active" data-opener="#description">{t}Popis produktu{/t}</a>
<div class="product-description active" id="description">
   <div class="description-wrapper description-text">
      {if $body.product.longDescr}
         <h2>{$body.product.title}</h2>
         {$body.product.longDescr nofilter}
      {/if}
      {if $description}
         {$block.content|strip_tags|count_characters}
      {/if}

      {include 'product/product.params.tpl'}
      {include 'components/block.need-help.tpl'}
   </div>

   {foreach $body.product.photos as $photo}
      {if $photo.show_in_lead == "O"}
         {$content_photos[] = $photo}
      {/if}
   {/foreach}

   {if $content_photos|count == 0}
      {$content_photos[] = $body.product.photos[($body.product.photos|count - 2)]}
      {$content_photos[] = $body.product.photos[($body.product.photos|count - 1)]}
   {elseif $content_photos|count == 1}
      {$content_photos[] = $body.product.photos[($body.product.photos|count - 2)]}
   {/if}

   <div class="description-wrapper description-photos">
      {foreach $content_photos|array_slice:0:2 as $content_photo}
         {if $content_photo}
            {$photo_dimensions = $cfg.Photo.types["product_content_photo"].size}
            <div class="img">
               <img src="{get_photo photo=$content_photo size='product_content_photo'}"
                    alt="{$content_photo.descr|default:$body.product.title}"
                    class="img-responsive" loading="lazy" width="{$photo_dimensions[0]}"
                    height="{$photo_dimensions[1]}">
            </div>
         {/if}
      {/foreach}
   </div>
   {*{include 'components/block.need-help.tpl'}*}
</div>

