<? global $lang_id;?>
<? if ( $this -> query ):?>
  <div class="box-title">
    <?= \Shared\Helpers\Helpers::lang( 'wyniki-wyszukiwania-dla-zapytania' ) . ': <strong>' . $this -> query . '</strong>';?>
  </div>
<? endif;?>
<div class="category-content">
  <? if ( is_array( $this -> products ) ): foreach ( $this -> products as $product_id ):
    $product = new \shop\Product( $product_id );
    echo \Shared\Tpl\Tpl::view( 'shop-product/product-mini', [
                        'product' => new \shop\Product( $product_id, $lang_id )
                      ] );
  endforeach; endif;?>
</div>