2022-08-04 14:29:08 +02:00
|
|
|
<div *ngIf="showMenu && activeHeader">
|
2022-12-01 10:22:46 +01:00
|
|
|
<div id="main-menu-small" class="uk-hidden@m">
|
2022-08-29 15:30:12 +02:00
|
|
|
<nav class="uk-navbar-container uk-navbar" uk-navbar="delay-hide: 400">
|
2022-11-28 13:37:37 +01:00
|
|
|
<div *ngIf="!onlyTop || userMenu" class="uk-navbar-left" [class.uk-light]='activeHeader.darkBg'>
|
2022-11-30 16:49:38 +01:00
|
|
|
<a class="uk-navbar-toggle" href="#tm-mobile" uk-toggle>
|
2022-03-03 16:44:59 +01:00
|
|
|
<div uk-navbar-toggle-icon="" class="uk-navbar-toggle-icon uk-icon custom-navbar-toggle-icon"></div>
|
|
|
|
<span class="visually-hidden">toggle menu</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="uk-navbar-center">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: true}"></ng-container>
|
|
|
|
</div>
|
2022-11-28 13:37:37 +01:00
|
|
|
<div *ngIf="!onlyTop || userMenu" class="uk-navbar-right" [class.uk-light]='activeHeader.darkBg'>
|
2022-11-30 16:49:38 +01:00
|
|
|
<ng-container *ngIf="userMenu">
|
2023-03-24 16:13:33 +01:00
|
|
|
<user-mini [user]="user" mobileView=true
|
|
|
|
[userMenuItems]=userMenuItems [logInUrl]=properties.loginUrl [notificationConfiguration]="notificationConfiguration"
|
2022-11-30 16:49:38 +01:00
|
|
|
[logOutUrl]=properties.logoutUrl [cookieDomain]=properties.cookieDomain></user-mini>
|
|
|
|
</ng-container>
|
2022-03-03 16:44:59 +01:00
|
|
|
</div>
|
|
|
|
</nav>
|
2023-03-22 16:14:11 +01:00
|
|
|
<div #canvas id="tm-mobile" [attr.uk-offcanvas]="'mode: none; overlay: true'"
|
2022-09-21 00:47:21 +02:00
|
|
|
class="uk-offcanvas">
|
2023-03-22 16:14:11 +01:00
|
|
|
<div class="uk-offcanvas-bar uk-padding-remove">
|
|
|
|
<nav class="uk-navbar uk-background-default" uk-sticky>
|
|
|
|
<div class="uk-navbar-left">
|
|
|
|
<button class="uk-navbar-toggle uk-icon uk-close" (click)="closeCanvas(canvas)">
|
|
|
|
<icon name="close" ratio="1.5" visuallyHidden="close menu" style="margin-left: -0.5em"></icon>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="uk-navbar-center">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: true}"></ng-container>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2023-02-15 10:53:25 +01:00
|
|
|
<ul class="uk-nav uk-nav-primary uk-list uk-list-large uk-margin-large-top uk-nav-parent-icon" uk-nav>
|
2023-03-22 16:14:11 +01:00
|
|
|
<ng-container *ngIf="!onlyTop">
|
|
|
|
<li *ngIf="showHomeMenuItem && currentRoute.route !== '/'">
|
|
|
|
<a routerLink="/" (click)="closeCanvas(canvas)">Home</a>
|
|
|
|
</li>
|
|
|
|
<ng-container *ngFor="let menu of menuItems">
|
|
|
|
<li [class.uk-active]="isTheActiveMenu(menu)" [class.uk-parent]="menu.items.length > 0" [ngClass]="menu.customClass"
|
|
|
|
*ngIf="isAtleastOneEnabled(menu.entitiesRequired,showEntity) && isAtleastOneEnabled(menu.routeRequired, showPage)">
|
|
|
|
<!--a routerLink="{{menu.rootItem.route}}" [queryParams]=menu.rootItem.params class="uk-offcanvas-close custom-offcanvas-close">{{menu.rootItem.title}}</a-->
|
|
|
|
<a *ngIf="menu.route && (isEnabled([menu.route], showPage) || !menu.routeRequired)"
|
|
|
|
routerLink="{{menu.route}}" (click)="menu.items.length === 0?closeCanvas(canvas):null"
|
|
|
|
[queryParams]="menu.params"
|
|
|
|
[fragment]="menu.fragment">{{menu.title}}</a>
|
|
|
|
<a *ngIf="!menu.route && menu.url"
|
|
|
|
href="{{menu.url}}" (click)="menu.items.length === 0?closeCanvas(canvas):null" [class.custom-external]="menu.target != '_self'"
|
|
|
|
target="{{menu.target}}">{{menu.title}}</a>
|
|
|
|
<a *ngIf="(!menu.route && !menu.url) ||
|
2022-11-28 15:25:05 +01:00
|
|
|
(menu.route && menu.routeRequired && !isEnabled([menu.route], showPage)
|
|
|
|
&& isAtleastOneEnabled(menu.routeRequired, showPage))"
|
2023-03-22 16:14:11 +01:00
|
|
|
(click)="menu.items.length === 0?closeCanvas(canvas):null">{{menu.title}}</a>
|
|
|
|
<ul *ngIf="menu.items.length > 0" class="uk-nav-sub">
|
|
|
|
<ng-container *ngFor="let submenu of menu.items">
|
|
|
|
<li [class.uk-active]="isTheActiveMenu(submenu)" [ngClass]="submenu.customClass"
|
|
|
|
*ngIf="isEnabled(submenu.entitiesRequired,showEntity) && isEnabled(submenu.routeRequired, showPage) && (submenu.route.length > 0 || submenu.url.length > 0)"
|
|
|
|
[class.uk-parent]="submenu.items && submenu.items.length > 0">
|
|
|
|
<a *ngIf="submenu.route.length > 0" (click)="closeCanvas(canvas)"
|
|
|
|
routerLink="{{submenu.route}}" [queryParams]=submenu.params
|
|
|
|
[fragment]="submenu.fragment">{{submenu.title}}</a>
|
|
|
|
<a *ngIf="submenu.route.length == 0 && submenu.url.length > 0"
|
|
|
|
href="{{submenu.url}}" (click)="closeCanvas(canvas)" [class.custom-external]="submenu.target != '_self'"
|
|
|
|
target="{{submenu.target}}">{{submenu.title}}</a>
|
|
|
|
<ul *ngIf="submenu.items && submenu.items.length > 0" class="uk-nav-sub">
|
|
|
|
<ng-container *ngFor="let subsubmenu of submenu.items">
|
|
|
|
<li [class.uk-active]="isTheActiveMenu(subsubmenu)" [ngClass]="subsubmenu.customClass">
|
|
|
|
<a *ngIf="subsubmenu.route.length > 0"
|
|
|
|
routerLink="{{subsubmenu.route}}" [queryParams]="subsubmenu.params"
|
|
|
|
[fragment]="subsubmenu.fragment" (click)="closeCanvas(canvas)">{{subsubmenu.title}}</a>
|
|
|
|
<a *ngIf="subsubmenu.route.length == 0 && subsubmenu.url.length > 0"
|
|
|
|
href="{{subsubmenu.url}}" (click)="closeCanvas(canvas)" [class.custom-external]="subsubmenu.target != '_self'"
|
|
|
|
target="{{subsubmenu.target}}">{{subsubmenu.title}}</a>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li *ngIf="submenu.route.length == 0 && submenu.url.length == 0 && isEnabled(submenu.entitiesRequired,showEntity) && isEnabled(submenu.routeRequired, showPage)"
|
|
|
|
class="uk-nav-header">{{submenu.title}}</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
<ul *ngIf="menu.route === '/' && isFeaturedMenuEnabled && featuredMenuItems?.length > 0" class="uk-nav-sub">
|
|
|
|
<li [class.uk-active]="isTheActiveMenu(item)" *ngFor="let item of featuredMenuItems" [ngClass]="item.customClass">
|
|
|
|
<a *ngIf="item.type == 'internal' && item.route && isEnabled([item.route], showPage)"
|
|
|
|
routerLink="{{item.route}}"
|
|
|
|
[queryParams]="item.params"
|
|
|
|
[fragment]="item.fragment"
|
|
|
|
(click)="closeCanvas(canvas)">
|
|
|
|
{{item.title}}
|
|
|
|
</a>
|
|
|
|
<a *ngIf="item.type == 'external' && item.url"
|
|
|
|
href="{{item.url}}" class="custom-external"
|
|
|
|
target="_blank"
|
|
|
|
(click)="closeCanvas(canvas)">
|
|
|
|
{{item.title}}
|
|
|
|
</a>
|
2022-11-28 15:25:05 +01:00
|
|
|
</li>
|
2023-03-22 16:14:11 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="isMenuEnabled && additionalMenuItems?.length > 0">
|
|
|
|
<ng-container *ngFor="let menu of additionalMenuItems">
|
|
|
|
<li [class.uk-active]="isTheActiveMenu(menu)" [class.uk-parent]="menu.items.length > 0" [ngClass]="menu.customClass">
|
|
|
|
<a *ngIf="menu.type == 'internal' && menu.route && isEnabled([menu.route], showPage)"
|
|
|
|
routerLink="{{menu.route}}"
|
|
|
|
[queryParams]="menu.params"
|
|
|
|
[fragment]="menu.fragment"
|
|
|
|
(click)="menu.items.length === 0?closeCanvas(canvas):null">
|
|
|
|
{{menu.title}}
|
2022-11-28 15:37:12 +01:00
|
|
|
</a>
|
2023-03-22 16:14:11 +01:00
|
|
|
<a *ngIf="menu.type == 'external' && menu.url"
|
|
|
|
href="{{menu.url}}"
|
|
|
|
target="_blank" class="custom-external"
|
|
|
|
(click)="menu.items.length === 0?closeCanvas(canvas):null">
|
|
|
|
{{menu.title}}
|
2022-11-28 15:37:12 +01:00
|
|
|
</a>
|
2023-03-22 16:14:11 +01:00
|
|
|
<a *ngIf="menu.type == 'noAction'">
|
|
|
|
{{menu.title}}
|
|
|
|
</a>
|
|
|
|
<ul class="uk-nav-sub">
|
|
|
|
<ng-container *ngIf="menu.items?.length">
|
|
|
|
<ng-container *ngFor="let submenu of menu.items">
|
|
|
|
<li [class.uk-active]="isTheActiveMenu(submenu)" [ngClass]="submenu.customClass">
|
|
|
|
<a *ngIf="submenu.type == 'internal' && submenu.route && isEnabled([submenu.route], showPage)"
|
|
|
|
routerLink="{{submenu.route}}"
|
|
|
|
[queryParams]="submenu.params"
|
|
|
|
[fragment]="submenu.fragment"
|
|
|
|
(click)="menu.items.length === 0?closeCanvas(canvas):null">
|
|
|
|
{{submenu.title}}
|
|
|
|
</a>
|
|
|
|
<a *ngIf="submenu.type == 'external' && submenu.url"
|
|
|
|
href="{{submenu.url}}"
|
|
|
|
target="_blank" class="custom-external"
|
|
|
|
(click)="menu.items.length === 0?closeCanvas(canvas):null">
|
|
|
|
{{submenu.title}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
2022-11-28 15:37:12 +01:00
|
|
|
</ng-container>
|
2023-03-22 16:14:11 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
2022-03-03 16:44:59 +01:00
|
|
|
</ng-container>
|
2023-03-22 16:14:11 +01:00
|
|
|
<ng-content select="[extra-s]"></ng-content>
|
2022-02-28 13:38:26 +01:00
|
|
|
</ng-container>
|
2023-03-22 16:14:11 +01:00
|
|
|
</ul>
|
2017-12-19 13:53:46 +01:00
|
|
|
</div>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2021-04-07 16:54:23 +02:00
|
|
|
</div>
|
2022-11-30 16:49:38 +01:00
|
|
|
<div id="main-menu" class="uk-visible@m">
|
2022-08-04 14:29:08 +02:00
|
|
|
<div *ngIf="activeHeader" [class.uk-light]='activeHeader.darkBg'>
|
2023-03-22 16:14:11 +01:00
|
|
|
<div class="uk-navbar-container" uk-sticky>
|
2022-08-04 14:29:08 +02:00
|
|
|
<div *ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && activeHeader.badge">
|
|
|
|
<img class="uk-position-top-left"
|
|
|
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
|
|
|
alt="BETA" style="height: 65px; width: 65px; z-index: 1000">
|
|
|
|
</div>
|
|
|
|
<div class="uk-container uk-container-expand">
|
2022-08-29 15:30:12 +02:00
|
|
|
<nav class="uk-navbar" uk-navbar="delay-hide: 400">
|
2022-08-04 14:29:08 +02:00
|
|
|
<ng-container *ngIf="!onlyTop">
|
|
|
|
<div class="uk-navbar-left">
|
|
|
|
<ng-container *ngIf="showLogo && isHeaderLeft">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: false}"></ng-container>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
<div class="uk-navbar-center">
|
|
|
|
<ng-container *ngIf="showLogo && !isHeaderLeft">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: false}"></ng-container>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="!activeHeader.menuPosition || activeHeader.menuPosition === 'center'">
|
|
|
|
<ng-container *ngTemplateOutlet="mainMenu"></ng-container>
|
|
|
|
</ng-container>
|
2023-05-11 16:17:16 +02:00
|
|
|
<div *ngIf="searchMode" #search_input search-input [(value)]="keyword" placeholder="Search by name, description, subject..."
|
|
|
|
[searchInputClass]="'flat small-vertical'" (searchEmitter)="goTo()"
|
|
|
|
class="uk-width-large@l uk-width-medium uk-width-xlarge@xl"></div>
|
2022-08-04 14:29:08 +02:00
|
|
|
</div>
|
|
|
|
<div class="uk-navbar-right">
|
|
|
|
<ng-container *ngIf="activeHeader.menuPosition === 'right'">
|
|
|
|
<ng-container *ngTemplateOutlet="mainMenu"></ng-container>
|
|
|
|
</ng-container>
|
2023-05-11 16:17:16 +02:00
|
|
|
|
|
|
|
<div *ngIf="searchMode" class="uk-flex uk-flex-middle uk-margin-medium-right" (click)="searchMode = false">
|
|
|
|
<div class="search-icon clickable">
|
|
|
|
<icon name="close" [flex]="true" ratio="1.5" visuallyHidden="close search mode"></icon>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div *ngIf="!searchMode && hasSearchBar" class="uk-flex uk-flex-middle uk-margin-right" (click)="openSearch($event)">
|
|
|
|
<div class="search-icon clickable">
|
|
|
|
<icon name="search" [flex]="true" ratio="1" visuallyHidden="search"></icon>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<user-mini *ngIf="!searchMode && userMenu" [user]="user"
|
2022-08-04 14:29:08 +02:00
|
|
|
[userMenuItems]=userMenuItems [logInUrl]=properties.loginUrl [logOutUrl]=properties.logoutUrl
|
|
|
|
[cookieDomain]=properties.cookieDomain></user-mini>
|
2023-02-09 11:09:49 +01:00
|
|
|
<div class="uk-visible@m">
|
2022-11-30 16:49:38 +01:00
|
|
|
<ng-content select="[extra-m]"></ng-content>
|
|
|
|
</div>
|
2022-08-04 14:29:08 +02:00
|
|
|
</div>
|
|
|
|
<ng-template #mainMenu>
|
2023-05-11 16:17:16 +02:00
|
|
|
<ul *ngIf="!searchMode" class="uk-navbar-nav" [class.uk-margin-right]="!userMenu">
|
2022-08-04 14:29:08 +02:00
|
|
|
<li class="uk-parent" *ngIf="showHomeMenuItem && currentRoute.route !== '/'">
|
|
|
|
<a routerLink="/">Home</a>
|
|
|
|
</li>
|
|
|
|
<ng-container *ngFor="let menu of menuItems">
|
2022-11-28 15:25:05 +01:00
|
|
|
<li class="uk-parent" [class.uk-active]="isTheActiveMenu(menu)" [ngClass]="menu.customClass"
|
2022-09-20 17:00:19 +02:00
|
|
|
*ngIf="isAtleastOneEnabled(menu.entitiesRequired,showEntity) && isAtleastOneEnabled(menu.routeRequired, showPage)">
|
2022-08-04 14:29:08 +02:00
|
|
|
<!--a routerLink="{{menu.rootItem.route}}" [queryParams]=menu.rootItem.params class="" aria-expanded="false">{{menu.rootItem.title}}</a-->
|
2022-09-20 17:00:19 +02:00
|
|
|
<a *ngIf="menu.route.length > 0 && (isEnabled([menu.route], showPage) || !menu.routeRequired )"
|
|
|
|
routerLink="{{menu.route}}"
|
|
|
|
[queryParams]="menu.params"
|
|
|
|
[fragment]="menu.fragment"> {{menu.title}}</a>
|
|
|
|
<a *ngIf="menu.route.length == 0 && menu.url.length > 0"
|
|
|
|
href="{{menu.url}}" target="{{menu.target}}"
|
|
|
|
[class.custom-external]="menu.target != '_self'">{{menu.title}}</a>
|
|
|
|
<a *ngIf="(menu.route.length == 0 && menu.url.length == 0) || ( menu.route.length >0 && menu.routeRequired && !isEnabled([menu.route], showPage) && isAtleastOneEnabled(menu.routeRequired, showPage))">{{menu.title}}</a>
|
2022-08-04 14:29:08 +02:00
|
|
|
<div *ngIf="menu.items.length > 0" class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left uk-height-max-medium uk-overflow-auto">
|
|
|
|
<!-- Do not delete this div, because it will remove the margin bottom of navbar -->
|
|
|
|
<div>
|
|
|
|
<ul class="uk-nav uk-navbar-dropdown-nav">
|
|
|
|
<ng-container *ngFor="let submenu of menu.items">
|
|
|
|
<li *ngIf="isEnabled(submenu.entitiesRequired,showEntity) &&
|
|
|
|
isEnabled(submenu.routeRequired, showPage) && (submenu.route.length > 0 ||
|
|
|
|
submenu.url.length > 0)" [class.uk-active]="isTheActiveMenu(submenu)"
|
2022-11-28 15:25:05 +01:00
|
|
|
[class.uk-parent]="submenu.items && submenu.items.length > 0" [ngClass]="submenu.customClass">
|
2022-08-04 14:29:08 +02:00
|
|
|
<a *ngIf="submenu.route.length > 0"
|
|
|
|
routerLink="{{submenu.route}}" [queryParams]="submenu.params"
|
|
|
|
[fragment]="submenu.fragment">{{submenu.title}}</a>
|
|
|
|
<a *ngIf="submenu.route.length == 0 && submenu.url.length > 0"
|
|
|
|
href="{{submenu.url}}" [class.custom-external]="submenu.target != '_self'"
|
|
|
|
target="{{submenu.target}}">{{submenu.title}}</a>
|
|
|
|
<ul *ngIf="submenu.items && submenu.items.length > 0" class="uk-nav-sub">
|
|
|
|
<ng-container *ngFor="let subsubmenu of submenu.items">
|
2022-11-28 15:25:05 +01:00
|
|
|
<li [class.uk-active]="isTheActiveMenu(subsubmenu)" [ngClass]="subsubmenu.customClass">
|
2022-08-04 14:29:08 +02:00
|
|
|
<a *ngIf="subsubmenu.route.length > 0"
|
|
|
|
routerLink="{{subsubmenu.route}}" [queryParams]="subsubmenu.params"
|
|
|
|
[fragment]="subsubmenu.fragment">{{subsubmenu.title}}</a>
|
|
|
|
<a *ngIf="subsubmenu.route.length == 0 && subsubmenu.url.length > 0"
|
|
|
|
href="{{subsubmenu.url}}" [class.custom-external]="subsubmenu.target != '_self'" target="{{subsubmenu.target}}">{{subsubmenu.title}}</a>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<li *ngIf="submenu.route.length == 0 && submenu.url.length == 0 && isEnabled(submenu.entitiesRequired,showEntity) && isEnabled(submenu.routeRequired, showPage)"
|
|
|
|
class="uk-nav-header">{{submenu.title}}</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="isMenuEnabled && additionalMenuItems?.length > 0">
|
|
|
|
<ng-container *ngFor="let menu of additionalMenuItems">
|
2022-11-28 15:25:05 +01:00
|
|
|
<li class="uk-parent" [class.uk-active]="isTheActiveMenu(menu)" [ngClass]="menu.customClass">
|
2022-08-04 14:29:08 +02:00
|
|
|
<a *ngIf="menu.type == 'internal' && menu.route && isEnabled([menu.route], showPage)"
|
|
|
|
routerLink="{{menu.route}}"
|
|
|
|
[queryParams]="menu.params"
|
|
|
|
[fragment]="menu.fragment">
|
|
|
|
{{menu.title}}
|
|
|
|
</a>
|
|
|
|
<a *ngIf="menu.type == 'external' && menu.url"
|
|
|
|
href="{{menu.url}}"
|
|
|
|
target="_blank" class="custom-external">
|
|
|
|
{{menu.title}}
|
|
|
|
</a>
|
|
|
|
<a *ngIf="menu.type == 'noAction'">
|
|
|
|
{{menu.title}}
|
|
|
|
</a>
|
|
|
|
<div *ngIf="menu.items.length > 0" class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left"
|
|
|
|
style="top: 80px; left: 0px;" id="{{menu._id}}" uk-toggle>
|
|
|
|
<div class="uk-navbar-dropdown-grid uk-child-width-1-1 uk-grid uk-grid-stack" uk-grid="">
|
|
|
|
<div class="uk-first-column uk-height-max-medium uk-overflow-auto">
|
|
|
|
<ul class="uk-nav uk-navbar-dropdown-nav">
|
|
|
|
<ng-container *ngFor="let submenu of menu.items">
|
2022-11-28 15:25:05 +01:00
|
|
|
<li [class.uk-active]="isTheActiveMenu(submenu)" [ngClass]="submenu.customClass">
|
2022-08-04 14:29:08 +02:00
|
|
|
<a *ngIf="submenu.type == 'internal' && submenu.route && isEnabled([submenu.route], showPage)"
|
|
|
|
routerLink="{{submenu.route}}"
|
|
|
|
[queryParams]="submenu.params"
|
|
|
|
[fragment]="submenu.fragment">
|
|
|
|
{{submenu.title}}
|
|
|
|
</a>
|
|
|
|
<a *ngIf="submenu.type == 'external' && submenu.url"
|
|
|
|
href="{{submenu.url}}"
|
|
|
|
target="_blank" class="custom-external">
|
|
|
|
{{submenu.title}}
|
|
|
|
</a>
|
2022-03-14 17:35:00 +01:00
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
2022-08-04 14:29:08 +02:00
|
|
|
</div>
|
2022-03-14 17:35:00 +01:00
|
|
|
</div>
|
2022-02-28 13:38:26 +01:00
|
|
|
</div>
|
2022-08-04 14:29:08 +02:00
|
|
|
</li>
|
|
|
|
</ng-container>
|
2022-03-14 17:35:00 +01:00
|
|
|
</ng-container>
|
2022-08-04 14:29:08 +02:00
|
|
|
</ul>
|
|
|
|
</ng-template>
|
|
|
|
</ng-container>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2022-03-14 17:35:00 +01:00
|
|
|
</div>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2022-07-20 11:13:55 +02:00
|
|
|
<!-- New navbar for featured menu items only -->
|
|
|
|
<ng-container *ngIf="isFeaturedMenuEnabled && featuredMenuItems?.length > 0">
|
2022-06-27 12:46:39 +02:00
|
|
|
<div class="uk-background-primary uk-light">
|
|
|
|
<div class="uk-container uk-container-expand">
|
2022-08-29 15:30:12 +02:00
|
|
|
<div class="uk-navbar" uk-navbar="delay-hide: 400">
|
2022-12-09 15:49:07 +01:00
|
|
|
<div [ngClass]="'uk-navbar-'+featuredAlignment.toLowerCase()">
|
|
|
|
<ul class="uk-navbar-nav">
|
|
|
|
<ng-container *ngFor="let item of featuredMenuItems">
|
|
|
|
<li [class.uk-active]="isTheActiveMenu(item)" [ngClass]="item.customClass">
|
|
|
|
<a *ngIf="item.type == 'internal' && item.route && isEnabled([item.route], showPage)"
|
|
|
|
routerLink="{{item.route}}"
|
|
|
|
[queryParams]="item.params"
|
|
|
|
[fragment]="item.fragment">
|
|
|
|
{{item.title}}
|
|
|
|
</a>
|
|
|
|
<a *ngIf="item.type == 'external' && item.url"
|
2022-06-27 12:46:39 +02:00
|
|
|
href="{{item.url}}" class="custom-external"
|
|
|
|
target="_blank">
|
|
|
|
{{item.title}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2018-03-16 09:56:42 +01:00
|
|
|
</div>
|
2020-10-06 10:12:14 +02:00
|
|
|
<ng-template #header_template let-mobile="mobile">
|
2022-08-04 14:29:08 +02:00
|
|
|
<a *ngIf="!activeHeader.url" [routerLink]="activeHeader.route" [class.uk-padding-remove]="!isHeaderLeft"
|
2023-03-22 16:14:11 +01:00
|
|
|
class="uk-logo uk-navbar-item uk-flex uk-flex-middle">
|
2022-08-04 14:29:08 +02:00
|
|
|
<img *ngIf="(mobile && activeHeader.logoSmallUrl) || (!mobile && activeHeader.logoUrl)"
|
|
|
|
[src]="!mobile?activeHeader.logoUrl:activeHeader.logoSmallUrl"
|
|
|
|
[alt]="activeHeader.title">
|
2023-02-15 10:53:25 +01:00
|
|
|
<div *ngIf="activeHeader.logoInfo" class="uk-visible@l" [innerHTML]="activeHeader.logoInfo"></div>
|
2022-08-04 14:29:08 +02:00
|
|
|
<ng-container *ngIf="(mobile && !activeHeader.logoSmallUrl) || (!mobile && !activeHeader.logoUrl)">
|
|
|
|
<div class="multi-line-ellipsis lines-2" [style.max-width]="(!mobile)?'25vw':null" [title]="activeHeader.title">
|
|
|
|
<p class="uk-margin-remove">{{activeHeader.title}}</p>
|
2021-04-09 14:35:02 +02:00
|
|
|
</div>
|
2021-04-07 16:54:23 +02:00
|
|
|
</ng-container>
|
2020-10-06 10:12:14 +02:00
|
|
|
</a>
|
2022-08-04 14:29:08 +02:00
|
|
|
<a *ngIf="activeHeader.url" [href]="activeHeader.url" [class.uk-padding-remove]="!isHeaderLeft"
|
2023-03-22 16:14:11 +01:00
|
|
|
class="uk-logo uk-navbar-item uk-flex uk-flex-middle">
|
2022-08-04 14:29:08 +02:00
|
|
|
<img *ngIf="(mobile && activeHeader.logoSmallUrl) || (!mobile && activeHeader.logoUrl)"
|
|
|
|
[src]="!mobile?activeHeader.logoUrl:activeHeader.logoSmallUrl"
|
|
|
|
[alt]="activeHeader.title">
|
2023-02-15 10:53:25 +01:00
|
|
|
<div *ngIf="activeHeader.logoInfo" class="uk-visible@l" [innerHTML]="activeHeader.logoInfo"></div>
|
2022-08-04 14:29:08 +02:00
|
|
|
<ng-container *ngIf="(mobile && !activeHeader.logoSmallUrl) || (!mobile && !activeHeader.logoUrl)">
|
|
|
|
<div class="multi-line-ellipsis lines-2" [style.max-width]="(!mobile)?'25vw':null" [title]="activeHeader.title">
|
|
|
|
<p class="uk-margin-remove">{{activeHeader.title}}</p>
|
2021-04-09 14:35:02 +02:00
|
|
|
</div>
|
2021-04-07 16:54:23 +02:00
|
|
|
</ng-container>
|
2020-10-06 10:12:14 +02:00
|
|
|
</a>
|
|
|
|
</ng-template>
|