Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <!--
  2. templateType: global_partial
  3. label: Website header
  4. -->
  5. {% import '../../macros/tag.html' as component %}
  6.  
  7. {% if request_contact.is_logged_in %}
  8. {% set logo_link = "//foodindustry.asia/members-hub" %}
  9. {% else %}
  10. {% set logo_link = "//foodindustry.asia/" %}
  11. {% endif %}
  12.  
  13. <header class="header" style="position: relative">
  14. {# Show notification when JS is not available #}
  15. {{ component.no_script_bar() }}
  16.  
  17. <div class="header__container">
  18. {# Logo #}
  19. <div class="header__logo" id="logo">
  20. {% module 'header_logo'
  21. path='@hubspot/logo',
  22. img={
  23. 'alt': 'Sprout logo',
  24. 'height': '82',
  25. 'src': get_asset_url('../../images/sprout-theme-logo.png'),
  26. 'width': '205'
  27. }
  28. link='{{ logo_link }}'
  29. %}
  30. </div>
  31. {# End Logo #}
  32.  
  33. {# {% else %} #}
  34. {# Main Navigation #}
  35. <div class="header__menu {{ 'with-custom-menu' if request_contact.is_logged_in }}" id="primary-menu">
  36. <input type="checkbox" id="nav-toggle">
  37. <label class="header__navigation-toggle" for="nav-toggle">
  38. <span class="header__mobile-menu-icon"></span>
  39. </label>
  40.  
  41. {% module "custom_menu"
  42. path="/sprout onyx/modules/custom-menu",
  43. label="Custom Menu"
  44. %}
  45.  
  46. <div class="header__navigation">
  47. {% module 'header_navigation_primary'
  48. label='Primary navigation',
  49. path='../../modules/menu-section',
  50. %}
  51. </div>
  52. </div>
  53. {# End Main Navigation #}
  54. {# {% endif %} #}
  55.  
  56. {# User auth mennu #}
  57. <div class="header__menu" id="header-auth">
  58. {% module 'header_auth'
  59. label='User Auth',
  60. path='../../modules/login-logout',
  61. %}
  62. </div>
  63. </div>
  64. </header>
  65.  
  66. <!-- filter ticker -->
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement