custom/plugins/Theme3S/src/Resources/views/storefront/layout/footer/footer.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}
  2. {% block layout_footer_inner_container %}
  3.     <div id="footercontent">
  4.         {% if page.header.activeLanguage.translationCode.code == 'en-GB' %}
  5.             {% sw_include '@Storefront/storefront/layout/footer/footer-content-en.html.twig' %}
  6.         {% elseif page.header.activeLanguage.translationCode.code == 'nl-NL'  %}
  7.             {% sw_include '@Storefront/storefront/layout/footer/footer-content-nl.html.twig' %}
  8.         {% elseif page.header.activeLanguage.translationCode.code == 'es-ES'  %}
  9.             {% sw_include '@Storefront/storefront/layout/footer/footer-content-es.html.twig' %}
  10.         {% elseif page.header.activeLanguage.translationCode.code == 'fr-FR'  %}
  11.             {% sw_include '@Storefront/storefront/layout/footer/footer-content-fr.html.twig' %}
  12.         {% elseif page.header.activeLanguage.translationCode.code == 'it-IT'  %}
  13.             {% sw_include '@Storefront/storefront/layout/footer/footer-content-it.html.twig' %}
  14.         {% else %}
  15.             {% sw_include '@Storefront/storefront/layout/footer/footer-content-de.html.twig' %}
  16.         {% endif %}
  17.     </div>
  18.     <script type="text/javascript">
  19. /*
  20.         $(window).scroll(function() {
  21.             if(window.scrollY >= 1) {
  22.                 $("#body").addClass("scrolled");
  23.             }
  24.             if(window.scrollY <= 0) {
  25.                 $("#body").removeClass("scrolled");
  26.             }
  27.             myAnimFooter();
  28.             myAnimBlocks();
  29.             myAnimSection();
  30.         });
  31.         $(window).resize(function() {
  32.             doAnimations();
  33.             console.log("ANIMATIONS DONE");
  34.             myAnimFooter();
  35.             myAnimBlocks();
  36.             myAnimSection();
  37.         });
  38.         $(function() {
  39.             myAnimFooter();
  40.             myAnimBlocks();
  41.             myAnimSection();
  42.         });
  43.         //FOOTER LINIEN ANIMATION
  44.         function myAnimFooter() {
  45.             $('.animElement').each(function(){
  46.                 //let top = calcTopOffset(this);
  47.                 let top = this.getBoundingClientRect().top + window.scrollY;
  48.                 console.log(top);
  49.                 let topFromBottom = (top - window.innerHeight) * -1;
  50.                 if (topFromBottom >= 50) {
  51.                     $(this).addClass('animStarted');
  52.                     setTimeout(function() {
  53.                         $('#footer .animElement2').each(function(i){
  54.                             let row = $(this);
  55.                             setTimeout(function() {
  56.                                 row.addClass('animStarted2');
  57.                             }, 700*i);
  58.                         });
  59.                     }, 700);
  60.                 }
  61.             });
  62.         }
  63.         //CONTENT LINIEN ANIMATION
  64.         function myAnimSection() {
  65.             $('.animSection').each(function() {
  66.                 //let top = calcTopOffset(this);
  67.                 let top = this.getBoundingClientRect().top + window.scrollY;
  68.                 let topFromBottom = (top - window.innerHeight) * -1;
  69.                 if (topFromBottom >= 50) {
  70.                     $(this).addClass('animStarted');
  71.                     let parentEl = $(this).parent();
  72.                     setTimeout(function() {
  73.                         $('.animSection2', parentEl).each(function(i){
  74.                             let row = $(this);
  75.                             setTimeout(function() {
  76.                                 row.addClass('animStarted2');
  77.                             }, 1000*i);
  78.                         });
  79.                     }, 1000);
  80.                 }
  81.             });
  82.         }
  83.         //CONTENT LINIEN ANIMATION
  84.         function myAnimBlocks() {
  85.             $('.animBlock').each(function() {
  86.                 //let top = calcTopOffset(this);
  87.                 let top = this.getBoundingClientRect().top + window.scrollY;
  88.                 let topFromBottom = (top - window.innerHeight) * -1;
  89.                 if (topFromBottom >= 50) {
  90.                     $(this).addClass('animStarted');
  91.                 }
  92.             });
  93.         }
  94.         */
  95.     </script>
  96.     <script>
  97.     //VERSCHEIBT DIE SORTIER AUSWAHL BOX
  98.         var SortInput = $('#getsortinginput').html();
  99.         $('.cms-section-sidebar-sidebar-content').append(SortInput);
  100.         $('#getsortinginput').html("");
  101.         //VERSCHEIBT DIE HEADERICONS
  102.         var HeaderIcons = $('#ShopIcons').html();
  103.         $('.cms-section-sidebar-sidebar-content').append(HeaderIcons);
  104.         $('.rightProductSide').append(HeaderIcons);
  105.         $('#ShopIcons').html("");
  106.         var windowwith = $(window).width();
  107.         var contentheight = 0;
  108.         var TopMargin = 0;
  109.         $( document ).ready(function() {
  110.         setTimeout(
  111.           function()
  112.           {
  113.               contentheight = $(".cms-block-gallery-buybox").outerHeight(true);
  114.             TopMargin = contentheight;
  115.             $('.bottomPageCut').css("top", TopMargin);
  116.           }, 1500);
  117.         });
  118.         $( window ).resize(function() {
  119.             setBottomLine(0);
  120.             doAnimations();
  121.         });
  122.         function setBottomLine(){
  123.             contentheight = $(".cms-block-gallery-buybox").outerHeight(true);
  124.             TopMargin = contentheight;
  125.             $('.bottomPageCut').css("top", TopMargin);
  126.         }
  127.         var CrossSellingOffsetTop = 0;
  128.         var Footerheight = 0;
  129.         $( document ).ready(function() {
  130.             CrossSellingOffsetTop = $(".product-detail-cross-selling").outerHeight(true);
  131.             CrossSellingOffsetTop = CrossSellingOffsetTop - 70;
  132.             $('.bottomPageCut2').css("top", 50);
  133.             $('.bottomPageCut3').css("bottom", 0);
  134.         });
  135.         doAnimations();
  136.         function doAnimations(){
  137.             windowwith = $(window).width();
  138.             /* ANIMATIONEN */
  139.             setTimeout(function() {
  140.                 $(".pagecutline").addClass("draw");
  141.             }, 500);
  142.             setTimeout(function() {
  143.                 $(".bottomPageCut").addClass("draw");
  144.             }, 500);
  145.             setTimeout(function() {
  146.                 $(".bottomPageCut2").addClass("draw");
  147.             }, 500);
  148.             setTimeout(function() {
  149.                 $(".bottomPageCut3").addClass("draw");
  150.             }, 500);
  151.             setTimeout(function() {
  152.                 $(".line1").addClass("draw");
  153.             }, 500);
  154.             setTimeout(function() {
  155.                 $(".line2").addClass("draw");
  156.             }, 1000);
  157.             setTimeout(function() {
  158.                 $(".line3").addClass("draw");
  159.             }, 1500);
  160.             setTimeout(function() {
  161.                 $(".line4").addClass("draw");
  162.             }, 2000);
  163.             setTimeout(function() {
  164.                 $(".line5").addClass("draw");
  165.             }, 2500);
  166.             if(windowwith <= 1700){
  167.                 setTimeout(function() {
  168.                     $(".line6").addClass("draw");
  169.                 }, 3000);
  170.                 setTimeout(function() {
  171.                     $(".line7").addClass("draw");
  172.                 }, 3500);
  173.             }
  174.             if(windowwith <= 1300){
  175.                 setTimeout(function() {
  176.                     $(".line8").addClass("draw");
  177.                 }, 3000);
  178.                 setTimeout(function() {
  179.                     $(".line9").addClass("draw");
  180.                 }, 3500);
  181.             }
  182.             if(windowwith <= 850){
  183.                 setTimeout(function() {
  184.                     $(".line10").addClass("draw");
  185.                 }, 4000);
  186.                 setTimeout(function() {
  187.                     $(".line11").addClass("draw");
  188.                 }, 4500);
  189.                 setTimeout(function() {
  190.                     $(".line12").addClass("draw");
  191.                 }, 5000);
  192.                 setTimeout(function() {
  193.                     $(".line13").addClass("draw");
  194.                 }, 5500);
  195.                 setTimeout(function() {
  196.                     $(".line14").addClass("draw");
  197.                 }, 6000);
  198.                 setTimeout(function() {
  199.                     $(".line15").addClass("draw");
  200.                 }, 6500);
  201.                 setTimeout(function() {
  202.                     $(".line16").addClass("draw");
  203.                  }, 7000);
  204.                 setTimeout(function() {
  205.                     $(".line17").addClass("draw");
  206.                 }, 7500);
  207.             }
  208.             setTimeout(function() {
  209.                 $(".line1topdown").addClass("draw");
  210.             }, 1200);
  211.             setTimeout(function() {
  212.                 $(".line2topdown").addClass("draw");
  213.             }, 1700);
  214.             setTimeout(function() {
  215.                 $(".line3topdown").addClass("draw");
  216.             }, 2200);
  217.             setTimeout(function() {
  218.                 $(".line4topdown").addClass("draw");
  219.             }, 2700);
  220.             setTimeout(function() {
  221.                 $(".line5topdown").addClass("draw");
  222.             }, 3200);
  223.         }
  224.         $( ".custom-control-input" ).click(function() {
  225.             setTimeout(
  226.                 function()
  227.                 {
  228.                     doAnimations();
  229.                 }, 1500);
  230.         });
  231.         $( ".filter-panel-active-container" ).click(function() {
  232.             setTimeout(
  233.                 function()
  234.                 {
  235.                     doAnimations();
  236.                 }, 1500);
  237.         });
  238.     $( ".filter-active-remove" ).click(function() {
  239.         setTimeout(
  240.             function()
  241.             {
  242.                 doAnimations();
  243.             }, 1500);
  244.     });
  245.     $( ".filter-multi-select-list-item" ).click(function() {
  246.         setTimeout(
  247.             function()
  248.             {
  249.                 doAnimations();
  250.             }, 1500);
  251.     });
  252.     $( ".page-item" ).click(function() {
  253.         setTimeout(
  254.             function()
  255.             {
  256.                 doAnimations();
  257.             }, 2000);
  258.     });
  259.     $( ".page-link" ).click(function() {
  260.         setTimeout(
  261.             function()
  262.             {
  263.                 doAnimations();
  264.             }, 1500);
  265.         doAnimations();
  266.     });
  267.     $( ".form-control" ).keyup(function() {
  268.         setTimeout(
  269.             function()
  270.             {
  271.                 doAnimations();
  272.             }, 1500);
  273.         doAnimations();
  274.     });
  275.     $( ".sorting" ).change(function() {
  276.         setTimeout(
  277.             function()
  278.             {
  279.                 doAnimations();
  280.             }, 1500);
  281.     });
  282.    $(".filter-panel-item").click(function(){
  283.         if($(this).hasClass("active")){
  284.             $(this).removeClass("active");
  285.             $(this).find(".filter-panel-item-toggle").removeClass("active");
  286.             $(this).find(".filter-multi-select-dropdown").hide();
  287.             $(this).find("svg").css("transform", "rotate(0deg)");
  288.         } else {
  289.             $(".filter-panel-item").removeClass("active");
  290.             $(".filter-multi-select-dropdown").hide();
  291.             $(".filter-panel-item-toggle").removeClass("active");
  292.             $(".filter-panel-item-toggle .icon svg").css("transform", "rotate(0deg)");
  293.             $(this).addClass("active");
  294.             $(this).find(".filter-panel-item-toggle").addClass("active");
  295.             $(this).find("svg").css("transform", "rotate(180deg)");
  296.             $(this).find(".filter-multi-select-dropdown").show();
  297.         }
  298.     });
  299.                $(".btn-light").click(function(){
  300.                 var LoadUrl = "{{ absolute_url(asset('bundles/theme3s/functions/getWeclappAddresses.php')) }}&isprofile=0&customerid={{ context.customer._uniqueIdentifier }}";
  301.                 setTimeout(function() {
  302.                     fetch(LoadUrl, {
  303.                         method: 'POST',
  304.                         headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'},
  305.                         body: "text=" + document.querySelector("#AddressSelection").innerText
  306.                     })
  307.                         .then(response => response.text())
  308.                         .then(data => document.querySelector("#AddressSelection").innerHTML = data);
  309.                 }, 2000);
  310.             });
  311.             $(".address-editor-create").click(function(){
  312.                 var AddressContent = $("#AddressSelection").innerHTML;
  313.                 if(AddressContent != ""){
  314.                     $("#AddressSelection").show('slow');
  315.                 } else {
  316.                     $("#AddressSelection").hide('slow');
  317.                 }
  318.             })
  319.             function setExtraBillAddress(iCount){
  320.                 var Street1 = $("#street1_" + iCount).html();
  321.                 var Street2 = $("#street2_" + iCount).html();
  322.                 var Zip = $("#zipcode_" + iCount).html();
  323.                 var City = $("#city_" + iCount).html();
  324.                 var Street = "";
  325.                 if(Street1 != ""){
  326.                     Street = Street1;
  327.                 }
  328.                 if(Street2 != "" && Street2 != "") {
  329.                     Street = Street1 + ", " + Street2;
  330.                 }
  331.                 if(Street1 == "" && Street2 != "") {
  332.                     Street = Street2;
  333.                 }
  334.                 $("#billing-address-create-new #billing-addressAddressStreet").val(Street);
  335.                 $("#billing-address-create-new #billing-addressAddressZipcode").val(Zip);
  336.                 $("#billing-address-create-new #billing-addressAddressCity").val(City);
  337.             }
  338.             function setExtraDeliveryAddress(iCount){
  339.                 var Street1 = $("#street1_" + iCount).html();
  340.                 var Street2 = $("#street2_" + iCount).html();
  341.                 var Zip = $("#zipcode_" + iCount).html();
  342.                 var City = $("#city_" + iCount).html();
  343.                 var Street = "";
  344.                 if(Street1 != ""){
  345.                     Street = Street1;
  346.                 }
  347.                 if(Street2 != "" && Street2 != "") {
  348.                     Street = Street1 + ", " + Street2;
  349.                 }
  350.                 if(Street1 == "" && Street2 != "") {
  351.                     Street = Street2;
  352.                 }
  353.                 $("#shipping-address-create-new #shipping-addressAddressStreet").val(Street);
  354.                 $("#shipping-address-create-new #shipping-addressAddressZipcode").val(Zip);
  355.                 $("#shipping-address-create-new #shipping-addressAddressCity").val(City);
  356.             }
  357.     </script>
  358.     
  359. {% endblock %}