src/CoreBundle/Resources/views/Areas/Text3ColBackground/view.html.twig line 1

Open in your IDE?
  1. {% set spacingSelect %}
  2.     {{ pimcore_checkbox("checkSpacing", {
  3.         "reload": true
  4.     }) }}
  5. {% endset %}
  6. {% set noSpacingTop = '' %}
  7. {% set brickAnchorId = '' %}
  8. {% if pimcore_checkbox('checkSpacing').isChecked() %}
  9.     {% set noSpacingTop = 'no-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. {% set imageAttributes = {
  16. "attributes" : {
  17. "data-speed": "-1"
  18. }
  19. } %}
  20. {% if editmode %}
  21.     <div class="flex-col offset-bottom-single">
  22.         <div class="col xs-12 m-6 l-3">
  23.             <span class="hint">{{ 'admin.brick.hint.anchorId' |trans }}</span>
  24.             {{ pimcore_input("brickAnchorIdInput") }}
  25.         </div>
  26.         <div class="col xs-12 m-6 l-3">
  27.             <div class="select-items">
  28.                 <div class="hint">
  29.                     {{ 'admin.brick.hint.paddingTop' |trans }}
  30.                 </div>
  31.                 {{ spacingSelect }}
  32.             </div>
  33.         </div>
  34.     </div>
  35.     <div class="flex-col offset-bottom-single">
  36.         <div class="col xs-12 m-6 l-6">
  37.             <span class="hint">{{ 'admin.brick.hint.addBackgroundimage' }}</span>
  38.             {{ pimcore_image("teaserText3ColBackground", {
  39.                 "title": "Drag your image here",
  40.                 "width": 400,
  41.                 "thumbnail": "teaserText3ColBackground" ~ bundleName,
  42.                 "reload": true
  43.             }) }}
  44.         </div>
  45.     </div>
  46. {% endif %}
  47. <div id="{{ 'uid' ~ UID |raw }}" class="section">
  48.     <div class="text-image has-background-image js ">
  49.         <div class="flex-column box-center">
  50.             <div class="background-image">
  51.                 <div class="image">
  52.                     {% set teaserTextBackgroundImage = pimcore_image("teaserText3ColBackground").getThumbnail("teaserText3ColBackground" ~ bundleName) %}
  53.                     {% if teaserTextBackgroundImage is not empty %}
  54.                         {{ teaserTextBackgroundImage.getHTML(imageAttributes) |raw }}
  55.                         {#IE Fix for thumbnails rendering start#}
  56.                         <script type='text/javascript'>
  57.                             var waitForJQuery = setInterval(function () {
  58.                                 if (typeof $ != 'undefined') {
  59.                                     $(function() {
  60.                                         if (navigator.userAgent.match(/msie/i) || navigator.userAgent.match(/trident/i) ){
  61.                                             $(".text-image.has-background-image .background-image .image").css({
  62.                                                 position: "absolute",
  63.                                                 width: "100%",
  64.                                                 height: "100%",
  65.                                                 background: "url( {{ pimcore_image("teaserSpecificBackground").getSrc() }} ) center right 100%/cover no-repeat"
  66.                                             });
  67.                                             $(".text-image.has-background-image .background-image img").hide();
  68.                                         }
  69.                                     });
  70.                                     clearInterval(waitForJQuery);
  71.                                 }
  72.                             }, 50);
  73.                         </script>
  74.                         {#IE Fix for thumbnails rendering end#}
  75.                     {% endif %}
  76.                 </div>
  77.             </div>
  78.             <div class="content-container">
  79.                 <div class="main-content flex-col box-center box-align-center text-center offset">
  80.                     <div class="col xs-12 m-10">
  81.                         <div class="text-only">
  82.                             <div class="headline">
  83.                                 <h2>{{ pimcore_input("teaserText3ColBackgroundHeadline", {
  84.                                         "placeholder": 'Headline'
  85.                                     })|trademark }}
  86.                                 </h2>
  87.                             </div>
  88.                         </div>
  89.                     </div>
  90.                     <div class="xs-12 flex-col box-center content-image">
  91.                         <div class="col xs-12 s-6 l-3 flex-column box-center box-align-center">
  92.                             <div class="image">
  93.                                 {{ pimcore_image("teaserText3ColSublineIcon1", {
  94.                                     "title": "Drag your image here",
  95.                                     "width": 50,
  96.                                     "height": 60,
  97.                                     "thumbnail": "teaserText3ColSublineIcon1" ~ bundleName,
  98.                                     "reload": true
  99.                                 }) }}
  100.                             </div>
  101.                             <div class="text-only">
  102.                                 <h4>{{ pimcore_input("teaserText3ColBackgroundHeadlinePart1") }}</h4>
  103.                             </div>
  104.                         </div>
  105.                         <div class="col xs-12 s-6 l-3 flex-column box-center box-align-center">
  106.                             <div class="image">
  107.                                 {{ pimcore_image("teaserText3ColSublineIcon2", {
  108.                                     "title": "Drag your image here",
  109.                                     "width": 50,
  110.                                     "height": 60,
  111.                                     "thumbnail": "teaserText3ColSublineIcon2" ~ bundleName,
  112.                                     "reload": true
  113.                                 }) }}
  114.                             </div>
  115.                             <div class="text-only">
  116.                                 <h4>{{ pimcore_input("teaserText3ColBackgroundHeadlinePart2") }}</h4>
  117.                             </div>
  118.                         </div>
  119.                         <div class="col xs-12 s-6 l-3 flex-column box-center box-align-center">
  120.                             <div class="image">
  121.                                 {{ pimcore_image("teaserText3ColSublineIcon3", {
  122.                                     "title": "Drag your image here",
  123.                                     "width": 50,
  124.                                     "height": 60,
  125.                                     "thumbnail": "teaserText3ColSublineIcon3" ~ bundleName,
  126.                                     "reload": true
  127.                                 }) }}
  128.                             </div>
  129.                             <div class="text-only">
  130.                                 <h4>{{ pimcore_input("teaserText3ColBackgroundHeadlinePart3")|trademark }}</h4>
  131.                             </div>
  132.                         </div>
  133.                     </div>
  134.                 </div>
  135.             </div>
  136.         </div>
  137.     </div>
  138. </div>