{% extends 'page.html.twig' %}
{% block title %}
{% do pimcore_head_title().prepend(auction.key) %}
{% endblock %}
{% do pimcore_head_meta().setDescription(
'{{name}} on {{start}} - {{auctionhousename}}'|trans({
'{{name}}': auction.title,
'{{start}}': auction.start|date('Y-m-d'),
'{{auctionhousename}}': auction.auctionhouse.name
})
) %}
{% block structuredData %}
{% set attendanceMode = 'https://schema.org/OfflineEventAttendanceMode' %}
{% if auction.platform == 'auction.platform.online' %}
{% set attendanceMode = 'https://schema.org/OnlineEventAttendanceMode' %}
{% endif %}
{% if auction.platform == 'auction.platform.hybrid' %}
{% set attendanceMode = 'https://schema.org/MixedEventAttendanceMode' %}
{% endif %}
<script type="application/ld+json">
{ "@context": "https://schema.org", "@type": "Event", "name": "{{ auction.title }}",
"startDate": "{{ auction.start.toIso8601ZuluString() }}", "endDate": "{{
auction.end.toIso8601ZuluString()
}}", "eventAttendanceMode": "{{ attendanceMode }}", "eventStatus":
"https://schema.org/EventScheduled",{% if auction.auctionhouse %}
"location": { "@type": "Place", "name": "{{ auction.auctionhouse.name }}", "address": {
"@type": "PostalAddress", "streetAddress": "{{ auction.auctionhouse.street }}",
"addressLocality": "{{ auction.auctionhouse.city }}", "postalCode": "{{
auction.auctionhouse.postalCode
}}", "addressCountry": "{{ auction.auctionhouse.country }}" }
{% endif %}}{% if auction.image %}
,"image": [ "{{ absolute_url(auction.image.fullPath) }}" ]
{% endif %}}
</script>
{% endblock %}
{% block content %}
<div class="w-full">
{% block hero deferred %}
{% include 'network/auction/sections/auction_section_hero.html.twig' with {
auction: auction,
user: user,
} only %}
{# {% include 'network/profile/components/section_navigation_component.html.twig' with {
profile: auction.auctionhouse
} %} #}
{% endblock %}
{% block tab_navigation %}
{% include 'network/auction/components/tab_navigation_component.html.twig' with {
auction: auction
} %}
{% endblock %}
<div class="container mx-auto ">
{# <div class="container grid grid-cols-12 gap-7 xl:gap-10"> #}
{# {% if user or (auction.attendees|length) > 0 %}
<aside class="grid gap-5 md:hidden auto-rows-min">
{% include 'network/auction/widgets/auction_widget_attendance.html.twig' with {
auction: auction,
user: user,
turbo_id: 'mobile'
} only %}
</aside>
{% endif %} #}
{# <div class="xl:col-span-7 col-span-full"> #}
<turbo-frame class="container" id="tab_content"
src="{{ path('auction_tab_navigation_timeline', { id: auction.id }) }}"></turbo-frame>
{# </div> #}
{# <div class="relative grid col-span-12 gap-12 xl:col-span-7 auto-rows-min">
{% include 'network/auction/sections/auction_section_countdown.html.twig' with {
auction: auction
} only %}
{% include 'network/auction/sections/auction_section_youtube.html.twig' with {
auction: auction
} only %}
{% include 'network/auction/sections/auction_section_timeline.html.twig' with {
user: user,
auction: auction,
hideCard: true
} only %}
{% include 'network/auction/sections/auction_section_horses.html.twig' with {
auction: auction
} only %}
{% include 'network/auction/sections/auction_section_attendees.html.twig' with {
auction: auction
} only %}
{% include 'network/auction/sections/auction_section_iframe.html.twig' with {
auction: auction
} only %}
</div> #}
{# <aside class="grid col-span-12 gap-5 xl:col-span-5">
<div class="sticky h-fit top-32">
{% embed 'network/widget/widget_sidebar.html.twig' %}
{% block widgets %}
{% include 'network/auction/widgets/auction_widget_external_auction.html.twig' with {
auction: auction
} only %}
{% if user or (auction.attendees|length) > 0 %}
<div class="hidden md:block">
{% include 'network/auction/widgets/auction_widget_attendance.html.twig' with {
auction: auction,
user: user,
turbo_id: 'sidebar'
} only %}
{% include 'network/widget/widget_separator.html.twig' %}
</div>
{% endif %}
{% include 'network/auction/widgets/auction_widget_auctionhouse.html.twig' with {
auction: auction
} only %}
{% include 'network/widget/widget_separator.html.twig' %}
{% include 'network/auction/widgets/auction_widget_press.html.twig' with {
auction: auction
} only %}
{% endblock %}
{% endembed %}
{% include 'network/widget/widget_banner.html.twig' with { banner: banner } %}
</div>
</aside> #}
</div>
{# {% include 'network/auction/sections/auction_section_elfsight-news.html.twig' with {
auction: auction
} only %} #}
</div>
</div>
{% endblock %}