templates/areas/information-cards/view.html.twig line 1

Open in your IDE?
  1. <div class="information-cards-wrapper">
  2.     <div class="container">
  3.         <div class="row">
  4.             <div class="col-lg-12 mb-5">
  5.                 <div class="security-information-heading animate__animated animate__fadeInLeft animate__slower wow">
  6.                     {{ pimcore_wysiwyg('security-information-heading', {
  7.                         "toolbarGroups": [
  8.                             {
  9.                                 "name": 'WYSIWYG 1',
  10.                                 "groups": [ 'basicstyles', 'colors', 'links', 'styles' ]
  11.                             }
  12.                         ],
  13.                         "placeholder": 'Heading...' | trans
  14.                     }) }}
  15.                 </div>
  16.             </div>
  17.         </div>
  18.         <div class="information-cards">
  19.             {% for i in pimcore_block('information-cards', {class: 'information-cards'}).iterator %}
  20.                 <div class="information-cards-card">
  21.                     <div class="information-cards-card-image">
  22.                         {% if editmode %}
  23.                             {{ pimcore_relation("information-cards-",{width: 300}) }}
  24.                         {% elseif not editmode and not pimcore_relation("information-cards-").isEmpty() %}
  25.                             {% if pimcore_relation("information-cards-").getElement.type == 'text' or
  26.                                 (pimcore_relation("information-cards-").getElement.type == 'image' and pimcore_relation("information-cards-").getElement.isVectorGraphic())
  27.                             %}
  28.                                 {{ pimcore_relation("information-cards-").getElement.getData | raw }}
  29.                             {% elseif pimcore_relation("information-cards-").getElement.type == 'image' %}
  30.                                 {{ pimcore_relation("information-cards-").getElement.thumbnail('information-card').html({}) | raw }}
  31.                             {% endif %}
  32.                         {% endif %}
  33.                     </div>
  34.                     <div class="information-cards-card-heading">
  35.                         {{ pimcore_wysiwyg('information-cards-card-heading-', {
  36.                             "toolbarGroups": [
  37.                                 {
  38.                                     "name": 'WYSIWYG 1',
  39.                                     "groups": [ 'basicstyles', 'colors', 'links', 'styles' ]
  40.                                 }
  41.                             ],
  42.                             "placeholder": 'Card heading...' | trans
  43.                         }) }}
  44.                     </div>
  45.                     <div class="information-cards-card-description">
  46.                         {{ pimcore_wysiwyg('information-cards-card-description-', {
  47.                             "toolbarGroups": [
  48.                                 {
  49.                                     "name": 'WYSIWYG 1',
  50.                                     "groups": [ 'basicstyles', 'colors', 'links', 'styles' ]
  51.                                 }
  52.                             ],
  53.                             "placeholder": 'Card description...' | trans
  54.                         }) }}
  55.                     </div>
  56.                 </div>
  57.             {% endfor %}
  58.         </div>
  59.         <div class="information-cards-button">
  60.             {{ pimcore_link('information-cards-button', {class : 'btn btn-primary'}) }}
  61.         </div>
  62.     </div>
  63. </div>