src/Develey/LoewensenfBundle/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-specific-container offset main-content">
  47.                 <div class="text-center content-container teaser-specific-container-inner">
  48.                     <div class="headline-container">
  49.                         <div class="teaser-image-front-wrapper">
  50.                             <div class="teaser-image-front">
  51.                                 {{ pimcore_image("teaserSpecificBottle", {
  52.                                     "title": "Drag your image here",
  53.                                     "thumbnail": "teaserSpecificBottle" ~ bundleName,
  54.                                 }) }}
  55.                             </div>
  56.                         </div>
  57.                         <div class="teaser-content-right-inner">
  58.                             <div class="teaser-headline text-only">
  59.                                 <div class="special-headline">
  60.                                     <h1>
  61.                                         {% if not editmode and pimcore_input("mainStageHeadlineOne") is not empty %}
  62.                                         <div class="special-headline-first">
  63.                                             <div class="highlight-background">
  64.                                                     <span>
  65.                                         {% endif %}
  66.                                                         {{ pimcore_input("mainStageHeadlineOne", {
  67.                                                             "placeholder": 'Headline Part 1'
  68.                                                         })|trademark }}
  69.                                         {% if not editmode and pimcore_input("mainStageHeadlineOne") is not empty %}
  70.                                                   </span>
  71.                                             </div>
  72.                                         </div>
  73.                                         {% endif %}
  74.                                         {% if not editmode and pimcore_input("mainStageHeadlineTwo") is not empty %}
  75.                                         <div class="special-headline-second">
  76.                                             <div class="highlight-background">
  77.                                                     <span>
  78.                                         {% endif %}
  79.                                                         {{ pimcore_input("mainStageHeadlineTwo", {
  80.                                                             "placeholder": 'Headline Part 2'
  81.                                                         })|trademark }}
  82.                                                         {% if not editmode and pimcore_input("mainStageHeadlineTwo") is not empty %}
  83.                                                   </span>
  84.                                             </div>
  85.                                         </div>
  86.                                         {% endif %}
  87.                                         {% if not editmode and pimcore_input("mainStageHeadlineThree") is not empty %}
  88.                                         <div class="special-headline-third">
  89.                                             <div class="highlight-background">
  90.                                                     <span class="highlight-text">
  91.                                         {% endif %}
  92.                                                         {{ pimcore_input("mainStageHeadlineThree", {
  93.                                                             "placeholder": 'Headline Part 3'
  94.                                                         })|trademark }}
  95.                                         {% if not editmode and pimcore_input("mainStageHeadlineThree") is not empty %}
  96.                                                     </span>
  97.                                             </div>
  98.                                         </div>
  99.                                         {% endif %}
  100.                                     </h1>
  101.                                 </div>
  102.                                 <div class="teaser-cta">
  103.                                     {{ pimcore_link('teaserSpecificLink2', {'class': "button btn-default"}) }}
  104.                                 </div>
  105.                             </div>
  106.                         </div>
  107.                     </div>
  108.                     <div class="image-content">
  109.                         <div class="teaser-content-right">
  110.                             <div class="teaser-content-right-inner">
  111.                                 <div class="image">
  112.                                     {{ pimcore_image("teaserSpecificIcon1", {
  113.                                         "title": "Drag your image here",
  114.                                         "thumbnail": "teaserSpecificIcon1" ~ bundleName,
  115.                                         "reload": true
  116.                                     }) }}
  117.                                 </div>
  118.                                 <div class="xs-8 m-6 text-only">
  119.                                     <h4>{{ pimcore_input("teaserSpecificHeadlinePart1", {
  120.                                             "placeholder": 'Headline for first Icon'
  121.                                         }) }}</h4>
  122.                                     <p>{{ pimcore_input("teaserSpecificContentPart1", {
  123.                                             "placeholder": 'Content for first Icon'
  124.                                         }) }}</p>
  125.                                 </div>
  126.                             </div>
  127.                         </div>
  128.                         <div class="teaser-content-right">
  129.                             <div class="teaser-content-right-inner">
  130.                                 <div class="image">
  131.                                     {{ pimcore_image("teaserSpecificIcon2", {
  132.                                         "title": "Drag your image here",
  133.                                         "thumbnail": "teaserSpecificIcon2" ~ bundleName,
  134.                                         "reload": true
  135.                                     }) }}
  136.                                 </div>
  137.                                 <div class="xs-8 m-6 text-only">
  138.                                     <h4>{{ pimcore_input("teaserSpecificHeadlinePart2", {
  139.                                             "placeholder": 'Headline for second Icon'
  140.                                         }) }}</h4>
  141.                                     <p>{{ pimcore_input("teaserSpecificContentPart2",{
  142.                                             "placeholder": 'Content for second Icon'
  143.                                         }) }}</p>
  144.                                 </div>
  145.                             </div>
  146.                         </div>
  147.                         <div class="teaser-content-right">
  148.                             <div class="teaser-content-right-inner">
  149.                                 <div class="image">
  150.                                     {{ pimcore_image("teaserSpecificIcon3", {
  151.                                         "title": "Drag your image here",
  152.                                         "thumbnail": "teaserSpecificIcon3" ~ bundleName,
  153.                                         "reload": true
  154.                                     }) }}
  155.                                 </div>
  156.                                 <div class="xs-8 m-6 text-only">
  157.                                     <h4>{{ pimcore_input("teaserSpecificHeadlinePart3", {
  158.                                             "placeholder": 'Headline for third Icon'
  159.                                         }) }}</h4>
  160.                                     <p>{{ pimcore_input("teaserSpecificContentPart3",{
  161.                                             "placeholder": 'Content for third Icon'
  162.                                         }) }}</p>
  163.                                 </div>
  164.                             </div>
  165.                         </div>
  166.                         <div class="teaser-content-right">
  167.                             <div class="teaser-content-right-inner">
  168.                                 <div class="image">
  169.                                     {{ pimcore_image("teaserSpecificIcon4", {
  170.                                         "title": "Drag your image here",
  171.                                         "thumbnail": "teaserSpecificIcon4" ~ bundleName,
  172.                                         "reload": true
  173.                                     }) }}
  174.                                 </div>
  175.                                 <div class="xs-8 m-6 text-only">
  176.                                     <h4>{{ pimcore_input("teaserSpecificHeadlinePart4", {
  177.                                             "placeholder": 'Headline for fourth Icon'
  178.                                         }) }}</h4>
  179.                                     <p>{{ pimcore_input("teaserSpecificContentPart4", {
  180.                                             "placeholder": 'Content for fourth Icon'
  181.                                         }) }}</p>
  182.                                 </div>
  183.                             </div>
  184.                         </div>
  185.                     </div>
  186.                 </div>
  187.             </div>
  188.             <div class="background-image">
  189.                 {% if pimcore_image("teaserSpecificBackground").getThumbnail("teaserSpecificBackground" ~ bundleName) is not empty %}
  190.                     {{ pimcore_image("teaserSpecificBackground").getThumbnail("teaserSpecificBackground" ~ bundleName).getHTML() |raw }}
  191.                 {% endif %}
  192.                 {#IE Fix for thumbnails rendering start#}
  193.                 <script type='text/javascript'>
  194.                     var waitForJQuery = setInterval(function () {
  195.                         if (typeof $ != 'undefined') {
  196.                             $(function() {
  197.                                 if (navigator.userAgent.match(/msie/i) || navigator.userAgent.match(/trident/i) ){
  198.                                     $(".teaser.teaser-specific .background-image").css({
  199.                                         position: "absolute",
  200.                                         width: "100%",
  201.                                         height: "100%",
  202.                                         background: "url( {{ pimcore_image("teaserSpecificBackground").getSrc() }} ) center right 100%/cover no-repeat"
  203.                                     });
  204.                                     $(".teaser.teaser-specific .background-image img").hide();
  205.                                 }
  206.                             });
  207.                             clearInterval(waitForJQuery);
  208.                         }
  209.                     }, 50);
  210.                 </script>
  211.                 {#IE Fix for thumbnails rendering end#}
  212.             </div>
  213.         </div>
  214.     </div>
  215.     {% if editmode %}
  216. </div>
  217. {% endif %}