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="/accelerator/">
  42.                                 Accelerator
  43.                             </a>
  44.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/rheinland-pitch') }}">
  45.                                 {{ attribute(menuPhrases, 'rheinland-pitch') }}
  46.                             </a>
  47.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/gruenderstipendium') }}">
  48.                                 {{ attribute(menuPhrases, 'gruenderstipendium') }}
  49.                             </a>
  50.                             {# Commented out as per product team request - DO NOT DELETE
  51.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/software') }}">
  52.                                 {{ attribute(menuPhrases, 'software') }}
  53.                             </a>
  54.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/startup-wiki') }}">
  55.                                 {{ attribute(menuPhrases, 'startup-wiki') }}
  56.                             </a>
  57.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/jobs') }}">
  58.                                 {{ attribute(menuPhrases, 'jobs') }}
  59.                             </a>
  60.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/sprechstunden') }}">
  61.                                 {{ attribute(menuPhrases, 'sprechstunden') }}
  62.                             </a>
  63.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/mentoring') }}">
  64.                                 {{ attribute(menuPhrases, 'mentoring') }}
  65.                             </a>
  66.                             #}
  67.                         </div>
  68.                     </li>
  69.                     <li class="nav-item dropdown active  mt-2 mr-2
  70.                        {% if lang == 'DE' %}
  71.                                 {% if 'fuer-unternehmen' in targetPath or '/fuer-unternehmen-1' in targetPath %}
  72.                                     highlight
  73.                                 {% endif %}
  74.                             {% else %}
  75.                                 {% if 'en/corporate-innovation' in targetPath or 'en/corporate-innovation-1' in targetPath%}
  76.                                     highlight
  77.                                 {% endif %}
  78.                             {% endif %}">
  79.                         <a href="#" class="nav-link px-2 dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown">
  80.                             {{ attribute(menuPhrases, 'corporate') }}
  81.                         </a>
  82.                         <div class="dropdown-menu dropdown-menu-left" aria-labelledby="navbarDropdownMenuLink">
  83.                             {# Commented out as per product team request - DO NOT DELETE
  84.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation') }}">
  85.                                 {{ attribute(menuPhrases, 'corporate-0') }}
  86.                             </a>
  87.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation-1') }}">
  88.                                 {{ attribute(menuPhrases, 'corporate-1') }}
  89.                             </a>
  90.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation-2') }}">
  91.                                 {{ attribute(menuPhrases, 'corporate-2') }}
  92.                             </a>
  93.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation-3') }}">
  94.                                 {{ attribute(menuPhrases, 'corporate-3') }}
  95.                             </a>
  96.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/corporate-innovation-4') }}">
  97.                                 {{ attribute(menuPhrases, 'corporate-4') }}
  98.                             </a>
  99.                             #}
  100.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/innovation-partnerschaften') }}">
  101.                                 {{ attribute(menuPhrases, 'innovation-partnerschaften') }}
  102.                             </a>
  103.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/ki-weiterbildung') }}">
  104.                                 {{ attribute(menuPhrases, 'ki-weiterbildung') }}
  105.                             </a>
  106.                         </div>
  107.                     </li>
  108.                     <li class="nav-item dropdown active  mt-2 mr-2">
  109.                         <a href="#" class="nav-link px-2 dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown">
  110.                             {{ attribute(menuPhrases, 'coworking-offices') }}
  111.                         </a>
  112.                         <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
  113.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/offices-cologne') }}">
  114.                                 {{ attribute(menuPhrases, 'offices-cologne') }}
  115.                             </a>
  116.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/offices-duesseldorf') }}">
  117.                                 {{ attribute(menuPhrases, 'offices-duesseldorf') }}
  118.                             </a>
  119.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/coworking-cologne') }}">
  120.                                 {{ attribute(menuPhrases, 'coworking-cologne') }}
  121.                             </a>
  122.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/coworking-duesseldorf') }}">
  123.                                 {{ attribute(menuPhrases, 'coworking-duesseldorf') }}
  124.                             </a>
  125.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/geschaeftsadresse-cologne') }}">
  126.                                 {{ attribute(menuPhrases, 'geschaeftsadresse-cologne') }}
  127.                             </a>
  128.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/geschaeftsadresse-duesseldorf') }}">
  129.                                 {{ attribute(menuPhrases, 'geschaeftsadresse-duesseldorf') }}
  130.                             </a>
  131.                         </div>
  132.                     </li>
  133.                     <li class="nav-item dropdown active  mt-2 mr-2">
  134.                         <a href="#" class="nav-link px-2 dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown">
  135.                             {{ attribute(menuPhrases, 'tagen') }}
  136.                         </a>
  137.                         <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
  138.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/tagungsraum-koeln') }}">
  139.                                 {{ attribute(menuPhrases, 'tagungsraum-koeln') }}
  140.                             </a>
  141.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/tagungsraum-dus') }}">
  142.                                 {{ attribute(menuPhrases, 'tagungsraum-dus') }}
  143.                             </a>
  144.                         </div>
  145.                     </li>
  146.                     <li class="nav-item active mt-2 mr-2
  147.                                 {% if 'events' in targetPath %}
  148.                                     highlight
  149.                                 {% endif %}">
  150.                         <a href="{{ attribute(menuLinks, '/events') }}" class="nav-link px-2">
  151.                             {{ attribute(menuPhrases, 'events') }}
  152.                         </a>
  153.                     </li>
  154.                     <li class="nav-item dropdown active  mt-2 mr-2
  155.                         {% if lang == 'DE' %}
  156.                                 {% if 'presse' in targetPath or 'standorte' in targetPath or 'startplatz-team' in targetPath
  157.                                 or 'partner' in targetPath or 'startups' in targetPath or 'jobs' in targetPath or 'software' in targetPath
  158.                                 or 'sprechstunden' in targetPath or 'referenzen' in targetPath or 'carrer' in targetPath %}
  159.                                     highlight
  160.                                 {% endif %}
  161.                             {% else %}
  162.                                 {% if '/en/presse' in targetPath or '/en/standorte' in targetPath or '/en/startplatz-team' in targetPath
  163.                                 or '/en/partner' in targetPath or '/en/startups' in targetPath or '/en/jobs' in targetPath or '/en/software' in targetPath
  164.                                 or '/en/sprechstunden' in targetPath or '/en/referenzen' in targetPath or '/en/carrer' in targetPath %}
  165.                                     highlight
  166.                                 {% endif %}
  167.                             {% endif %}">
  168.                         <a href="#" class="nav-link px-2 dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown">
  169.                             {{ attribute(menuPhrases, 'ueber-uns') }}
  170.                         </a>
  171.                         <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
  172.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/ueber-startplatz') }}">
  173.                                 {{ attribute(menuPhrases, 'ueber-startplatz') }}
  174.                             </a>
  175.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/standorte') }}">
  176.                                 {{ attribute(menuPhrases, 'standorte') }}
  177.                             </a>
  178.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/startplatz-team') }}">
  179.                                 {{ attribute(menuPhrases, 'startplatz-team') }}
  180.                             </a>
  181.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/partner') }}">
  182.                                 {{ attribute(menuPhrases, 'partner') }}
  183.                             </a>
  184.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/startups') }}">
  185.                                 {{ attribute(menuPhrases, 'startups') }}
  186.                             </a>
  187.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/referenzen') }}">
  188.                                 {{ attribute(menuPhrases, 'referenzen') }}
  189.                             </a>
  190.                             <a class="dropdown-item" href="{{ attribute(menuLinks, '/career') }}">
  191.                                 {{ attribute(menuPhrases, 'career') }}
  192.                             </a>
  193.                         </div>
  194.                     </li>
  195.                     <li class="nav-item active  mt-2 mr-2">
  196.                         <a class="nav-link px-2" href="{{ attribute(menuLinks, '/blog') }}">
  197.                             {{ attribute(menuPhrases, 'blog') }}
  198.                         </a>
  199.                     </li>
  200.                     <li class="nav-item mt-2 mr-2">
  201.                     {% include "@StartPlatzStyleBundle/Navigation/_nav.pick.language.html.twig" %}
  202.                     </li>
  203.                     {% if app.user %}
  204.                         <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">
  205.                             {% if app.user.username is defined %}
  206.                                 <span id="imgNav" class="text-center  rounded-circle bg-light d-none d-lg-block">
  207.                                     <img    class="text-dark rounded-circle img-thumbnail d-block mx-auto bg-secondary shadow-inner m-0 p-0 border-light"
  208.                                             src="{{ app.user.member.imageLink }}"
  209.                                             alt=""
  210.                                             style="width: 100% ; height: 100%">
  211.                             </span>
  212.                                 <a href="#" class="nav-link dropdown-toggle px-2  ml-0 d-block d-md-none" id="navbarDropdownMenuLink" data-toggle="dropdown">
  213.                                     <i class="fas fa-user pr-1"></i>
  214.                                     <span class="px-1">{{ app.user }}</span>
  215.                                 </a>
  216.                             {% endif %}
  217.                             <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
  218.                                 <a class="dropdown-item" id="userNamePlaceHolder" >
  219.                                     {{ app.user.username }}
  220.                                 </a>
  221.                                 <a class="dropdown-item" href="{{ path('connect_member_show') }}">
  222.                                     My Profile
  223.                                 </a>
  224.                                 <a class="dropdown-item" href="{{ path('x_home') }}">
  225.                                     SP-Connect
  226.                                 </a>
  227.                                 {% if is_granted('ROLE_ADMIN') %}
  228.                                     <a class="dropdown-item" href="{{ path('allmeda_home') }}">
  229.                                         Allmeda
  230.                                     </a>
  231.                                 {% endif %}
  232.                                 <div class="dropdown-divider"></div>
  233.                                 <a class="dropdown-item" href="{{ path('logout') }}">
  234.                                     Logout
  235.                                 </a>
  236.                             </div>
  237.                         </li>
  238.                     {% else %}
  239.                         <li class="nav-item active p-0 m-0 ml-lg-4 mt-2">
  240.                             <a class="nav-link px-3"
  241.                                style="background-color:#7ab800; border-radius: 5px;"
  242.                                href="{{ path('login') }}">
  243.                                 Login
  244.                             </a>
  245.                         </li>
  246.                     {% endif %}
  247.                 </ul>
  248.         </div>
  249. </nav>
  250. <!-- homepage nav.homepage.bootstrap4 ends -->