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