{% extends '@templates/Front/Shop/layout.html.twig' %}
{% block head %}
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="ro">
<meta name="google-site-verification" content="BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ">
<title>{% block title %}
{% if page.title is not empty %}
{{ page.title }}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
{% block metatags %}
{% if page.metaKeywords is not empty %}
<meta name="keywords" content="{{ page.metaKeywords }}"/>
{% endif %}
{% if page.metaDescription is not empty %}
<meta name="description" content="{{ page.metaDescription }}"/>
{% endif %}
{% endblock %}
{% block stylesheets %}
<script src="{{ asset('assets/shop/js/sentry-bundle.min.js') }}"></script>
<script>
if (typeof Sentry !== 'undefined') {
Sentry.init({
dsn: "{{ sentry_dsn }}",
integrations: [new Sentry.Integrations.TryCatch({
eventTarget: false,
})]
});
}
</script>
<link rel="stylesheet" href="{{ asset('/assets/shop/css/homepage.css') }}">
<link rel="stylesheet" href="{{ asset('/assets/shop/css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ asset('/assets/shop/css/leftmenu.v1.css') }}">
{{ encore_entry_link_tags('bootstrap-fix', null, 'bootstrapTheme') }}
{% set urlPath = app.request.uri %}
{% if urlPath is not null %}
<link rel="canonical" href="{{ urlPath }}"/>
{% set currentLocale = app.request.locale %}
{% if currentLocale is not null %}
{% for locale in locales.allLocales %}
{% if locale != currentLocale %}
{% set currentLocaleTemp = currentLocale ~ '/' %}
{% set newUrl = urlPath|replace({currentLocaleTemp:locale ~ '/'}) %}
<link rel="alternate" hreflang="{{ locale }}"
href="{{ newUrl }}"/>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}
{% block javascripts %}
<script src="{{ asset('assets/shop/js/jquery.min.js') }}"></script>
<script src="{{ asset('assets/shop/js/popper.min.js') }}"></script>
<script src="{{ asset('assets/shop/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('assets/shop/js/leftmenu.js') }}"></script>
<script src="{{ asset('/bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
<script>
$(document).ready(function () {
function checkIfRedirectExists()
{
let redirectElement = $('[class^="redirect"]');
if (redirectElement.length > 0) {
if (redirectElement.hasClass("scala")) {
window.location.href = "https://taxeauto.ro" + window.location.pathname;
} else if (redirectElement.hasClass("roviniete")) {
window.location.href = "https://roviniete.ro" + window.location.pathname;
}
}
}
checkIfRedirectExists();
$(window).on('load', function () {
checkIfRedirectExists();
});
});
dataLayer = [];
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ gtm_code }}');</script>
<!-- End Google Tag Manager -->
{% endblock %}
</head>
{% endblock %}
{% block header %}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_code }}"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="custom-container mb-2">
<div class="custom-container bg-white">
<div class="bg-white">
<header>
{% include '@templates/Front/Shop/v2/_header.html.twig' %}
{{ sonata_block_render_event('sylius.shop.layout.after_header') }}
</header>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div class="info-banner custom-container bg-white my-2" onclick="location.href='{{ path('app_shop_vignette') }}'" style="cursor: pointer">
<div class="d-flex justify-content-center align-items-center" style="height: 170px">
<div class="info-banner-container">
<h1 class="calculator-viniete-text">{{ 'app.ui.buy_vignette_online'|trans }} - <br class="new-line"/> {{ 'app.ui.romania_vignette_calculator'|trans }}</h1>
<div class="d-flex justify-content-center align-items-center">
<a class="text-center">{{ 'app.ui.select_car_type'|trans }}:</a>
</div>
<div class="d-flex justify-content-center align-items-center banner-images">
<img src="{{ asset('assets/shop/images/icons/ic_rovinieta_categ_a.png') }}"
title="{{'app.ui.category_rovignette_a_name'|trans}}" class="mx-2"
alt="{{'app.ui.category_rovignette_a_name'|trans}}" />
<img src="{{ asset('assets/shop/images/icons/ic_rovinieta_categ_b.png') }}"
title="{{'app.ui.category_rovignette_b_name'|trans}}" class="mx-2"
alt="{{'app.ui.category_rovignette_b_name'|trans}}" />
<img src="{{ asset('assets/shop/images/icons/ic_rovinieta_categ_c.png') }}"
title="{{'app.ui.category_rovignette_c_name'|trans}}" class="mx-2"
alt="{{'app.ui.category_rovignette_c_name'|trans}}" />
<img src="{{ asset('assets/shop/images/icons/ic_rovinieta_categ_d.png') }}"
title="{{'app.ui.category_rovignette_d_name'|trans}}" class="mx-2"
alt="{{'app.ui.category_rovignette_d_name'|trans}}" />
<img src="{{ asset('assets/shop/images/icons/ic_rovinieta_categ_e.png') }}"
title="{{'app.ui.category_rovignette_e_name'|trans}}" class="mx-2"
alt="{{'app.ui.category_rovignette_e_name'|trans}}" />
<img src="{{ asset('assets/shop/images/icons/ic_rovinieta_categ_f.png') }}"
title="{{'app.ui.category_rovignette_f_name'|trans}}" class="mx-2"
alt="{{'app.ui.category_rovignette_f_name'|trans}}" />
<img src="{{ asset('assets/shop/images/icons/ic_rovinieta_categ_g.png') }}"
title="{{'app.ui.category_rovignette_g_name'|trans}}" class="mx-2"
alt="{{'app.ui.category_rovignette_g_name'|trans}}" />
<img src="{{ asset('assets/shop/images/icons/ic_rovinieta_categ_h.png') }}"
title="{{'app.ui.category_rovignette_h_name'|trans}}" class="mx-2"
alt="{{'app.ui.category_rovignette_h_name'|trans}}" />
</div>
<div class="d-flex justify-content-center align-items-center">
<button class="btn btn-lg btn-primary w-50">{{ 'app.ui.continue'|trans }}</button>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
{% if page.name is not empty %}
<h1 class="ui dividing header bitbag-page-name">{{ page.name|raw }}</h1>
{% endif %}
</div>
<div class="card-body">
<div class="row justify-content-center align-items-center">
<div class="col-8">
{% if page.image %}
{% set path = preview is defined and preview == true ? page.image.path : '/media/image/'~page.image.path %}
<img class="page-image ui fluid image" src="{{ path }}" alt="">
{% endif %}
</div>
</div>
<div class="ui hidden divider"></div>
<div class="bitbag-page-content">{{ bitbag_cms_render_content(page) }}</div>
{% if page.title is not empty %}
<div class="ui dividing header"></div>
{% else %}
<div class="ui hidden divider"></div>
{% endif %}
</div>
</div>
{% if page.products|length > 0 %}
<h2>
{{ 'bitbag_sylius_cms_plugin.ui.page_related_products'|trans }}
</h2>
<div class="bitbag-page-products">
{% include '@SyliusShop/Product/_horizontalList.html.twig' with {'products': page.products} %}
</div>
{% endif %}
<style>
.banner-images img {
width: 50px;
}
.calculator-viniete-text {
font-family: Calibri, Tahoma, Arial, serif;
font-size: 26px;
font-weight: normal;
color: #EA6031;
line-height: 20px;
letter-spacing: -1px;
text-shadow: 0.02em 0.02em 0.02em #d96642;
display: block;
height: 40px;
padding: 10px 30px 0 0
}
.new-line {
display: none;
}
@media only screen and (max-width: 600px) {
.info-banner {
max-width: 400px;
}
.info-banner-container {
max-width: 400px;
text-align: center;
}
.banner-images img {
width: 30px;
}
.calculator-viniete-text {
height: 58px;
line-height: 26px;
font-size: 20px;
}
.new-line {
display: block;
}
}
</style>
{% endblock %}