templates/Snippets/flatrate-teaser-snippet.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('Layout/includes/css.html.twig') }}
  3.     {{ include('Layout/includes/encore.html.twig', {
  4.         'staticDebugMode': staticDebugMode,
  5.         'file': 'js/content'
  6.     }) }}
  7.     <div class="editmode-box editmode-box--info mb-5 text-left">
  8.         <div class="editmode-box__header">Settings</div>
  9.         <div>
  10.             <strong>Teaserbild</strong>
  11.             {{ pimcore_image('flatrate_image', {width: 250}) }}
  12.             <strong>Badgetext</strong>
  13.             {{ pimcore_input('flatrate_badge_text') }}
  14.             <strong>Title</strong>
  15.             {{ pimcore_input('flatrate_title') }}
  16.             <strong>Location</strong>
  17.             {{ pimcore_input('flatrate_location') }}
  18.             <strong>Text</strong>
  19.             {{ pimcore_wysiwyg('flatrate_text') }}
  20.             <strong>Link</strong>
  21.             {{ pimcore_link('flatrate_link') }}
  22.         </div>
  23.     </div>
  24. <div class="col-md-3 vertical-gutter__item">
  25. {% endif %}
  26.     {{ include('Includes/Teaser/flatrate-teaser.html.twig', {
  27.         image: not pimcore_image('flatrate_image').empty ? pimcore_image('flatrate_image') : null ,
  28.         badgeText: pimcore_input('flatrate_badge_text').data,
  29.         link: pimcore_link('flatrate_link').href,
  30.         title: pimcore_input('flatrate_title').data,
  31.         location: pimcore_input('flatrate_location').data,
  32.         wysiwyg: pimcore_wysiwyg('flatrate_text').data,
  33.         linktext:  pimcore_link('flatrate_link').text,
  34.         linktarget: pimcore_link('flatrate_link').target
  35.     }) }}
  36. {% if editmode %}
  37.     </div>
  38. {% endif %}