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="{{ asset('assets/js/recaptcha_api.js') }}" async defer></script>
  24.                 <script type='text/javascript' src='{{ asset('assets/x3dom/x3dom.js') }}'> </script>
  25.                 <!-- X_ICTE requirements -->
  26.                 <link rel="stylesheet" type="text/css" href="{{ asset('assets/js/x_ite.css') }}"/>
  27.                 <script type="text/javascript" src="{{ asset('assets/js/x_ite.min.js') }}"></script>
  28.               <script>
  29.               //Handle image gallery click
  30.               function imageGalleryClick(imagePath, linkUrl, serviceTitle, linkNewUrl=null, galleryLink=null, newLabel=null, labelSize = '1.0')
  31.               {
  32.                 //alert('Hallo ViewPoint');
  33.                 document.getElementById('slideshow_texture').setAttribute('url', imagePath);
  34.                 document.getElementById('WideScreenModel__slideshow_texture2').setAttribute('url', imagePath);
  35.                 // document.getElementById('slideshow_url').setAttribute('url', linkUrl);
  36.                 document.getElementById('new_account_url').setAttribute('url', linkNewUrl);
  37.                 document.getElementById('gallery_url').setAttribute('url', galleryLink);
  38.                 document.getElementById('new_account_label').setAttribute('string', newLabel);
  39.                 document.getElementById('more_url').setAttribute('url', linkUrl);
  40.                 document.getElementById('new_account_font').setAttribute('size', labelSize);
  41.               }
  42.               //Handle image gallery click
  43.               function imagePresentationClick(imagePath)
  44.               {
  45.                 //alert('Hallo PresentationClick: ' + imagePath);
  46.                 //document.getElementById('slideshow_texture').setAttribute('url', imagePath);
  47.                 document.getElementById('WideScreenModel__slideshow_texture2').setAttribute('url', imagePath);
  48.               }
  49.               function changeViewpoint(viewpointId)
  50.               {
  51.                 //alert('Hallo ViewPoint');
  52.                 document.getElementById(viewpointId).setAttribute('set_bind','true');
  53.               }
  54.               function changeViewpoint2(viewpointId)
  55.               {
  56.                 alert('Hallo ViewPoint 2: ' + viewpointId);
  57.                 //document.getElementById(viewpointId).setAttribute('set_bind','true');
  58.               }
  59.               function loadModel(modelPath, inlineId) {
  60.                   //alert(document.getElementById(inlineId).getAttribute("url"));
  61.                   //var inline = document.createElement("Inline");
  62.                   var emptyString = "";
  63.                   var url = document.getElementById(inlineId).getAttribute("url").valueOf();
  64.                   //console.log('isEqual: ' + isEquel);
  65.                   //console.log('url: -' + String(url).trim() + '-');
  66.                   if (compareStrings(String(url).trim(), emptyString)) {
  67.                     document.getElementById(inlineId).setAttribute("nameSpaceName", "ExtX3D");
  68.                     document.getElementById(inlineId).setAttribute("contentType", "model/x3d+xml");
  69.                     document.getElementById(inlineId).setAttribute('bboxSize','5 5 5');
  70.                     document.getElementById(inlineId).setAttribute('bboxCenter','0 0 0');
  71.                     document.getElementById(inlineId).setAttribute("url", modelPath);
  72.                   }
  73.               }
  74.               function openInfoMessage(message)
  75.               {
  76.                 $('#x3d_info_message').animate({
  77.                   height: 35
  78.                 }, 500);
  79.                 $('#x3d_info_message_text').text(message);
  80.                 $('#button_info_message_close').show();
  81.                 $('#infoMessageTable').show();
  82.               }
  83.                function compareStrings(a,b){
  84.                   if (a.length !== b.length) {
  85.                        //alert('csrt: false');
  86.                        return false;
  87.                   }
  88.                    //alert('csrt: true');
  89.                   return a.localeCompare(b) === 0;
  90.               }
  91.              function changeColor()
  92.              {
  93.                 if(document.getElementById("color").getAttribute('diffuseColor')=="1 0 0")
  94.                    document.getElementById("color").setAttribute('diffuseColor', '0 0 1');
  95.                 else
  96.                    document.getElementById("color").setAttribute('diffuseColor', '1 0 0');
  97.              }
  98.              function closeFlashNotice()
  99.              {
  100.                 console.log('close FlashNotice');
  101.                 $("#flash-notice").fadeOut();
  102.              }             
  103.              function closeFlashError()
  104.              {
  105.                 console.log('close FlashError');
  106.                 $("#flash-error").fadeOut();
  107.              }   
  108.              </script>
  109.              <script>
  110.                   //resize x3d scene
  111.               $(document).ready(function() {
  112.                 var $win = $(window);
  113.                 var $discountHeight = 96;
  114.                 $('#button_fullscreen').click(function() {
  115.                   $('#x3d').animate({
  116.                 height: ($win.height() - $discountHeight),
  117.                 width: $win.width()
  118.                   }, 500);
  119.                   $('#x3d_section').animate({
  120.                 height: ($win.height() - $discountHeight),
  121.                 width: $win.width()
  122.                   }, 500);
  123.                   $('#x3dom-x3d_section-canvas').animate({
  124.                 height: ($win.height() - $discountHeight),
  125.                 width: '100%'
  126.                   }, 500);
  127.                   $("#x3d_section").attr("height",($win.height() - $discountHeight));
  128.                 });
  129.                 $('#button_defaultscreen').click(function() {
  130.                   $('#x3d').animate({
  131.                 height: "323px",
  132.                 width: '100%'
  133.                   }, 500);
  134.                   $('#x3d_section').animate({
  135.                 height: "323px",
  136.                 width: '100%'
  137.                   }, 500);
  138.                   $('#x3dom-x3d_section-canvas').animate({
  139.                 height: "323px",
  140.                 width: '100%'
  141.                   }, 500);
  142.                   $("#x3d_section").attr("height","323px");
  143.                 });
  144.               });
  145.             </script>
  146.         {% endblock %}
  147.         
  148.     </head>
  149.     <body>
  150.     {% for message in app.flashes('notice') %}
  151.         <div class="flash-notice" id="flash-notice">
  152.             <div class='notice'>{{ message }}</div>
  153.             <div class='noticeClose'><a href="javascript:closeFlashNotice()" class='noticeCloseLink' title="Close notice">×</a></div>
  154.         </div>
  155.     {% endfor %}
  156.     {% for message in app.flashes('error') %}
  157.         <div class="flash-error" id="flash-error">
  158.             <div class='error'>{{ message }}</div>
  159.             <div class='noticeClose'><a href="javascript:closeFlashError()" class='noticeCloseLink' title="Close notice">×</a></div>
  160.         </div>
  161.     {% endfor %}
  162.         <div class="contentContainer">
  163.           <div class="content">
  164.               {% block content %}{% endblock %}
  165.           </div>
  166.         </div>
  167.     </body>
  168. </html>