src/Develey/MautnerTonicBundle/Resources/views/Areas/StageSpecific/view.html.twig line 1

Open in your IDE?
  1. {% set spacingSelect %}
  2.     {{ pimcore_checkbox("checkSpacing", {
  3.         "reload": true
  4.     }) }}
  5. {% endset %}
  6. {% set SpacingTop = '' %}
  7. {% set brickAnchorId = '' %}
  8. {% if pimcore_checkbox('checkSpacing').isChecked() %}
  9.     {% set SpacingTop = 'offset-top' %}
  10. {% endif %}
  11. {% set UID = uniqid() %}
  12. {% if pimcore_input("brickAnchorIdInput") is not empty %}
  13.     {% set brickAnchorId = pimcore_input("brickAnchorIdInput")|lowercase %}
  14. {% endif %}
  15. {% if editmode %}
  16.     <div class="flex-col offset-bottom-single">
  17.         <div class="col xs-12 m-6 l-3">
  18.             <span class="hint">{{ 'ID für Anchorlinks vergeben' |trans }}</span>
  19.             {{ pimcore_input("brickAnchorIdInput") }}
  20.         </div>
  21.         <div class="col xs-12 m-6 l-2">
  22.             <div class="select-items">
  23.                 <div class="hint">
  24.                     {{ 'Abstand nach oben?' |trans }}
  25.                 </div>
  26.                 {{ spacingSelect }}
  27.             </div>
  28.         </div>
  29.     </div>
  30.     <div class="flex-col offset-bottom-single">
  31.         <div class="col xs-12 m-6 l-3">
  32.             <span class="hint">{{ 'Hintergrundbild festlegen' |trans }}</span>
  33.             {{ pimcore_image("StageSpecificBackground", {
  34.                 "title": "Drag your image here",
  35.                 "width": 300,
  36.                 "height": 150,
  37.                 "thumbnail": "StageSpecificBackground" ~ bundleName,
  38.                 "reload": true
  39.             }) }}
  40.         </div>
  41.     </div>
  42. <div class="admin">
  43.     {% endif %}
  44.     <div id="{{ brickAnchorId }}" class="stage {{ SpacingTop }}">
  45.         <div id="{{ 'uid' ~ UID |raw }}" class="stage-image specific">
  46.             <div class="image">
  47.                 {% if pimcore_image("StageSpecificBackground").getThumbnail("StageSpecificBackground"  ~ bundleName) is not empty %}
  48.                     {{ pimcore_image("StageSpecificBackground").getThumbnail("StageSpecificBackground"  ~ bundleName).getHTML() |raw }}
  49.                 {% endif %}
  50.                 {#IE Fix for thumbnails rendering start#}
  51.                 <script type='text/javascript'>
  52.                     var waitForJQuery = setInterval(function () {
  53.                         if (typeof $ != 'undefined') {
  54.                             $(function() {
  55.                                 if (navigator.userAgent.match(/msie/i) || navigator.userAgent.match(/trident/i) ){
  56.                                     $(".stage-image.specific").css({
  57.                                         background: "url( {{ pimcore_image("StageSpecificBackground").getSrc() }} ) center right 100%/cover no-repeat"
  58.                                     });
  59.                                     $(".stage-image.main.specific img").hide();
  60.                                 }
  61.                             });
  62.                             clearInterval(waitForJQuery);
  63.                         }
  64.                     }, 50);
  65.                 </script>
  66.                 {#IE Fix for thumbnails rendering end#}
  67.             </div>
  68.             <div class="text-container">
  69.                 <div class="main-content flex-col">
  70.                     <div class="col xs-12">
  71.                         <div class="text">
  72.                             <h2>
  73.                                 {{ pimcore_input("specificStageHeadline", {
  74.                                     "placeholder": 'Headline'
  75.                                 })|trademark }}
  76.                             </h2>
  77.                             {% if pimcore_input("specificStagSubline") is not empty %}
  78.                                 <h3>
  79.                                     {{ pimcore_input("specificStagSubline", {
  80.                                         "placeholder": 'Subline'
  81.                                     })|trademark }}
  82.                                 </h3>
  83.                             {% endif %}
  84.                         </div>
  85.                     </div>
  86.                     <div class="col xs-12 content-wrapper">
  87.                         <div class="content-image">
  88.                             <div class="item">
  89.                                 <div class="text-only">
  90.                                     {{ pimcore_wysiwyg("WYSIWYGTextarea", {
  91.                                         "height": 100,
  92.                                         "width": 200,
  93.                                         "customConfig": '/bundles/core/js/ckeditor_config.js'
  94.                                     }) }}
  95.                                 </div>
  96.                             </div>
  97.                             <div class="item">
  98.                                 <div class="text-only">
  99.                                     {{ pimcore_link('readMore', {'class': "button btn-default"}) }}
  100.                                 </div>
  101.                             </div>
  102.                         </div>
  103.                         <div class="center-image flex-col box-center">
  104.                             {{ pimcore_image("specificStageImageCenter", {
  105.                                 "title": "Drag your image here",
  106.                                 "thumbnail": "specificStageImageCenter" ~ bundleName
  107.                             }) }}
  108.                         </div>
  109.                         <div class="content-image col-right">
  110.                             <div class="item">
  111.                                 <div class="image">
  112.                                     {{ pimcore_image("specificStagSublineIcon3", {
  113.                                         "title": "Drag your image here",
  114.                                         "thumbnail": "specificStagSublineIcon3" ~ bundleName
  115.                                     }) }}
  116.                                 </div>
  117.                                 <div class="text-only">
  118.                                     <h4>
  119.                                         {{ pimcore_input("specificStageHeadlinePart3", {
  120.                                             "placeholder": 'Headline Part 3'
  121.                                         })|trademark }}
  122.                                     </h4>
  123.                                 </div>
  124.                             </div>
  125.                             <div class="item">
  126.                                 <div class="image">
  127.                                     {{ pimcore_image("specificStagSublineIcon4", {
  128.                                         "title": "Drag your image here",
  129.                                         "thumbnail": "specificStagSublineIcon4" ~ bundleName
  130.                                     }) }}
  131.                                 </div>
  132.                                 <div class="text-only">
  133.                                     <h4>
  134.                                         {{ pimcore_input("specificStageHeadlinePart4", {
  135.                                             "placeholder": 'Headline Part 4'
  136.                                         })|trademark }}
  137.                                     </h4>
  138.                                 </div>
  139.                             </div>
  140.                         </div>
  141.                     </div>
  142.                 </div>
  143.             </div>
  144.         </div>
  145.     </div>
  146.     {% if editmode %}
  147. </div>
  148. {% endif %}