{% extends 'AtechNetCoreBundle/base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('theme/owl-carousel/assets/owl.carousel.min.css') }}">
{% endblock %}
{% block content %}
<div class="main-content">
<div class="container">
<ul class="breadcrumb">
{% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
{% endfor %}
</ul>
<div class="static-page">
<h1>{{ title }} {% if preview is defined %}<span class="badge bg-danger">Preview</span>{% endif %}</h1>
{# KLAVIYO FORMS FOR STATIC PAGES #}
{% set content = content | replace({
'klaviyo-form-R8k6c4': '<div class="klaviyo-form-R8k6c4" id="klaviyo"></div>',
'klaviyo-form-V2hCpp': '<div class="klaviyo-form-V2hCpp" id="klaviyo"></div>',
'klaviyo-form-SusbGM': '<div class="klaviyo-form-SusbGM" id="klaviyo"></div>',
'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>',
'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>',
'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>',
'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>',
'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>',
'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>',
}) %}
{%- if app.request.session.get('domainId') in [3,4] -%}
{% set content = content | replace({
'Furbify Hungary Kft.': 'furbify s.r.o.',
'25893887-2-11': 'SK2022851589',
'11-09-030312': '44827385',
'HU25893887': 'SK2022851589',
'Kelemen László utca 1., 2900 Komárom, Magyarország (Nem átvételi pont. Csomagot nem áll módunkban fogadni ezen a címen.)': 'Osada Reviczkého 3869/38, 946 03 Kolárovo (Gúta), Szlovákia'
}) %}
{% endif %}
{{ content | raw }}
{% if pageId == 127 %}
<div class="mb-4">
<a href="https://www.atechcomp.eu/centralis/web/uploads/media/RMA_for_customer.xlsx">Download RMA for customer.xlxs</a>
</div>
{% endif %}
</div>
{{ include(template_from_string(contentBottom)) }}
</div>
</div>
{% endblock %}
{% block title %}{{ seoTitle }} | {{ parent() }}{% endblock %}
{% block robots %}
{% if parent() == '' and indexable is defined and indexable == false %}<meta name="robots" content="noindex">{% else %}{{ parent() }}{% endif %}
{% endblock %}
{% block schema %}
{{ parent() }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{% for breadcrumb in breadcrumbs %}
{
"@type": "ListItem",
"position": {{ loop.index }},
"name": "{{ breadcrumb.text|e('js') }}",
"item": "{{ breadcrumb.href }}"
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}
</script>
{% endblock %}
{% block meta %}
{% set defaultLocale = app.request.session.get('defaultLocale') %}
{% set domainTLD = defaultLocale %}
{% if domainTLD == 'en' %}
{% set domainTLD = 'eu' %}
{% endif %}
<meta name="description" content="{{ seoDescription }}" />
<meta property="og:url" content="{{ app.request.uri }}" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="{{ defaultLocale |ogLocale }}" />
<meta property="og:title" content="{{ seoTitle }}" />
<meta property="og:description" content="{{ seoDescription }}" />
{% if socialShareImage is defined and socialShareImage is not null %}
<meta property="og:image" content="{{ socialShareImage }}" />
{% else %}
<meta property="og:image" content="https://www.furbify.{{ domainTLD }}/theme/images/furbify-share-image.png" />
{% endif %}
{% endblock %}
{% block header %}
{{ include(template_from_string(header)) }}
{% endblock %}
{% block footer %}
{{ include(template_from_string(footer)) }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="{{ asset('theme/owl-carousel/owl.carousel.min.js'|appendAssetCache) }}"></script>
{% if showAdminLoginPanel %}
<script src="{{ asset('theme/js/admin-login-panel.js') }}"></script>
<script>
var additionalDataForAdminLoginPanel = {
idForPage: "{{ pageId }}",
module: "static",
{% if app.environment == 'prod' %}
domain: "https://www.atechcomp.eu/centralis/web",
smallerPadding: true
{% else %}
domain: "http://centralis"
{% endif %}
};
startAdminLoginPanel(additionalDataForAdminLoginPanel);
</script>
<script type="text/javascript">
$(document).ready(function() {
$('.static-page img').each(function(index) {
$(this).attr('alt', "{{ seoTitle }} image_" + (index + 1));
})
})
</script>
{% endif %}
{#Kerdoivek google forms#}
{% if app.environment == 'prod' %}
<script>
let iframeLoaded = false;
const iframe = document.getElementById('google-form-iframe');
iframe.addEventListener('load', () => {
if (iframeLoaded) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'form_submit',
event_category: 'survey',
event_label: 'buyer_persona_survey',
form_name: '{{ title }}'
});
}
iframeLoaded = true;
});
</script>
{% endif %}
{% endblock %}