{% extends 'base.html.twig' %} {% block title %}{{ lang == 'pl' ? 'Nadchodzące niezwykłe święta' : 'Upcoming Unusual Holidays' }}{% if firstDate and lastDate %}: {{ firstDate }} – {{ lastDate }}{% endif %} | Ferrio{% endblock %} {% block meta_description %}{% if days|length > 0 %}{% set total = 0 %}{% for d in days %}{% set total = total + d.holidays|length %}{% endfor %}{{ lang == 'pl' ? total ~ ' świąt w dniach ' ~ firstDate ~ ' – ' ~ lastDate ~ '. Przeglądaj niezwykłe święta na każdy dzień tygodnia.' : total ~ ' holidays from ' ~ firstDate ~ ' to ' ~ lastDate ~ '. Browse unusual celebrations for every day of the week.' }}{% else %}{{ lang == 'pl' ? 'Przeglądaj nadchodzące niezwykłe święta na cały tydzień' : 'Browse upcoming unusual holidays for the week ahead' }}{% endif %}{% endblock %} {% block meta_extra %} {% set page_title = (lang == 'pl' ? 'Nadchodzące niezwykłe święta' : 'Upcoming Unusual Holidays') ~ (firstDate and lastDate ? ': ' ~ firstDate ~ ' – ' ~ lastDate : '') ~ ' | Ferrio' %} {% if days|length > 0 %} {% set total = 0 %} {% for d in days %}{% set total = total + d.holidays|length %}{% endfor %} {% set page_desc = lang == 'pl' ? total ~ ' świąt w dniach ' ~ firstDate ~ ' – ' ~ lastDate ~ '. Przeglądaj niezwykłe święta na każdy dzień tygodnia.' : total ~ ' holidays from ' ~ firstDate ~ ' to ' ~ lastDate ~ '. Browse unusual celebrations for every day of the week.' %} {% else %} {% set page_desc = lang == 'pl' ? 'Przeglądaj nadchodzące niezwykłe święta na cały tydzień' : 'Browse upcoming unusual holidays for the week ahead' %} {% endif %} {% set page_url = url('upcoming', {week: weekOffset}) %} {% include 'partials/meta_tags.html.twig' with { meta_title: page_title, meta_description: page_desc, meta_url: page_url, meta_prev: url('upcoming', {week: weekOffset - 1}), meta_next: url('upcoming', {week: weekOffset + 1}), } %} {# Prevent indexing of far-offset pages to avoid thin/duplicate content #} {% if weekOffset|abs > 4 %} {% endif %} {# JSON-LD Structured Data #} {% endblock %} {% block body %}
{% include 'partials/header.html.twig' %}

{{ lang == 'pl' ? 'Nadchodzące niezwykłe święta' : 'Upcoming Unusual Holidays' }}

{# Week navigation #}
{{ lang == 'pl' ? 'Wstecz' : 'Prev' }} {% if weekOffset == 0 %} {{ lang == 'pl' ? 'Dzisiaj' : 'Today' }} {% else %} {{ lang == 'pl' ? 'Dzisiaj' : 'Today' }} {% endif %} {{ lang == 'pl' ? 'Dalej' : 'Next' }}
{# Content #} {% if hasError %} {% include 'partials/error.html.twig' %} {% else %}
{% for day in days %}

{{ day.formattedDate }}

{% if day.daysFromToday == 0 %} {{ lang == 'pl' ? 'Dzisiaj' : 'Today' }} {% elseif day.daysFromToday < 0 %} {% set abs = day.daysFromToday|abs %} {{ lang == 'pl' ? abs ~ ' dni temu' : (abs == 1 ? '1 day ago' : abs ~ ' days ago') }} {% else %} {{ lang == 'pl' ? 'Za ' ~ day.daysFromToday ~ ' dni' : (day.daysFromToday == 1 ? 'In 1 day' : 'In ' ~ day.daysFromToday ~ ' days') }} {% endif %}
{% endfor %}
{% endif %}
{% endblock %}