src/StartPlatz/Bundle/EventBundle/Resources/views/Default/event-single.style-ecodynamics.html.twig line 1

Open in your IDE?
  1. {% extends "@StartPlatzStyleBundle/Bootstrap4/base.homepage.event-lp.html.twig" %}
  2. {% import "@StartPlatzEventBundle/Admin/_macros.bs4.html.twig" as layout %}
  3. {% set currentPath = app.request.get('_route') %}
  4. {% block metaData %}
  5.     {# Optimize meta description for archived events #}
  6.     {% if event.status == 'archive' %}
  7.         {% set archivePrefix = 'Vergangene Veranstaltung vom ' ~ event.startDate|date('d.m.Y') ~ ': ' %}
  8.         <meta name="description" content="{{ archivePrefix }}{{ event.seoDescription|slice(0, 140) }}">
  9.     {% else %}
  10.         <meta name="description" content="{{ event.seoDescription }}">
  11.     {% endif %}
  12.     <meta name="keywords" content="{{ event.seoKeyword }}">
  13.     <meta name="author" content="{{ event.trainer }}">
  14.     {% if app.environment == 'prod' %}
  15.         <meta name="robots" content="index,follow">
  16.         {% if event.seriesTag is not empty %}
  17.             <link rel="canonical" href="{{ path('event_series', {'seriesTag': event.seriesTag}) }}" />
  18.         {% else %}
  19.             <link rel="canonical" href="https://www.startplatz.de/event/{{ event.slug | url_encode }}" />
  20.         {% endif %}
  21.     {% else %}
  22.         <meta name="robots" content="noindex,nofollow">
  23.     {% endif %}
  24.     <!-- Open Graph -->
  25.     <meta property="og:title" content="{{ event.seoTitle }}">
  26.     <meta property="og:description" content="{{ event.seoDescription }}">
  27.     <meta property="og:image" content="{{ event.imageLink }}">
  28.     <!-- Twitter Card -->
  29.     <meta name="twitter:card" content="summary">
  30.     <meta name="twitter:title" content="{{ event.seoTitle }}">
  31.     <meta name="twitter:description" content="{{ event.seoDescription }}">
  32.     <meta name="twitter:image" content="{{ event.imageLink }}">
  33. {% endblock %}
  34. {% block title %}{{ event.seoTitle }}{% endblock %}
  35. {% block additionalHead %}
  36.     {#
  37.     {% include "@StartPlatzStyle/CSS/_homepage.sinlge-event.version-2023-fall.html.twig" %}
  38.     #}
  39.     {% if event.additionalCss is not empty %}
  40.         <!-- addition css styles only for this event -->
  41.         <style>
  42.             .bg-registration {
  43.                 background-color: rgba(82,84,89,0.2);
  44.             }
  45.             {{ include(template_from_string(event.additionalCss)) }}
  46.         </style>
  47.     {% endif %}
  48.     {% include "@StartPlatzStyleBundle/_meta-pixel.html.twig" with { meta_pixel_id: event.metaPixelId|default(null) } only %}
  49. {% endblock %}
  50. {% block content %}
  51.     {% set lang = lang|default('DE') %}
  52.     <!-- start part navbar -->
  53.     {{ include(template_from_string(event.navbar)) }}
  54.     <!-- end part navbar -->
  55.     <!-- start part title, time and location -->
  56.     {{ include(template_from_string(event.teaser)) }}
  57.     <!-- end part title, time and location -->
  58.     <!-- Archive Banner (SEO-optimized: no redirect) -->
  59.     {% include '@StartPlatzEvent/Default/_event.part.archive-banner.html.twig' with {
  60.         'event': event
  61.     } %}
  62.     <!-- end archive banner -->
  63.     {% if app.session.flashbag.has('notice')  %}
  64.         <!-- start part flashbag notices -->
  65.         <section class="bg-sp-grey py-3">
  66.             <div class="container">
  67.                 <div class="content-wrapper content-background">
  68.                     {% for flashMessage in app.session.flashbag.get('notice') %}
  69.                         <div class="text-center alert {% if 'SUCCESS' in flashMessage %}alert-success{% elseif 'ERROR' in flashMessage  %}alert-danger{% else %}alert-default{% endif %}" role="alert">{{ flashMessage|replace({'SUCCESS': ''})|raw }}</div>
  70.                     {% endfor %}
  71.                     {{ editFeedback|raw }}
  72.                 </div> <!-- End of content-wrapper -->
  73.             </div>
  74.         </section>
  75.         <!-- end part flashbag notices -->
  76.     {% endif %}
  77.     {% if batch and application and application.applicationStatus %}
  78.         <!-- start part feedback application process -->
  79.         {% include "@StartPlatzEvent/Default/_event.part.feedback-application-process.html.twig" %}
  80.         <!-- end part feedback application process -->
  81.     {% endif %}
  82.     <!-- start part title, time and location -->
  83.     {{ include(template_from_string(event.content)) }}
  84.     <!-- end part title, time and location -->
  85.     <!-- start part anmeldung -->
  86.     {% include "@StartPlatzEvent/Default/_section.anmeldung.html.twig" %}
  87.     <!-- end part anmeldung -->
  88.     <!-- start tags -->
  89.     {% include "@StartPlatzEvent/Default/_section.tags.html.twig" %}
  90.     <!-- end tags -->
  91.     <!-- start post cta content -->
  92.     {% if event.postCtaContent %}
  93.         {{ include(template_from_string(event.postCtaContent)) }}
  94.     {% endif %}
  95.     <!-- end post cta content -->
  96.     {% if speakers %}
  97.         <!-- start part speakers and partners -->
  98.         {% include "@StartPlatzEvent/Default/_section.speakers-and-partners.html.twig" %}
  99.         <!-- end part speakers and partners -->
  100.     {% endif %}
  101.     <!-- start part past batches -->
  102.     {% include "@StartPlatzEvent/Default/_section.past-batches.html.twig" with {
  103.         'event': event,
  104.         'isMultiBatchEvent': isMultiBatchEvent,
  105.         'pastBatches': pastBatches,
  106.         'isEnglish': isEnglish
  107.     } %}
  108.     <!-- end part past batches -->
  109.     {% if app.user and batch %}
  110.         <!-- start part promote this event -->
  111.         {% include "@StartPlatzEvent/Default/_section.promote-this-event.html.twig" %}
  112.         <!-- end part promote this event -->
  113.     {% endif %}
  114.     {% if app.user is defined and application is defined and application is not null and application.canReadList %}
  115.             <section class="bg-sp-grey py-3">
  116.                 <div class="container">
  117.                     <div class="content-wrapper content-background">
  118.                         Hier kannst Du die Teilnehmerliste einsehen
  119.                         <a class="btn btn-outline-dark btn-sm" href="{{ path('admin_event_participants', {id: event.id} ) }}" role="button">participants</a>
  120.                     </div>
  121.                 </div>
  122.             </section>
  123.     {% endif %}
  124.     {% if app.user is defined %}
  125.         {% if app.user.admin is defined and app.user.admin %}
  126.             <!-- start part startplatz admin section -->
  127.             {% include "@StartPlatzEvent/Default/_section.startplatz-admin-section.html.twig" %}
  128.             <!-- end part startplatz admin section -->
  129.         {% endif %}
  130.     {% endif %}
  131.     <!-- homepage event single page ends -->
  132. {% endblock %}
  133. {% block footer %}
  134.     {% if not embed|default(false) %}
  135.         {% include '@StartPlatzWebsiteBundle/Default/footerBootstrap40.html.twig' %}
  136.     {% endif %}
  137. {% endblock %}
  138. {% block infiniteLoop %}{% endblock %}
  139. {% block javascriptInfiniteLoop %}{% endblock %}
  140. {% block ajax_helpers %}{% endblock %}
  141. {% block javascripts %}{% endblock %}