src/StartPlatz/Bundle/StyleBundle/Resources/views/Navigation/_nav.homepage.bootstrap4.html.twig line 1

Open in your IDE?
  1. {% if permaLink is not defined %}
  2.     {% set permaLink = 'n.a.' %}
  3. {% endif %}
  4. {% include "@StartPlatzStyle/CSS/homepageNavbar.css.twig" %}
  5. {% set menuLinks   =  menuLinksAndPhrases.menuLinks %}
  6. {% set menuPhrases =  menuLinksAndPhrases.menuPhrases %}
  7. {% set targetPath  =  menuLinksAndPhrases.targetPath %}
  8. {% set lang        =  menuLinksAndPhrases.lang %}
  9. {% set menuLinksDe2En =  menuLinksAndPhrases.menuLinksDe2En %}
  10. {% set menuLinksEn2De =  menuLinksAndPhrases.menuLinksEn2De %}
  11. <style>
  12.     .ai-hub-link:hover {
  13.         color: black; /* Textfarbe beim Hover */
  14.     }
  15. </style>
  16. <nav class="navbar navbar-dark bg-dark navbar-expand-lg fixed-top shadow-lg padding-bottom d-flex justify-content-lg-center">
  17.         <a class="logo navbar-brand text-center mr-2 mr-lg-4" href="https://www.startplatz.de" rel="tooltip" title="Home for the innovative people in Rheinland" data-placement="bottom" >
  18.             <img src="https://res.cloudinary.com/startplatz/image/upload/c_scale,w_107/v1614775778/logos/STARTPLATZ_Logos/STARTPLATZ_Logo_wei%C3%9F.png" class="p-0 m-0">
  19.         </a>
  20.         <button class="navbar-toggler " type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navbarSupportedContent-3" aria-expanded="false" aria-label="Toggle navigation">
  21.             <span class="navbar-toggler-icon"></span>
  22.         </button>
  23.         <div class="collapse navbar-collapse mt-1" id="navigation" style="font-size: 0.9rem; max-width:920px" >
  24.                 <ul class="navbar-nav mr-3">
  25.                     {% set url = (lang == 'EN') ? 'https://startplatz-ai-hub.de/en/' : 'https://startplatz-ai-hub.de' %}
  26.                     <li class="nav-item active mb-2 mt-2 mr-1 ml-0 mr-2">
  27.                         <a class="nav-link px-2" style="background-color: rgba(142,86,255,1.0); border-radius: 10px; min-width:75px; display: inline-block; text-align: center;" href="{{ url }}">
  28.                             AI Hub
  29.                         </a>
  30.                     </li>
  31.                     <li class="nav-item dropdown active  mt-2 mr-2">
  32.                         <a href="#" class="nav-link px-2 dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown">
  33.                             Startups
  34.                         </a>
  35.                         <div class="dropdown-menu dropdown-menu-left" aria-labelledby="navbarDropdownMenuLink">
  36.                             <hr class="my-2 mx-3">
  37.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/memberships') }}">
  38.                                 {{ attribute(menuPhrases, 'memberships') }}
  39.                             </a>
  40.                             <hr class="my-2 mx-3">
  41.                             <a class="dropdown-item" href="https://accelerator.startplatz.de">
  42.                                 Accelerator
  43.                             </a>
  44.                             {# Commented out as per product team request - DO NOT DELETE
  45.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/gruenderstipendium') }}">
  46.                                 {{ attribute(menuPhrases, 'gruenderstipendium') }}
  47.                             </a>
  48.                             #}
  49.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/rheinland-pitch') }}">
  50.                                 {{ attribute(menuPhrases, 'rheinland-pitch') }}
  51.                             </a>
  52.                             {# Commented out as per product team request - DO NOT DELETE
  53.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/software') }}">
  54.                                 {{ attribute(menuPhrases, 'software') }}
  55.                             </a>
  56.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/startup-wiki') }}">
  57.                                 {{ attribute(menuPhrases, 'startup-wiki') }}
  58.                             </a>
  59.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/jobs') }}">
  60.                                 {{ attribute(menuPhrases, 'jobs') }}
  61.                             </a>
  62.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/sprechstunden') }}">
  63.                                 {{ attribute(menuPhrases, 'sprechstunden') }}
  64.                             </a>
  65.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/mentoring') }}">
  66.                                 {{ attribute(menuPhrases, 'mentoring') }}
  67.                             </a>
  68.                             #}
  69.                         </div>
  70.                     </li>
  71.                     <li class="nav-item dropdown active  mt-2 mr-2
  72.                        {% if lang == 'DE' %}
  73.                                 {% if 'fuer-unternehmen' in targetPath or '/fuer-unternehmen-1' in targetPath %}
  74.                                     highlight
  75.                                 {% endif %}
  76.                             {% else %}
  77.                                 {% if 'en/corporate-innovation' in targetPath or 'en/corporate-innovation-1' in targetPath%}
  78.                                     highlight
  79.                                 {% endif %}
  80.                             {% endif %}">
  81.                         <a href="#" class="nav-link px-2 dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown">
  82.                             {{ attribute(menuPhrases, 'corporate') }}
  83.                         </a>
  84.                         <div class="dropdown-menu dropdown-menu-left" aria-labelledby="navbarDropdownMenuLink">
  85.                             {# Commented out as per product team request - DO NOT DELETE
  86.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation') }}">
  87.                                 {{ attribute(menuPhrases, 'corporate-0') }}
  88.                             </a>
  89.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation-1') }}">
  90.                                 {{ attribute(menuPhrases, 'corporate-1') }}
  91.                             </a>
  92.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation-2') }}">
  93.                                 {{ attribute(menuPhrases, 'corporate-2') }}
  94.                             </a>
  95.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation-3') }}">
  96.                                 {{ attribute(menuPhrases, 'corporate-3') }}
  97.                             </a>
  98.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation-4') }}">
  99.                                 {{ attribute(menuPhrases, 'corporate-4') }}
  100.                             </a>
  101.                             #}
  102.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/innovation-partnerschaften') }}">
  103.                                 {{ attribute(menuPhrases, 'innovation-partnerschaften') }}
  104.                             </a>
  105.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/ki-weiterbildung') }}">
  106.                                 {{ attribute(menuPhrases, 'ki-weiterbildung') }}
  107.                             </a>
  108.                         </div>
  109.                     </li>
  110.                     <li class="nav-item dropdown active  mt-2 mr-2">
  111.                         <a href="#" class="nav-link px-2 dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown">
  112.                             {{ attribute(menuPhrases, 'coworking-offices') }}
  113.                         </a>
  114.                         <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
  115.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/offices-cologne') }}">
  116.                                 {{ attribute(menuPhrases, 'offices-cologne') }}
  117.                             </a>
  118.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/offices-duesseldorf') }}">
  119.                                 {{ attribute(menuPhrases, 'offices-duesseldorf') }}
  120.                             </a>
  121.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/coworking-cologne') }}">
  122.                                 {{ attribute(menuPhrases, 'coworking-cologne') }}
  123.                             </a>
  124.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/coworking-duesseldorf') }}">
  125.                                 {{ attribute(menuPhrases, 'coworking-duesseldorf') }}
  126.                             </a>
  127.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/geschaeftsadresse-cologne') }}">
  128.                                 {{ attribute(menuPhrases, 'geschaeftsadresse-cologne') }}
  129.                             </a>
  130.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/geschaeftsadresse-duesseldorf') }}">
  131.                                 {{ attribute(menuPhrases, 'geschaeftsadresse-duesseldorf') }}
  132.                             </a>
  133.                         </div>
  134.                     </li>
  135.                     <li class="nav-item dropdown active  mt-2 mr-2">
  136.                         <a href="#" class="nav-link px-2 dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown">
  137.                             {{ attribute(menuPhrases, 'tagen') }}
  138.                         </a>
  139.                         <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
  140.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/tagungsraum-koeln') }}">
  141.                                 {{ attribute(menuPhrases, 'tagungsraum-koeln') }}
  142.                             </a>
  143.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/tagungsraum-dus') }}">
  144.                                 {{ attribute(menuPhrases, 'tagungsraum-dus') }}
  145.                             </a>
  146.                         </div>
  147.                     </li>
  148.                     <li class="nav-item active mt-2 mr-2
  149.                                 {% if 'events' in targetPath %}
  150.                                     highlight
  151.                                 {% endif %}">
  152.                         <a href="{{ attribute(menuLinks, '/events') }}" class="nav-link px-2">
  153.                             {{ attribute(menuPhrases, 'events') }}
  154.                         </a>
  155.                     </li>
  156.                     <li class="nav-item dropdown active  mt-2 mr-2
  157.                         {% if lang == 'DE' %}
  158.                                 {% if 'presse' in targetPath or 'standorte' in targetPath or 'startplatz-team' in targetPath
  159.                                 or 'partner' in targetPath or 'startups' in targetPath or 'jobs' in targetPath or 'software' in targetPath
  160.                                 or 'sprechstunden' in targetPath or 'referenzen' in targetPath or 'carrer' in targetPath %}
  161.                                     highlight
  162.                                 {% endif %}
  163.                             {% else %}
  164.                                 {% if '/en/presse' in targetPath or '/en/standorte' in targetPath or '/en/startplatz-team' in targetPath
  165.                                 or '/en/partner' in targetPath or '/en/startups' in targetPath or '/en/jobs' in targetPath or '/en/software' in targetPath
  166.                                 or '/en/sprechstunden' in targetPath or '/en/referenzen' in targetPath or '/en/carrer' in targetPath %}
  167.                                     highlight
  168.                                 {% endif %}
  169.                             {% endif %}">
  170.                         <a href="#" class="nav-link px-2 dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown">
  171.                             {{ attribute(menuPhrases, 'ueber-uns') }}
  172.                         </a>
  173.                         <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
  174.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/ueber-startplatz') }}">
  175.                                 {{ attribute(menuPhrases, 'ueber-startplatz') }}
  176.                             </a>
  177.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/standorte') }}">
  178.                                 {{ attribute(menuPhrases, 'standorte') }}
  179.                             </a>
  180.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/startplatz-team') }}">
  181.                                 {{ attribute(menuPhrases, 'startplatz-team') }}
  182.                             </a>
  183.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/partner') }}">
  184.                                 {{ attribute(menuPhrases, 'partner') }}
  185.                             </a>
  186.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/startups') }}">
  187.                                 {{ attribute(menuPhrases, 'startups') }}
  188.                             </a>
  189.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/referenzen') }}">
  190.                                 {{ attribute(menuPhrases, 'referenzen') }}
  191.                             </a>
  192.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/career') }}">
  193.                                 {{ attribute(menuPhrases, 'career') }}
  194.                             </a>
  195.                         </div>
  196.                     </li>
  197.                     <li class="nav-item active  mt-2 mr-2">
  198.                         <a class="nav-link px-2" href="{{ attribute(menuLinks, '/blog') }}">
  199.                             {{ attribute(menuPhrases, 'blog') }}
  200.                         </a>
  201.                     </li>
  202.                     <li class="nav-item mt-2 mr-2">
  203.                     {% include "@StartPlatzStyleBundle/Navigation/_nav.pick.language.html.twig" %}
  204.                     </li>
  205.                     {% if app.user %}
  206.                         <li class="nav-item dropdown rounded-lg border-0 text-black active p-0 ml-md-3 ml-lg-3 m-0 mt-1 mb-2">
  207.                             {% if app.user.username is defined %}
  208.                                 <span id="imgNav" class="text-center  rounded-circle bg-light d-none d-lg-block">
  209.                                     <img    class="text-dark rounded-circle img-thumbnail d-block mx-auto bg-secondary shadow-inner m-0 p-0 border-light"
  210.                                             src="{{ app.user.member.imageLink }}"
  211.                                             alt=""
  212.                                             style="width: 100% ; height: 100%">
  213.                             </span>
  214.                                 <a href="#" class="nav-link dropdown-toggle px-2  ml-0 d-block d-md-none" id="navbarDropdownMenuLink" data-toggle="dropdown">
  215.                                     <i class="fas fa-user pr-1"></i>
  216.                                     <span class="px-1">{{ app.user }}</span>
  217.                                 </a>
  218.                             {% endif %}
  219.                             <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
  220.                                 <a class="dropdown-item" id="userNamePlaceHolder" >
  221.                                     {{ app.user.username }}
  222.                                 </a>
  223.                                 <a class="dropdown-item" href="{{ path('x_connect_member_show') }}">
  224.                                     My Profile
  225.                                 </a>
  226.                                 <a class="dropdown-item" href="{{ path('x_home') }}">
  227.                                     SP-Connect
  228.                                 </a>
  229.                                 {% if is_granted('ROLE_ADMIN') %}
  230.                                     <a class="dropdown-item" href="{{ path('allmeda_home') }}">
  231.                                         Allmeda
  232.                                     </a>
  233.                                 {% endif %}
  234.                                 <div class="dropdown-divider"></div>
  235.                                 <a class="dropdown-item" href="{{ path('logout') }}">
  236.                                     Logout
  237.                                 </a>
  238.                             </div>
  239.                         </li>
  240.                     {% else %}
  241.                         <li class="nav-item active p-0 m-0 ml-lg-4 mt-2">
  242.                             <a class="nav-link px-3"
  243.                                style="background-color:#7ab800; border-radius: 5px;"
  244.                                href="{{ path('login') }}">
  245.                                 Login
  246.                             </a>
  247.                         </li>
  248.                     {% endif %}
  249.                 </ul>
  250.         </div>
  251. </nav>
  252. <!-- homepage nav.homepage.bootstrap4 ends -->