src/StartPlatz/Bundle/AlphaBundle/Resources/views/Startup/single.homepage.html.twig line 1

Open in your IDE?
  1. {% extends "@StartPlatzStyleBundle/Bootstrap4/base.homepage.with-sections.html.twig" %}
  2. {% set currentPath = app.request.get('_route') %}
  3. {% set entity = {'seoDescription':startup.oneSentencePitch|striptags} %}
  4. {% block metaData %}{% include "@StartPlatzStyleBundle/_metaData.html.twig" with {'seoDescription':entity.seoDescription} %}{% endblock %}
  5. {% block additionalHead %}
  6.     {% include "@StartPlatzStyle/CSS/_sp-connect.version-2021-winter.html.twig" %}
  7. {% endblock %}
  8. {% block navigation %}
  9.     {% include "@StartPlatzStyleBundle/Navigation/_nav.homepage.bootstrap4.html.twig" %}
  10. {% endblock %}
  11. {% block title %}Startup {{ startup.name }}{% endblock %}
  12. {% block content %}
  13.     {% set targetUrl = path('x_connect_team_show', {'id': team.id, 'slug': startup.slug}) %}
  14.     {% if app.user.email is not defined %}
  15.         {% set targetPath = targetUrl %}
  16.         {% set targetUrl = path('x_membership_required_modal', {'lang':lang, 'targetPath': targetPath}) %}
  17.     {% endif %}
  18.     {#  header #}
  19.     {% if startup.imageLink is not null %}
  20.         <section class="headerImgPlaceholder">
  21.             <img class="banner-flex-width" src="{{ startup.imageLink }}" style="width:100%;"
  22.                  alt=" ">
  23.         </section>
  24.     {% endif %}
  25.     {% if startup.imageLink is null %}
  26.         <section class="headerImgPlaceholder placeholder-addition">
  27.             <img class="placeholder-banner-flex-width connect"
  28.                  src="https://res.cloudinary.com/startplatz/image/upload/v1683121186/banners/header_wide_gray.png"
  29.                  alt=" ">
  30.         </section>
  31.         <div class="container-fluid placeholder-banner-text">
  32.             <div class="row justify-content-center">
  33.                 <h2 class="text-black text p-0 m-0" style="font-size: 45px; font-weight: bold">
  34.                     {{ startup.name }}
  35.                 </h2>
  36.             </div>
  37.         </div>
  38.     {% endif %}
  39.     <section class="container-fluid m-0 p-0 mt-4">
  40.         <div class="ml-0 mt-3 mb-5 mb-md-1 pb-2 pb-md-0">
  41.             <div class="d-flex row mx-0 mx-md-2 justify-content-md-end justify-content-center">
  42.                 <div>
  43.                     <div>
  44.                         <a class="btn btn-startplatz col-11 mb-2 mt-1" style="width:280px"
  45.                            href="{{ targetUrl }}" {% if not app.user.email is defined %} data-remote="false" data-toggle="modal" data-target="#myLargeModal" {% endif %}>
  46.                             view startup in sp-connect
  47.                         </a>
  48.                     </div>
  49.                     <div>
  50.                         <a class="btn btn-startplatz col-11 mb-2" style="width:280px"
  51.                                 {% if app.user.email is defined %} href="{{ path('x_team_connect_contact_form', {id: team.id, redirect: redirectUrl}) }}"{% else %} href="{{ targetUrl }}" data-remote="false" data-toggle="modal" data-target="#myLargeModal" {% endif %}>
  52.                             Get in contact
  53.                         </a>
  54.                     </div>
  55.                     {# administration by startup - only for owner and admins of that startup ------------------------------------ #}
  56.                     {% if allowEdit == true %}
  57.                         <div class="dropdown">
  58.                             <button class="btn btn-startplatz dropdown-toggle col-11 mb-2"
  59.                                     type="button"
  60.                                     id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true"
  61.                                     aria-expanded="false">
  62.                                 Edit options (Owner or Admin)
  63.                             </button>
  64.                             <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  65.                                 <a class="dropdown-item"
  66.                                    href="{{ path('x_post_edit', {'id':'new','tag':startup.slug, 'redirect': redirectUrl}) }}">
  67.                                     Create Post
  68.                                 </a>
  69.                                 {# Update Startup / team #}
  70.                                 {% if startup.slug %}
  71.                                     <a class="dropdown-item"
  72.                                        href="{{ path('x_startup_edit', {id: startup.id, 'slug':startup.slug, redirect: redirectUrl}) }}">
  73.                                         Update Startup
  74.                                     </a>
  75.                                 {% endif %}
  76.                             </div>
  77.                         </div>
  78.                     {% endif %}
  79.                     {# administration  by STARTPLATZ admins -------------------------------- #}
  80.                     {% if is_granted("ROLE_ADMIN") %}
  81.                         <div class="dropdown">
  82.                             <button class="btn btn-warning dropdown-toggle col-11 mb-2"
  83.                                     type="button"
  84.                                     id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true"
  85.                                     aria-expanded="false">
  86.                                 Edit options (SP admin)
  87.                             </button>
  88.                             <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  89.                                 <a class="dropdown-item"
  90.                                    href="{{ path('x_post_edit', {'id':'new','tag':startup.slug, 'redirect': redirectUrl}) }}">
  91.                                     Create Post
  92.                                 </a>
  93.                                 {# Update Startup / team #}
  94.                                 {% if startup.slug %}
  95.                                     <a class="dropdown-item"
  96.                                        href="{{ path('x_startup_edit', {id: startup.id, 'slug':startup.slug, redirect: redirectUrl}) }}">
  97.                                         Update Startup
  98.                                     </a>
  99.                                 {% endif %}
  100.                                 {# Update team in allmeda #}
  101.                                 <a href="{{ path('allmeda_team_show', {'id':team.id, redirect: redirectUrl}) }}"
  102.                                    class="dropdown-item" role="button">
  103.                                     Update Team in Allmeda
  104.                                 </a>
  105.                             </div>
  106.                         </div>
  107.                     {% endif %}
  108.                 </div>
  109.             </div>
  110.         </div>
  111.         <div class="connectCard row d-flex shadow m-0 p-0 px-md-5 pb-2 pr-0 justify-content-around">
  112.             <div class="row m-2 px-md-5 mx-md-auto justify-content-around team-section" style="flex:1">
  113.                 {% include "@StartPlatzAlphaBundle/Team/_widget.team.about.html.twig" with {
  114.                     'description' : startup.oneSentencePitch ? startup.oneSentencePitch : team.description,
  115.                 } %}
  116.             </div>
  117.         </div>
  118.         <div class="row m-2 px-md-5 mx-md-auto justify-content-around team-section">
  119.             <div class="container-fluid mt-4 mb-0 mx-0 px-0">
  120.                 <h2><span class="spGreen">MEET </span>our team</h2>
  121.                 <div>
  122.                     <a class="btn btn-startplatz aligncenter col-11 mb-2 mt-1 ml-2" style="width:280px"
  123.                        href="{{ targetUrl }}" {% if not app.user.email is defined %} data-remote="false" data-toggle="modal" data-target="#myLargeModal" {% endif %}>
  124.                         view in sp-connect
  125.                     </a>
  126.                 </div>
  127.             </div>
  128.         </div>
  129.         {# don't display team members on homepage
  130.     {% if team.members|length > 0 %}
  131.         <div class="row m-2 px-md-5 mx-md-auto justify-content-around team-section">
  132.             {% include "@StartPlatzAlphaBundle/Team/_widget.team.ourteam.html.twig" with {
  133.                 'maxMembers' : 14,
  134.                 'memberWidget' : '@StartPlatzAlphaBundle/Member/homepage.startup.member.widget.html.twig'
  135.             } %}
  136.         </div>
  137.     {% endif %}
  138.         #}
  139.         {% if feedItems or startup.twitter %}
  140.             <div class="row m-2 px-md-5 m-md-auto mx-xs-1 justify-content-between team-section">
  141.                 {% include "@StartPlatzAlphaBundle/Team/_widget.team.feed.html.twig" with {
  142.                     'twitter' : startup.twitter,
  143.                     'name' : startup.name,
  144.                 } %}
  145.             </div>
  146.         {% endif %}
  147.     </section>
  148. {% endblock %}
  149.     {% block footer %}
  150.         {% include '@StartPlatzWebsiteBundle/Default/footerBootstrap40.html.twig' %}
  151.     {% endblock %}
  152.     {% block infiniteLoop %}
  153.     {% endblock %}
  154.     {% block javascripts %}{% endblock %}