templates/Slivki/offers/category_list.html.twig line 1

Open in your IDE?
  1. <div id="categories-list" class="{{ smallCity is defined and smallCity ? ' small-city' }}{{ topLevelCategoryIDList|length == 1 ? ' one-category-city' }}">
  2.     {% for categoryID, categoryBox in categoryBoxList %}
  3.         {# rodenTeaserBannerABTest #}
  4.         {% if categoryID == constant('Slivki\\Entity\\Category::TOP_CATEGORY_ID') %}
  5.             {% set abValue = app.session.get('rodenTeaserBannerABTest', '0') %}
  6.             {% set utmCampaign = 'utm_campaign=abw-woman' %}
  7.             {% set imgUri = '/roden-lady.jpg' %}
  8.             {% if abValue == 0 %}
  9.                 {% set utmCampaign = 'utm_campaign=abw-vip' %}
  10.                 {% set imgUri = '/roden-vip.jpg' %}
  11.                 {{ app.session.set('rodenTeaserBannerABTest', 1) }}
  12.             {% else %}
  13.                 {{ app.session.set('rodenTeaserBannerABTest', 0) }}
  14.             {% endif %}
  15.             {% set categoryBox = categoryBox|replace({'utm_campaign=roden_pop': utmCampaign, '/slivki-img/1496324948_.jpg': imgUri}) %}
  16.             {% set categoryBanner = app.user and app.user.hasRole(constant('\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE')) ? ''
  17.                 : getCategoryBanner(categoryID) %}
  18.             {% set categoryBox =  categoryBox|replace({'<div id="category-banner-placeholder" style="display:none"></div>': categoryBanner}) %}
  19.         {% endif %}
  20.         {# end rodenTeaserBannerABTest #}
  21.         {{ categoryBox|raw }}
  22.     {% endfor %}
  23. </div>
  24. <div id="mainPagePromoTextPush"></div>
  25. {% if isMobileDevice() %}
  26.     {% include 'Slivki/mobile_link_block.html.twig' %}
  27. {% endif %}