templates/front/catalog/model/view/variants/color.html.twig line 1

Open in your IDE?
  1. <div class="attribute attribute-color" data-attr="{{ attr.code }}">
  2. <div class="labels">
  3. <label>{{ attr.title }} : </label>
  4. <span class="value">{{ attribute(attr.values,0).entity.title }}</span>
  5. </div>
  6. <ul class="colors">
  7. {% for value in attr.values %}
  8. <li>
  9. <a class="bt {{ loop.first ? 'selected' : '' }}" data-value="{{ value.value }}" data-pid="{{ value.product.id }}">
  10. {% if value.entity %}
  11. <img src="{{ asset(value.entity.getWebPath()) | imagine_filter('product_small') }}" alt="{{ value.entity.title }}" />
  12. {% else %}
  13. {{ value.product.picture.url }}
  14. {% endif %}
  15. </a>
  16. </li>
  17. {% endfor %}
  18. </ul>
  19. </div>