<? global $lang_id;?>

<? if ( is_array( $this -> products ) ): foreach ( $this -> products as $product ):?>
  <?
    $product -> languages[$lang_id]['seo_link'] ? $url = '/' . $product -> languages[$lang_id]['seo_link'] : $url = '/p-' . $product['id'] . '-' . \S::seo( $product -> languages[$lang_id]['name'] );

    if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language() and $url != '#' )
      $url = '/' . \S::get_session( 'current-lang' ) . $url;
  ?>
  <?= \Tpl::view( 'shop-product/product-mini', [
                      'product' => $product,
                      'class' => 'col-12 col-sm-4 col-md-4 col-lg-3'
                    ] );?>
<? endforeach; endif;?>