templates/network/auction/detail.html.twig line 1

Open in your IDE?
  1. {% extends 'page.html.twig' %}
  2. {% block title %}
  3.   {% do pimcore_head_title().prepend(auction.key) %}
  4. {% endblock %}
  5. {% do pimcore_head_meta().setDescription(
  6.   '{{name}} on {{start}} - {{auctionhousename}}'|trans({
  7.     '{{name}}': auction.title,
  8.     '{{start}}': auction.start|date('Y-m-d'),
  9.     '{{auctionhousename}}': auction.auctionhouse.name
  10.   })
  11. ) %}
  12. {% block structuredData %}
  13.   {% set attendanceMode = 'https://schema.org/OfflineEventAttendanceMode' %}
  14.   {% if auction.platform == 'auction.platform.online' %}
  15.     {% set attendanceMode = 'https://schema.org/OnlineEventAttendanceMode' %}
  16.   {% endif %}
  17.   {% if auction.platform == 'auction.platform.hybrid' %}
  18.     {% set attendanceMode = 'https://schema.org/MixedEventAttendanceMode' %}
  19.   {% endif %}
  20.   <script type="application/ld+json">
  21.     { "@context": "https://schema.org", "@type": "Event", "name": "{{ auction.title }}",
  22.     "startDate": "{{ auction.start.toIso8601ZuluString() }}", "endDate": "{{
  23.       auction.end.toIso8601ZuluString()
  24.     }}", "eventAttendanceMode": "{{ attendanceMode }}", "eventStatus":
  25.     "https://schema.org/EventScheduled",{% if auction.auctionhouse %}
  26.       "location": { "@type": "Place", "name": "{{ auction.auctionhouse.name }}", "address": {
  27.       "@type": "PostalAddress", "streetAddress": "{{ auction.auctionhouse.street }}",
  28.       "addressLocality": "{{ auction.auctionhouse.city }}", "postalCode": "{{
  29.         auction.auctionhouse.postalCode
  30.       }}", "addressCountry": "{{ auction.auctionhouse.country }}" }
  31.     {% endif %}}{% if auction.image %}
  32.       ,"image": [ "{{ absolute_url(auction.image.fullPath) }}" ]
  33.     {% endif %}}
  34.   </script>
  35. {% endblock %}
  36. {% block content %}
  37.   <div class="w-full">
  38.     {% block hero deferred %}
  39.     {% include 'network/auction/sections/auction_section_hero.html.twig' with {
  40.       auction: auction,
  41.       user: user,
  42.     } only %}
  43.     {# {% include 'network/profile/components/section_navigation_component.html.twig' with {
  44.       profile: auction.auctionhouse
  45.     } %} #}
  46.     {% endblock %}
  47.     {% block tab_navigation %}
  48.       {% include 'network/auction/components/tab_navigation_component.html.twig' with {
  49.         auction: auction
  50.       } %}
  51.     {% endblock %}
  52.     <div class="container mx-auto ">
  53.     
  54.          
  55.       {# <div class="container grid grid-cols-12 gap-7 xl:gap-10"> #}
  56.         {# {% if user or (auction.attendees|length) > 0 %}
  57.           <aside class="grid gap-5 md:hidden auto-rows-min">
  58.             {% include 'network/auction/widgets/auction_widget_attendance.html.twig' with {
  59.               auction: auction,
  60.               user: user,
  61.               turbo_id: 'mobile'
  62.             } only %}
  63.           </aside>
  64.         {% endif %} #}
  65.         {# <div class="xl:col-span-7 col-span-full"> #}
  66.        
  67.           
  68.         <turbo-frame class="container" id="tab_content"
  69.           src="{{ path('auction_tab_navigation_timeline', { id: auction.id }) }}"></turbo-frame>
  70.         {# </div> #}
  71.         {# <div class="relative grid col-span-12 gap-12 xl:col-span-7 auto-rows-min">
  72.           {% include 'network/auction/sections/auction_section_countdown.html.twig' with {
  73.             auction: auction
  74.           } only %}
  75.           {% include 'network/auction/sections/auction_section_youtube.html.twig' with {
  76.             auction: auction
  77.           } only %}
  78.           {% include 'network/auction/sections/auction_section_timeline.html.twig' with {
  79.             user: user,
  80.             auction: auction,
  81.             hideCard: true
  82.           } only %}
  83.           {% include 'network/auction/sections/auction_section_horses.html.twig' with {
  84.             auction: auction
  85.           } only %}
  86.           {% include 'network/auction/sections/auction_section_attendees.html.twig' with {
  87.             auction: auction
  88.           } only %}
  89.           {% include 'network/auction/sections/auction_section_iframe.html.twig' with {
  90.             auction: auction
  91.           } only %}
  92.         </div> #}
  93.         {# <aside class="grid col-span-12 gap-5 xl:col-span-5">
  94.           <div class="sticky h-fit top-32">
  95.             {% embed 'network/widget/widget_sidebar.html.twig' %}
  96.               {% block widgets %}
  97.                 {% include 'network/auction/widgets/auction_widget_external_auction.html.twig' with {
  98.                   auction: auction
  99.                 } only %}
  100.                 {% if user or (auction.attendees|length) > 0 %}
  101.                   <div class="hidden md:block">
  102.                     {% include 'network/auction/widgets/auction_widget_attendance.html.twig' with {
  103.                       auction: auction,
  104.                       user: user,
  105.                       turbo_id: 'sidebar'
  106.                     } only %}
  107.                     {% include 'network/widget/widget_separator.html.twig' %}
  108.                   </div>
  109.                 {% endif %}
  110.                 {% include 'network/auction/widgets/auction_widget_auctionhouse.html.twig' with {
  111.                   auction: auction
  112.                 } only %}
  113.                 {% include 'network/widget/widget_separator.html.twig' %}
  114.                 {% include 'network/auction/widgets/auction_widget_press.html.twig' with {
  115.                   auction: auction
  116.                 } only %}
  117.               {% endblock %}
  118.             {% endembed %}
  119.             {% include 'network/widget/widget_banner.html.twig' with { banner: banner } %}
  120.           </div>
  121.         </aside> #}
  122.       </div>
  123.       {# {% include 'network/auction/sections/auction_section_elfsight-news.html.twig' with {
  124.         auction: auction
  125.       } only %} #}
  126.     </div>
  127.   </div>
  128. {% endblock %}