templates/eshopLeftColumn.html.twig line 1

Open in your IDE?
  1. <div class="eshopColumnLeft">
  2. <!-- 
  3. -- left column --
  4.  -->
  5.  
  6.  <?php
  7.     if (!empty($routeName) && $routeName == 'eshop') {
  8.     ?>
  9.     <div class="eshopHomeColumn">    
  10.     </div>
  11.     <?php
  12.     }
  13. ?>
  14.  
  15. <div class="categoryMenu">
  16.    <div class="panelTitle">{{ 'eshop.categories'|trans }}</div>
  17.     {{ categoryTreeMenu|raw }}
  18. </div>
  19. {% if topProducts is defined %}
  20. <div class="topProductsColumn">
  21.     {% set productCount = 0 %}
  22.     {% for orderItem in topProducts %}
  23.         {% set productCount = productCount + 1 %}
  24.         {% if productCount == 1 %}
  25.             <div class="panelTitle">{{ 'module.report_top_products'|trans }}</div>
  26.         {% endif %}
  27.         {% if orderItem['displayPrice'] is defined %}
  28.             {% set displayPrice = orderItem['displayPrice'] %}
  29.         {% else %}
  30.             {% set displayPrice = '' %}
  31.         {% endif %}
  32.         {% if orderItem['currencyKey'] is defined %}
  33.             {% set currencyKey = orderItem['currencyKey'] %}
  34.         {% else %}
  35.             {% set currencyKey = '' %}
  36.         {% endif %}
  37.       <div class="topProductColumnRow">
  38.           <span class="topProductColumnCol"><span class="topProductColumnNumber">{{ productCount }}</span></span>
  39.         <span class="topProductColumnTitle">
  40.             <a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/product/{{ orderItem['productId'] }}" class="topProductColumnLink">{{ orderItem['orderItemTitle'] }}</a>
  41.             <br><span class="topProductColumnPrice">{{ displayPrice }} {{ currencyKey }}</span>
  42.         </span>
  43.       </div>
  44.     {% endfor %}
  45. </div>
  46. {% endif %}
  47. {% if manufacturers is defined and manufacturers|length > 0 %}
  48.     <div class="brandsColumn">
  49.         <div class="panelTitle">{{ 'eshop.brands'|trans }}</div>
  50.         {% set manufacturerCount = 0 %}
  51.         {% for manufacturer in manufacturers %}
  52.             {% set manufacturerCount = manufacturerCount + 1 %}
  53.           <div class="brandsColumnRow">
  54.             <span class="topProductColumnTitle">
  55.                 <input type="checkbox" id="manufacturer{{ manufacturerCount }}" name="categoryBrandFilter" value="{{ manufacturer['manufacturer'] }}" onclick="categoryBrandFilter({{ eshop.eshopId }}, {{ category.categoryId }},'{{ manufacturer['manufacturer'] }}' , 'manufacturer{{ manufacturerCount }}')">
  56.                 <label for="manufacturer{{ manufacturerCount }}" class="brandsColumnLabel">{{ manufacturer['manufacturer'] }}</label><br>
  57.             </span>
  58.           </div>
  59.         {% endfor %}
  60.     </div>
  61. {% endif %}
  62. </div>