templates/snippets/standard-teaser.html.twig line 1

Open in your IDE?
  1. {% set suffix = suffix ?? '' %}
  2. {% if suffix is empty and editmode %}
  3.     <style type="text/css">
  4.         .teaser {
  5.             max-width: 250px;
  6.         }
  7.         .teaser img {
  8.             max-width: 100%;
  9.         }
  10.     </style>
  11. {% endif %}
  12. <div class="teaser card custom-standard-card mb-4 shadow-sm">
  13.     {{
  14.         pimcore_image('image' ~ suffix, {
  15.             thumbnail: 'standardTeaser',
  16.             imgAttributes: {class: 'img-fluid w-100'}
  17.         })
  18.     }}
  19.     <div class="card-body">
  20.         <h4 class="card-title pricing-card-title text-uppercase">{{ pimcore_input('title' ~ suffix) }}</h4>
  21.         <p class="card-text">
  22.             {{
  23.                     pimcore_wysiwyg('text' ~ suffix, {
  24.                     height: 100,
  25.                     enterMode: 2,
  26.                 })
  27.             }}
  28.         </p>
  29.         <p>
  30.             {{
  31.                 pimcore_link('link' ~ suffix, {
  32.                     class: 'btn btn-lg btn-secondary'
  33.                 })
  34.             }}
  35.         </p>
  36.     </div>
  37. </div>