templates/areas/boutique-body/view.html.twig line 1

Open in your IDE?
  1. <div class="container product-container">
  2.     <div class="row justify-content-center boutique-body">
  3.         <div class="col-lg-6 order-lg-2 align-middle transparent-bg boutique-text d-flex">
  4.             <div>
  5.                 {% if editmode %}
  6.                     {{ pimcore_input("title", {
  7.                         "placeholder": 'Cím',
  8.                         "class": "boutique-edit-title"
  9.                     }) }}
  10.                     {{ pimcore_wysiwyg("content", {
  11.                         "height": 200,
  12.                         "placeholder": "Szöveg",
  13.                         "class": "boutique-edit-box"
  14.                     }) }}
  15.                 {% else %}
  16.                     {% set title = pimcore_input("title") %}
  17.                     {% set content = pimcore_wysiwyg("content") %}
  18.                     {% if title and title.getText() %}
  19.                         <h4>{{ title.render() | raw }}</h4>
  20.                     {% endif %}
  21.                     {% if content and not content.isEmpty() %}
  22.                         {{ content.render() | raw }}
  23.                     {% endif %}
  24.                 {% endif %}
  25.             </div>
  26.         </div>
  27.         <div class="col-lg-6 order-lg-1 transparent-bg d-flex justify-content-center">
  28.             {% if editmode %}
  29.                 {{ pimcore_wysiwyg("map", {
  30.                     "height": 200,
  31.                     "placeholder": "Térkép",
  32.                     "class": "boutique-edit-map"
  33.                 }) }}
  34.             {% else %}
  35.                 {% set map = pimcore_wysiwyg("map") %}
  36.                 {% if map and not map.isEmpty() %}
  37.                     {{ map.getData() | raw }}
  38.                 {% endif %}
  39.             {% endif %}
  40.         </div>
  41.     </div>
  42. </div>
  43. {% do pimcore_head_script().captureStart('MAP') %}
  44. const iframe = document.querySelector("iframe");
  45. const iframediv = iframe.parentNode.parentNode;
  46. const iframetobewidth = iframediv.offsetWidth - 80;
  47. iframe.width = iframetobewidth > 600 ? 600 : iframetobewidth;
  48. {% do pimcore_head_script().captureEnd() %}