{% extends '@designs-default-amp/components/teaser/product.twig' %} {% set layout = layout|default %} {% if teaser.type|default == 'tipser' %} {% set options = { teaser_buttontext: 'Jetzt kaufen', teaser_container_class: 'col-12 tipser', teaser_attributes: ' data-tipser-id="' ~ teaser.id|default ~ '"', teaser_abstract: false, teaser_affiliate_name: false, } + options|default({}) %} {# Since we need to check if the teaser type is Tipser, we need to make the check for layout == 'product_small' in the product teaser template aswell to insert the Tipser class in teaser_container_class #} {% if layout == 'product_small' %} {% set options = { teaser_container_class: 'small col-6 text-center tipser', } + options|default({}) %} {% endif %} {% endif %}