templates/AtechNetCoreBundle/Page/static.html.twig line 1

Open in your IDE?
  1. {% extends 'AtechNetCoreBundle/base.html.twig' %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.     <link rel="stylesheet" href="{{ asset('theme/owl-carousel/assets/owl.carousel.min.css') }}">
  5. {% endblock %}
  6. {% block content %}
  7.     <div class="main-content">
  8.         <div class="container">
  9.             <ul class="breadcrumb">
  10.                 {% for breadcrumb in breadcrumbs %}
  11.                     <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
  12.                 {% endfor %}
  13.             </ul>
  14.             <div class="static-page">
  15.                 <h1>{{ title }} {% if preview is defined %}<span class="badge bg-danger">Preview</span>{% endif %}</h1>
  16.                 {# KLAVIYO FORMS FOR STATIC PAGES #}
  17.                 {% set content = content | replace({
  18.                     'klaviyo-form-R8k6c4': '<div class="klaviyo-form-R8k6c4" id="klaviyo"></div>',
  19.                     'klaviyo-form-V2hCpp': '<div class="klaviyo-form-V2hCpp" id="klaviyo"></div>',
  20.                     'klaviyo-form-SusbGM': '<div class="klaviyo-form-SusbGM" id="klaviyo"></div>',
  21.                     'customer-form-hu-klaviyo': '<iframe id="google-form-iframe" src="https://docs.google.com/forms/d/e/1FAIpQLSekokvfAuPr5gbicBDShNrp5Og0P_dm_4_9iEoopUdjoizGDA/viewform?embedded=true" width="640" height="5167" frameborder="0" marginheight="0" marginwidth="0">Betöltés…</iframe>',
  22.                     'customer-form-hu-social': '<iframe id="google-form-iframe" src="https://docs.google.com/forms/d/e/1FAIpQLScZvl41LUodPkfWEzCdQo_PwAvlj9y54VlkjSvEc6TBcShdkA/viewform?embedded=true" width="640" height="5167" frameborder="0" marginheight="0" marginwidth="0">Betöltés…</iframe>',
  23.                     'customer-form-sk-klaviyo': '<iframe id="google-form-iframe" src="https://docs.google.com/forms/d/e/1FAIpQLScG3qautrrTUG3CfdWf9vL9wDi6M6sa2-fnZmLO5Dwl8ldrIg/viewform?embedded=true" width="640" height="5171" frameborder="0" marginheight="0" marginwidth="0">Betöltés…</iframe>',
  24.                     'customer-form-sk-social': '<iframe id="google-form-iframe" src="https://docs.google.com/forms/d/e/1FAIpQLSdfHvzBLwFYrdtyO2Js5EjZAXVQjIcVMvFInhUoi2ovfu2Vqw/viewform?embedded=true" width="640" height="5171" frameborder="0" marginheight="0" marginwidth="0">Betöltés…</iframe>',
  25.                     'customer-form-cz-klaviyo': '<iframe id="google-form-iframe" src="https://docs.google.com/forms/d/e/1FAIpQLSfmmOKY4iV0XUkr9_kwzlHqjZ6zf3NUzz2BKMFboXSyEIjd3A/viewform?embedded=true" width="640" height="5305" frameborder="0" marginheight="0" marginwidth="0">Betöltés…</iframe>',
  26.                     'customer-form-cz-social': '<iframe id="google-form-iframe" src="https://docs.google.com/forms/d/e/1FAIpQLSdVYQ5cxy-Cll0UsYuL_Z4sAoVHyx5WYjqc7KEGECa3YF2pWQ/viewform?embedded=true" width="640" height="5305" frameborder="0" marginheight="0" marginwidth="0">Betöltés…</iframe>',
  27.                 }) %}
  28.                 {%- if app.request.session.get('domainId') in [3,4] -%}
  29.                     {% set content = content | replace({
  30.                         'Furbify Hungary Kft.': 'furbify s.r.o.',
  31.                         '25893887-2-11': 'SK2022851589',
  32.                         '11-09-030312': '44827385',
  33.                         'HU25893887': 'SK2022851589',
  34.                         'Kelemen L&aacute;szl&oacute; utca 1., 2900 Kom&aacute;rom, Magyarorsz&aacute;g (Nem &aacute;tv&eacute;teli pont. Csomagot nem &aacute;ll m&oacute;dunkban fogadni ezen a c&iacute;men.)': 'Osada Reviczkého 3869/38, 946 03 Kolárovo (Gúta), Szlovákia'
  35.                     }) %}
  36.                 {% endif %}
  37.                 {{ content | raw }}
  38.                 {% if pageId == 127 %}
  39.                     <div class="mb-4">
  40.                         <a href="https://www.atechcomp.eu/centralis/web/uploads/media/RMA_for_customer.xlsx">Download RMA for customer.xlxs</a>
  41.                     </div>
  42.                 {% endif %}
  43.             </div>
  44.             {{ include(template_from_string(contentBottom)) }}
  45.         </div>
  46.     </div>
  47. {% endblock %}
  48. {% block title %}{{ seoTitle }} | {{ parent() }}{% endblock %}
  49. {% block robots %}
  50.     {% if parent() == '' and indexable is defined and indexable == false %}<meta name="robots" content="noindex">{% else %}{{ parent() }}{% endif %}
  51. {% endblock %}
  52. {% block schema %}
  53. {{ parent() }}
  54. <script type="application/ld+json">
  55. {
  56.     "@context": "https://schema.org",
  57.     "@type": "BreadcrumbList",
  58.     "itemListElement": [
  59.         {% for breadcrumb in breadcrumbs %}
  60.         {
  61.             "@type": "ListItem",
  62.             "position": {{ loop.index }},
  63.             "name": "{{ breadcrumb.text|e('js') }}",
  64.             "item": "{{ breadcrumb.href }}"
  65.         }{% if not loop.last %},{% endif %}
  66.         {% endfor %}
  67.     ]
  68. }
  69. </script>
  70. {% endblock %}
  71. {% block meta %}
  72.     {% set defaultLocale = app.request.session.get('defaultLocale') %}
  73.     {% set domainTLD = defaultLocale %}
  74.     {% if domainTLD == 'en' %}
  75.         {% set domainTLD = 'eu' %}
  76.     {% endif %}
  77.     <meta name="description" content="{{ seoDescription }}" />
  78.     <meta property="og:url" content="{{ app.request.uri }}" />
  79.     <meta property="og:type" content="website" />
  80.     <meta property="og:locale" content="{{ defaultLocale |ogLocale }}" />
  81.     <meta property="og:title" content="{{ seoTitle }}" />
  82.     <meta property="og:description" content="{{ seoDescription }}" />
  83.     {% if socialShareImage is defined and socialShareImage is not null %}
  84.         <meta property="og:image" content="{{ socialShareImage }}" />
  85.     {% else %}
  86.         <meta property="og:image" content="https://www.furbify.{{ domainTLD }}/theme/images/furbify-share-image.png" />
  87.     {% endif %}
  88. {% endblock %}
  89. {% block header %}
  90.     {{ include(template_from_string(header)) }}
  91. {% endblock %}
  92. {% block footer %}
  93.     {{ include(template_from_string(footer)) }}
  94. {% endblock %}
  95. {% block javascripts %}
  96.     {{ parent() }}
  97.     <script type="text/javascript" src="{{ asset('theme/owl-carousel/owl.carousel.min.js'|appendAssetCache) }}"></script>
  98.     {% if showAdminLoginPanel %}
  99.         <script src="{{ asset('theme/js/admin-login-panel.js') }}"></script>
  100.         <script>
  101.             var additionalDataForAdminLoginPanel = {
  102.                 idForPage: "{{ pageId }}",
  103.                 module: "static",
  104.                 {% if app.environment == 'prod' %}
  105.                     domain: "https://www.atechcomp.eu/centralis/web",
  106.                     smallerPadding: true
  107.                 {% else %}
  108.                     domain: "http://centralis"
  109.                 {% endif %}
  110.             };
  111.             startAdminLoginPanel(additionalDataForAdminLoginPanel);
  112.         </script>
  113.         <script type="text/javascript">
  114.             $(document).ready(function() {
  115.                 $('.static-page img').each(function(index) {
  116.                     $(this).attr('alt', "{{ seoTitle }} image_" + (index + 1));
  117.                 })
  118.             })
  119.         </script>
  120.     {% endif %}
  121.     {#Kerdoivek google forms#}
  122.     {% if app.environment == 'prod' %}
  123.         <script>
  124.             let iframeLoaded = false;
  125.             const iframe = document.getElementById('google-form-iframe');
  126.             iframe.addEventListener('load', () => {
  127.                 if (iframeLoaded) {
  128.                     window.dataLayer = window.dataLayer || [];
  129.                     window.dataLayer.push({
  130.                         event: 'form_submit',
  131.                         event_category: 'survey',
  132.                         event_label: 'buyer_persona_survey',
  133.                         form_name: '{{ title }}'
  134.                     });
  135.                 }
  136.                 iframeLoaded = true;
  137.             });
  138.         </script>
  139.     {% endif %}
  140. {% endblock %}