app/template/default/Block/lm_item_thickness.twig line 1

Open in your IDE?
  1. {% set kiji_feature_list_count = 0 %}
  2. {% if data.goods_kiji_thickness is defined and data.goods_kiji_thickness %}
  3.     {% set kiji_feature_list_count = kiji_feature_list_count + 1 %}
  4. {% endif %}
  5. {% if data.goods_kiji_hardness is defined and data.goods_kiji_hardness %}
  6.     {% set kiji_feature_list_count = kiji_feature_list_count + 1 %}
  7. {% endif %}
  8. {% if data.goods_kiji_stretch is defined and data.goods_kiji_stretch %}
  9.     {% set kiji_feature_list_count = kiji_feature_list_count + 1 %}
  10. {% endif %}
  11. {% if kiji_feature_list_count > 0 %}
  12. <div id="kiji-feature" class="kiji-feature-list-count-{{ kiji_feature_list_count }}">
  13.     <img src="https://img0.land-mark.biz/ut_img/public_images/itempage/kizi-bg.jpg">
  14.     <div class="kiji-feature-content">
  15.         <div class="kiji-feature-header-text">
  16.             <p>〜写真でわからない生地の風合いについてスタッフ目線で比較しました!〜</p>
  17.         </div>
  18.         <div class="kiji-feature-list-wrap">
  19.             <ul class="kiji-feature-list">
  20.                 {% if data.goods_kiji_thickness is defined and data.goods_kiji_thickness %}
  21.                 <li class="kiji-feature-thicness">
  22.                     <div class="lead-char"><span>厚</span></div>
  23.                     <div class="lead-text"><span>生地の厚さ<span></div>
  24.                     <ul>
  25.                         {% for kiji_thickness in kiji_thickness_list  %}
  26.                             {% if data.goods_kiji_thickness ==  kiji_thickness.id %}
  27.                                 {% set is_active = 1 %}
  28.                             {% else %}
  29.                                 {% set is_active = 0 %}
  30.                             {% endif %}
  31.                             <li><div class="kiji-feature-label {% if is_active == 1 %} is-active {% endif %} "><span {% if is_active == 1 %} class="is-active" {% endif %}>{{ kiji_thickness.name | escape }}</span></div></li>
  32.                         {% endfor %}
  33.                     </ul>
  34.                 </li>
  35.                 {% endif %}
  36.                 {% if data.goods_kiji_hardness is defined and data.goods_kiji_hardness %}
  37.                 <li class="kiji-feature-hardness">
  38.                     <div class="lead-char"><span>硬</span></div>
  39.                     <div class="lead-text"><span>生地の硬さ<span></div>
  40.                     <ul>
  41.                         {% for kiji_hardness in kiji_hardness_list  %}
  42.                             {% if data.goods_kiji_hardness ==  kiji_hardness.id %}
  43.                                 {% set is_active = 1 %}
  44.                             {% else %}
  45.                                 {% set is_active = 0 %}
  46.                             {% endif %}
  47.                             <li><div class="kiji-feature-label {% if is_active == 1 %} is-active {% endif %} "><span {% if is_active == 1 %} class="is-active" {% endif %}>{{ kiji_hardness.name | escape }}</span></div></li>
  48.                         {% endfor %}
  49.                     </ul>
  50.                 </li>
  51.                 {% endif %}
  52.                 {% if data.goods_kiji_stretch is defined and data.goods_kiji_stretch %}
  53.                 <li class="kiji-feature-stretch">
  54.                     <div class="lead-char"><span>ス</span></div>
  55.                     <div class="lead-text"><span>ストレッチ性<span></div>
  56.                     <ul>
  57.                         {% for kiji_stretch in kiji_stretch_list  %}
  58.                             {% if data.goods_kiji_stretch ==  kiji_stretch.id %}
  59.                                 {% set is_active = 1 %}
  60.                             {% else %}
  61.                                 {% set is_active = 0 %}
  62.                             {% endif %}
  63.                             <li><div class="kiji-feature-label {% if is_active == 1 %} is-active {% endif %} "><span {% if is_active == 1 %} class="is-active" {% endif %}>{{ kiji_stretch.name | escape }}</span></div></li>
  64.                         {% endfor %}
  65.                     </ul>
  66.                 </li>
  67.                 {% endif %}
  68.             </ul>
  69.         </div>
  70.         <div class="kiji-feature-footer-text">
  71.             <p>上記基準は、当社スタッフの感覚での判断となります。<br>お客様によって素材の判断基準は異なりますので、あくまでも参考にご覧ください。</p>
  72.         </div>
  73.     </div>
  74. </div>
  75. {% endif %}