src/JanusHercules/Shared/Presentation/Resources/templates/header/nav_side_live_component.html.twig line 1

Open in your IDE?
  1. {# @var this \JanusHercules\Shared\Presentation\Component\Header\NavSideLiveComponent #}
  2. {% set logoImgSrc = app.user is not null and app.user.hasJoboffererProfile or showJoboffererHeader ? asset('assets/images/joboo-inverted.png') : asset('assets/images/joboo-logo.png') %}
  3. <div {{ attributes }} class="tw-items-center lg:tw-flex">
  4. {% set rightNavItemsForMobile = this.rightNavItemsForMobile %}
  5. {% if direction == "left" %}
  6. <div class="tw-flex tw-flex-shrink-0 tw-items-center tw-pl-1 tw-h-16">
  7. <a href="/de/" class="tw-m-0 tw-h-full tw-flex tw-items-center">
  8. <img class="tw-h-full tw-w-auto tw-pt-[7.5px] tw-pb-2"
  9. src="{{ logoImgSrc|cdnifyUri }}?1765880448"
  10. alt="JOBOO GMBH">
  11. </a>
  12. </div>
  13. {% endif %}
  14. <div class="tw-hidden lg:tw-flex tw-flex-row tw-items-center tw-pl-4">
  15. {% if this.sideNavbarItems %}
  16. {% for sideNavbarItem in this.sideNavbarItems %}
  17. {# @var sideNavbarItem \JanusHercules\Shared\Presentation\Entity\NavigationItem #}
  18. {% if sideNavbarItem and sideNavbarItem.url is defined and sideNavbarItem.label is defined and sideNavbarItem.name is not defined %}
  19. <twig:NavigationItem
  20. url="{{ sideNavbarItem.url }}"
  21. label="{{ sideNavbarItem.label }}"
  22. icon="{{ asset(sideNavbarItem.iconLink) }}"
  23. type="{{ sideNavbarItem.type }}"
  24. />
  25. {% elseif sideNavbarItem and sideNavbarItem.name is defined %}
  26. <twig:dropdown>
  27. <twig:block name="trigger">
  28. <twig:button text="{{ sideNavbarItem.name }}" type="button" variant="link" color="white"
  29. data-action="click->dropdown#toggle"
  30. class="tw-text-black hover:tw-text-black tw-bg-transparent"
  31. textAlignment="start"
  32. data-testid="dropdown_link"
  33. >
  34. <twig:block name="content_icon">
  35. <img src="{{ sideNavbarItem.iconLink ? asset(sideNavbarItem.iconLink) : asset('assets/icons/chevron-down.svg') }}"
  36. alt="chevron-down">
  37. </twig:block>
  38. </twig:button>
  39. </twig:block>
  40. {% if sideNavbarItem %}
  41. <twig:NavigationListGroup items="{{ sideNavbarItem.subItems }}"
  42. showDivider="true"/>
  43. {% endif %}
  44. </twig:dropdown>
  45. {% endif %}
  46. {% endfor %}
  47. {% endif %}
  48. </div>
  49. {# Mobile #}
  50. {% if direction == 'right' %}
  51. <div class="tw-flex lg:tw-hidden tw-items-center tw-justify-center tw-float-right tw-h-full">
  52. <twig:dropdown>
  53. <twig:block name="trigger">
  54. <twig:button type="button" text="" variant="link" class="tw-bg-transparent"
  55. data-action="click->dropdown#toggle">
  56. <twig:block name="content_icon">
  57. <span class="tw-text-gray-primary">MenĂ¼</span>
  58. &nbsp;
  59. <img src="{{ asset('assets/icons/burger-menu.svg') }}" alt="burger-menu">
  60. </twig:block>
  61. </twig:button>
  62. </twig:block>
  63. <twig:block name="content">
  64. {% if rightNavItemsForMobile %}
  65. <twig:NavigationListGroup items="{{ rightNavItemsForMobile }}" showDivider="{{ app.user ? true : false }}"/>
  66. {% endif %}
  67. </twig:block>
  68. </twig:dropdown>
  69. </div>
  70. {% endif %}
  71. </div>