app/template/default/Block/SubCategory/lm_subcategory_list.twig line 1

Open in your IDE?
  1. {% for subCategory in subCategoryList %}
  2.     {% if subCategory.leftmenu_flg == 1 %}
  3.         <li class="sub-cat-separator sub-cat-separator-caption">
  4.             {{ subCategory.category_name  }}
  5.         </li>
  6.     {% elseif subCategory.category_is_hinban_link == 1 %}
  7.         {% if subCategory.category_menuname is defined and subCategory.category_menuname %}
  8.             <li class="hinban_link">
  9.                 {{ subCategory.category_menuname | raw}}
  10.             </li>
  11.         {% endif %}
  12.     {% else %}
  13.         {% if subCategory.category_id != "allitem" %}
  14.             {% set category_menuname = '' %}
  15.             {% if subCategory.category_menuname != '' %}
  16.                 {% set category_menuname = subCategory.category_menuname %}
  17.             {% else %}
  18.                 {% set category_menuname = (subCategory.category_name | replace({" ":""}))  %}
  19.             {% endif %}
  20.             {# $category_menuname = replaceItemImageRoot($category_menuname); #}
  21.             {#
  22.             {% set matches = [] %}
  23.             {% if preg_match('@^(<img[^>]+>)(.+)$@', category_menuname, matches) %}
  24.                 {% set category_menuname = matches[2] %}
  25.                 {% set category_image = matches[1] %}
  26.             {% else %}
  27.                 {% set category_image = null %}
  28.             {% endif %}
  29.             #}
  30.             {% if subCategory.ru_uri_after is defined and subCategory.ru_uri_after %}
  31.                 <li class="category_link{% if subCategory.category_id == category.getCategoryId %} selected{% endif %}"><a href="{{ subCategory.ru_uri_after }}" {{ '円' in category_menuname ? 'rel="nofollow"' : '' }}>
  32.             {% else %}
  33.                 <li class="category_link{% if subCategory.category_id == category.getCategoryId %} selected{% endif %}"><a href="/{{ canonicalMcName }}/{{ subCategory.category_webname }}/" {{ '円' in category_menuname ? 'rel="nofollow"' : '' }}>
  34.             {% endif %}
  35.             <span class="sub-cat-name"><span class="sub-cat-count">{{ category_menuname | raw }}</span>
  36.                         {#
  37.                         {% if categoryCntList.subCategory.category_id is defined %}
  38.                             {{ categoryCntList.subCategory.category_id }}
  39.                         {% endif %}
  40.                         #}
  41.                 {% if subCategory.cnt is defined and subCategory.cnt %}
  42.                     ({{ subCategory.cnt }})
  43.                 {% endif %}
  44.                     </span>
  45.             {% if category_image is defined %}
  46.                 <br/>{{ category_image | raw }}
  47.             {% endif %}
  48.             </a></li>
  49.         {% endif %}
  50.     {% endif %}
  51. {% endfor %}