{if $body.product.param or $body.product.producer}
   <div class="product-params">
      {if $body.product.param[20].values}
         <div class="material-params-wrapper">
            <p class="param-title title-default">{t}Proč zvolit{/t} {$body.product.title}?</p>

            {foreach $body.product.param[20].values|default:[] as $key=>$param}
               {if in_array($param.data.position, [5,6,7,8,9])}
                  <ul>
                     <li class="material-param-item {if $param.data.image}param-with-img{/if}">
                        {if $param.data.image}
                           <div class="img">
                              <img src="{$param.data.image}" alt="" width="120" height="120">
                           </div>
                        {/if}
                        <div>
                           <p class="param-title">{$param.data.title}</p>
                           <p>{$param.data.description nofilter}</p>
                        </div>
                     </li>
                  </ul>
               {/if}
            {/foreach}
         </div>
      {/if}

      <h4>{t}Parametry{/t}</h4>

      {include "product/product.ajax.tpl" product=$unifiedProduct hide_first_part=1 hide_second_part=1 hide_third_part=1 hide_fifth_part=1}

      <table>
         {$swix = ($dbcfg.shop_firm_name == "Swix")}
         {$lundhags = ($dbcfg.shop_firm_name == "Lundhags")}
         {$sorryGravity = ($dbcfg.shop_firm_name == "Sorry Gravity")}
         {$ulvang = ($dbcfg.shop_firm_name == "Ulvang")}
         {foreach $body.product.param as $param}
            {if $param.figure == 'Y' and $param.id != 20 and (($param.id != 57 and !$swix) or ($param.id != 50 and !$lundhags))} {* materiál a aktivita (Swix) / určení (Lundhags) *}
               <tr>
                  <td>{$param.name}</td>
                  <td>
                     {$data =json_decode($param.param_value_data)}
                     {if $data->namePair}
                        {$data->namePair}
                     {else}
                        {foreach $param.values as $value}
                           {$value.value}{if $param.unit}&nbsp;{$param.unit}{/if}{if !$value@last}, {/if}
                        {/foreach}
                     {/if}
                  </td>
               </tr>
            {/if}
         {/foreach}
         {if $body.product.producer}
            <tr>
               <td>{t}Výrobce / Dodavatel{/t}</td>
               <td>
                  {if $body.product.producer.company_name}
                     <strong>{include 'product/product-producer.tooltip.tpl'}</strong>
                  {else}
                     {$body.product.producer.name}
                  {/if}
               </td>
            </tr>
         {/if}
      </table>
      {if ($body.product.param[57] and $swix) or ($body.product.param[50] and $lundhags)}
         <div class="param-activities">
            <h4>{t}Vhodné pro aktivity{/t}</h4>
            {foreach $body.product.param as $param}
               {if ($param.id == 57 and $swix) or ($param.id == 50 and $lundhags)}
                  {foreach $param.values as $value}
                     <div class="param-activities-item">
                        <div class="param-img">
                           {* Přidani odkazu k obrazku aktivity *}
                           <a href="{$cfg['Addr']['full']}{$value.descr}">
                              <img src="{$value.data.image}" alt="" width="123" height="112">
                           </a>
                        </div>
                        {if $value.descr}
                           <a href="{$cfg['Addr']['full']}{$value.descr}" class="param-title">{$value.value}</a>
                        {else}
                           <p class="param-title">{$value.value}</p>
                        {/if}
                     </div>
                  {/foreach}
               {/if}
            {/foreach}
         </div>
      {/if}
   </div>
{/if}
