vendor/store.shopware.com/ndsrecipemanager/src/Resources/views/rcpmanager/recipe/card/box.html.twig line 1

Open in your IDE?
  1. {% block rcp_recipe_card %}
  2.     <article class="card product-box box-standard">
  3.         <div class="card-body">
  4.             <div class="product-image-wrapper">
  5.                 <a href="{{ seoUrl('rcp.frontend.recipe', { slug: item.translated.slug }) }}"
  6.                    title="{{ item.translated.name }}"
  7.                    class="product-image-link is-standard">
  8.                     {% if item.coverId %}
  9.                         {% sw_thumbnails 'recipe-image-thumbnails' with {
  10.                             media: item.cover,
  11.                             sizes: {
  12.                                 "xs" : "500px",
  13.                                 "sm" : "315px",
  14.                                 "md" : "390px",
  15.                                 "lg" : "350px",
  16.                                 "xl" : "200px",
  17.                             },
  18.                            attributes: {
  19.                                 'class': 'img-fluid recipe-img-thumbnail',
  20.                                 'alt': (item.cover.translated.alt ?: item.translated.name),
  21.                                 'title': (item.translated.name ?: '')
  22.                             }
  23.                         } %}
  24.                     {% else %}
  25.                         <div class="product-image-placeholder">
  26.                             {% sw_icon 'placeholder' style {
  27.                                 'size': 'fluid'
  28.                             } %}
  29.                         </div>
  30.                     {% endif %}
  31.                 </a>
  32.             </div>
  33.             <div class="product-info">
  34.                 <a href="{{ seoUrl('rcp.frontend.recipe', { slug: item.translated.slug }) }}"
  35.                    class="product-name"
  36.                    title="{{ item.translated.name }}">
  37.                     {{ item.translated.name }}
  38.                 </a>
  39.                 <div class="product-variant-characteristics">
  40.                     <div class="product-variant-characteristics-text">
  41.                         {% if item.preparationTime %}
  42.                             {{ "time"|trans }}:
  43.                             <span class="product-variant-characteristics-option">
  44.                                 {{ item.preparationTime }} {{ "minutes"|trans }}
  45.                             </span>
  46.                         {% endif %}
  47.                         {% if item.preparationTime and item.difficulty.translated.name %}&nbsp;|&nbsp;{% endif %}
  48.                         {% if item.difficulty.translated.name %}
  49.                             {{ "difficulty"|trans }}:
  50.                             <span class="product-variant-characteristics-option">
  51.                                 {{ item.difficulty.translated.name }}
  52.                             </span>
  53.                         {% endif %}
  54.                     </div>
  55.                 </div>
  56.             </div>
  57.         </div>
  58.     </article>
  59. {% endblock %}