templates/network/horse/detail.html.twig line 14

Open in your IDE?
  1. {% extends 'page.html.twig' %}
  2. {% block title %}
  3.   {% if horse.owner %}
  4.     {% do pimcore_head_title().prepend(horse.displayName ~ ' - ' ~ horse.owner.name) %}
  5.   {% else %}
  6.     {% do pimcore_head_title().prepend(horse.displayName) %}
  7.   {% endif %}
  8. {% endblock %}
  9. {% do pimcore_head_meta().setDescription(
  10.   '{{name}} - {{owner}} on 3forONE.com'|trans({
  11.     '{{name}}': horse.displayName,
  12.     '{{owner}}': horse.owner.name ?? ''
  13.   })
  14. ) %}
  15. {% block content %}
  16.   <div class="w-full mb-16">
  17.     {% block hero deferred %}
  18.     {% include 'network/horse/sections/horse_section_hero.html.twig' with { horse: horse } only %}
  19.     {# {% include 'network/profile/components/section_navigation_component.html.twig' with {
  20.       profile: horse.owner
  21.     } %} #}
  22.     {% endblock %}
  23.     {% block tab_navigation %}
  24.       {% include 'network/horse/components/tab_navigation_component.html.twig' with {
  25.         horse: horse
  26.       } %}
  27.     {% endblock %}
  28.     <div class="container gap-16 mx-auto">
  29.       <turbo-frame class="container"
  30.         id="tab_content"
  31.         src="{{ path('horse_tab_navigation_timeline', { id: horse.id }) }}"></turbo-frame>
  32.       {# <div class="container grid grid-cols-12 gap-7 xl:gap-10">
  33.         <div class="grid col-span-12 gap-12 xl:col-span-7">
  34.           {% include 'network/horse/sections/horse_section_timeline.html.twig' with {
  35.             horse: horse
  36.           } only %}
  37.           {% if hasPosts %}
  38.             {% include 'network/horse/sections/horse_section_elfsight.html.twig' with {
  39.               elfsight: horse.elfsight
  40.             } %}
  41.           {% endif %}
  42.           {% include 'network/horse/sections/horse_section_auction_history.html.twig' with {
  43.             history: auctionHistory
  44.           } only %}
  45.         </div>
  46.         <aside class="flex flex-col col-span-12 gap-5 xl:col-span-5">
  47.           <div class="sticky top-32">
  48.             {% embed 'network/widget/widget_sidebar.html.twig' %}
  49.               {% block widgets %}
  50.                 {% include 'network/horse/widgets/horse_widget_data.html.twig' with {
  51.                   horse: horse
  52.                 } only %}
  53.                 {% include 'network/widget/widget_separator.html.twig' %}
  54.                 {% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
  55.                   title: 'owner',
  56.                   icon: 'subprofile-owner',
  57.                   profile: horse.owner
  58.                 } only %}
  59.                 {% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
  60.                   title: 'breeder',
  61.                   icon: 'subprofile-breeder',
  62.                   profile: horse.breeder
  63.                 } only %}
  64.                 {% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
  65.                   title: 'trainer',
  66.                   icon: 'subprofile-trainer',
  67.                   profile: horse.trainer
  68.                 } only %}
  69.                 {% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
  70.                   title: 'racingmanager',
  71.                   icon: 'subprofile-racingmanager',
  72.                   profile: horse.racingmanager
  73.                 } only %}
  74.                 {% include 'network/widget/widget_separator.html.twig' %}
  75.                 {% include 'network/horse/widgets/horse_widget_press.html.twig' with {
  76.                   horse: horse
  77.                 } only %}
  78.               {% endblock %}
  79.             {% endembed %}
  80.           </div>
  81.         </aside>
  82.       </div>
  83.       <div class="container grid gap-7 xl:gap-12">
  84.         {% include 'network/horse/sections/horse_section_pedigree.html.twig' with {
  85.           horse: horse
  86.         } only %}
  87.         {% include 'network/horse/sections/horse_section_achievements.html.twig' with {
  88.           profile: horse.owner,
  89.           achievements: achievements
  90.         } %}
  91.         {% include 'network/horse/sections/horse_section_news.html.twig' with {
  92.           horse: horse
  93.         } only %}
  94.         {% include 'network/horse/sections/horse_section_statistics.html.twig' with {
  95.           horse: horse
  96.         } only %}
  97.       </div> #}
  98.     </div>
  99.   </div>
  100. {% endblock %}