src/Develey/TabascoBundle/Resources/views/Areas/TeaserSpecific/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. {% 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-3">
  22.             <div class="select-items">
  23.                 <div class="hint">
  24.                     {{ 'Kein 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' }}</span>
  33.             {{ pimcore_image("teaserSpecificBackground", {
  34.                 "title": "Drag your image here",
  35.                 "width": 300,
  36.                 "height": 150,
  37.                 "thumbnail": "teaserSpecificBackground" ~ bundleName,
  38.                 "reload": true
  39.             }) }}
  40.         </div>
  41.     </div>
  42. <div class="admin teaser teaser-specific">
  43.     {% endif %}
  44.     <div id="{{ brickAnchorId }}" class="section {{ noSpacingTop }}">
  45.         <div id="{{ 'uid' ~ UID |raw }}" class="teaser teaser-specific">
  46.             <div class="teaser_teaser-specific_wrapper">
  47.                 <div class="headline-fixed-left uppercase text-only">
  48.                     <h3>
  49.                     <span>{{ pimcore_input("teaserSpecificHeadlineOne", {
  50.                             "placeholder": 'Special Headline Part 1'
  51.                         })|trademark }}</span>
  52.                         <strong> {{ pimcore_input("teaserSpecificHeadlineTwo", {
  53.                                 "placeholder": 'Part 2'
  54.                             })|trademark }}</strong>
  55.                         <strong> {{ pimcore_input("teaserSpecificHeadlineThree", {
  56.                                 "placeholder": 'Part 3'
  57.                             })|trademark }}</strong>
  58.                     </h3>
  59.                 </div>
  60.                 <div class="teaser-specific-container offset main-content">
  61.                     <div class="text-center content-container teaser-specific-container-inner">
  62.                         <div class="headline-container">
  63.                             <div class="teaser-image-front-wrapper">
  64.                                 <div class="teaser-image-front">
  65.                                     {% if editmode %}Produktbild:{% endif %}
  66.                                     {{ pimcore_image("teaserSpecificBottle", {
  67.                                         "title": "Drag your image here",
  68.                                         "thumbnail": "teaserSpecificBottle"~ bundleName
  69.                                     }) }}
  70.                                 </div>
  71.                             </div>
  72.                             {% if pimcore_input("teaserSpecificHeadline") is not empty %}
  73.                                 <div class="teaser-content-right-inner">
  74.                                     <div class="teaser-headline text-only">
  75.                                         <div class="headline">
  76.                                             <h2>{{ pimcore_input("teaserSpecificHeadline", {
  77.                                                     "placeholder": 'Headline'
  78.                                                 })|trademark }}</h2>
  79.                                         </div>
  80.                                         <div class="teaser-cta">
  81.                                             {{ pimcore_link('teaserSpecificLink', {'class': "button btn-default"}) }}
  82.                                         </div>
  83.                                     </div>
  84.                                 </div>
  85.                             {% endif %}
  86.                         </div>
  87.                         <div class="image-content">
  88.                             <div class="teaser-content-right">
  89.                                 <div class="teaser-content-right-inner">
  90.                                     <div class="image">
  91.                                         {{ pimcore_image("teaserSpecificIcon1", {
  92.                                             "title": "Drag your image here",
  93.                                             "thumbnail": "teaserSpecificIcon1" ~ bundleName,
  94.                                             "reload": true
  95.                                         }) }}
  96.                                     </div>
  97.                                     <div class="xs-8 m-6 text-only">
  98.                                         <h4>{{ pimcore_input("teaserSpecificHeadlinePart1", {
  99.                                                 "placeholder": 'Headline for first Icon'
  100.                                             }) }}</h4>
  101.                                         <p>{{ pimcore_input("teaserSpecificContentPart1", {
  102.                                                 "placeholder": 'Content for first Icon'
  103.                                             }) }}</p>
  104.                                     </div>
  105.                                 </div>
  106.                             </div>
  107.                             <div class="teaser-content-right">
  108.                                 <div class="teaser-content-right-inner">
  109.                                     <div class="image">
  110.                                         {{ pimcore_image("teaserSpecificIcon2", {
  111.                                             "title": "Drag your image here",
  112.                                             "thumbnail": "teaserSpecificIcon2" ~ bundleName,
  113.                                             "reload": true
  114.                                         }) }}
  115.                                     </div>
  116.                                     <div class="xs-8 m-6 text-only">
  117.                                         <h4>{{ pimcore_input("teaserSpecificHeadlinePart2", {
  118.                                                 "placeholder": 'Headline for second Icon'
  119.                                             }) }}</h4>
  120.                                         <p>{{ pimcore_input("teaserSpecificContentPart2",{
  121.                                                 "placeholder": 'Content for second Icon'
  122.                                             }) }}</p>
  123.                                     </div>
  124.                                 </div>
  125.                             </div>
  126.                             <div class="teaser-content-right">
  127.                                 <div class="teaser-content-right-inner">
  128.                                     <div class="image">
  129.                                         {{ pimcore_image("teaserSpecificIcon3", {
  130.                                             "title": "Drag your image here",
  131.                                             "thumbnail": "teaserSpecificIcon3" ~ bundleName,
  132.                                             "reload": true
  133.                                         }) }}
  134.                                     </div>
  135.                                     <div class="xs-8 m-6 text-only">
  136.                                         <h4>{{ pimcore_input("teaserSpecificHeadlinePart3", {
  137.                                                 "placeholder": 'Headline for third Icon'
  138.                                             }) }}</h4>
  139.                                         <p>{{ pimcore_input("teaserSpecificContentPart3",{
  140.                                                 "placeholder": 'Content for third Icon'
  141.                                             }) }}</p>
  142.                                     </div>
  143.                                 </div>
  144.                             </div>
  145.                             <div class="teaser-content-right">
  146.                                 <div class="teaser-content-right-inner">
  147.                                     <div class="image">
  148.                                         {{ pimcore_image("teaserSpecificIcon4", {
  149.                                             "title": "Drag your image here",
  150.                                             "thumbnail": "teaserSpecificIcon4" ~ bundleName,
  151.                                             "reload": true
  152.                                         }) }}
  153.                                     </div>
  154.                                     <div class="xs-8 m-6 text-only">
  155.                                         <h4>{{ pimcore_input("teaserSpecificHeadlinePart4", {
  156.                                                 "placeholder": 'Headline for fourth Icon'
  157.                                             }) }}</h4>
  158.                                         <p>{{ pimcore_input("teaserSpecificContentPart4", {
  159.                                                 "placeholder": 'Content for fourth Icon'
  160.                                             }) }}</p>
  161.                                     </div>
  162.                                 </div>
  163.                             </div>
  164.                         </div>
  165.                     </div>
  166.                 </div>
  167.                 <div class="background-image">
  168.                     {% if pimcore_image("teaserSpecificBackground").getThumbnail("teaserSpecificBackground" ~ bundleName) is not empty %}
  169.                         {{ pimcore_image("teaserSpecificBackground").getThumbnail("teaserSpecificBackground" ~ bundleName).getHTML() |raw }}
  170.                     {% endif %}
  171.                     {#IE Fix for thumbnails rendering start#}
  172.                     <script type='text/javascript'>
  173.                       var waitForJQuery = setInterval(function () {
  174.                         if (typeof $ != 'undefined') {
  175.                           $(function() {
  176.                             if (navigator.userAgent.match(/msie/i) || navigator.userAgent.match(/trident/i) ){
  177.                               $(".teaser.teaser-specific .background-image").css({
  178.                                 position: "absolute",
  179.                                 width: "100%",
  180.                                 height: "100%",
  181.                                 background: "url( {{ pimcore_image("teaserSpecificBackground").getSrc() }} ) center right 100%/cover no-repeat"
  182.                               });
  183.                               $(".teaser.teaser-specific .background-image img").hide();
  184.                             }
  185.                           });
  186.                           clearInterval(waitForJQuery);
  187.                         }
  188.                       }, 50);
  189.                     </script>
  190.                     {#IE Fix for thumbnails rendering end#}
  191.                 </div>
  192.             </div>
  193.         </div>
  194.     </div>
  195.     {% if editmode %}
  196. </div>
  197. {% endif %}