{% extends 'page.html.twig' %}
{% block title %}
{% if horse.owner %}
{% do pimcore_head_title().prepend(horse.displayName ~ ' - ' ~ horse.owner.name) %}
{% else %}
{% do pimcore_head_title().prepend(horse.displayName) %}
{% endif %}
{% endblock %}
{% do pimcore_head_meta().setDescription(
'{{name}} - {{owner}} on 3forONE.com'|trans({
'{{name}}': horse.displayName,
'{{owner}}': horse.owner.name ?? ''
})
) %}
{% block content %}
<div class="w-full mb-16">
{% block hero deferred %}
{% include 'network/horse/sections/horse_section_hero.html.twig' with { horse: horse } only %}
{# {% include 'network/profile/components/section_navigation_component.html.twig' with {
profile: horse.owner
} %} #}
{% endblock %}
{% block tab_navigation %}
{% include 'network/horse/components/tab_navigation_component.html.twig' with {
horse: horse
} %}
{% endblock %}
<div class="container gap-16 mx-auto">
<turbo-frame class="container"
id="tab_content"
src="{{ path('horse_tab_navigation_timeline', { id: horse.id }) }}"></turbo-frame>
{# <div class="container grid grid-cols-12 gap-7 xl:gap-10">
<div class="grid col-span-12 gap-12 xl:col-span-7">
{% include 'network/horse/sections/horse_section_timeline.html.twig' with {
horse: horse
} only %}
{% if hasPosts %}
{% include 'network/horse/sections/horse_section_elfsight.html.twig' with {
elfsight: horse.elfsight
} %}
{% endif %}
{% include 'network/horse/sections/horse_section_auction_history.html.twig' with {
history: auctionHistory
} only %}
</div>
<aside class="flex flex-col col-span-12 gap-5 xl:col-span-5">
<div class="sticky top-32">
{% embed 'network/widget/widget_sidebar.html.twig' %}
{% block widgets %}
{% include 'network/horse/widgets/horse_widget_data.html.twig' with {
horse: horse
} only %}
{% include 'network/widget/widget_separator.html.twig' %}
{% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
title: 'owner',
icon: 'subprofile-owner',
profile: horse.owner
} only %}
{% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
title: 'breeder',
icon: 'subprofile-breeder',
profile: horse.breeder
} only %}
{% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
title: 'trainer',
icon: 'subprofile-trainer',
profile: horse.trainer
} only %}
{% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
title: 'racingmanager',
icon: 'subprofile-racingmanager',
profile: horse.racingmanager
} only %}
{% include 'network/widget/widget_separator.html.twig' %}
{% include 'network/horse/widgets/horse_widget_press.html.twig' with {
horse: horse
} only %}
{% endblock %}
{% endembed %}
</div>
</aside>
</div>
<div class="container grid gap-7 xl:gap-12">
{% include 'network/horse/sections/horse_section_pedigree.html.twig' with {
horse: horse
} only %}
{% include 'network/horse/sections/horse_section_achievements.html.twig' with {
profile: horse.owner,
achievements: achievements
} %}
{% include 'network/horse/sections/horse_section_news.html.twig' with {
horse: horse
} only %}
{% include 'network/horse/sections/horse_section_statistics.html.twig' with {
horse: horse
} only %}
</div> #}
</div>
</div>
{% endblock %}