Error executing template "Designs/Hags2024/_parsed/default.parsed.cshtml"
System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Exception of type 'System.InvalidOperationException' was thrown.
at System.Runtime.CompilerServices.ConditionalWeakTable`2.VerifyIntegrity()
at System.Runtime.CompilerServices.ConditionalWeakTable`2.TryGetValue(TKey key, TValue& value)
at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValue(TKey key, CreateValueCallback createValueCallback)
at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetOrCreateValue(TKey key)
at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.CSharpSyntaxNode.GetStructure(SyntaxTrivia trivia)
at Microsoft.CodeAnalysis.SyntaxTrivia.GetStructure()
at Microsoft.CodeAnalysis.SyntaxNode.<DescendantTriviaIntoTrivia>d__171.MoveNext()
at Microsoft.CodeAnalysis.SyntaxNodeOrToken.GetDirectives[TDirective](SyntaxNode node, Func`2 filter, List`1& directives)
at Microsoft.CodeAnalysis.SyntaxNodeOrToken.GetDirectives[TDirective](SyntaxNodeOrToken& node, Func`2 filter, List`1& directives)
at Microsoft.CodeAnalysis.CSharp.Syntax.NullableContextStateMap.GetContexts(SyntaxTree tree, Boolean isGeneratedCode)
at Microsoft.CodeAnalysis.CSharp.Syntax.NullableContextStateMap.Create(SyntaxTree tree, Boolean isGeneratedCode)
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxTree.EnsureNullableContextMapInitialized()
at Microsoft.CodeAnalysis.CSharp.Binder.AreNullableAnnotationsEnabled(SyntaxTree syntaxTree, Int32 position)
at Microsoft.CodeAnalysis.CSharp.Binder.AreNullableAnnotationsEnabled(SyntaxToken token)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNonGenericSimpleNamespaceOrTypeOrAliasSymbol(IdentifierNameSyntax node, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics, NamespaceOrTypeSymbol qualifierOpt)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(ExpressionSyntax syntax, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeSymbol(ExpressionSyntax syntax, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeSymbol(ExpressionSyntax syntax, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved)
at Microsoft.CodeAnalysis.CSharp.Imports.FromSyntax(CSharpSyntaxNode declarationSyntax, InContainerBinder binder, ConsList`1 basesBeingResolved, Boolean inUsing)
at Microsoft.CodeAnalysis.CSharp.InContainerBinder.<>c__DisplayClass6_0.<.ctor>b__0(ConsList`1 basesBeingResolved)
at Microsoft.CodeAnalysis.CSharp.InContainerBinder.GetImports(ConsList`1 basesBeingResolved)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetImports(SingleNamespaceDeclaration declaration)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbol.ForceCompleteMemberByLocation(SourceLocation locationOpt, Symbol member, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.<>c__DisplayClass49_1.<ForceComplete>b__0(Int32 i)
at Roslyn.Utilities.UICultureUtilities.<>c__DisplayClass6_0`1.<WithCurrentUICulture>b__0(T param)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbol.ForceCompleteMemberByLocation(SourceLocation locationOpt, Symbol member, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.<>c__DisplayClass49_1.<ForceComplete>b__0(Int32 i)
at Roslyn.Utilities.UICultureUtilities.<>c__DisplayClass6_0`1.<WithCurrentUICulture>b__0(T param)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceModuleSymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceAssemblySymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetSourceDeclarationDiagnostics(SyntaxTree syntaxTree, Nullable`1 filterSpanWithinTree, Func`4 locationFilterOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetDiagnostics(CompilationStage stage, Boolean includeEarlierStages, DiagnosticBag diagnostics, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CompileMethods(CommonPEModuleBuilder moduleBuilder, Boolean emittingPdb, Boolean emitMetadataOnly, Boolean emitTestCoverageData, DiagnosticBag diagnostics, Predicate`1 filterOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Compilation.Emit(Stream peStream, Stream metadataPEStream, Stream pdbStream, Stream xmlDocumentationStream, Stream win32Resources, IEnumerable`1 manifestResources, EmitOptions options, IMethodSymbol debugEntryPoint, Stream sourceLinkStream, IEnumerable`1 embeddedTexts, CompilationTestData testData, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Compilation.Emit(Stream peStream, Stream pdbStream, Stream xmlDocumentationStream, Stream win32Resources, IEnumerable`1 manifestResources, EmitOptions options, IMethodSymbol debugEntryPoint, Stream sourceLinkStream, IEnumerable`1 embeddedTexts, Stream metadataPEStream, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Compilation.Emit(Stream peStream, Stream pdbStream, Stream xmlDocumentationStream, Stream win32Resources, IEnumerable`1 manifestResources, EmitOptions options, CancellationToken cancellationToken)
at RazorEngine.Roslyn.CSharp.RoslynCompilerServiceBase.CompileType(TypeContext context)
at RazorEngine.Templating.RazorEngineCore.CreateTemplateType(ITemplateSource razorTemplate, Type modelType)
at RazorEngine.Templating.RazorEngineCore.Compile(ITemplateKey key, Type modelType)
at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal(ITemplateKey key, Type modelType)
at RazorEngine.Templating.RazorEngineService.GetCompiledTemplate(ITemplateKey key, Type modelType, Boolean compileOnCacheMiss)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.DynamicWrapperService.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 RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag)
at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Exception of type 'System.InvalidOperationException' was thrown.
at System.Runtime.CompilerServices.ConditionalWeakTable`2.VerifyIntegrity()
at System.Runtime.CompilerServices.ConditionalWeakTable`2.TryGetValue(TKey key, TValue& value)
at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValue(TKey key, CreateValueCallback createValueCallback)
at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetOrCreateValue(TKey key)
at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.CSharpSyntaxNode.GetStructure(SyntaxTrivia trivia)
at Microsoft.CodeAnalysis.SyntaxTrivia.GetStructure()
at Microsoft.CodeAnalysis.SyntaxNode.<DescendantTriviaIntoTrivia>d__171.MoveNext()
at Microsoft.CodeAnalysis.SyntaxNodeOrToken.GetDirectives[TDirective](SyntaxNode node, Func`2 filter, List`1& directives)
at Microsoft.CodeAnalysis.SyntaxNodeOrToken.GetDirectives[TDirective](SyntaxNodeOrToken& node, Func`2 filter, List`1& directives)
at Microsoft.CodeAnalysis.CSharp.Syntax.NullableContextStateMap.GetContexts(SyntaxTree tree, Boolean isGeneratedCode)
at Microsoft.CodeAnalysis.CSharp.Syntax.NullableContextStateMap.Create(SyntaxTree tree, Boolean isGeneratedCode)
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxTree.EnsureNullableContextMapInitialized()
at Microsoft.CodeAnalysis.CSharp.Binder.AreNullableAnnotationsEnabled(SyntaxTree syntaxTree, Int32 position)
at Microsoft.CodeAnalysis.CSharp.Binder.AreNullableAnnotationsEnabled(SyntaxToken token)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNonGenericSimpleNamespaceOrTypeOrAliasSymbol(IdentifierNameSyntax node, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics, NamespaceOrTypeSymbol qualifierOpt)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(ExpressionSyntax syntax, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeSymbol(ExpressionSyntax syntax, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeSymbol(ExpressionSyntax syntax, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved)
at Microsoft.CodeAnalysis.CSharp.Imports.FromSyntax(CSharpSyntaxNode declarationSyntax, InContainerBinder binder, ConsList`1 basesBeingResolved, Boolean inUsing)
at Microsoft.CodeAnalysis.CSharp.InContainerBinder.<>c__DisplayClass6_0.<.ctor>b__0(ConsList`1 basesBeingResolved)
at Microsoft.CodeAnalysis.CSharp.InContainerBinder.GetImports(ConsList`1 basesBeingResolved)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetImports(SingleNamespaceDeclaration declaration)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbol.ForceCompleteMemberByLocation(SourceLocation locationOpt, Symbol member, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.<>c__DisplayClass49_1.<ForceComplete>b__0(Int32 i)
at Roslyn.Utilities.UICultureUtilities.<>c__DisplayClass6_0`1.<WithCurrentUICulture>b__0(T param)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbol.ForceCompleteMemberByLocation(SourceLocation locationOpt, Symbol member, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.<>c__DisplayClass49_1.<ForceComplete>b__0(Int32 i)
at Roslyn.Utilities.UICultureUtilities.<>c__DisplayClass6_0`1.<WithCurrentUICulture>b__0(T param)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
---> (Inner Exception #0) System.InvalidOperationException: Exception of type 'System.InvalidOperationException' was thrown.
at System.Runtime.CompilerServices.ConditionalWeakTable`2.VerifyIntegrity()
at System.Runtime.CompilerServices.ConditionalWeakTable`2.TryGetValue(TKey key, TValue& value)
at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValue(TKey key, CreateValueCallback createValueCallback)
at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetOrCreateValue(TKey key)
at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.CSharpSyntaxNode.GetStructure(SyntaxTrivia trivia)
at Microsoft.CodeAnalysis.SyntaxTrivia.GetStructure()
at Microsoft.CodeAnalysis.SyntaxNode.<DescendantTriviaIntoTrivia>d__171.MoveNext()
at Microsoft.CodeAnalysis.SyntaxNodeOrToken.GetDirectives[TDirective](SyntaxNode node, Func`2 filter, List`1& directives)
at Microsoft.CodeAnalysis.SyntaxNodeOrToken.GetDirectives[TDirective](SyntaxNodeOrToken& node, Func`2 filter, List`1& directives)
at Microsoft.CodeAnalysis.CSharp.Syntax.NullableContextStateMap.GetContexts(SyntaxTree tree, Boolean isGeneratedCode)
at Microsoft.CodeAnalysis.CSharp.Syntax.NullableContextStateMap.Create(SyntaxTree tree, Boolean isGeneratedCode)
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxTree.EnsureNullableContextMapInitialized()
at Microsoft.CodeAnalysis.CSharp.Binder.AreNullableAnnotationsEnabled(SyntaxTree syntaxTree, Int32 position)
at Microsoft.CodeAnalysis.CSharp.Binder.AreNullableAnnotationsEnabled(SyntaxToken token)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNonGenericSimpleNamespaceOrTypeOrAliasSymbol(IdentifierNameSyntax node, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics, NamespaceOrTypeSymbol qualifierOpt)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(ExpressionSyntax syntax, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeSymbol(ExpressionSyntax syntax, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics)
at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeSymbol(ExpressionSyntax syntax, DiagnosticBag diagnostics, ConsList`1 basesBeingResolved)
at Microsoft.CodeAnalysis.CSharp.Imports.FromSyntax(CSharpSyntaxNode declarationSyntax, InContainerBinder binder, ConsList`1 basesBeingResolved, Boolean inUsing)
at Microsoft.CodeAnalysis.CSharp.InContainerBinder.<>c__DisplayClass6_0.<.ctor>b__0(ConsList`1 basesBeingResolved)
at Microsoft.CodeAnalysis.CSharp.InContainerBinder.GetImports(ConsList`1 basesBeingResolved)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetImports(SingleNamespaceDeclaration declaration)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbol.ForceCompleteMemberByLocation(SourceLocation locationOpt, Symbol member, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.<>c__DisplayClass49_1.<ForceComplete>b__0(Int32 i)
at Roslyn.Utilities.UICultureUtilities.<>c__DisplayClass6_0`1.<WithCurrentUICulture>b__0(T param)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)<---
<---
1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
2 @using System;
3 @using System.Linq;
4 @using System.Web.Optimization;
5 @using HagsWeb.Library.Methods.Page;
6 @using HagsWeb.Library.State;
7 @using HagsWeb.Library.Utilities;
8 @using Dynamicweb.Content;
9 @using Dynamicweb.Ecommerce.International;
10
11 @{
12 bool inDev = false;
13 inDev = inDev || GetGlobalValue("Global:Request.Url").Contains("http://hagsdw915solution.");
14 inDev = inDev || GetGlobalValue("Global:Request.Url").Contains("https://hagsdev.hags.");
15 inDev = inDev || GetGlobalValue("Global:Request.Url").Contains("https://hagslang.hags.");
16 inDev = inDev || GetGlobalValue("Global:Request.Url").Contains("https://hagslive.hags.");
17
18 int masterAreaId = int.TryParse(GetGlobalValue("Global:Area.ID"), out masterAreaId) ? masterAreaId : 0;
19 Dynamicweb.Content.Area masterArea = new Dynamicweb.Content.AreaService().GetArea(masterAreaId);
20
21 string themeTag = HagsPages.GetThemeByNavigationTag(GetGlobalValue("Global:Page.Top.ID")); // gets the page ID at the top of the tree this page sits on.
22 string siteNavigation = HagsPages.GetActiveAreas();
23 string htmlLang = GetGlobalValue("Global:Area.LongLang");
24 string siteAreaName = @GetString("DwAreaName");
25 string designBaseUrl = @GetString("Template:DesignBaseUrl");
26 var unixTimestamp = ((DateTimeOffset)DateTime.UtcNow).ToUnixTimeSeconds();
27 var jsTimestamp = inDev ? unixTimestamp : 0;
28 string currentUser = @GetString("DW_extranet_AccessUserName");
29 string userGroups = @GetString("DW_extranet_Groups");
30
31 var siteFirstPageId = GetString("DwAreaFirstPageID"); // for the Hags Logo url. Go to the WEBSITE home page
32 var thisSiteName = HagsWeb.Library.Methods.Page.HagsPages.GetSiteCountryName(@GetGlobalValue("Global:Area.LongLang"), @GetGlobalValue("Global:Area.Name"));
33 var websites = GetLoop("WebsiteLanguages");
34 string worldwideContactsLink = DWUtilities.GetPageByNavigationTag("worldwide-contacts", masterAreaId);
35
36 }
37 <!DOCTYPE html>
38 <html class="no-js" lang="@htmlLang">
39 <head>
40 <meta charset="utf-8">
41 <meta name="viewport" content="width=device-width, initial-scale=1.0">
42 <title>@GetValue("Title")</title>
43 @GetValue("MetaTags")
44 @GetValue("CopyRightNotice")
45
46
47 <meta name="author" content="HAGS @(siteAreaName)">
48 <link rel="icon" href="@(designBaseUrl)assets/img/favicon.ico" sizes="32x32">
49 <link rel="icon" href="@(designBaseUrl)assets/img/icon.svg" type="image/svg+xml">
50 <link rel="apple-touch-icon" href="@(designBaseUrl)assets/img/apple-touch-icon.png">
51
52 <script>(function (H) { H.className = H.className.replace(/\bno-js\b/, 'js') })(document.documentElement)</script>
53
54 <link rel="preconnect" href="https://cdn.fonts.net">
55 <link rel="stylesheet" href="@(designBaseUrl)assets/styles/monotype-redux.css">
56
57 <link rel="stylesheet" href="@(designBaseUrl)assets/styles/reset.css?v=1.1">
58 <link rel="stylesheet" href="@(designBaseUrl)assets/styles/core.css?ts=@unixTimestamp">
59 <link rel="stylesheet" href="@(designBaseUrl)assets/styles/nav-mega.css?ts=@unixTimestamp">
60 <link rel="stylesheet" href="@(designBaseUrl)assets/styles/forms.css?ts=@unixTimestamp">
61
62 @if (!inDev)
63 {
64 <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="89c7e0fa-fa61-446d-9c96-866489bcea3c" data-blockingmode="auto" type="text/javascript"></script>
65 }
66
67 @foreach (var language in GetLoop("Languages"))
68 {
69 string pageid = language.GetString("PageID");
70 string url = string.Empty;
71 string productId = System.Web.HttpContext.Current.Request.QueryString.Get("productid");
72 if (string.IsNullOrEmpty(productId))
73 {
74 url = @GetGlobalValue("Global:Request.Scheme") + "://" + language.GetString("PrimaryDomain");
75 url = url + Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("default.aspx?id=" + pageid);
76 }
77 else
78 {
79 string productSystemUrl = "default.aspx?id=" + pageid + "&ProductID=" + productId;
80 string productUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(productSystemUrl);
81 if (!string.IsNullOrEmpty(productUrl))
82 {
83 url = @GetGlobalValue("Global:Request.Scheme") + "://" + language.GetString("PrimaryDomain") + productUrl;
84 }
85 }
86 if (!string.IsNullOrEmpty(url))
87 {
88 <link rel="alternate" href='@url' hreflang='@language.GetString("Culture")'>
89 }
90 }
91
92 @* expand these bundles for re-design debugging *@
93
94 @* Scripts.Render("~/bundle/jquery") *@
95 @* @Scripts.Render("~/bundle/Validation") *@
96
97
98
99 @* no need for this? we are not using bootstrap anymore!! /HagsCore/style/libraries/bootstrap-sass/assets/javascripts/bootstrap.min.js *@
100 @* /HagsCore/style/scss/libraries/bootstrap-sass/assets/javascripts/bootstrap.min.js *@
101
102 <script type="text/javascript" src="@(designBaseUrl)assets/js/libraries/jquery.min.js" cookieconsent="ignore"></script>
103 <script type="text/javascript" src="@(designBaseUrl)assets/js/libraries/validation/jquery.validate.min.js" cookieconsent="ignore"></script>
104 <script type="text/javascript" src="@(designBaseUrl)assets/js/libraries/validation/additional-methods.min.js" cookieconsent="ignore"></script>
105 <script type="text/javascript" src="@(designBaseUrl)assets/js/functions/hags-global.js?v=1.4&ts=@jsTimestamp" cookieconsent="ignore"></script>
106 @*<script type="text/javascript" src="@(designBaseUrl)assets/js/functions/hags-global.js" cookieconsent="ignore"></script>*@
107
108 @* the future!! HTMX is here *@
109 <script src="@(designBaseUrl)assets/js/libraries/htmx/htmx.min.js" cookieconsent="ignore"></script>
110
111 <script type="text/javascript" src="@(designBaseUrl)assets/js/functions/h24.js?v=1.4.3&ts=@unixTimestamp" cookieconsent="ignore"></script>
112
113
114 @* this snippet is from the product page template *@
115 @RenderSnippet("productScripts")
116
117 @* this snippet is from the case studies item listing *@
118 @RenderSnippet("caseStudyScripts")
119
120
121 @* do not use these for now *@
122 <!--IncludeFile("Includes/SharpSpringCode.cshtml")-->
123 <!--IncludeFile("Includes/TrailHub_DenmarkCode.cshtml")-->
124 <!-- Start of Sleeknote signup and lead generation tool - www.sleeknote.com -->
125 @if (!inDev)
126 {
127 <script id="sleeknoteScript" type="text/javascript">
128 (function () {
129 var sleeknoteScriptTag = document.createElement("script");
130 sleeknoteScriptTag.type = "text/javascript";
131 sleeknoteScriptTag.charset = "utf-8";
132 sleeknoteScriptTag.src = ("//sleeknotecustomerscripts.sleeknote.com/60385.js");
133 var s = document.getElementById("sleeknoteScript");
134 s.parentNode.insertBefore(sleeknoteScriptTag, s);
135 })();
136 </script>
137
138 }
139
140
141 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
142
143 @if (!inDev)
144 {
145 <meta name="facebook-domain-verification" content="8vnuupfwjjw7l4g2t44cuzv5c17fa2">
146 <meta name="p:domain_verify" content="e984d55d650d51a77b5bd78fce401aee">
147
148 string verificationCode = "";
149 switch (masterAreaId)
150 {
151 case 1:
152 <!-- Google Analytics Property for Global -->
153 <meta name="google-site-verification" content="SU7OrN2pJAoaHy4QUbJqKRyiRK_pJK_mydVX9HnbAjE">
154 break;
155 case 2:
156 <!-- Google Analytics Property for Sweden -->
157 <meta name="google-site-verification" content="WMHOYHSUksAhokWvc_pl1xi2eUEIqlSAmqSuPqBuIhw">
158 break;
159 case 3:
160 <!-- Google Analytics Property for Germany -->
161 <meta name="google-site-verification" content="2FnagwVri1SLEk0f1-cNAMIsqoelzEf6qa64iTOo6A4">
162 break;
163 case 4:
164 <!-- Google Analytics Property for Denmark -->
165 <meta name="google-site-verification" content="iTdN9SsW-DWo1nPaqZ2_W6c1lKr1KdpIE-9PIa7efD8">
166 break;
167 case 5:
168 <!-- Google Analytics Property for France -->
169 <meta name="google-site-verification" content="q7sWMD42DhdNcVgQjRvpUnHq6UWvgFfxxN7SWLTjDBs">
170 break;
171 case 6:
172 <!-- Google Analytics Property for Spain -->
173 <meta name="google-site-verification" content="5l8EU56ZLDtGLgFsyPizPWpK1lt_DAqhcYsgiP_wZ2w">
174 break;
175 case 7:
176 <!-- Google Analytics Property for UK -->
177 <meta name="google-site-verification" content="VWJFZapvDhxv8eu8eMl66KkAAArEyIG3pa8ZffeAKrg">
178 break;
179 }
180
181 <!-- Google Tag Manager -->
182 <script>
183 window.dataLayer = window.dataLayer || [];
184 </script>
185 <script type="text/javascript">
186 (function (w, d, s, l, i) {
187 w[l] = w[l] || [];
188 w[l].push({
189 'gtm.start':
190 new Date().getTime(),
191 event: 'gtm.js'
192 });
193 var f = d.getElementsByTagName(s)[0],
194 j = d.createElement(s),
195 dl = l != 'dataLayer' ? '&l=' + l : '';
196 j.async = true;
197 j.src =
198 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
199 f.parentNode.insertBefore(j, f);
200 })(window, document, 'script', 'dataLayer', 'GTM-MCRWZS');
201 </script>
202 <!-- End Google Tag Manager -->
203 <!-- Facebook Pixel Code -->
204 <script type="text/javascript">
205 !function (f, b, e, v, n, t, s) {
206 if (f.fbq) return;
207 n = f.fbq = function () {
208 n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
209 };
210 if (!f._fbq) f._fbq = n;
211 n.push = n;
212 n.loaded = !0;
213 n.version = '2.0';
214 n.queue = [];
215 t = b.createElement(e);
216 t.async = !0;
217 t.src = v;
218 s = b.getElementsByTagName(e)[0];
219 s.parentNode.insertBefore(t, s)
220 }(window,
221 document,
222 'script',
223 'https://connect.facebook.net/en_US/fbevents.js');
224 fbq('init', '271101660030700');
225 fbq('track', 'PageView');
226 </script>
227 <!-- End Facebook Pixel Code -->
228 }
229
230 <script type="text/javascript" src="https://cdn.weglot.com/weglot.min.js"></script>
231 <script>
232 Weglot.initialize({
233 api_key: 'wg_99b6e7269c4b828ebd027c6d488b55500'
234 });
235 </script>
236
237 @GetValue("Stylesheets")
238 @GetValue("Javascripts")
239 </head>
240
241 <body>
242 @if (!inDev)
243 {
244 <noscript>
245 <!-- Google Tag Manager (noscript) -->
246 <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MCRWZS" height="0" width="0" style="display:none;visibility:hidden"></iframe>
247 <!-- End Google Tag Manager (noscript) -->
248 <!-- Facebook Pixel Code -->
249 <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=271101660030700&ev=PageView&noscript=1">
250 </noscript>
251 }
252 @* Snippets are rendered last and can be defined in any template *@
253 @* We are using a snippet (headerClass) here to let a page template define if the header sits on top or is part of the
254 @* document flow. Setting the snippet to an empty string below makes sure it gets rendered as empty and not as a DW comment string *@
255 @* if a snippetStart/End command is used in another template it is appended to the snippet *@
256
257 @SnippetStart("headerClass")@("")@SnippetEnd("headerClass")
258
259 <header class="header" data-variant='@RenderSnippet("headerClass")'>
260
261 <div class="header__wrapper">
262
263 <div class="header__global-nav">
264
265 <div class="header-logo" itemscope="" itemtype="http://schema.org/Organization">
266 <a href="Default.aspx?ID=@siteFirstPageId" itemprop="url">
267 <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 362 81" class="hags-logo"><path fill="currentColor" fill-rule="evenodd" d="M311.22.5c9.399 0 16.725 3.168 18.555 3.168.862 0 1.596-.243 2.697-1.338h2.558l2.318 19.692h-4.876c-2.697-9.846-10.513-16.292-19.911-16.292-6.837 0-11.97 3.65-11.97 8.39 0 11.187 20.279 13.258 33.958 26.873 5.004 4.986 6.951 10.214 6.951 16.05 0 12.648-11.47 22.618-26.006 22.618-9.77 0-18.687-3.888-20.887-3.888-1.1 0-1.952.611-2.562 1.947h-3.178L285.82 55.59v-.002h4.757c4.029 12.031 11.236 18.237 20.88 18.237 8.059 0 14.17-5.11 14.17-11.917 0-18.122-39.204-17.509-39.204-41.586C286.423 8.645 296.681.5 311.22.5Zm-75.498 0c7.426 0 13.874 1.484 18.765 2.7l.801.2c3.013.755 5.377 1.361 6.941 1.361 1.825 0 2.814-.492 3.66-1.586h3.055v22.253h-4.89c-3.29-12.4-12.575-19.7-25.28-19.7-17.337 0-29.31 13.622-29.31 33.318 0 19.946 12.584 34.778 29.56 34.778 4.638 0 9.77-1.215 13.068-3.157V53.883c0-6.078-2.561-7.419-15.022-7.662v-4.617h40.55v4.617h-.001c-6.474.124-8.675 2.068-8.675 7.662v18.12c-8.795 4.011-21.364 7.656-31.877 7.656-30.898 0-45.805-17.146-45.805-40.488C191.264 16.916 209.71.5 235.722.5ZM39.705 2.33v4.74h-1.712c-6.351 0-9.526 2.066-9.526 8.878v19.086h40.301V16.31c0-6.808-2.685-9.24-9.77-9.24h-1.1V2.33h39.083v4.74h-2.203c-6.223 0-9.156 2.308-9.156 8.878v48.153c0 6.318 2.322 9.116 9.403 9.116h1.956v4.74H57.899v-4.742h1.708c6.476 0 9.161-2.796 9.161-9.364V42.21h-40.3V64.1c0 6.445 2.565 9.117 9.4 9.117h1.837v4.74H.5v-4.742h2.073c6.235 0 9.04-2.796 9.04-8.873V15.948c0-6.08-2.685-8.878-9.156-8.878H.5V2.33h39.205ZM154.04.5l24.433 61.772c3.175 8.026 5.857 10.452 12.208 10.943v4.741h-39.693v-4.741h4.271c7.451 0 8.551-3.282 6.11-9.238l-5.741-14.107h-26.752l.005.003-5.125 14.226c-2.2 6.2-2.07 9.116 9.65 9.116h1.586v4.741h-32.37v-4.741h1.837c5.858 0 8.912-2.67 11.966-11.182L137.313 4.03 135.967.5h18.073ZM141.59 14.733l-10.26 28.448h21.492L141.59 14.733ZM352.674 2.62c1.114 0 2.164.213 3.148.64a8.412 8.412 0 0 1 2.58 1.726 8.042 8.042 0 0 1 1.743 2.562c.427.984.64 2.034.64 3.148a7.702 7.702 0 0 1-.64 3.131 8.097 8.097 0 0 1-1.743 2.544 8.158 8.158 0 0 1-2.58 1.708 8.02 8.02 0 0 1-3.148.623 8.02 8.02 0 0 1-3.15-.623 8.158 8.158 0 0 1-2.579-1.708 8.097 8.097 0 0 1-1.743-2.544 7.702 7.702 0 0 1-.64-3.13c0-1.115.213-2.165.64-3.15a8.042 8.042 0 0 1 1.743-2.561 8.412 8.412 0 0 1 2.58-1.726 7.827 7.827 0 0 1 3.149-.64Zm0 1.245c-.95 0-1.839.178-2.669.534a6.854 6.854 0 0 0-2.17 1.459 6.854 6.854 0 0 0-1.459 2.17 6.702 6.702 0 0 0-.533 2.668c0 .925.177 1.803.533 2.633a7.07 7.07 0 0 0 1.459 2.188 6.71 6.71 0 0 0 2.17 1.477c.83.356 1.72.534 2.669.534.948 0 1.838-.178 2.668-.534a6.71 6.71 0 0 0 2.17-1.477 7.07 7.07 0 0 0 1.46-2.188c.355-.83.533-1.708.533-2.633 0-.948-.178-1.838-.534-2.668a6.854 6.854 0 0 0-1.459-2.17 6.854 6.854 0 0 0-2.17-1.46 6.702 6.702 0 0 0-2.668-.533Zm.035 2.242.318.009c.316.017.625.062.928.133a3.3 3.3 0 0 1 1.085.463c.32.213.575.486.765.818.19.332.284.747.284 1.245 0 .664-.19 1.204-.569 1.619-.38.415-.89.694-1.53.836l2.455 3.985h-1.992l-2.135-3.807h-1.174v3.807h-1.637V6.107h3.202Zm-.07 1.387h-1.495v2.598h1.316a3.48 3.48 0 0 0 1.352-.267c.427-.178.64-.54.64-1.085 0-.499-.195-.83-.586-.997-.392-.166-.801-.249-1.228-.249Z"></path></svg>
268 </a>
269 </div>
270
271
272 <div class="header__actions" data-username="@currentUser">
273
274 <ul role="list" class="actions-list">
275
276 <li class="actions-list__item">
277 <button class="header__action-btn js-action-btn" data-target="search-panel">
278 <span class="visually-hidden">Search</span>
279 <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 212 212" class="actions-list__icon"><path fill="currentColor" fill-rule="nonzero" d="M57.43 124.386a69.002 69.002 0 0 0 41.078 19.062l1.126 65.068 16.64-.293-1.126-65.068c32.015-4.457 56.718-30.428 59.57-62.625 2.85-32.197-16.906-62.091-47.641-72.086-30.735-9.994-64.306 2.559-80.952 30.27-16.646 27.71-11.958 63.24 11.305 85.672Zm84.54-87.151c20.857 20.141 21.437 53.377 1.295 74.235-20.141 20.857-53.377 21.437-74.235 1.295-20.857-20.141-21.437-53.377-1.295-74.235 20.141-20.857 53.377-21.437 74.235-1.295Z"></path></svg>
280 </button>
281 </li>
282
283 <li class="actions-list__item">
284 <button class="header__action-btn js-action-btn" data-target="country-select-panel">
285 <span class="visually-hidden">Choose Location</span>
286 <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 212 212" class="actions-list__icon"><g fill="currentColor" fill-rule="nonzero"><path d="M106 3C64.446 3 32 34.472 32 74.528c0 8.87 3.415 26.608 9.108 39.483 18.5 42.63 58.915 90.983 60.623 92.986 1.138 1.43 2.561 2.003 4.269 2.003 1.708 0 3.13-.858 4.27-2.003 1.707-2.003 42.122-50.355 60.622-92.986C176.585 101.136 180 83.397 180 74.528 180 34.472 147.554 3 106 3Zm54.362 106.433C146.13 142.336 117.1 180.39 106 194.123c-11.1-13.734-40.13-51.787-54.362-84.69-5.123-11.158-8.253-27.18-8.253-34.905 0-33.761 27.607-60.084 62.615-60.084s62.615 26.323 62.615 60.084c0 7.725-3.13 23.747-8.253 34.905Z"></path><path d="M106 37.333c-21.915 0-39.846 18.025-39.846 40.056 0 22.03 17.93 40.055 39.846 40.055 21.915 0 39.846-18.025 39.846-40.055S127.916 37.333 106 37.333ZM106 106c-15.654 0-28.462-12.875-28.462-28.611S90.346 48.778 106 48.778s28.462 12.875 28.462 28.61C134.462 93.126 121.654 106 106 106Z"></path></g></svg>
287 </button>
288 </li>
289
290 <li class="actions-list__item">
291 <button class="header__action-btn js-action-btn" data-target="collection-panel">
292 <span class="visually-hidden">Product Collections</span>
293 <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 212 212" class="actions-list__icon"><path fill="currentColor" fill-rule="nonzero" d="M183.337 75.733c-.856-10.588-9.716-18.735-20.325-18.67h-20.475V39.663A36.668 36.668 0 0 0 124.24 7.914a36.552 36.552 0 0 0-36.611 0 36.667 36.667 0 0 0-18.297 31.748v17.402H48.857c-10.6-.047-19.45 8.09-20.307 18.669l-9.474 111.102a20.462 20.462 0 0 0 5.277 15.557A20.368 20.368 0 0 0 39.373 209h133.244a20.369 20.369 0 0 0 15.02-6.608 20.433 20.433 0 0 0 5.287-15.557l-9.587-111.102Zm-101.6-35.968c0-13.385 10.832-24.234 24.196-24.234 13.363 0 24.196 10.85 24.196 24.234v17.402H81.736V39.765Zm96.788 154.231a7.923 7.923 0 0 1-5.882 2.48H39.253a7.94 7.94 0 0 1-5.883-2.582 7.994 7.994 0 0 1-2.066-6.087l9.577-111.102h.009a7.948 7.948 0 0 1 7.966-7.215H69.36v15.78l-.01.01a6.209 6.209 0 0 0 6.208 6.208 6.209 6.209 0 0 0 6.208-6.208V69.49h48.393v15.79a6.2 6.2 0 0 0 6.198 6.208 6.203 6.203 0 0 0 6.208-6.208V69.49h20.446a7.958 7.958 0 0 1 7.948 7.308l9.576 111.103a7.935 7.935 0 0 1-2.038 6.095h.029Z"></path></svg>
294 </button>
295 </li>
296
297 <li class="actions-list__item">
298 <button class="header__action-btn js-action-btn" data-target="hags-connect-panel">
299 <span class="visually-hidden">HAGS Connect</span>
300 <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 212 212" class="actions-list__icon"><path fill="currentColor" fill-rule="evenodd" d="M149.316 21.1C137.27 9.035 122.73 3 105.693 3 88.657 3 74.116 9.034 62.069 21.1 50.023 33.169 44 47.735 44 64.8c0 21.725 8.676 38.55 26.026 50.477l-12.248 85.885c-.267 1.877.167 3.574 1.302 5.091 1.136 1.517 2.641 2.41 4.515 2.678a7.13 7.13 0 0 0 .97.069h82.256c1.893 0 3.508-.67 4.847-2.011 1.339-1.341 2.008-2.96 2.008-4.856a6.78 6.78 0 0 0-.069-.97l-12.248-85.886c17.351-11.926 26.026-28.752 26.026-50.477 0-17.066-6.023-31.632-18.069-43.7Zm-10.398 174.167-11.753-82.409a6.73 6.73 0 0 1 .595-3.916 6.713 6.713 0 0 1 2.654-2.936c15.508-9.36 23.262-23.094 23.262-41.206 0-13.273-4.685-24.603-14.054-33.988-9.37-9.386-20.68-14.079-33.93-14.079s-24.56 4.693-33.928 14.079c-9.37 9.385-14.055 20.715-14.055 33.988 0 18.112 7.755 31.847 23.263 41.206a6.713 6.713 0 0 1 2.654 2.936 6.73 6.73 0 0 1 .594 3.916l-11.752 82.409h66.45Z"></path></svg>
301 </button>
302 </li>
303
304 <li class="actions-list__item" id="menu-panel-icon">
305 <button class="header__action-btn js-action-btn" data-target="nav-panel">
306 <span class="visually-hidden">Menu</span>
307 <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 212 212" class="actions-list__icon"><path d="M166.435 62H45.558C41.386 62 38 57.294 38 51.495S41.386 41 45.558 41h120.884c4.18 0 7.558 4.706 7.558 10.505-.007 5.799-3.386 10.495-7.565 10.495ZM173 106.5c0-5.796-3.379-10.5-7.558-10.5H44.558C40.386 96 37 100.704 37 106.5s3.386 10.5 7.558 10.5h120.891c4.172 0 7.551-4.704 7.551-10.5Zm0 54c0-5.806-3.379-10.5-7.558-10.5H44.558C40.386 150 37 154.694 37 160.5s3.386 10.5 7.558 10.5h120.891c4.172 0 7.551-4.694 7.551-10.5Z" fill="currentColor" fill-rule="nonzero"></path></svg>
308 </button>
309 </li>
310
311 </ul>
312
313 @helper renderSearch(Dynamicweb.Content.Area masterArea)
314 {
315 string searchPageUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetInteger("DwAreaSearchPageID"));
316 string langCode = @GetGlobalValue("Global:Area.LongLang");
317 string searchId = @GetString("DwAreaSearchPageID");
318 string searchTranslate = Translate("Search", "Search");
319
320 <form id="search-box" name="searchBox" action="Default.aspx" method="get">
321 <div class="form-group flow-s">
322 <input type="hidden" name="ID" value="@searchId">
323 <input type="hidden" id="search-advanced-culture" value="@langCode">
324 <input type="hidden" id="search-advanced-resultsurl" value="@searchPageUrl">
325 <input type="hidden" id="Searchtype" value="">
326 <input type="hidden" id="search-advanced-pageAreaId" value="@(masterArea.ID)">
327 <input type="hidden" id="search-advanced-pagelanguage" name="areaLanguage" value="@(masterArea.EcomLanguageId)">
328
329
330 <label for="InputSearch"><h5>@(searchTranslate)</h5></label>
331
332 <input type="search" name="q" class="form-control" id="InputSearch" maxlength="45" placeholder="@(searchTranslate) HAGS" onkeyup="return forceLower(this);" autocomplete="off">
333
334 <button>@Translate("Go", "Go")</button>
335 </div>
336 </form>
337
338 <div class="header__action-area">
339 <ul class="dropdown-menu search flow-xs" role="list"></ul>
340 </div>
341 }
342
343 <div class="header__action-panel" id="search-panel">
344 <button class="header__action-btn header__action-btn--close js-panel-close">
345 <span class="visually-hidden">Close</span>
346 <svg viewbox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class="h24-icon h24-icon--close"><path d="M100 0c55.193 0 100 44.807 100 100s-44.807 100-100 100S0 155.193 0 100 44.807 0 100 0Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C15.936 50.207 5.333 73.875 5.333 100c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C149.793 15.936 126.125 5.333 100 5.333Zm25.105 78.865L110.17 99.664l15.466 14.935a6.5 6.5 0 0 1 .16 9.191l-.694.72a6.5 6.5 0 0 1-9.191.16l-15.466-14.935-14.935 15.466a6.5 6.5 0 0 1-9.191.16l-.72-.694a6.5 6.5 0 0 1-.16-9.191l14.935-15.466-15.466-14.935a6.5 6.5 0 0 1-.16-9.191l.694-.72a6.5 6.5 0 0 1 9.191-.16L100.1 89.939l14.935-15.466a6.5 6.5 0 0 1 9.191-.16l.72.694a6.5 6.5 0 0 1 .16 9.191Z" fill="currentColor" fill-rule="evenodd"></path></svg>
347 </button>
348 <div class="header__action-copy flow-s">
349 @renderSearch(masterArea)
350 </div>
351 </div>
352
353
354 @*if ( currentUser == "Kevin Lees" || currentUser == "Ian Mckay" )*@
355 @if ( true )
356 {
357 <div class="header__action-panel" id="hags-connect-panel">
358
359 <button class="header__action-btn header__action-btn--close js-panel-close">
360 <span class="visually-hidden">Close</span>
361 <svg viewbox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class="h24-icon h24-icon--close"><path d="M100 0c55.193 0 100 44.807 100 100s-44.807 100-100 100S0 155.193 0 100 44.807 0 100 0Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C15.936 50.207 5.333 73.875 5.333 100c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C149.793 15.936 126.125 5.333 100 5.333Zm25.105 78.865L110.17 99.664l15.466 14.935a6.5 6.5 0 0 1 .16 9.191l-.694.72a6.5 6.5 0 0 1-9.191.16l-15.466-14.935-14.935 15.466a6.5 6.5 0 0 1-9.191.16l-.72-.694a6.5 6.5 0 0 1-.16-9.191l14.935-15.466-15.466-14.935a6.5 6.5 0 0 1-.16-9.191l.694-.72a6.5 6.5 0 0 1 9.191-.16L100.1 89.939l14.935-15.466a6.5 6.5 0 0 1 9.191-.16l.72.694a6.5 6.5 0 0 1 .16 9.191Z" fill="currentColor" fill-rule="evenodd"></path></svg>
362 </button>
363 @{
364 string thisPageID = @GetGlobalValue("Global:Page.ID");
365 string hagsConnectTitle = @Translate("HAGS Connect", "HAGS Connect");
366 }
367
368 <div class="header__action-copy flow-s">
369
370 <h5>@hagsConnectTitle</h5>
371
372 <p>@Translate("HAGSConnectIntro", "A brief block of introductory copy about HAGS Connect.")</p>
373
374 @if (!String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName")))
375 {
376
377 <p>
378 <strong>@Translate("Welcome", "Welcome"), @GetGlobalValue("Global:Extranet.FirstName")</strong>
379 </p>
380
381 @RenderNavigation(new{
382 ParentTag = "MyHags",
383 Template = "simple-nav.xslt"
384 })
385
386 <ul role="list" class="icon-list">
387 <li>
388 <a href="/admin/Public/ExtranetLogOff.aspx?ID=@thisPageID">
389 <img src="@(designBaseUrl)assets/svg-icons/connect/logout-icon-2.svg">
390 <span>@Translate("SignOut", "Sign Out")</span>
391 </a>
392 </li>
393 </ul>
394
395
396
397 }
398 else
399 {
400 if (Dynamicweb.Configuration.SystemConfiguration.Instance.GetBoolean("/Globalsettings/System/MyHags/SSOLoginActive"))
401 {
402 <a href="/Admin/Public/Social/ExternalLogin.aspx?action=login&providerID=3">HAGS Connect Login</a>
403 }
404 }
405
406 </div>
407 </div>
408 }
409
410
411 @helper renderCountryList(string outputElement = "list")
412 {
413 // create a list of 'anonymous' objects to hold the weglot sites - move to site config at some point
414 var allCountries = new List<object>
415 {
416 new { Url = "https://hagsdev.hags.com", Image = "globe.svg", Title = "Global", Active = true },
417 new { Url = "be-nl", Image = "be.svg", Title = "Belgium (Flemish)", Active = true },
418 new { Url = "be-fr", Image = "be.svg", Title = "Belgium (French)", Active = true },
419 new { Url = "zh", Image = "cn.svg", Title = "China", Active = true },
420 new { Url = "hr", Image = "hr.svg", Title = "Croatia", Active = true },
421 new { Url = "https://hags.dk/", Image = "dk.svg", Title = "Denmark", Active = true },
422 new { Url = "et", Image = "ee.svg", Title = "Estonia", Active = true },
423 new { Url = "fi", Image = "fi.svg", Title = "Finland", Active = true },
424 new { Url = "fr", Image = "fr.svg", Title = "France", Active = true },
425 new { Url = "de", Image = "de.svg", Title = "Germany", Active = true },
426 new { Url = "hu", Image = "hu.svg", Title = "Hungary", Active = true },
427 new { Url = "it", Image = "it.svg", Title = "Italy", Active = true},
428 new { Url = "ja", Image = "jp.svg", Title = "Japan", Active = true},
429 new { Url = "lv", Image = "lv.svg", Title = "Latvia", Active = true},
430 new { Url = "nl", Image = "nl.svg", Title = "Netherlands", Active = true },
431 new { Url = "no", Image = "no.svg", Title = "Norway", Active = true },
432 new { Url = "pl", Image = "pl.svg", Title = "Poland", Active = true },
433 new { Url = "sa", Image = "rs.svg", Title = "Serbia", Active = true },
434 new { Url = "ko", Image = "kr.svg", Title = "South Korea", Active = true },
435 new { Url = "es", Image = "es.svg", Title = "Spain", Active = true },
436 new { Url = "https://hags.se/", Image = "se.svg", Title = "Sweden", Active = true },
437 new { Url = "ch-de", Image = "ch.svg", Title = "Switzerland (German)", Active = true },
438 new { Url = "tr", Image = "tr.svg", Title = "Turkey", Active = true},
439 new { Url = "https://hags.co.uk/", Image = "gb.svg", Title = "United Kingdom", Active = true }
440 };
441
442 // sort the list - the getType etc.. is because it's anonymous
443 //var sortedList = allCountries.OrderBy(item => item.GetType().GetProperty("Title").GetValue(item)).ToList();
444 var sortedList = allCountries;
445
446 if ( outputElement == "list" )
447 {
448
449 <ul class="icon-list" role="list">
450 @foreach (var thisCountry in sortedList)
451 {
452 var thisActive = thisCountry.GetType().GetProperty("Active").GetValue(thisCountry);
453 var thisImage = thisCountry.GetType().GetProperty("Image").GetValue(thisCountry);
454 var thisTitle = thisCountry.GetType().GetProperty("Title").GetValue(thisCountry);
455 var thisUrl = thisCountry.GetType().GetProperty("Url").GetValue(thisCountry);
456 bool isActive = Convert.ToBoolean(thisActive);
457
458 if (isActive)
459 {
460 if ( thisTitle == "Global" ) {
461 <li>
462 <a href="@thisUrl" data-wg-notranslate="">
463 <img src="/Files/Templates/Designs/Hags2024/icons/flags/@thisImage" alt="@thisTitle">
464 <span data-wg-translate="">@thisTitle</span>
465 </a>
466 </li>
467 }
468 else
469 {
470 <li>
471 <a href="@thisUrl">
472 <img src="/Files/Templates/Designs/Hags2024/icons/flags/@thisImage" alt="@thisTitle">
473 <span>@thisTitle</span>
474 </a>
475 </li>
476 }
477
478 }
479 }
480 </ul>
481 }
482 }
483
484
485
486
487 <div class="header__action-panel" id="country-select-panel">
488
489 <button class="header__action-btn header__action-btn--close js-panel-close">
490 <span class="visually-hidden">Close</span>
491 <svg viewbox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class="h24-icon h24-icon--close"><path d="M100 0c55.193 0 100 44.807 100 100s-44.807 100-100 100S0 155.193 0 100 44.807 0 100 0Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C15.936 50.207 5.333 73.875 5.333 100c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C149.793 15.936 126.125 5.333 100 5.333Zm25.105 78.865L110.17 99.664l15.466 14.935a6.5 6.5 0 0 1 .16 9.191l-.694.72a6.5 6.5 0 0 1-9.191.16l-15.466-14.935-14.935 15.466a6.5 6.5 0 0 1-9.191.16l-.72-.694a6.5 6.5 0 0 1-.16-9.191l14.935-15.466-15.466-14.935a6.5 6.5 0 0 1-.16-9.191l.694-.72a6.5 6.5 0 0 1 9.191-.16L100.1 89.939l14.935-15.466a6.5 6.5 0 0 1 9.191-.16l.72.694a6.5 6.5 0 0 1 .16 9.191Z" fill="currentColor" fill-rule="evenodd"></path></svg>
492 </button>
493 <div class="header__action-copy flow-s">
494 <h5>@Translate("SelectYourLocation", "Select your location")</h5>
495 <div class="header__action-area">
496 @renderCountryList("list")
497 </div>
498 </div>
499 </div>
500
501
502
503 @using System;
504 @using System.Collections.Generic;
505 @using System.Linq;
506 @using Dynamicweb.Ecommerce.Variants;
507 @using HagsWeb.Library.BusinessObjects.UsersLists;
508 @using HagsWeb.Library.Methods.AssetManager;
509 @using HagsWeb.Library.Methods.ProductProperties;
510 @using HagsWeb.Library.State;
511
512
513 @helper renderMyCollectionPanel()
514 {
515
516 Dynamicweb.Frontend.PageView collectionPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current();
517 Dynamicweb.Content.Area collectionArea = new Dynamicweb.Content.AreaService().GetArea(collectionPage.AreaID);
518
519 List<ProductCollectionItem> productCollectionItems = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection : new List<ProductCollectionItem>();
520
521 bool isQuote = Convert.ToBoolean(collectionArea.Item["QuoteAndOrderChk"]);
522 bool isCatalog = true; // Always available;
523 string downloadingText = HagsWeb.Library.Utilities.DWUtilities.GetTranslation("Downloading...", "Downloading...", collectionArea.Culture);
524 int currentPage = collectionArea.ID;
525 string currentCollection = Dynamicweb.Context.Current.Request.QueryString.Get("collection");
526 bool isLoggedIn = String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName")) ? false : true;
527 string designBaseUrl = GetString("Template:DesignBaseUrl");
528
529 List<ProductAsset> imageFileList = new List<ProductAsset>();
530 List<ProductAsset> dwgFileList = new List<ProductAsset>();
531 List<ProductAsset> instructionsFileList = new List<ProductAsset>();
532 string contactUsLink = HagsWeb.Library.Utilities.DWUtilities.GetPageByNavigationTag("ContactUs", currentPage); // /kontakta-oss?mode=quote#contactForms // /kontakta-oss?success=True&mode=quote#contactForms // restful url
533
534 string printShout = Translate("SaveOrPrint", "Save or Print your Product PDF ");
535 string altCopy = @Translate("RemoveFromCollection", "Remove from my collection");
536 string removeCopy = @Translate("RemoveFromCollection", "Remove from my collection");
537
538 <div class="collection flow">
539
540 <input type="hidden" id="isQuote" value="@isQuote">
541 <input type="hidden" id="downloadingText" value="@downloadingText">
542 <input type="hidden" id="collectionCount" value="@productCollectionItems.Count">
543
544 <div id="instns_MyProductCollection" class="flow-xs">
545 @if (productCollectionItems.Any() || !string.IsNullOrEmpty(currentCollection))
546 {
547 <p>@Translate("ProductCollectionButtonInstructionsNew", "Go to <strong>My Collection</strong> to download files, create quotes or print a product catalogue.")</p>
548 <a class="btn btn--outline" href="/my-collection">@Translate("MyCollection", "My Collection")</a>
549 }
550 else
551 {
552 <p>@Translate("product-collection-instructions-copy-new", "To add a product simply click on <strong>Add to my collection</strong> on any product page. Once you have added products to a collection you will be able to print a product catalogue, download installation guides, images and DWG files or request a quote.")</p>
553
554 }
555 </div>
556
557 <div class="collection__ui">
558
559 <div class="main-panel">
560
561 <div class="panel-listing" id="prods_MyProductCollection">
562
563 @if (productCollectionItems.Any())
564 {
565 foreach (ProductCollectionItem item in productCollectionItems)
566 {
567 <div class="product-card collection__item">
568
569 <div class="product-card__actions in-collection">
570
571 <button type="button" class="action-btn" data-removeproductlist="@(item.ProductNumber)">
572 <span class="visually-hidden">@removeCopy</span>
573 <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 212 212" class="h24-icon h24-icon--minus"><path fill="currentColor" fill-rule="evenodd" d="M106 6c55.193 0 100 44.807 100 100s-44.807 100-100 100S6 161.193 6 106 50.807 6 106 6Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C21.936 56.207 11.333 79.875 11.333 106c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C155.793 21.936 132.125 11.333 106 11.333Zm28.772 87.504a6.5 6.5 0 0 1 6.5 6.5v1a6.5 6.5 0 0 1-6.5 6.5h-57a6.5 6.5 0 0 1-6.5-6.5v-1a6.5 6.5 0 0 1 6.5-6.5h57Z"></path></svg>
574 </button>
575
576 </div>
577
578 <div class="product-card__img-silo">
579
580 @if (item.ProductImageUrl != null && !String.IsNullOrEmpty(item.ProductUrlReference))
581 {
582 <a href="@item.ProductUrlReference">
583 <img src="@item.ProductImageUrl">
584 </a>
585 }
586 else
587 {
588 <a href="@item.ProductUrlReference" class="product-card__missing">
589 <img src="@(designBaseUrl)assets/img/h24-see-saw.svg">
590 <span>No Image Available</span>
591 </a>
592 }
593
594 </div>
595
596 <div class="product-card__copy">
597
598 <p class="product-card__heading">
599 <a href="@item.ProductUrlReference">@(item.ProductName)</a>
600 </p>
601
602 <p>@item.ProductNumber</p>
603
604 @if (!string.IsNullOrEmpty(item.ProductVariantId))
605 {
606 Tuple<string, string, string, string, string, string, List<VariantOption>> optionsTuple = ProductFieldValues.GetProductOptions(item.ProductVariantId, collectionArea.EcomLanguageId);
607
608 //optionsTuple.Item1; "Red"
609 //optionsTuple.Item2; "Above Ground"
610 //optionsTuple.Item3; "Wooden Post"
611 //optionsTuple.Item4; "Wooden Post / HPL Panels"
612 //optionsTuple.Item5; "A310.png"
613 //optionsTuple.Item6; "A310-diagram.png"
614 //optionsTuple.Item7; List<VariantOption> Not used here
615
616 }
617
618 </div>
619
620 </div>
621 }
622 }
623
624 </div>
625
626 </div>
627
628 </div> <!-- collection__iu end -->
629
630 <div class="cluster">
631 @if (productCollectionItems.Any())
632 {
633 foreach (var item in productCollectionItems)
634 {
635 foreach (ProductAsset asset in item.AssetDownloads.Where(n => n.Index == HagsWeb.Library.Methods.AssetManager.AssetTypeEnum.ToFriendlyAssetName(HagsWeb.Library.Methods.AssetManager.AssetType.Images) && n.FileName == item.ProductNumber + ".jpg" || n.FileName == item.ProductNumber + "_Side.jpg" || n.FileName == item.ProductNumber + "_Top.jpg").ToList())
636 {
637 imageFileList.Add(asset);
638 }
639
640 foreach (ProductAsset asset in item.AssetDownloads.Where(n => n.Index == HagsWeb.Library.Methods.AssetManager.AssetTypeEnum.ToFriendlyAssetName(HagsWeb.Library.Methods.AssetManager.AssetType.Drawings)).ToList())
641 {
642 dwgFileList.Add(asset);
643 }
644
645 foreach (ProductAsset asset in item.AssetDownloads.Where(n => n.Index == HagsWeb.Library.Methods.AssetManager.AssetTypeEnum.ToFriendlyAssetName(HagsWeb.Library.Methods.AssetManager.AssetType.AssemblyInstructions)).ToList())
646 {
647 instructionsFileList.Add(asset);
648 }
649 }
650
651 <button class="btn btn--warn" type="button" data-removeproductlist="All">@Translate("RemoveAll", "Remove All")</button>
652 }
653
654 </div>
655
656 @if (isLoggedIn && productCollectionItems.Any())
657 {
658 <div id="panelcollectiondetails" class="flow-xs">
659 <h5><strong>@Translate("Save collection?", "Save collection?")</strong></h5>
660 <p>@Translate("You are logged in", "You are currently logged in to HAGS Connect so you can save this collection to your account.")</p>
661 <button class="btn btn--outline" role="button" data-open-modal="#saveCollection">@Translate("Save collection", "Save this Collection")</button>
662 </div>
663 }
664 else
665 {
666 if (!isLoggedIn && productCollectionItems.Any())
667 {
668 <div id="panelcollectiondetails" class="flow-xs">
669 <h5><strong>@Translate("Save collection?", "Save collection?")</strong></h5>
670 <p>@Translate("To save login", "To save this collection into your HAGS Connect simply login using the button below.")</p>
671 <a class="btn btn--outline" href="/Admin/Public/Social/ExternalLogin.aspx?action=login&providerID=3">HAGS Connect Login</a>
672 </div>
673 }
674 }
675
676 </div> <!-- collection end -->
677 }
678
679
680
681
682
683
684
685
686
687
688
689
690
691 <div class="header__action-panel" id="collection-panel">
692
693 <button class="header__action-btn header__action-btn--close js-panel-close">
694 <span class="visually-hidden">Close</span>
695 <svg viewbox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class="h24-icon h24-icon--close"><path d="M100 0c55.193 0 100 44.807 100 100s-44.807 100-100 100S0 155.193 0 100 44.807 0 100 0Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C15.936 50.207 5.333 73.875 5.333 100c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C149.793 15.936 126.125 5.333 100 5.333Zm25.105 78.865L110.17 99.664l15.466 14.935a6.5 6.5 0 0 1 .16 9.191l-.694.72a6.5 6.5 0 0 1-9.191.16l-15.466-14.935-14.935 15.466a6.5 6.5 0 0 1-9.191.16l-.72-.694a6.5 6.5 0 0 1-.16-9.191l14.935-15.466-15.466-14.935a6.5 6.5 0 0 1-.16-9.191l.694-.72a6.5 6.5 0 0 1 9.191-.16L100.1 89.939l14.935-15.466a6.5 6.5 0 0 1 9.191-.16l.72.694a6.5 6.5 0 0 1 .16 9.191Z" fill="currentColor" fill-rule="evenodd"></path></svg>
696 </button>
697
698 <div class="header__action-copy flow-s">
699
700 <h5>@Translate("MyProductCollection", "My Product Collection")</h5>
701
702 <div class="header__action-area" id="" hx-get="snippets/my-collection-panel" hx-trigger="collectionChange from:document">
703
704 @renderMyCollectionPanel()
705
706 </div>
707
708 </div>
709
710 </div>
711
712
713 <div class="header__action-panel" id="search-panel">
714 <button class="header__action-btn header__action-btn--close js-panel-close">
715 <span class="visually-hidden">Close</span>
716 <svg viewbox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class="h24-icon h24-icon--close"><path d="M100 0c55.193 0 100 44.807 100 100s-44.807 100-100 100S0 155.193 0 100 44.807 0 100 0Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C15.936 50.207 5.333 73.875 5.333 100c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C149.793 15.936 126.125 5.333 100 5.333Zm25.105 78.865L110.17 99.664l15.466 14.935a6.5 6.5 0 0 1 .16 9.191l-.694.72a6.5 6.5 0 0 1-9.191.16l-15.466-14.935-14.935 15.466a6.5 6.5 0 0 1-9.191.16l-.72-.694a6.5 6.5 0 0 1-.16-9.191l14.935-15.466-15.466-14.935a6.5 6.5 0 0 1-.16-9.191l.694-.72a6.5 6.5 0 0 1 9.191-.16L100.1 89.939l14.935-15.466a6.5 6.5 0 0 1 9.191-.16l.72.694a6.5 6.5 0 0 1 .16 9.191Z" fill="currentColor" fill-rule="evenodd"></path></svg>
717 </button>
718 <div class="header__action-copy flow-s">
719 @renderSearch(masterArea)
720 </div>
721 </div>
722
723 <div class="header__action-panel" id="nav-panel">
724 <button class="header__action-btn header__action-btn--close js-panel-close">
725 <span class="visually-hidden">Close</span>
726 <svg viewbox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class="h24-icon h24-icon--close"><path d="M100 0c55.193 0 100 44.807 100 100s-44.807 100-100 100S0 155.193 0 100 44.807 0 100 0Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C15.936 50.207 5.333 73.875 5.333 100c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C149.793 15.936 126.125 5.333 100 5.333Zm25.105 78.865L110.17 99.664l15.466 14.935a6.5 6.5 0 0 1 .16 9.191l-.694.72a6.5 6.5 0 0 1-9.191.16l-15.466-14.935-14.935 15.466a6.5 6.5 0 0 1-9.191.16l-.72-.694a6.5 6.5 0 0 1-.16-9.191l14.935-15.466-15.466-14.935a6.5 6.5 0 0 1-.16-9.191l.694-.72a6.5 6.5 0 0 1 9.191-.16L100.1 89.939l14.935-15.466a6.5 6.5 0 0 1 9.191-.16l.72.694a6.5 6.5 0 0 1 .16 9.191Z" fill="currentColor" fill-rule="evenodd"></path></svg>
727 </button>
728 <div class="header__action-area">
729 @RenderSnippet("navigation")
730 </div>
731 </div>
732
733 </div>
734
735 </div>
736
737
738 <div class="header__local-nav">
739
740 @SnippetStart("navigation")
741 <nav class="nav">
742 <!--button id="menu-toggle" class="menu-toggle menu-toggle--main" aria-expanded="false" aria-controls="main-nav">
743 <div class="menu-toggle__box">
744 <div class="menu-toggle__lines"></div>
745 </div>
746 <span class="visually-hidden">Menu</span>
747 </button-->
748 @GetValue("DwNavigation(mainnav)")
749 </nav>
750 @SnippetEnd("navigation")
751
752 @RenderSnippet("navigation")
753
754 @* This snippet generates the product listing links on levels 4 and 5 of the site *@
755 @* In a snippet because these xslt built fuckers are only processed on PAGE templates not paragraph templates *@
756 @* The snippet is then included in the relevant PARAGRAPH template *@
757
758 @SnippetStart("nextLevelNav")
759 <section>
760 <div class="wrapper">
761 @GetValue("DwNavigation(productlistingnav)")
762 </div>
763 </section>
764 @SnippetEnd("nextLevelNav")
765
766 </div></div></header>
767 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
768
769
770
771 <main class="flow-page" id="content">@GetValue("DwContent(content)")</main>
772 @if (GetLoop("Item.Area.Accreditation_Images").Count() > 0)
773 {
774 <section class="creds">
775 <div class="wrapper">
776 <ul class="creds__list" role="list">
777 <!-- Accreditation Carousel items -->
778 @foreach (var item in @GetLoop("Item.Area.Accreditation_Images"))
779 {
780 var imageUrl = item.GetString("Item.Area.Accreditation_Images.Image");
781 var imageAlt = item.GetString("Item.Area.Accreditation_Images.Alternative_Text");
782 string imageLink = item.GetString("Item.Area.Accreditation_Images.Link");
783 var imageTitle = item.GetString("Item.Area.Accreditation_Images.Title");
784
785 if (!string.IsNullOrWhiteSpace(imageLink))
786 {
787 <li class="creds__item">
788 <a href="@imageLink">
789 <img class="creds__img" src="@imageUrl" alt="@imageAlt">
790 </a>
791 </li>
792 }
793 else
794 {
795 <li class="creds__item">
796 <img class="creds__img" src="@imageUrl" alt="@imageAlt" class="img-responsive">
797 </li>
798 }
799
800 }
801 </ul>
802 </div>
803 </section>
804 }
805
806 <footer class="footer">
807 <div class="inner-wrapper">
808
809 <div class="footer__logo" itemscope="" itemtype="http://schema.org/Organization">
810 <a href="Default.aspx?ID=@siteFirstPageId" itemprop="url">
811 <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 362 81" class="hags-logo"><path fill="currentColor" fill-rule="evenodd" d="M311.22.5c9.399 0 16.725 3.168 18.555 3.168.862 0 1.596-.243 2.697-1.338h2.558l2.318 19.692h-4.876c-2.697-9.846-10.513-16.292-19.911-16.292-6.837 0-11.97 3.65-11.97 8.39 0 11.187 20.279 13.258 33.958 26.873 5.004 4.986 6.951 10.214 6.951 16.05 0 12.648-11.47 22.618-26.006 22.618-9.77 0-18.687-3.888-20.887-3.888-1.1 0-1.952.611-2.562 1.947h-3.178L285.82 55.59v-.002h4.757c4.029 12.031 11.236 18.237 20.88 18.237 8.059 0 14.17-5.11 14.17-11.917 0-18.122-39.204-17.509-39.204-41.586C286.423 8.645 296.681.5 311.22.5Zm-75.498 0c7.426 0 13.874 1.484 18.765 2.7l.801.2c3.013.755 5.377 1.361 6.941 1.361 1.825 0 2.814-.492 3.66-1.586h3.055v22.253h-4.89c-3.29-12.4-12.575-19.7-25.28-19.7-17.337 0-29.31 13.622-29.31 33.318 0 19.946 12.584 34.778 29.56 34.778 4.638 0 9.77-1.215 13.068-3.157V53.883c0-6.078-2.561-7.419-15.022-7.662v-4.617h40.55v4.617h-.001c-6.474.124-8.675 2.068-8.675 7.662v18.12c-8.795 4.011-21.364 7.656-31.877 7.656-30.898 0-45.805-17.146-45.805-40.488C191.264 16.916 209.71.5 235.722.5ZM39.705 2.33v4.74h-1.712c-6.351 0-9.526 2.066-9.526 8.878v19.086h40.301V16.31c0-6.808-2.685-9.24-9.77-9.24h-1.1V2.33h39.083v4.74h-2.203c-6.223 0-9.156 2.308-9.156 8.878v48.153c0 6.318 2.322 9.116 9.403 9.116h1.956v4.74H57.899v-4.742h1.708c6.476 0 9.161-2.796 9.161-9.364V42.21h-40.3V64.1c0 6.445 2.565 9.117 9.4 9.117h1.837v4.74H.5v-4.742h2.073c6.235 0 9.04-2.796 9.04-8.873V15.948c0-6.08-2.685-8.878-9.156-8.878H.5V2.33h39.205ZM154.04.5l24.433 61.772c3.175 8.026 5.857 10.452 12.208 10.943v4.741h-39.693v-4.741h4.271c7.451 0 8.551-3.282 6.11-9.238l-5.741-14.107h-26.752l.005.003-5.125 14.226c-2.2 6.2-2.07 9.116 9.65 9.116h1.586v4.741h-32.37v-4.741h1.837c5.858 0 8.912-2.67 11.966-11.182L137.313 4.03 135.967.5h18.073ZM141.59 14.733l-10.26 28.448h21.492L141.59 14.733ZM352.674 2.62c1.114 0 2.164.213 3.148.64a8.412 8.412 0 0 1 2.58 1.726 8.042 8.042 0 0 1 1.743 2.562c.427.984.64 2.034.64 3.148a7.702 7.702 0 0 1-.64 3.131 8.097 8.097 0 0 1-1.743 2.544 8.158 8.158 0 0 1-2.58 1.708 8.02 8.02 0 0 1-3.148.623 8.02 8.02 0 0 1-3.15-.623 8.158 8.158 0 0 1-2.579-1.708 8.097 8.097 0 0 1-1.743-2.544 7.702 7.702 0 0 1-.64-3.13c0-1.115.213-2.165.64-3.15a8.042 8.042 0 0 1 1.743-2.561 8.412 8.412 0 0 1 2.58-1.726 7.827 7.827 0 0 1 3.149-.64Zm0 1.245c-.95 0-1.839.178-2.669.534a6.854 6.854 0 0 0-2.17 1.459 6.854 6.854 0 0 0-1.459 2.17 6.702 6.702 0 0 0-.533 2.668c0 .925.177 1.803.533 2.633a7.07 7.07 0 0 0 1.459 2.188 6.71 6.71 0 0 0 2.17 1.477c.83.356 1.72.534 2.669.534.948 0 1.838-.178 2.668-.534a6.71 6.71 0 0 0 2.17-1.477 7.07 7.07 0 0 0 1.46-2.188c.355-.83.533-1.708.533-2.633 0-.948-.178-1.838-.534-2.668a6.854 6.854 0 0 0-1.459-2.17 6.854 6.854 0 0 0-2.17-1.46 6.702 6.702 0 0 0-2.668-.533Zm.035 2.242.318.009c.316.017.625.062.928.133a3.3 3.3 0 0 1 1.085.463c.32.213.575.486.765.818.19.332.284.747.284 1.245 0 .664-.19 1.204-.569 1.619-.38.415-.89.694-1.53.836l2.455 3.985h-1.992l-2.135-3.807h-1.174v3.807h-1.637V6.107h3.202Zm-.07 1.387h-1.495v2.598h1.316a3.48 3.48 0 0 0 1.352-.267c.427-.178.64-.54.64-1.085 0-.499-.195-.83-.586-.997-.392-.166-.801-.249-1.228-.249Z"></path></svg>
812 </a>
813 </div>
814
815 <div class="footer__switcher">
816
817 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Company_Name.Value")))
818 {
819 <section class="footer-address" itemscope="" itemtype="http://schema.org/PostalAddress">
820 <h4 class="footer__heading">@Translate("ContactUs", "Contact Us")</h4>
821 <p class="address">
822 <span class="h-adr adr">
823 <span class="fn p-org org">@GetString("Item.Area.Company_Name.Value")</span><br>
824 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Company_Address")))
825 {
826 <span class="p-street-address street-address" itemprop="streetAddress">@GetString("Item.Area.Company_Address.Value")</span>
827 }
828 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Company_Address_2.Value")))
829 {
830 <br><span class="p-street-address street-address" itemprop="streetAddress">@GetString("Item.Area.Company_Address_2.Value")</span>
831 }
832 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Town_City.Value")))
833 {
834 <br> <span class="p-street-address street-address" itemprop="addressLocality">@GetString("Item.Area.Town_City.Value")</span>
835 }
836 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.County.Value")))
837 {
838 <br><span class="p-street-address street-address" itemprop="addressRegion">@GetString("Item.Area.County.Value")</span>
839 }
840 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Postcode.Value")))
841 {
842 <br><span class="p-street-address street-address" itemprop="postalCode">@GetString("Item.Area.Postcode.Value")</span>
843 }
844 </span>
845 </p>
846 <ul class="footer__list" role="list">
847 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Contact_Email_Link")))
848 {
849 string mailTo = "mailto:" + GetString("Item.Area.Contact_Email_Link");
850 <li>
851 <a href="@mailTo">
852 E: <span itemprop="email">@GetString("Item.Area.Contact_Email")</span>
853 </a>
854 </li>
855 }
856 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telephone")))
857 {
858 string telTo = "tel:" + GetString("Item.Area.Telephone");
859 <li>
860 <a href="@telTo">
861 T: <span itemprop="telephone">@GetString("Item.Area.Telephone")</span>
862 </a>
863 </li>
864 }
865 </ul>
866 </section>
867 }
868
869 <section>
870 <h4 class="footer__heading">@Translate("CompanyInformation", "Company Information")</h4>
871 <nav>
872 @GetValue("DwNavigation(footerpages)")
873 </nav>
874
875 @{
876 int legalsLink = 0;
877 var legalsPage = HagsWeb.Library.Methods.Page.HagsPages.GetPageByNavigationTag("Legals", masterArea.ID);
878 if (legalsPage != null)
879 {
880 legalsLink = legalsPage.ID;
881 }
882
883 if (legalsLink > 0)
884 {
885
886 <ul class="footer__list" role="list">
887 <li><a href="/Default.aspx?ID=@legalsLink">@Translate("PrivacyPolicy", "Privacy Policy")</a></li>
888 <li><a href="/Default.aspx?ID=@legalsLink">@Translate("CookieNotice", "Cookie Notice")</a></li>
889 <li><a href="/Default.aspx?ID=@legalsLink">@Translate("TermsConditions", "Terms & Conditions")</a></li>
890 </ul>
891 }
892 }
893 </section>
894
895
896
897 @if (GetString("Item.Area.Form_Provider") == "sharpspring-provider")
898 {
899 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.Newsletter_Form_ID.Value")))
900 {
901 <!-- SharpSpring Form Provider -->
902 <div class="sharpspring-provider">
903 <h4 class="footer__heading">@Translate("JoinOurNewsletter", "Join our Newsletter")</h4>
904 @{
905 string ss_src_newsletter = string.Format("https://{0}/client/form.js?ver=2.0.1", GetString("Item.Area.Contact_Form_Domain.Value"));
906 }
907 <!-- SharpSpring Form for Newsletter Form: Revised Formatting -->
908 <script type="text/javascript">
909 var ss_form = {'account': '@GetString("Item.Area.Contact_Form_Account_ID.Value")', 'formID': '@GetString("Item.Area.Newsletter_Form_ID.Value")'};
910 ss_form.width = '100%';
911 ss_form.domain = '@GetString("Item.Area.Contact_Form_Domain.Value")';
912 // ss_form.hidden = {'field_id': 'value'}; // Modify this for sending hidden variables, or overriding values
913 // ss_form.target_id = 'target'; // Optional parameter: forms will be placed inside the element with the specified id
914 // ss_form.polling = true; // Optional parameter: set to true ONLY if your page loads dynamically and the id needs to be polled continually.
915 </script>
916 <script type="text/javascript" src="@ss_src_newsletter"></script>
917 </div>
918 <!-- End of SharpSpring Form Provider -->
919 }
920 }
921
922 @if (GetString("Item.Area.Form_Provider") == "apsis-provider")
923 {
924 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.APSIS_Newsletter_Form_ID.Value")))
925 {
926 <!-- APSIS Form Provider -->
927 <div class="apsis-provider">
928 <h4 class="footer__heading">@Translate("JoinOurNewsletter", "Join our Newsletter")</h4>
929 @{
930 string apsis_form = string.Format("afp-{0}", GetString("Item.Area.APSIS_Newsletter_Form_ID.Value"));
931 }
932 <script src="https://forms.apsisforms.com/formbuilder.js"></script>
933 <script>
934 (function() {
935 var form = new ApsisForms.FormbuilderInstance();
936 form.init({
937 formId: '@GetString("Item.Area.APSIS_Newsletter_Form_ID.Value")'
938 });
939 })();
940 </script>
941 <div class='@apsis_form'> </div>
942 </div>
943 <!-- End of APSIS Form Provider -->
944 }
945 }
946 <section>
947 <h4 class="footer__heading">@Translate("FindUs", "Find Us")</h4>
948 <ul class="footer__list">
949 <!-- Social Media items -->
950 @foreach (var item in @GetLoop("Item.Area.Social_Media"))
951 {
952 var linkUrl = item.GetValue("Item.Area.Social_Media.Social_Link");
953 string linkTitle = item.GetString("Item.Area.Social_Media.Social_Icon");
954 string linkIcon = "/Files/Templates/Designs/HagsCore/res/img/icons/social/" + linkTitle + ".png";
955 <li><a href="@linkUrl" target="_blank">@linkTitle</a></li>
956 }
957 </ul>
958 </section>
959
960 </div>
961 </div>
962
963
964 </footer>
965
966 @if ( false )
967 {
968 if (GetString("Item.Area.Form_Provider") == "sharpspring-provider")
969 {
970 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.Contact_Form_ID.Value")))
971 {
972 <!-- SharpSpring Form Provider -->
973 <div class="sharpspring-provider">
974
975 <div id="sharpspring-form-message" class="sharpspring-form-message">
976 <div id="sharpspring-form-message-container" class="sharpspring-form-message-container active hide-help hide-help-2">
977 <p class="close-form"><a id="hide-sharpspring" href="#">X</a></p>
978 <a id="open-sharpspring" class="btn" href="/en-us/play" role="button">@GetString("Item.Area.Contact_Button_CTA.Value")</a>
979 </div>
980 </div>
981
982 <div id="sharpspring-form-popup" class="overlay sharpspring-form-popup">
983 <div class="sharpspring-form-popup-container">
984 <p class="close-form"><a href="#" id="close-sharpspring">X</a></p>
985 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 pop-up-information">
986 @{
987 string image = string.Format("{0}", GetString("Item.Area.Contact_Image.Value"));
988 }
989 <h4>@GetString("Item.Area.Contact_Headline.Value")</h4>
990 @GetString("Item.Area.Contact_Copy.Value")
991 <img src="@image" class="pop-up-image img-responsive">
992 </div>
993
994 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
995 @{
996 string ss_src = string.Format("https://{0}/client/form.js?ver=2.0.1", GetString("Item.Area.Contact_Form_Domain.Value"));
997 }
998 <!-- SharpSpring Form for Contact Form: Revised Formatting -->
999 <script type="text/javascript">
1000 var ss_form = {'account': '@GetString("Item.Area.Contact_Form_Account_ID.Value")', 'formID': '@GetString("Item.Area.Contact_Form_ID.Value")'};
1001 ss_form.width = '100%';
1002 ss_form.domain = '@GetString("Item.Area.Contact_Form_Domain.Value")';
1003 // ss_form.hidden = {'field_id': 'value'}; // Modify this for sending hidden variables, or overriding values
1004 // ss_form.target_id = 'target'; // Optional parameter: forms will be placed inside the element with the specified id
1005 // ss_form.polling = true; // Optional parameter: set to true ONLY if your page loads dynamically and the id needs to be polled continually.
1006 </script>
1007 <script type="text/javascript" src="@(ss_src)"></script>
1008 </div>
1009 </div>
1010 </div>
1011 </div>
1012 <!-- End of SharpSpring Form Provider -->
1013 }
1014 }
1015
1016 if (GetString("Item.Area.Form_Provider") == "apsis-provider")
1017 {
1018 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.APSIS_Contact_Form_ID.Value")))
1019 {
1020 <!-- APSIS Form Provider -->
1021 <div class="sharpspring-provider">
1022 <div id="sharpspring-form-message" class="sharpspring-form-message">
1023 <div id="sharpspring-form-message-container" style="display: none;" class="sharpspring-form-message-container active hide-help hide-help-2">
1024 <p class="close-form"><a id="" href="#">X</a></p>
1025 <a id="open-sharpspring" class="btn" href="/en-us/play" role="button">@GetString("Item.Area.APSIS_Contact_Button_CTA.Value")</a>
1026 </div>
1027 </div>
1028
1029 <div id="sharpspring-form-popup" class="overlay sharpspring-form-popup">
1030 <div class="sharpspring-form-popup-container">
1031 <p class="close-form"><a href="#" id="close-sharpspring">X</a></p>
1032 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 pop-up-information">
1033 @{
1034 string image = string.Format("{0}", GetString("Item.Area.Contact_Image.Value"));
1035 }
1036 <h4>@GetString("Item.Area.APSIS_Contact_Headline.Value")</h4>
1037 @GetString("Item.Area.APSIS_Contact_Copy.Value")
1038 <img src="@image" class="pop-up-image img-responsive">
1039 </div>
1040
1041 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
1042 @{
1043 string apsis_form = string.Format("afp-{0}", GetString("Item.Area.APSIS_Contact_Form_ID.Value"));
1044 }
1045 <script src="https://forms.apsisforms.com/formbuilder.js"></script>
1046 <script>
1047 (function() {
1048 var form = new ApsisForms.FormbuilderInstance();
1049 form.init({
1050 formId: '@GetString("Item.Area.APSIS_Contact_Form_ID.Value")'
1051 });
1052 })();
1053 </script>
1054 <div class='@apsis_form'> </div>
1055 </div>
1056 </div>
1057 </div>
1058 </div>
1059 <!-- End of APSIS Form Provider -->
1060 }
1061 }
1062 }
1063
1064
1065 @*IncludeFile("partials/footer-scripts.cshtml")*@
1066
1067 <dialog class="modal" id="adviceModal">
1068
1069 <div class="modal__body">
1070
1071 <div class="modal__header">
1072
1073 <div class="modal__close">
1074 <button type="button" class="action-btn js-modal-close-target" data-target-id="adviceModal">
1075 <span class="visually-hidden">Close</span>
1076 <svg viewbox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class="h24-icon h24-icon--close"><path d="M100 0c55.193 0 100 44.807 100 100s-44.807 100-100 100S0 155.193 0 100 44.807 0 100 0Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C15.936 50.207 5.333 73.875 5.333 100c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C149.793 15.936 126.125 5.333 100 5.333Zm25.105 78.865L110.17 99.664l15.466 14.935a6.5 6.5 0 0 1 .16 9.191l-.694.72a6.5 6.5 0 0 1-9.191.16l-15.466-14.935-14.935 15.466a6.5 6.5 0 0 1-9.191.16l-.72-.694a6.5 6.5 0 0 1-.16-9.191l14.935-15.466-15.466-14.935a6.5 6.5 0 0 1-.16-9.191l.694-.72a6.5 6.5 0 0 1 9.191-.16L100.1 89.939l14.935-15.466a6.5 6.5 0 0 1 9.191-.16l.72.694a6.5 6.5 0 0 1 .16 9.191Z" fill="currentColor" fill-rule="evenodd"></path></svg>
1077 </button>
1078 </div>
1079
1080 <h3 class="ts-2" id="advice-title">
1081 <span>Information</span>
1082 </h3>
1083
1084 </div>
1085
1086 <div class="modal__main">
1087
1088 <div id="result-advice" class="advice-message"></div>
1089
1090 </div>
1091
1092 <div class="modal__footer">
1093
1094 <button type="button" class="btn btn--outline js-modal-close-target" data-target-id="adviceModal">
1095 @Translate("Close", "Close")
1096 </button>
1097
1098 </div>
1099
1100 </div>
1101
1102 </dialog>
1103 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
1104 @using System.Collections.Generic
1105 @using HagsWeb.Library.BusinessObjects.UsersLists
1106
1107 @{
1108 int currentAreaID = int.TryParse(GetGlobalValue("Global:Area.ID"), out currentAreaID) ? currentAreaID : 0;
1109 var currentArea = new Dynamicweb.Content.AreaService().GetArea(currentAreaID);
1110
1111 //List<ProductCollectionItem> productCollectionItems = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection : new List<ProductCollectionItem>();
1112
1113 }
1114
1115 <dialog id="CreateCatalog" class="modal modal--full">
1116
1117 <div class="modal__body">
1118
1119 <div class="modal__header">
1120
1121 <div class="modal__close">
1122 <button type="button" class="action-btn js-modal-close-target" data-target-id="CreateCatalog">
1123 <span class="visually-hidden">Close</span>
1124 <svg viewbox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class="h24-icon h24-icon--close"><path d="M100 0c55.193 0 100 44.807 100 100s-44.807 100-100 100S0 155.193 0 100 44.807 0 100 0Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C15.936 50.207 5.333 73.875 5.333 100c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C149.793 15.936 126.125 5.333 100 5.333Zm25.105 78.865L110.17 99.664l15.466 14.935a6.5 6.5 0 0 1 .16 9.191l-.694.72a6.5 6.5 0 0 1-9.191.16l-15.466-14.935-14.935 15.466a6.5 6.5 0 0 1-9.191.16l-.72-.694a6.5 6.5 0 0 1-.16-9.191l14.935-15.466-15.466-14.935a6.5 6.5 0 0 1-.16-9.191l.694-.72a6.5 6.5 0 0 1 9.191-.16L100.1 89.939l14.935-15.466a6.5 6.5 0 0 1 9.191-.16l.72.694a6.5 6.5 0 0 1 .16 9.191Z" fill="currentColor" fill-rule="evenodd"></path></svg>
1125 </button>
1126 </div>
1127
1128 <h4 class="modal-title" id="CreateCatalogModalLabel">
1129 @Translate("CreateYourCatalog", "Create Your Catalogue")
1130 </h4>
1131
1132 </div> <!-- header -->
1133
1134 <div class="modal__main">
1135
1136 <div id="div_CreateCatalog" class="modal__pdf-grid">
1137
1138 <div class="modal__forms">
1139
1140 <form id="frm_CreateCatalog">
1141 <input type="hidden" name="areaId" value="@(currentArea.ID)">
1142 <input type="hidden" name="languageId" value="@currentArea.EcomLanguageId">
1143 <input type="hidden" value="#CreateCatalog" name="catType">
1144 <input type="hidden" name="weglotLang" value="">
1145 <fieldset>
1146 <div>
1147 <label for="catHagsCatalogName">@Translate("HagsCatalogName", "Hags Catalog Name"):</label>
1148 <input type="text" class="form-control search-group" value="" name="catHagsCatalogName">
1149 </div>
1150
1151 <label for="catHagsContactName">@Translate("HagsContactName", "Hags Contact Name"):</label>
1152 <input type="text" class="form-control search-group" value="" name="catHagsContactName">
1153
1154 <label for="catHagsContactPhone">@Translate("HagsPhoneNumber", "Hags Phone Number"):</label>
1155 <input type="text" class="form-control search-group" value="" name="catHagsContactPhone">
1156
1157 <label for="catHagsContactEmail">@Translate("HagsContactEmail", "Hags Contact Email"):</label>
1158 <input type="email" class="form-control search-group" value="" name="catHagsContactEmail">
1159
1160 <label for="catCompanyName">@Translate("CompanyName", "Company Name"):</label>
1161 <input type="text" class="form-control search-group" value="" name="catCompanyName">
1162
1163 <label for="catAddress">@Translate("CompanyAddress", "Company Address"):</label>
1164 <input type="text" class="form-control search-group" value="" name="catAddress">
1165
1166 <input type="text" class="form-control search-group" value="" name="catAddress2">
1167
1168 <label for="catAddrTown">@Translate("CompanyTown", "Company Town"):</label>
1169 <input type="text" class="form-control search-group" value="" name="catAddrTown">
1170
1171 <label for="catAddrPostCode">@Translate("CompanyPostCode", "Company Postal Code"):</label>
1172 <input type="text" class="form-control search-group" value="" name="catAddrPostCode">
1173
1174 <label for="catAddrCountry">@Translate("CompanyCountry", "Company Country"):</label>
1175 <input type="text" class="form-control search-group" value="" name="catAddrCountry">
1176
1177
1178 </fieldset>
1179 </form>
1180
1181
1182 @*Switch Form here*@
1183
1184 <form id="frm_CatalogEmailSettings" style="display:none">
1185 <input type="hidden" name="pdfFileName" value="">
1186 <input type="hidden" name="areaId" value="@currentAreaID">
1187 <input type="hidden" name="weglotLang" value="">
1188
1189 <fieldset>
1190
1191 <label for="emailFrom">@Translate("EmailFrom", "Email from"):</label>
1192 <input type="email" class="form-control search-group" name="emailFrom" required="" value="">
1193
1194 <label for="emailTo">@Translate("EmailTo", "Email to"):</label>
1195 <input type="email" class="form-control search-group" name="emailTo" required="" value="">
1196
1197 <label for="emailSubject">@Translate("EmailSubject", "Subject"):</label>
1198 <input type="text" class="form-control search-group" name="emailSubject" value="">
1199
1200 <label for="emailMessage">@Translate("Message", "Message"):</label>
1201 <textarea class="form-control" name="emailMessage" cols="45" rows="7" value=""></textarea>
1202
1203 </fieldset>
1204
1205 <div name="emailProgressContent" style="display:none;">
1206 <span id="CreateCatalogueEmailLabel" style="display: block; text-align: center; margin: auto;">@Translate("SendingYourEmail", "Sending your Email")</span>
1207 <img src="/Files/Templates/Designs/HagsCore/res/img/loader/ajax-loader.gif" style="margin: auto; display: block;">
1208 </div>
1209
1210 <div name="emailProgress" style="display: none;"></div>
1211
1212 <div class="m-search-advanced-buttons text-right" name="preSendEmail" style="display: block;">
1213
1214 <button class="btn btn--outline" name="emailcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button>
1215 <button class="btn btn--outline" style="display: none;" name="refreshemail" type="button" role="button">@Translate("Refresh", "Refresh")</button>
1216 <button class="btn btn--outline" name="cancelemail" type="button" role="button" data-modal-name="catalogue">@Translate("Cancel", "Cancel")</button>
1217
1218 </div>
1219
1220
1221 <div class="m-search-advanced-buttons text-center" name="downloadResend" style="display: none;">
1222
1223 <button class="btn btn--outline" style="display: none;" name="resendcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button>
1224 <button class="btn btn--outline" style="margin: 2px;" name="refreshemail" type="button" role="button">@Translate("ClearFormSendAgain", "Clear form and send again")</button><br>
1225 <a href="" class="btn btn--outline" name="pdfDownloadLink" download="">@Translate("DownloadCatalogue", "Download Catalogue")</a>
1226 <button class="btn btn--outline js-modal-close-target" data-target-id="CreateCatalog" type="button">@Translate("CloseWindow", "Close Window")</button>
1227
1228 </div>
1229
1230 </form>
1231
1232 <script>
1233 $("#frm_CatalogEmailSettings").validate();
1234 </script>
1235
1236 </div>
1237
1238 <div id="loader" style="display:none;text-align:center">
1239 <span id="CreateCataloguePdfLabel" style="display: inline-block;margin: 10px 10px 0 0;padding: 5px 10px"></span>
1240 <img src="/Files/Templates/Designs/Hags2024/assets/img/loader/ajax-loader.gif" style="margin:auto;display:block;">
1241 </div>
1242
1243 <div id="pdfViewer" class="modal__embed-silo"></div>
1244
1245 </div>
1246
1247 </div> <!-- main -->
1248
1249
1250 <div class="modal__footer">
1251
1252 <div class="m-search-advanced-buttons cluster cluster--dialog">
1253
1254 <button class="btn btn--outline" name="updatecatalogue" role="button" type="button">
1255 @Translate("UpdateCatalogue", "Update Catalog")
1256 </button>
1257
1258
1259
1260 <button class="btn btn--outline" name="createemail" data-modal-name="catalogue" type="button" role="button">@Translate("EmailCatalogue", "Email Catalogue")</button>
1261 <button class="btn btn--outline" id="pdfPrintCatalogue" target="_blank" type="button">@Translate("Print", "Print")</button>
1262 <a class="btn btn--outline" href="#" id="pdfDownloadCatalogue" type="button" download="">@Translate("Download", "Download")</a>
1263 <button class="btn btn--outline js-modal-close-target" data-target-id="CreateCatalog" type="button">@Translate("Close", "Close")</button>
1264
1265 </div>
1266
1267 </div> <!-- footer -->
1268
1269 </div>
1270
1271 </dialog>
1272 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
1273 @using HagsWeb.Library.State;
1274 @using HagsWeb.Library.BusinessObjects.UsersLists;
1275 @{
1276
1277 int saveCollectionAreaID = HagsWeb.Library.Utilities.WebUtilities.CheckInteger(GetGlobalValue("Global:Area.ID"));
1278 Dynamicweb.Content.Page saveCollectionMyHagsRegistrationPage = HagsWeb.Library.Methods.Page.HagsPages.GetPageByNavigationTag("CreateAccountPage", saveCollectionAreaID);
1279
1280 bool savecollection = bool.Parse(string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("savecollection")) ? "false" : Dynamicweb.Context.Current.Request.QueryString.Get("savecollection"));
1281
1282 string areaLanguage = GetGlobalValue("Global:Area.Lang");
1283
1284 EditCollection editSession = new EditCollection();
1285 if (SessionManager.IsSessionValueSet("EditCollectionSession_" + GetGlobalValue("Global:Extranet.UserID")))
1286 {
1287 editSession = (EditCollection)SessionManager.GetSessionItem("EditCollectionSession_" + GetGlobalValue("Global:Extranet.UserID"));
1288 }
1289
1290 string currentCollectionName = string.Empty; // Dynamicweb.Context.Current.Request.QueryString.Get("collection");
1291 string currentCollectionDescription = string.Empty;
1292 string currentCollectionOriginalFileName = string.Empty;
1293 if (editSession != null)
1294 {
1295 currentCollectionName = editSession.CollectionName;
1296 currentCollectionDescription = editSession.CollectionDescription;
1297 currentCollectionOriginalFileName = editSession.OriginalFileName;
1298 }
1299
1300 bool isLoggedIn = false;
1301 if (!String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName")))
1302 {
1303 isLoggedIn = true;
1304 }
1305
1306 string saveCollectionValidationMessages = string.Format("messages_{0}.min.js", GetGlobalValue("Global:Area.Lang"));
1307 string saveCollectionAreaLanguage = GetGlobalValue("Global:Area.Lang");
1308 string saveCollectionLoginPageId = GetGlobalValue("Global:Page.ID");
1309 string UserId = GetGlobalValue("Global:Extranet.UserID");
1310 //string designBaseUrl = GetString("Template:DesignBaseUrl");
1311
1312 // Notes: for the Forgotten Password we now are just advising the user to contact their local office for a reset
1313 // We do however maintain the original code as is for when they change their mind back again!
1314 }
1315
1316
1317 @*@Scripts.Render("~/bundle/Validation")*@
1318
1319 <dialog class="modal" id="saveCollection">
1320
1321 @if (areaLanguage != "en")
1322 {
1323 <script src="@(designBaseUrl)assets/js/libraries/validation/localization/@saveCollectionValidationMessages"></script>
1324 }
1325
1326 <div class="modal__body">
1327
1328 <div class="modal__header">
1329
1330 <div class="modal__close">
1331 <button type="button" class="action-btn js-modal-close-target" data-target-id="saveCollection">
1332 <span class="visually-hidden">Close</span>
1333 <svg viewbox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class="h24-icon h24-icon--close"><path d="M100 0c55.193 0 100 44.807 100 100s-44.807 100-100 100S0 155.193 0 100 44.807 0 100 0Zm0 5.333c-26.124 0-49.792 10.603-66.928 27.74C15.936 50.207 5.333 73.875 5.333 100c0 26.124 10.603 49.792 27.74 66.928 17.135 17.136 40.803 27.739 66.927 27.739 26.124 0 49.792-10.603 66.928-27.74 17.136-17.135 27.739-40.803 27.739-66.927 0-26.124-10.603-49.792-27.74-66.928C149.793 15.936 126.125 5.333 100 5.333Zm25.105 78.865L110.17 99.664l15.466 14.935a6.5 6.5 0 0 1 .16 9.191l-.694.72a6.5 6.5 0 0 1-9.191.16l-15.466-14.935-14.935 15.466a6.5 6.5 0 0 1-9.191.16l-.72-.694a6.5 6.5 0 0 1-.16-9.191l14.935-15.466-15.466-14.935a6.5 6.5 0 0 1-.16-9.191l.694-.72a6.5 6.5 0 0 1 9.191-.16L100.1 89.939l14.935-15.466a6.5 6.5 0 0 1 9.191-.16l.72.694a6.5 6.5 0 0 1 .16 9.191Z" fill="currentColor" fill-rule="evenodd"></path></svg>
1334 </button>
1335 </div>
1336
1337 <h3 class="ts-2">
1338 @Translate("SaveMyHagsCollection", "Save HAGS Connect Collection")
1339 </h3>
1340
1341 </div>
1342
1343 <div class="modal__main">
1344
1345 <input type="hidden" id="action" value="">
1346
1347 <form role="form" method="post" id="saveCollectionForm" action="">
1348
1349 <input type="hidden" name="UserId" value="@UserId">
1350 <input type="hidden" name="OriginalFileName" value="@currentCollectionOriginalFileName">
1351
1352 <div class="form-group">
1353 <label for="collectionName">@Translate("CollectionName", "Name of Collection") <sup>*</sup></label>
1354 <input type="text" class="form-control" name="CollectionName" value="@currentCollectionName" required="" placeholder='@Translate("CollectionName", "Name of Collection")'>
1355 </div>
1356
1357 <div class="form-group">
1358 <label for="collectionDescription">@Translate("CollectionDescription", "Description") <sup>*</sup></label>
1359 <textarea type="text" class="form-control" rows="4" cols="50" name="CollectionDescription" required="" placeholder='@Translate("CollectionDescription", "Description")'>@currentCollectionDescription</textarea>
1360 </div>
1361
1362 <div id="resultAdvice"></div>
1363
1364 </form>
1365
1366
1367 <script>
1368 //$("#saveCollectionloginForm").validate();
1369 $("#saveCollectionForm").validate();
1370 </script>
1371
1372 </div>
1373
1374
1375 <div class="modal__footer">
1376
1377 <button type="submit" id="save" name="savecollection" class="btn btn--outline">@Translate("Save", "Save")</button>
1378 <button type="button" id="continue" name="modalclose" class="btn btn--outline js-modal-close-target" data-target-id="saveCollection">@Translate("Close", "Close")</button>
1379 <!--button type="button" id="new" name="removecollection" class="btn btn--outline" data-removeproductlist="All" data-dismiss="modal">@Translate("StartNewCollection", "Start a new collection")</button-->
1380
1381 </div>
1382
1383 </div>
1384
1385 </dialog>
1386
1387 }
1388
1389
1390 @* this snippet is from the case studies item listing *@
1391 @RenderSnippet("bodyScripts")
1392
1393
1394 @SnippetStart("bodyScripts")
1395
1396 @* my collection scripts *@
1397
1398 <script type="text/javascript" src="@(designBaseUrl)assets/js/libraries/filesaver/filesaver.min.js"></script>
1399 @*<script type="text/javascript" src="@(designBaseUrl)assets/js/functions/product-collection.js"></script>*@
1400 <script type="text/javascript" src="@(designBaseUrl)assets/js/functions/product-collection.js?v=1.2&ts=@jsTimestamp"></script>
1401
1402 @* contact form scripts *@
1403 <script type="text/javascript" src="@(designBaseUrl)assets/js/functions/contact-us-forms.js"></script>
1404
1405
1406 @* load the embla carousel script *@
1407 <script data-cookieconsent="ignore" type="text/javascript" src="@(designBaseUrl)assets/js/libraries/embla/embla-carousel.umd.js"></script>
1408 <script data-cookieconsent="ignore" type="text/javascript" src="@(designBaseUrl)assets/js/libraries/embla/embla-carousel-fade.umd.js"></script>
1409
1410 <!--script src='https://online3.superoffice.com/Cust29133/CS/javascript/chat.js' data-topicId='2' data-title='Chatta med oss!' data-theme='modern' data-color='#0080FF' data-badgeColor='#4f6128' data-badgeTextColor='#ffffff' data-custMsgColor='#dbe5f1' data-custMsgTextColor='#000000' data-agentMsgColor='#c3d69b' data-agentMsgTextColor='#000000' data-buttonColor='#d4d4d4' data-buttonTextColor='' data-font='"Verdana", "Gill Sans", Arial, sans-serif' data-fontSize='12px' data-size='normal' data-delay='1' defer></script-->
1411 @SnippetEnd("bodyScripts")
1412
1413 </body>
1414 </html>
1415
1416
1417