Exception in template (Designs/Hummel/Paragraph/BannerHero.cshtml): System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
   at CompiledRazorTemplates.Dynamic.eddcafdaecf.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateBase.cs:line 126
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 608
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 439
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Razor.cs:line 276
   at Dynamicweb.Rendering.Template.RenderRazorTemplate() in D:\sources\Dynamicweb\Dynamicweb9\06 - Dynamicweb Host\Dynamicweb\Dynamicweb-9.3\Dynamicweb\Rendering\Template.vb:line 806
@using System.Web; @using Dynamicweb.Frontend; @using StandardWebshop.CustomCode.Razor; @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> @{ var theme = Model.Item.GetBoolean("ThemeLight") ? " theme-light" : ""; var type = Model.Item.GetSelectedValue("Type"); var delayCount = 0; var hasDelay = Model.Item.GetBoolean("HasDelay"); var TitleAnimation = Model.Item.GetItem("TitleAnimation").GetSelectedValue("Direction") + " " + Model.Item.GetItem("TitleAnimation").GetSelectedValue("Delay"); var SubtitleAnimation = Model.Item.GetItem("SubtitleAnimation").GetSelectedValue("Direction") + " " + Model.Item.GetItem("SubtitleAnimation").GetSelectedValue("Delay"); var CountdownAnimation = Model.Item.GetItem("CountdownAnimation").GetSelectedValue("Direction") + " " + Model.Item.GetItem("CountdownAnimation").GetSelectedValue("Delay"); var TextAnimation = Model.Item.GetItem("TextAnimation").GetSelectedValue("Direction") + " " + Model.Item.GetItem("TextAnimation").GetSelectedValue("Delay"); var bannerLink = !String.IsNullOrEmpty(Model.Item.GetString("ImageLink")) ? "onclick=\"location.href='" + Model.Item.GetString("ImageLink") + "'\"" : ""; } @if (type == "full") { <section class="banner-hero banner-hero--full lazyload-banner@(theme)"> @if (Model.Item.GetFile("Image") != null) { var Image = this.Pageview.CdnWrap(Model.Item.GetFile("Image").Path); if (Model.Item.GetFile("Mp4Video") != null || Model.Item.GetFile("OgvVideo") != null || Model.Item.GetFile("Webm") != null) { <figure class="banner-hero__figure banner-hero__figure--full fade-in"> <video class="banner-hero__video" autoplay loop muted playsinline poster="@Image"> @if (Model.Item.GetFile("Webm") != null) { <source src="@Pageview.CdnWrap(Model.Item.GetFile("Webm").Path)" type="video/webm"> } @if (Model.Item.GetFile("Mp4Video") != null) { <source src="@Pageview.CdnWrap(Model.Item.GetFile("Mp4Video").Path)" type="video/mp4"> } @if (Model.Item.GetFile("OggVideo") != null) { <source src="@Pageview.CdnWrap(Model.Item.GetFile("OggVideo").Path)" type="video/ogg"> } </video> </figure> } else { <figure class="banner-hero__figure banner-hero__figure--full fade-in lazyload-banner--background" data-src="@Image" data-src-md="@Image" data-src-sm="@Image" data-src-xs="@(Model.Item.GetFile("SmallImage") != null ? this.Pageview.CdnWrap(Model.Item.GetFile("SmallImage").Path) : Image)"></figure> } } <div @bannerLink class="banner-hero__content @(Model.Item.GetSelectedValue("VerticalPosition")) @(Model.Item.GetSelectedValue("HorizontalPosition")) @(Model.Item.GetSelectedValue("TextAlign")) fade-in lazyload"> <div class="container"> <div class="row"> <div class="col-md-10 text-area"> @if (!String.IsNullOrEmpty(Model.Item.GetString("Title"))) { <h1 class="headline headline--xlarge @TitleAnimation"> @Model.Item.GetString("Title") </h1> } @if (!String.IsNullOrEmpty(Model.Item.GetString("Subtitle"))) { <h3 class="sub-headline sub-headline--large @SubtitleAnimation"> @Model.Item.GetString("SubTitle") </h3> } @if (!String.IsNullOrWhiteSpace(Model.Item.GetString("Text"))) { <div class="banner-hero__text @TextAnimation"> @Model.Item.GetString("Text") </div> } @if (Model.Item.GetItems("Buttons").Any() && !Model.Item.GetBoolean("ShowButtonsInDropdown")) { <div class="banner-hero__controls@(Model.Item.GetBoolean("VerticalAlignButtons") ? " vertical-buttons":"")">@Buttons()</div> } else if (Model.Item.GetItems("Buttons").Any() && Model.Item.GetBoolean("ShowButtonsInDropdown")) { <div class="banner-hero_controls"> @Dropdown() </div> } </div> </div> @if (Model.Item.GetValue("Countdown") != null && Model.Item.GetDateTime("Countdown").ToFileTime() > DateTime.UtcNow.ToFileTime()) { <div class="row"> <div class="col-md-12"> <div class="banner-hero__countdown @CountdownAnimation" data-countdown-target="@Model.Item.GetDateTime("Countdown").ToString("yyyy'/'MM'/'dd HH:mm:ss")" data-countdown-text="@Translate("CountdownText", "days|hours|minutes|seconds")"> @Model.Item.GetString("Countdowntext") <div class="countdown-container"></div> </div> </div> </div> } </div> </div> @if (Model.Item.GetBoolean("AddScrollButton")) { <div class="banner-scroll"> @Translate("Scroll") <span></span> <span></span> <span></span> </div> } </section> } @if (type == "medium") { <section class="banner-hero@(theme) @(Model.Item.GetFile("Mp4Video") == null && Model.Item.GetFile("OgvVideo") == null ? "banner-hero--image": "") lazyload-banner"> @if (Model.Item.GetFile("Image") != null) { var Image = this.Pageview.CdnWrap(Model.Item.GetFile("Image").Path); if (Model.Item.GetFile("Mp4Video") != null || Model.Item.GetFile("OgvVideo") != null || Model.Item.GetFile("Webm") != null) { <figure class="banner-hero__figure fade-in"> <video class="banner-hero__video" autoplay loop muted playsinline poster="@Image"> @if (Model.Item.GetFile("Webm") != null) { <source src="@Pageview.CdnWrap(Model.Item.GetFile("Webm").Path)" type="video/webm"> } @if (Model.Item.GetFile("Mp4Video") != null) { <source src="@Pageview.CdnWrap(Model.Item.GetFile("Mp4Video").Path)" type="video/mp4"> } @if (Model.Item.GetFile("OggVideo") != null) { <source src="@Pageview.CdnWrap(Model.Item.GetFile("OggVideo").Path)" type="video/ogg"> } </video> </figure> } else { <picture class="banner-hero__figure fade-in"> <source media="(min-width: 768px)" srcset="@Image"> <source media="(max-width: 767px)" srcset="@(Model.Item.GetFile("SmallImage") != null ? this.Pageview.CdnWrap(Model.Item.GetFile("SmallImage").Path) : Image)"> <img src="@Image" alt="@Pageview.CurrentParagraph.Header" /> </picture> } } <div @bannerLink class="banner-hero__content @(Model.Item.GetSelectedValue("VerticalPosition")) @(Model.Item.GetSelectedValue("HorizontalPosition")) @(Model.Item.GetSelectedValue("TextAlign")) fade-in lazyload"> <div class="container"> <div class="row"> <div class="col-md-6 text-area"> @if (!String.IsNullOrEmpty(Model.Item.GetString("Title"))) { <h1 class="headline headline--large @TitleAnimation"> @Model.Item.GetString("Title") </h1> } @if (!String.IsNullOrEmpty(Model.Item.GetString("Subtitle"))) { <h3 class="headline headline--medium @SubtitleAnimation"> @Model.Item.GetString("SubTitle") </h3> } @if (!String.IsNullOrWhiteSpace(Model.Item.GetString("Text"))) { <div class="banner-hero__text @TextAnimation"> @Model.Item.GetString("Text") </div> } @if (Model.Item.GetItems("Buttons").Any() && !Model.Item.GetBoolean("ShowButtonsInDropdown")) { <div class="banner-hero__controls@(Model.Item.GetBoolean("VerticalAlignButtons") ? " vertical-buttons":"")">@Buttons()</div> } else if (Model.Item.GetItems("Buttons").Any() && Model.Item.GetBoolean("ShowButtonsInDropdown")) { <div class="banner-hero_controls"> @Dropdown() </div> } </div> </div> @if (Model.Item.GetValue("Countdown") != null && Model.Item.GetDateTime("Countdown").ToFileTime() > DateTime.UtcNow.ToFileTime()) { <div class="row"> <div class="col-md-12"> <div class="banner-hero__countdown @CountdownAnimation" data-countdown-target="@Model.Item.GetDateTime("Countdown").ToString("yyyy'/'MM'/'dd HH:mm:ss")" data-countdown-text="@Translate("CountdownText", "days|hours|minutes|seconds")"> @Model.Item.GetString("Countdowntext") <div class="countdown-container"></div> </div> </div> </div> } </div> </div> @if (Model.Item.GetBoolean("AddScrollButton")) { <div class="banner-scroll"> @Translate("Scroll") <span></span> <span></span> <span></span> </div> } </section> } @if (type == "small") { <section class="banner-hero banner-hero--small lazyload-banner@(theme)"> @if (Model.Item.GetFile("Image") != null) { var Image = this.Pageview.CdnWrap(Model.Item.GetFile("Image").Path); if (Model.Item.GetFile("Mp4Video") != null || Model.Item.GetFile("OgvVideo") != null || Model.Item.GetFile("Webm") != null) { <figure class="banner-hero__figure fade-in loaded"> <video class="banner-hero__video" autoplay loop muted playsinline poster="@Image"> @if (Model.Item.GetFile("Webm") != null) { <source src="@Pageview.CdnWrap(Model.Item.GetFile("Webm").Path)" type="video/webm"> } @if (Model.Item.GetFile("Mp4Video") != null) { <source src="@Pageview.CdnWrap(Model.Item.GetFile("Mp4Video").Path)" type="video/mp4"> } @if (Model.Item.GetFile("OggVideo") != null) { <source src="@Pageview.CdnWrap(Model.Item.GetFile("OggVideo").Path)" type="video/ogg"> } </video> </figure> } else { <figure class="banner-hero__figure fade-in lazyload-banner--background" data-src="@Image" data-src-md="@Image" data-src-sm="@Image" data-src-xs="@(Model.Item.GetFile("SmallImage") != null ? this.Pageview.CdnWrap(Model.Item.GetFile("SmallImage").Path) : Image)"></figure> } } <div @bannerLink class="banner-hero__content @(Model.Item.GetSelectedValue("VerticalPosition")) @(Model.Item.GetSelectedValue("HorizontalPosition")) @(Model.Item.GetSelectedValue("TextAlign")) fade-in lazyload"> <div class="container"> <div class="row"> <div class="col-md-6 text-area"> @if (!String.IsNullOrEmpty(Model.Item.GetString("Title"))) { <h1 class="headline headline--medium @TitleAnimation"> @Model.Item.GetString("Title") </h1> } @if (!String.IsNullOrEmpty(Model.Item.GetString("Subtitle"))) { <h3 class="headline headline--small @SubtitleAnimation"> @Model.Item.GetString("SubTitle") </h3> } @if (!String.IsNullOrWhiteSpace(Model.Item.GetString("Text"))) { <div class="banner-hero__text"> @Model.Item.GetString("Text") </div> } @if (Model.Item.GetItems("Buttons").Any() && !Model.Item.GetBoolean("ShowButtonsInDropdown")) { <div class="banner-hero__controls@(Model.Item.GetBoolean("VerticalAlignButtons") ? " vertical-buttons":"")">@Buttons()</div> } else if (Model.Item.GetItems("Buttons").Any() && Model.Item.GetBoolean("ShowButtonsInDropdown")) { <div class="banner-hero_controls"> @Dropdown() </div> } </div> </div> @if (Model.Item.GetValue("Countdown") != null && Model.Item.GetDateTime("Countdown").ToFileTime() > DateTime.UtcNow.ToFileTime()) { <div class="row"> <div class="col-md-12"> <div class="banner-hero__countdown @CountdownAnimation" data-countdown-target="@Model.Item.GetDateTime("Countdown").ToString("yyyy'/'MM'/'dd HH:mm:ss")" data-countdown-text="@Translate("CountdownText", "days|hours|minutes|seconds")"> @Model.Item.GetString("Countdowntext") <div class="countdown-container"></div> </div> </div> </div> } </div> </div> @if (Model.Item.GetBoolean("AddScrollButton")) { <div class="banner-scroll"> @Translate("Scroll") <span></span> <span></span> <span></span> </div> } </section> } @helper Buttons() { var buttontype = "btn"; if (Model.Item.GetSelectedValue("ButtonType") == "btn") { buttontype = Model.Item.GetSelectedValue("ButtonType") + " " + (Model.Item.GetBoolean("ThemeLight") ? "btn--light" : ""); } else { buttontype = Model.Item.GetSelectedValue("ButtonType") + " " + (Model.Item.GetBoolean("ThemeLight") ? "btn-clear--light" : ""); } if (Model.Item.GetItems("Buttons") != null && Model.Item.GetItems("Buttons").Any()) { foreach (var button in Model.Item.GetItems("Buttons")) { var Animation = button.GetItem("Animation").GetSelectedValue("Direction") + " " + button.GetItem("Animation").GetSelectedValue("Delay"); <a href="@button.GetString("Link")" class="@buttontype @Animation"> <span>@button.GetString("Text")</span> </a> } } } @helper Dropdown() { var buttontype = "btn"; var Animation = Model.Item.GetItem("DropdownAnimation").GetSelectedValue("Direction") + " " + Model.Item.GetItem("DropdownAnimation").GetSelectedValue("Delay"); if (Model.Item.GetSelectedValue("ButtonType") == "btn") { buttontype = Model.Item.GetSelectedValue("ButtonType") + " " + (Model.Item.GetBoolean("ThemeLight") ? "btn--light" : ""); } else { buttontype = Model.Item.GetSelectedValue("ButtonType") + " " + (Model.Item.GetBoolean("ThemeLight") ? "btn-clear--light" : ""); } if (Model.Item.GetItems("Buttons") != null && Model.Item.GetItems("Buttons").Any()) { <div class="dropdown-group @Animation"> <button type="button" role="button" class="@buttontype" data-toggle="dropdown"> <span>@Model.Item.GetString("DropdownText")</span> <svg class="icon"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/dist/icons/icons.svg#arrow-right-small"></use> </svg> </button> <ul class="dropdown-buttons @(Model.Item.GetBoolean("ThemeLight") ? "dropdown-buttons__light" : "dropdown-buttons__dark")"> @foreach (var button in Model.Item.GetItems("Buttons")) { <li> <a href="@button.GetString("Link")"> <span>@button.GetString("Text")</span> </a> </li> } </ul> </div> } }

Log ind

* Alle felter skal udfyldes med gyldig info.
* Ingen bruger fundet med den e-mail eller adgangskode



Der er ingen produkter i kurven

  • Størrelse:

    Farve:

    Varenr:

    Der er ikke flere varer på lager

    DKK

    DKK

    DKK

Ordreoversigt

Subtotal 1600 DKK
DKK DKK
Total DKK inkl. moms
Gå til kassen Gå til kurv

Glemt adgangskode

* Alle felter skal udfyldes med gyldig info.

Email OK. Hvis denne findes som kunde, vil du få tilsendt en e-mail om gendannelse af din kode.

Vi anvender cookies for at give dig den bedst mulige oplevelse på vores website. Hvis du fortsætter på sitet, accepterer du samtidig brugen af cookies. LÆS MERE.