Error executing template "Designs/Ongediertewinkel_generated-new/Paragraph/JumbotronContainer.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.RazorEngine_1f544f1576794072aefc09d2c5ed7060.GetFontConfiguration(String TextColor, FontConfigurationItemTab FontConfiguration) in D:\home\site\wwwroot\files\Templates\Designs\Ongediertewinkel_generated-new\Paragraph\JumbotronContainer.cshtml:line 239
at CompiledRazorTemplates.Dynamic.RazorEngine_1f544f1576794072aefc09d2c5ed7060.Execute() in D:\home\site\wwwroot\files\Templates\Designs\Ongediertewinkel_generated-new\Paragraph\JumbotronContainer.cshtml:line 287
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
2 @using Dynamicweb;
3 @using Dynamicweb.Content.Items;
4 @using Dynamicweb.Content.Items.Metadata;
5 @using Bluedesk.DynamicWeb.ItemTypes;
6 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
7 8 9 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
10 @using Dynamicweb;
11 @using Dynamicweb.Content.Items;
12 @using Bluedesk.DynamicWeb.ItemTypes;
13 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
14 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
15 16 17 @helper RenderButton(ButtonConfiguration ButtonConfiguration, string btnLink, string btnClass, string btnText, string ariaLabel = "", bool newWindow = false, string btnIcon = "", string btnExtraClass = "", string btnTextClass = "", string btnIconClass = "")
18 {
19 20 var paragraphID = Pageview.CurrentParagraph.ID;
21 string buttonID = ButtonConfiguration.Id;
22 23 var colorService = new ColorSwatchService();
24 25 var master_configuration = Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration");
26 27 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>();
28 29 string FontAwesomeLibrary = mc.GeneralConfiguration.fontawesomeStyle;
30 string IconPosition = mc.GeneralConfiguration.IconPosition == "left" ? "-1" : "1";
31 32 bool HideIcon = ButtonConfiguration.HideIcon.ToString() == "True" ? true : false;
33 string CustomIconClass = !string.IsNullOrWhiteSpace(ButtonConfiguration.CustomIcon) ? ButtonConfiguration.CustomIcon : "fa-chevron-right";
34 35 string BackgroundColor = ButtonConfiguration.ButtonColorConfiguration.BackgroundColor;
36 37 string BackgroundHoverColor = ButtonConfiguration.ButtonHoverColorConfiguration.BackgroundColor;
38 39 string BorderColor = ButtonConfiguration.ButtonColorConfiguration.BorderColor;
40 string BorderHoverColor = ButtonConfiguration.ButtonHoverColorConfiguration.BorderColor;
41 42 string BorderSize = ButtonConfiguration.BorderSize + "px";
43 44 string FontColor = ButtonConfiguration.ButtonColorConfiguration.FontColor;
45 string FontHoverColor = ButtonConfiguration.ButtonHoverColorConfiguration.FontColor;
46 47 string FontStyle = ButtonConfiguration.FontConfiguration.FontStyle;
48 49 string FontSize = ButtonConfiguration.FontConfiguration.FontSize;
50 string FontWeight = ButtonConfiguration.FontConfiguration.FontWeight;
51 string FontFamily = ButtonConfiguration.FontConfiguration.FontConfiguration.FontFamily;
52 53 string ButtonLabelAlignment = !string.IsNullOrWhiteSpace(ButtonConfiguration.ButtonLabelAlignment) ? ButtonConfiguration.ButtonLabelAlignment : "align-left";
54 55 if (!string.IsNullOrWhiteSpace(BackgroundColor))
56 {
57 BackgroundColor = !BackgroundColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, BackgroundColor) : BackgroundColor;
58 }
59 else
60 {
61 BackgroundColor = null;
62 }
63 64 if (!string.IsNullOrWhiteSpace(BackgroundColor))
65 {
66 BackgroundHoverColor = !BackgroundHoverColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, BackgroundHoverColor) : BackgroundHoverColor;
67 }
68 else
69 {
70 BackgroundHoverColor = null;
71 }
72 73 BorderColor = colorService.GetHexColor(Pageview.AreaID, BorderColor);
74 FontColor = colorService.GetHexColor(Pageview.AreaID, FontColor);
75 76 BorderHoverColor = colorService.GetHexColor(Pageview.AreaID, BorderHoverColor);
77 FontHoverColor = colorService.GetHexColor(Pageview.AreaID, FontHoverColor);
78 79 if (string.IsNullOrWhiteSpace(btnIcon))
80 {
81 btnIcon = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right";
82 }
83 84 string target = newWindow ? "_blank" : "_self";
85 string ariaText = !string.IsNullOrWhiteSpace(ariaLabel) ? "aria-label='" + ariaLabel + "'" : "";
86 87 if (!string.IsNullOrWhiteSpace(btnLink) && !string.IsNullOrWhiteSpace(btnText))
88 {
89 <style>
90 91 .default-btn {
92 position: relative;
93 display: flex;
94 align-items: center;
95 padding: .75rem;
96 padding-left: 1.5rem;
97 padding-right: 3.6rem;
98 min-height: 50px;
99 cursor: pointer;
100 text-transform: uppercase;
101 min-width: 15rem;
102 }
103104 .btn__icon {
105 position: absolute;
106 right: 0;
107 order: @IconPosition;
108109 width: 50px;
110 justify-content: center;
111 font-size: 1rem;
112 }
113114 .jumbotron__playground-@paragraphID .button--@buttonID,
115 .multicolumn--@paragraphID .button--@buttonID,
116 .cta-paragraph--@paragraphID .button--@buttonID
117 {
118119 display: flex;
120121 @switch (ButtonLabelAlignment)
122 {
123 case "align-left":
124 <text>justify-content: flex-start !important;</text>
125 break;
126 case "align-center":
127 <text>justify-content: center !important;</text>
128 break;
129 case "align-right":
130 <text>justify-content: flex-end !important;</text>
131 break;
132 case "align-full":
133 <text>justify-content: space-between !important;</text>
134 break;
135136 }
137138 min-height: 50px;
139140 background-color : @BackgroundColor;
141 color : @FontColor;
142 font-size : @FontSize;
143 font-family : @FontFamily;
144 font-weight : @FontWeight;
145 text-transform : @FontStyle;
146147 @if (BorderSize != "0px")
148 {
149 <text>border: @BorderSize @BorderColor solid;</text>
150 }
151 }
152153 .cta-paragraph--@paragraphID .button--@buttonID .btn__icon {
154 color: @FontColor !important;
155 }
156157 .jumbotron__playground-@paragraphID .button--@buttonID:hover,
158 .multicolumn--@paragraphID .button--@buttonID:hover,
159 .cta-paragraph--@paragraphID .button--@buttonID:hover
160 {
161162 background-color : @BackgroundHoverColor;
163 color : @FontHoverColor;
164 @if (BorderSize != "0px")
165 {
166 <text>border: @BorderSize @BorderHoverColor solid;</text>
167 }
168 }
169170 .cta-paragraph--@paragraphID .button--@buttonID:hover .btn__icon {
171 color: @FontHoverColor !important;
172 }
173174 </style>
175176 <a href="@btnLink" class="btn default-btn @btnClass button--@buttonID" target="@target" @ariaText>
177 <span class="btn__text @btnTextClass">@btnText</span>
178 @if (!HideIcon)
179 {
180 <i class="btn__icon @FontAwesomeLibrary @CustomIconClass"></i>
181 }
182 </a>
183 }
184 }
185186 @helper RenderFontConfig(Dictionary<string, string> FontConfig)
187 {
188189 <text>color: @FontConfig["textColor"] !important;</text>
190191 if (!string.IsNullOrWhiteSpace(FontConfig["textColor"]))
192 {
193 <text>
194 color: @FontConfig["textColor"] !important;
195 </text>
196 }
197198 if (!string.IsNullOrWhiteSpace(FontConfig["fontSize"]))
199 {
200 <text>font-size: @FontConfig["fontSize"] !important;</text>
201 }
202 if (!string.IsNullOrWhiteSpace(FontConfig["lineHeight"]))
203 {
204 <text>line-height: @FontConfig["lineHeight"] !important;</text>
205 }
206 if (!string.IsNullOrWhiteSpace(FontConfig["fontFamily"]))
207 {
208 <text>font-family: @FontConfig["fontFamily"] !important;</text>
209 }
210 if (!string.IsNullOrWhiteSpace(FontConfig["fontWeight"]))
211 {
212 <text>font-weight: @FontConfig["fontWeight"] !important;</text>
213 }
214 if (!string.IsNullOrWhiteSpace(FontConfig["fontStyle"]))
215 {
216 if (FontConfig["fontStyle"] != "none")
217 {
218 <text>text-transform: @FontConfig["fontStyle"] !important;</text>
219 }
220 }
221 }
222223 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
224 @using Dynamicweb;
225 @using Dynamicweb.Content.Items;
226 @using Bluedesk.DynamicWeb.ItemTypes;
227228 @functions {
229230 Dictionary<string, string> GetFontConfiguration(string TextColor, FontConfigurationItemTab FontConfiguration)
231 {
232233 var colorService = new ColorSwatchService();
234235 TextColor = !string.IsNullOrWhiteSpace(TextColor) ? TextColor : "" ;
236237 TextColor = !TextColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, TextColor) : TextColor;
238239 Dictionary<string, string> FontConfig = new Dictionary<string, string>()
240 {
241 { "textColor" , TextColor },
242 { "fontSize" , FontConfiguration.FontSize },
243 { "lineHeight", FontConfiguration.LineHeight},
244 { "fontFamily" , FontConfiguration.FontConfiguration.FontFamily },
245 { "fontWeight" , FontConfiguration.FontWeight },
246 { "fontStyle" , FontConfiguration.FontStyle }
247 };
248249 return FontConfig;
250 }
251252 }
253254255 @*
256 @{
257 var image = GetString("ParagraphImageClean");
258 var parameters = GetString("ParagraphImage.FocalPointParameters");
259 var imageFocalX = GetString("ParagraphImage.FocalX");
260 var imageFocalY = GetString("ParagraphImage.FocalY");
261 var imageHasFocalPoint = GetBoolean("ParagraphImage.ImageHasFocalPoint");
262 }
263 <img src="/Admin/Public/GetImage.ashx?Image=@image&Format=jpg&Width=50&height=200&crop=7&@parameters" />*@
264 @{
265266 JumbotronContainer _data = ItemManager.Storage.GetById<JumbotronContainer>(Pageview.CurrentParagraph.ItemId ?? "0");
267268 var colorService = new ColorSwatchService();
269270 string backgroundClass = !string.IsNullOrWhiteSpace(_data.JumbotronConfiguration.BackgroundClass) ? string.Format("bg-{0}", _data.JumbotronConfiguration.BackgroundClass) : "";
271 string JumbotronHeight = _data.JumbotronHeight + "px";
272273 string BackgroundHorizontalPosition = "";
274 string BackgroundVerticalPosition = "";
275276 string QuickmenuWidth = _data.QuickmenuWidth + "px";
277 int JumbotronListCount = _data.JumbotronList.Count;
278279 string JumbotronCarouselClass = JumbotronListCount != 1 ? "jumbotron__carousel" : "jumbotron__no-carousel";
280 string JumbotronCarouselMobClass = JumbotronListCount != 1 ? "jumbotron__carousel-mob" : "jumbotron__no-carousel-mob";
281282 var paragraphID = Pageview.CurrentParagraph.ID;
283 var JumbotronBackgroundClassName = "";
284285 var subheaderFontConfig = GetFontConfiguration(_data.JumbotronConfiguration.ShoutboxSubheaderTextColor, _data.JumbotronConfiguration.FontConfigurationSubheader);
286 var headerFontConfig = GetFontConfiguration(_data.JumbotronConfiguration.ShoutboxHeaderTextColor, _data.JumbotronConfiguration.FontConfigurationHeader);
287 var contentFontConfig = GetFontConfiguration(_data.JumbotronConfiguration.ShoutboxContentTextColor, _data.JumbotronConfiguration.FontConfigurationContent);
288289 string ShoutboxBackgroundColor = _data.JumbotronConfiguration.ShoutboxBackgroundColor;
290 string ShoutBoxGradient = _data.JumbotronConfiguration.ShoutboxBackgroundGradient;
291292 string ShoutboxBackgroundImage = _data.JumbotronConfiguration.ShoutboxBackgroundImage;
293294 string QuickmenuBackgoundImage = _data.JumbotronConfiguration.QuickmenuBackgroundImage;
295296 ShoutboxBackgroundColor = colorService.GetHexColor(Pageview.AreaID, ShoutboxBackgroundColor);
297298299 }
300301 <!--- BEGIN SVG SHAPE -->
302303 <style>
304 .jumbotron-mask {
305 /*
306 -webkit-clip-path: url(#myClip);
307 clip-path: url(#myClip);
308 */
309 }
310 </style>
311312 <!--- END SVG SHAPE -->
313 <!--
314 *****************************
315 **** BEGIN DESKTOP SETUP ****
316 *****************************
317 -->
318319 <section class="jumbotron__playground jumbotron-mask jumbotron__playground-@paragraphID jumbotron--desktop @_data.CssClass @backgroundClass">
320321 <section class="@JumbotronCarouselClass">
322323 @foreach (var _item in _data.JumbotronList)
324 {
325326 BackgroundHorizontalPosition = _item.BackgroundHorizontalPosition;
327 BackgroundVerticalPosition = _item.BackgroundVerticalPosition != "center" ? _item.BackgroundVerticalPosition : "middle";
328 JumbotronBackgroundClassName = "jumbotron__image_background_" + paragraphID + "_" + _item.Id;
329 string jumbotronImage = _item.Image.Image.Replace("?x","&x");
330 <div class="jumbotron @_item.CssClass" id="@_item.Id">
331332 <style>
333334 @@media screen and (min-width: 994px) {
335 .@JumbotronBackgroundClassName {
336 background-image: url('/Admin/Public/GetImage.ashx?Image=@jumbotronImage&Crop=7&Format=webp&Width=1200&height=@_data.JumbotronHeight&Compression=80');
337 }
338 }
339340 @@media screen and (min-width: 1200px) {
341 .@JumbotronBackgroundClassName {
342 background-image: url('/Admin/Public/GetImage.ashx?Image=@jumbotronImage&Crop=7&Format=webp&Width=2000&height=@_data.JumbotronHeight&Compression=80');
343 }
344 }
345346 </style>
347348 <figure class="jumbotron__image rellaxOff @BackgroundHorizontalPosition @BackgroundVerticalPosition @JumbotronBackgroundClassName"></figure>
349350 @RenderShoutbox(_data, _item)
351 </div>
352 }
353354 </section>
355356 <!-- BEGIN QUICKMENU -->
357358 @RenderQuickmenu(_data)
359360 <!-- END QUICKMENU -->
361362 <div class="jumbotron__shaper-container"><svg width="100%" height="500" viewBox="0 0 2000 600" preserveAspectRatio="none">
363 <defs>
364 <style>
365 .cls-1 {
366 fill: #ffffff;
367 }
368 </style>
369 </defs>
370 <path class="cls-1" d="M1999.57,425c-123.24,53.94-329.82,96.6-581.35,119.35q33.6-6.59,65.7-14.19c104.82-24.86,197.33-58,276-98.78,21.37-11.08,49.25-53.51,49.25-53.51C1609,504.41,1328.64,545.78,1128.7,558.21c-31.7,2-62.42,3.29-91.8,4.12q-18.23.13-36.6.13c-81.34,0-160.65-1.95-237.08-5.65-16.15-1.19-25.6-1.31-25.6-1.31C416.39,538.15,148.8,489.67,1,425H.3V600h2000V425Z" />
371 </svg></div>
372373 </section>
374375 <!--
376 ***************************
377 **** END DESKTOP SETUP ****
378 ***************************
379 -->
380 <!--
381 ****************************
382 **** BEGIN MOBILE SETUP ****
383 ****************************
384 -->
385386 <section class="jumbotron__playground jumbotron__playground-@paragraphID jumbotron--mobile @_data.CssClass">
387388 <section class="@JumbotronCarouselMobClass">
389390 @foreach (var _item in _data.JumbotronList)
391 {
392393 BackgroundHorizontalPosition = _item.BackgroundHorizontalPosition;
394 BackgroundVerticalPosition = _item.BackgroundVerticalPosition != "center" ? _item.BackgroundVerticalPosition : "middle";
395 string jumbotronImage = _item.Image.Image.Replace("?x","&x");
396 <div class="jumbotron @_item.CssClass">
397398 <!-- BEGIN IMAGE -->
399400 <figure class="jumbotron__image-container">
401 <picture class="jumbotron__image w-full h-full">
402 <source media="(max-width: 400px)" srcset="/Admin/Public/GetImage.ashx?Image=@jumbotronImage&Crop=7&Format=webp&Quality=90&Width=400&Compression=80">
403 <source media="(max-width: 500px)" srcset="/Admin/Public/GetImage.ashx?Image=@jumbotronImage&Crop=7&Format=webp&Quality=90&Width=500&Compression=80">
404 <source media="(max-width: 600px)" srcset="/Admin/Public/GetImage.ashx?Image=@jumbotronImage&Crop=7&Format=webp&Quality=90&Width=600&Compression=80">
405 <source media="(max-width: 700px)" srcset="/Admin/Public/GetImage.ashx?Image=@jumbotronImage&Crop=7&Format=webp&Quality=90&Width=700&Compression=80">
406 <source media="(max-width: 994px)" srcset="/Admin/Public/GetImage.ashx?Image=@jumbotronImage&Crop=7&Format=webp&Quality=90&Width=994&Compression=80">
407 <img src="/Admin/Public/GetImage.ashx?Image=@jumbotronImage&Crop=7&Format=webp&Width=400&Quality=90&Compression=80" width="1980" height="500" alt="@_item.Image.ImageAlt" />
408 </picture>
409 </figure>
410411 <!-- END IMAGE -->
412 <!-- BEGIN SHOUTBOX -->
413414 @RenderShoutbox(_data, _item)
415416 <!-- END SHOUTBOX -->
417 </div>
418 }
419420 </section>
421422 <!-- BEGIN QUICKMENU -->
423424 @RenderQuickmenu(_data)
425426 <!-- END QUICKMENU -->
427428 </section>
429430 <!--
431 ************************
432 *** END MOBILE SETUP ***
433 ************************
434 -->
435436 <style>
437 .jumbotron__playground,
438 .jumbotron {
439 height: auto;
440 }
441442 @@media screen and (min-width: 991px){
443 .jumbotron__playground-@paragraphID .jumbotron__carousel,
444 .jumbotron__playground-@paragraphID .jumbotron {
445 height: @JumbotronHeight;
446 overflow: hidden;
447 }
448449 .jumbotron__playground-@paragraphID .jumbotron__container {
450 width: 100%;
451 }
452453 @*@if(!_data.JumbotronConfiguration.FullWidth){
454 <text>
455 .jumbotron__playground-@paragraphID .jumbotron__container {
456 max-width: @_data.JumbotronConfiguration.ContainerSize;
457 }
458 </text>
459 }*@
460461 .jumbotron__playground-@paragraphID .quickmenu {
462 width: @QuickmenuWidth;
463 }
464465 .jumbotron__playground-@paragraphID .jumbotron__no-carousel,
466 .jumbotron__playground-@paragraphID .jumbotron__carousel {
467 width: calc(100% - @QuickmenuWidth);
468469 }
470471 .jumbotron__playground-@paragraphID .jumbotron__subheading {
472 @RenderFontConfig(subheaderFontConfig)
473 }
474475 .jumbotron__playground-@paragraphID .jumbotron__heading {
476 @RenderFontConfig(headerFontConfig)
477 }
478479 .jumbotron__playground-@paragraphID .jumbotron__shoutbox-intro p,
480 .jumbotron__playground-@paragraphID .jumbotron__shoutbox-intro li {
481 @RenderFontConfig(contentFontConfig)
482 }
483484 .jumbotron__playground-@paragraphID .jumbotron__shoutbox {
485 background-color: @ShoutboxBackgroundColor;
486 @if (!string.IsNullOrWhiteSpace(ShoutBoxGradient)) {
487488 <text> @ShoutBoxGradient </text>
489490 }
491 @if (!string.IsNullOrWhiteSpace(ShoutboxBackgroundImage)) {
492493 <text>
494 background-image: url('@ShoutboxBackgroundImage');
495 </text>
496497 }
498 }
499500 .jumbotron__playground-@paragraphID .quickmenu {
501 @if (!string.IsNullOrWhiteSpace(QuickmenuBackgoundImage)) {
502503 <text>
504 background-image: url('@QuickmenuBackgoundImage');
505 </text>
506507 }
508 }
509510511 }
512 </style>
513514 @helper RenderShoutbox(JumbotronContainer _data, JumbotronListItem _item)
515 {
516 string ShoutboxFullHeightClass = _data.ShoutboxFullHeight ? "fullheight" : "";
517 string ShoutboxBackgroundTransparentClass = _data.ShoutboxBackgroundTransparent ? "transparent" : "";
518519 string ShoutboxHorizontalPositionClass = _data.ShoutboxHorizontalPosition;
520 string ShoutboxVerticalPositionClass = _data.ShoutboxVerticalPosition != "center" ? @_data.ShoutboxVerticalPosition : "middle";
521522 <section class="jumbotron__container container @ShoutboxHorizontalPositionClass @ShoutboxVerticalPositionClass ">
523524 @if (_item.HasShoutbox)
525 {
526 <div class="jumbotron__shoutbox @ShoutboxBackgroundTransparentClass @ShoutboxFullHeightClass">
527 <section class="jumbotron__shoutbox-header">
528529 @_item.SubHeader.HeaderFormatted("jumbotron__subheading")
530 @_item.Header.HeaderFormatted("jumbotron__heading")
531532 @if (!string.IsNullOrWhiteSpace(_item.Content.Text))
533 {
534 <div class="jumbotron__shoutbox-intro">@_item.Content.Text</div>
535 }
536537 @RenderButton(_item.Button.ButtonConfiguration, _item.Button.ButtonLink, _item.Button.ButtonConfiguration.ButtonClass, _item.Button.ButtonText, _item.Button.ButtonAriaLabel, _item.Button.NewWindow, "", "jumbotron__shoutbox-cta", "jumbotron__shoutbox-cta-label", "jumbotron__shoutbox-cta-icon")
538539 </section>
540 </div>
541 }
542 </section>
543 }
544545 @helper RenderQuickmenu(JumbotronContainer _data)
546 {
547 int quickmenuWidth = _data.QuickmenuWidth;
548549 if (quickmenuWidth > 0)
550 {
551 <div class="quickmenu">
552 <h2 class="quickmenu__header">@_data.QuickmenuHeader</h2>
553 <nav class="quickmenu__list">
554 @foreach (var _link in _data.QuickmenuLinks)
555 {
556 var highlightedClass = _link.Highlighted ? "highlighted" : "";
557 var targetLink = _link.NewWindow ? "target='_blank'" : "";
558559 <a href="@_link.Link" class="quickmenu__link @highlightedClass" @targetLink> @_link.Name </a>
560 }
561 </nav>
562 </div>
563 }
564 }
565