src/StartPlatz/Bundle/EventBundle/Resources/views/Default/event-series.html.twig line 1

Open in your IDE?
  1. {% extends "@StartPlatzStyleBundle/Bootstrap4/base.homepage.with-sections.html.twig" %}
  2. {% import "@StartPlatzEventBundle/Admin/_macros.bs4.html.twig" as layout %}
  3. {% set currentPath = app.request.get('_route') %}
  4. {% block metaData %}
  5.     <meta name="description" content="{{ event.seoDescription }}">
  6.     <meta name="keywords" content="{{ event.seoKeyword }}">
  7.     <meta name="author" content="{{ event.trainer }}">
  8.     {% if app.environment == 'prod' %}
  9.         <meta name="robots" content="index,follow">
  10.         <link rel="canonical" href="https://www.startplatz.de/event-series/{{ event.seriesTag }}" />
  11.     {% else %}
  12.         <meta name="robots" content="noindex,nofollow">
  13.     {% endif %}
  14.     <!-- Open Graph -->
  15.     <meta property="og:title" content="{{ event.seoTitle }}">
  16.     <meta property="og:description" content="{{ event.seoDescription }}">
  17.     <meta property="og:image" content="{{ event.imageLink }}">
  18.     <!-- Twitter Card -->
  19.     <meta name="twitter:card" content="summary">
  20.     <meta name="twitter:title" content="{{ event.seoTitle }}">
  21.     <meta name="twitter:description" content="{{ event.seoDescription }}">
  22.     <meta name="twitter:image" content="{{ event.imageLink }}">
  23. {% endblock %}
  24. {% block additionalHead %}
  25.     {% include "@StartPlatzStyle/CSS/_homepage.sinlge-event.version-2023-fall.html.twig" %}
  26.     {% if event.additionalCss is not empty %}
  27.         <!-- addition css styles only for this event -->
  28.         <style>
  29.             {{ event.additionalCss }}
  30.         </style>
  31.     {% endif %}
  32.     <style type="text/css">
  33.         body {
  34.             padding-top: 0px;
  35.             font-family: 'Source Sans Pro', sans-serif;
  36.         }
  37.     </style>
  38. {% endblock %}
  39. {% block navigation %}{% endblock %}
  40. {% block title %}{{ event.seoTitle }}{% endblock %}
  41. {% block content %}
  42.     <!-- Main Content Section -->
  43.     <section class="bg-sp-grey pb-1">
  44.         <div class="content-wrapper">
  45.             <div class="row pt-3 pb-1 bg-white">
  46.                 <div class="col">
  47.                     <!-- Article Image and Title -->
  48.                     <div class="row align-items-center">
  49.                         <!-- Display article image or video -->
  50.                         <div class="col-md-4 d-flex justify-content-center pl-md-5">
  51.                             <img src="{{ event.imageLink }}" class="rounded img-fluid" alt="artikelbild" title="" />
  52.                         </div>
  53.                         <!-- Display event title and related details -->
  54.                         <div class="col-md-8 d-flex justify-content-center pr-md-5">
  55.                             <div class="text-center">
  56.                                 <h1>{{ event.title|raw }}</h1>
  57.                                 <!-- Display trainer information right after the event title -->
  58.                                 {% if event.trainer %}
  59.                                     <h4 class="font-italic">{{ event.trainer }}</h4>
  60.                                 {% endif %}
  61.                             </div>
  62.                         </div>
  63.                     </div>
  64.                 </div>
  65.             </div>
  66.             <!-- Event Date, Time and Location -->
  67.             <div class="row pb-3 bg-white">
  68.                 <div class="col text-center px-md-5">
  69.                     <hr>
  70.                     {{ layout.dateTimeDuration(event, lang) }}
  71.                     {% set locationText = lang == 'EN' ? 'Location' : 'Ort' %}
  72.                     {% if event.venueName == 'STARTPLATZ' %}
  73.                         {% if event.location == 'Remote' %}
  74.                             <i class="fa fa-map-marker fa-fw"></i>{{ phrases.event_phrase_webinar | default('Webinar') }}
  75.                         {% else %}
  76.                             <i class="fa fa-map-marker fa-fw"></i>{{ event.location }}, STARTPLATZ
  77.                         {% endif %}
  78.                     {% else %}
  79.                         <i class="fa fa-map-marker fa-fw"></i>{{ event.venueName }}, {{ event.venueAddress }}
  80.                     {% endif %}
  81.                 </div>
  82.             </div>
  83.             <div class="row pb-3 bg-white">
  84.                 <div class="col text-center">
  85.                     <a href="{{ path('event_show_single', {'slug': event.slug} + utmParameters) }}#Anmeldung" class="btn btn-success">
  86.                         {{ phrases['event-series_register_for_event'] | default('Jetzt buchen!') }}
  87.                     </a>
  88.                 </div>
  89.             </div>
  90.             <!-- Event Content -->
  91.             <div class="row pb-3 bg-white">
  92.                 <div class="col-12 px-4 px-md-5">
  93.                     <hr>
  94.                     {{ event.content|raw }}
  95.                 </div>
  96.             </div>
  97.             <!-- Link to active event -->
  98.             <div class="row pb-3 bg-white">
  99.                 <div class="col-12 px-md-5">
  100.                     {% if event.endDate < date('now') %}
  101.                         {# The code here will execute if the event's endDate has already passed #}
  102.                         {# Example: Display a message indicating the event has ended #}
  103.                         <p>This event has already ended.</p>
  104.                     {% else %}
  105.                         <hr>
  106.                         {# The code here will execute if the event's endDate has not passed yet #}
  107.                         <div class="text-center">
  108.                             <a href="{{ path('event_show_single', {'slug': event.slug} + utmParameters) }}#Anmeldung" class="btn btn-success">
  109.                                 {{ phrases['event-series_register_for_event'] | default('Jetzt buchen!') }}
  110.                             </a>
  111.                         </div>
  112.                         <hr>
  113.                     {% endif %}
  114.                 </div>
  115.             </div>
  116.         </div>
  117.     </section>
  118.     <!-- Impressions Section -->
  119.     <section class="bg-sp-grey pb-1">
  120.         <div class="content-wrapper">
  121.             <div class="row pt-3 pb-3 bg-white">
  122.                 <div class="col-12">
  123.                     {#  <h2 class="text-center">{{ phrases['impressions'] | default('Impressions') }}</h2>#}
  124.                     <img src="https://res.cloudinary.com/startplatz/image/upload/f_auto,q_auto/v1700001585/ai-hub/workshop-impressions.jpg" class="img-fluid" alt="Impressions">
  125.                 </div>
  126.             </div>
  127.         </div>
  128.     </section>
  129.     <!-- Series Overview / About Us Section -->
  130.     <section class="bg-sp-grey pb-1">
  131.         <div class="content-wrapper">
  132.             <div class="row pt-3 pb-3 bg-white">
  133.                 <div class="col-12 px-4 px-md-5">
  134.                     <h2 class="text-center">{{ phrases['about_us'] | default('Über Uns') }}</h2>
  135.                     {{ event.postCtaContent|raw }}
  136.                 </div>
  137.             </div>
  138.         </div>
  139.     </section>
  140.     <!-- Cooperation Partners Section -->
  141.     <section class="bg-sp-grey pb-1">
  142.         <div class="content-wrapper">
  143.             <div class="row pt-3 pb-3 bg-white">
  144.                 <div class="col-12">
  145.                     <h2 class="text-center">{{ phrases['our_partners'] | default('Partner und Kooperationen') }}</h2>
  146.                     <img src="https://res.cloudinary.com/startplatz/image/upload/f_auto,q_auto/v1700002655/ai-hub/startplatz-ai-hub-partners-cooperations.jpg" class="img-fluid" alt="Partner und Kooperationen">
  147.                 </div>
  148.             </div>
  149.         </div>
  150.     </section>
  151.     <!-- Upcoming Events Section -->
  152.     <section class="bg-sp-grey pb-1">
  153.         <div class="content-wrapper">
  154.             <div class="row pt-3 pb-3 bg-white">
  155.                 <div class="col-12 px-4 px-md-5" >
  156.                 <h2 class="text-center mb-3">{{ phrases['upcoming_events'] | default('Kommende Veranstaltungen') }}</h2>
  157.                 {% include "@StartPlatzEvent/Default/_event.part.futureEvents.html.twig" %}
  158.                 </div>
  159.             </div>
  160.         </div>
  161.     </section>
  162.     <!-- Newsletter Signup Section -->
  163.     <section class="bg-sp-grey pb-1">
  164.         <div class="content-wrapper">
  165.             <div class="row pt-3 pb-3 bg-white">
  166.                 <div class="col-12 text-center">
  167.                     <h2>{{ phrases['newsletter_signup'] | default('Für unseren Newsletter anmelden') }}</h2>
  168.                     <p>Melden Sie sich für unseren Newsletter an, um die neuesten Informationen zu erhalten.</p>
  169.                     <!-- Begin MailChimp Signup Form -->
  170.                     <!-- Begin MailChimp Signup Form -->
  171.                     <div id="mc_embed_signup">
  172.                         <form id="mc-embedded-subscribe-form" class="validate" action="https://startplatz.us5.list-manage.com/subscribe?u=8a2b498caca4323b774191382&id=be73f77d94" method="post" name="mc-embedded-subscribe-form" novalidate="" target="_blank">
  173.                             <div id="mc_embed_signup_scroll" class="d-flex flex-column align-items-center">
  174.                                 <!-- Eingabefelder für die Email etc. -->
  175.                                 <button type="submit" class="btn btn-success mt-2">Anmelden</button>
  176.                                 <!-- Verstecktes Feld für Bot-Schutz -->
  177.                                 <div style="position: absolute; left: -5000px;" aria-hidden="true">
  178.                                     <input tabindex="-1" name="b_8a2b498caca4323b774191382_51dae9d56a" type="text" value="" />
  179.                                 </div>
  180.                             </div>
  181.                         </form>
  182.                     </div>
  183.                     <!--End mc_embed_signup-->
  184.                     <!--End mc_embed_signup-->
  185.                 </div>
  186.             </div>
  187.         </div>
  188.     </section>
  189.     <!-- Testimonials Section -->
  190.     <section class="bg-sp-grey pb-1">
  191.         <div class="content-wrapper">
  192.             <div class="row pt-3 pb-3 bg-white">
  193.                 <div class="col-12">
  194.                     {#  <h2 class="text-center">{{ phrases['testimonials'] | default('Testimonials') }}</h2>#}
  195.                     <img src="https://res.cloudinary.com/startplatz/image/upload/f_auto,q_auto/v1700082958/ai-hub/testimonials-deutsch.jpg" class="img-fluid" alt="Testimonials">
  196.                 </div>
  197.             </div>
  198.         </div>
  199.     </section>
  200.     <!-- Past Events Section -->
  201.     <section class="bg-sp-grey pb-1">
  202.         <div class="content-wrapper">
  203.             <div class="row pt-3 pb-3 bg-white">
  204.                 <div class="col-12 px-4 px-md-5" >
  205.                 <h2 class="text-center mb-3">{{ phrases['past_events'] | default('Vergangene Veranstaltungen') }}</h2>
  206.                 {% include "@StartPlatzEvent/Default/_event.part.pastEvents.html.twig" %}
  207.                 </div>
  208.             </div>
  209.         </div>
  210.     </section>
  211. <style>
  212.     .tag-links {
  213.         display: inline-block;
  214.         margin: auto;
  215.     }
  216.     .tag-link {
  217.         color: #7AB800; /* Startplatz-Grün */
  218.         text-decoration: none;
  219.         margin-right: 10px; /* Abstand zwischen den Tags */
  220.     }
  221.     .tag-link:hover {
  222.         text-decoration: underline; /* Unterstreichen beim Hover */
  223.     }
  224. </style>
  225.     <!-- Tags Section -->
  226.     <section class="bg-sp-grey pb-1">
  227.         <div class="content-wrapper">
  228.             <div class="row pt-3 pb-3 bg-white">
  229.                 <div class="col-12 text-center">
  230.                     {{ layout.tagTextLinks(event.tags|split('#'), 'events_list') }}
  231.                     <!-- Neue Zeile für Buttons -->
  232.                     <div class="button-row mt-3">
  233.                         <a href="https://www.startplatz.de" class="btn btn-success m-1">zur STARTPLATZ Homepage</a>
  234.                         <a href="https://www.startplatz.de/events" class="btn btn-success m-1">zur STARTPLATZ Event-Übersicht</a>
  235.                     </div>
  236.                 </div>
  237.             </div>
  238.         </div>
  239.     </section>
  240.     <!-- homepage single event ends -->
  241. {% endblock %}
  242. {% block footer %}
  243.     {% include '@StartPlatzWebsiteBundle/Default/footerBootstrap40.html.twig' %}
  244. {% endblock %}
  245. {% block infiniteLoop %}{% endblock %}
  246. {% block javascriptInfiniteLoop %}{% endblock %}