templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3.     <head>
  4.         <title>{% block title %}E-Commerce Portal{% endblock %}</title>
  5.         <!-- Google tag (gtag.js) -->
  6.         <script async src="https://www.googletagmanager.com/gtag/js?id=G-NMWC1T63ZV"></script>
  7.         <script>
  8.           window.dataLayer = window.dataLayer || [];
  9.           function gtag(){dataLayer.push(arguments);}
  10.           gtag('js', new Date());
  11.           gtag('config', 'G-NMWC1T63ZV');
  12.         </script>
  13.         {% block head %}
  14.                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  15.                 <meta name="description" content="{% block description %}E-Commerce Portal{% endblock %}">
  16.                 <meta name="keywords" content="E-Commerce, E-shop">
  17.                 <meta name="author" content="Webexciter.com">
  18.                 <meta name="viewport" content="width=device-width, initial-scale=1">
  19.                 <script src="{{ asset('assets/vendor/jquery/jquery.min.js') }}"></script>
  20.                 <script src="{{ asset('assets/vendor/jquery.cycle.all.js') }}"></script>
  21.                 <script src="{{ asset('assets/vendor/x3d_webexciter.js') }}"></script>
  22.                 <script src="{{ asset('assets/js/am.js') }}"></script>
  23.                 {#  <script src="https://www.google.com/recaptcha/enterprise.js?render=6LdIuVgqAAAAALcRQjvQS9JEetoT5bnigYgkpu-m"></script> #}
  24.                 <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  25.                 {#  <script src="{{ asset('assets/js/recaptcha_api.js') }}" async defer></script> #}
  26.                 <script type='text/javascript' src='{{ asset('assets/x3dom/x3dom.js') }}'> </script>
  27.                 <!-- X_ICTE requirements -->
  28.                 <link rel="stylesheet" type="text/css" href="{{ asset('assets/js/x_ite.css') }}"/>
  29.                 <script type="text/javascript" src="{{ asset('assets/js/x_ite.min.js') }}"></script>
  30.               <script>
  31.               //Handle image gallery click
  32.               function imageGalleryClick(imagePath, linkUrl, serviceTitle, linkNewUrl=null, galleryLink=null, newLabel=null, labelSize = '1.0')
  33.               {
  34.                 //alert('Hallo ViewPoint');
  35.                 document.getElementById('slideshow_texture').setAttribute('url', imagePath);
  36.                 document.getElementById('WideScreenModel__slideshow_texture2').setAttribute('url', imagePath);
  37.                 // document.getElementById('slideshow_url').setAttribute('url', linkUrl);
  38.                 document.getElementById('new_account_url').setAttribute('url', linkNewUrl);
  39.                 document.getElementById('gallery_url').setAttribute('url', galleryLink);
  40.                 document.getElementById('new_account_label').setAttribute('string', newLabel);
  41.                 document.getElementById('more_url').setAttribute('url', linkUrl);
  42.                 document.getElementById('new_account_font').setAttribute('size', labelSize);
  43.               }
  44.               //Handle image gallery click
  45.               function imagePresentationClick(imagePath)
  46.               {
  47.                 //alert('Hallo PresentationClick: ' + imagePath);
  48.                 //document.getElementById('slideshow_texture').setAttribute('url', imagePath);
  49.                 document.getElementById('WideScreenModel__slideshow_texture2').setAttribute('url', imagePath);
  50.               }
  51.               function changeViewpoint(viewpointId)
  52.               {
  53.                 //alert('Hallo ViewPoint');
  54.                 document.getElementById(viewpointId).setAttribute('set_bind','true');
  55.               }
  56.               function changeViewpoint2(viewpointId)
  57.               {
  58.                 alert('Hallo ViewPoint 2: ' + viewpointId);
  59.                 //document.getElementById(viewpointId).setAttribute('set_bind','true');
  60.               }
  61.               function loadModel(modelPath, inlineId) {
  62.                   //alert(document.getElementById(inlineId).getAttribute("url"));
  63.                   //var inline = document.createElement("Inline");
  64.                   var emptyString = "";
  65.                   var url = document.getElementById(inlineId).getAttribute("url").valueOf();
  66.                   //console.log('isEqual: ' + isEquel);
  67.                   //console.log('url: -' + String(url).trim() + '-');
  68.                   if (compareStrings(String(url).trim(), emptyString)) {
  69.                     document.getElementById(inlineId).setAttribute("nameSpaceName", "ExtX3D");
  70.                     document.getElementById(inlineId).setAttribute("contentType", "model/x3d+xml");
  71.                     document.getElementById(inlineId).setAttribute('bboxSize','5 5 5');
  72.                     document.getElementById(inlineId).setAttribute('bboxCenter','0 0 0');
  73.                     document.getElementById(inlineId).setAttribute("url", modelPath);
  74.                   }
  75.               }
  76.               function openInfoMessage(message)
  77.               {
  78.                 $('#x3d_info_message').animate({
  79.                   height: 35
  80.                 }, 500);
  81.                 $('#x3d_info_message_text').text(message);
  82.                 $('#button_info_message_close').show();
  83.                 $('#infoMessageTable').show();
  84.               }
  85.                function compareStrings(a,b){
  86.                   if (a.length !== b.length) {
  87.                        //alert('csrt: false');
  88.                        return false;
  89.                   }
  90.                    //alert('csrt: true');
  91.                   return a.localeCompare(b) === 0;
  92.               }
  93.              function changeColor()
  94.              {
  95.                 if(document.getElementById("color").getAttribute('diffuseColor')=="1 0 0")
  96.                    document.getElementById("color").setAttribute('diffuseColor', '0 0 1');
  97.                 else
  98.                    document.getElementById("color").setAttribute('diffuseColor', '1 0 0');
  99.              }
  100.              function closeFlashNotice()
  101.              {
  102.                 console.log('close FlashNotice');
  103.                 $("#flash-notice").fadeOut();
  104.              }             
  105.              function closeFlashError()
  106.              {
  107.                 console.log('close FlashError');
  108.                 $("#flash-error").fadeOut();
  109.              }   
  110.              </script>
  111.              <script>
  112.                   //resize x3d scene
  113.               $(document).ready(function() {
  114.                 var $win = $(window);
  115.                 var $discountHeight = 96;
  116.                 $('#button_fullscreen').click(function() {
  117.                   $('#x3d').animate({
  118.                 height: ($win.height() - $discountHeight),
  119.                 width: $win.width()
  120.                   }, 500);
  121.                   $('#x3d_section').animate({
  122.                 height: ($win.height() - $discountHeight),
  123.                 width: $win.width()
  124.                   }, 500);
  125.                   $('#x3dom-x3d_section-canvas').animate({
  126.                 height: ($win.height() - $discountHeight),
  127.                 width: '100%'
  128.                   }, 500);
  129.                   $("#x3d_section").attr("height",($win.height() - $discountHeight));
  130.                 });
  131.                 $('#button_defaultscreen').click(function() {
  132.                   $('#x3d').animate({
  133.                 height: "323px",
  134.                 width: '100%'
  135.                   }, 500);
  136.                   $('#x3d_section').animate({
  137.                 height: "323px",
  138.                 width: '100%'
  139.                   }, 500);
  140.                   $('#x3dom-x3d_section-canvas').animate({
  141.                 height: "323px",
  142.                 width: '100%'
  143.                   }, 500);
  144.                   $("#x3d_section").attr("height","323px");
  145.                 });
  146.               });
  147.             </script>
  148.         {% endblock %}
  149.         
  150.     </head>
  151.     <body>
  152.     {% for message in app.flashes('notice') %}
  153.         <div class="flash-notice" id="flash-notice">
  154.             <div class='notice'>{{ message }}</div>
  155.             <div class='noticeClose'><a href="javascript:closeFlashNotice()" class='noticeCloseLink' title="Close notice">×</a></div>
  156.         </div>
  157.     {% endfor %}
  158.     {% for message in app.flashes('error') %}
  159.         <div class="flash-error" id="flash-error">
  160.             <div class='error'>{{ message }}</div>
  161.             <div class='noticeClose'><a href="javascript:closeFlashError()" class='noticeCloseLink' title="Close notice">×</a></div>
  162.         </div>
  163.     {% endfor %}
  164.         <div class="contentContainer">
  165.           <div class="content">
  166.               {% block content %}{% endblock %}
  167.           </div>
  168.         </div>
  169.     </body>
  170. </html>