Error executing template "Designs/HagsCore/_parsed/Dw_Frontpage.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 @{ 9 bool GoogleTag = false; 10 GoogleTag = GetGlobalValue("Global:Request.Url").Contains("http://hagsdw915solution.") || GetGlobalValue("Global:Request.Url").Contains("https://hagsdev.hags."); 11 12 int masterAreaId = int.TryParse(GetGlobalValue("Global:Area.ID"), out masterAreaId) ? masterAreaId : 0; 13 Dynamicweb.Content.Area masterArea = new Dynamicweb.Content.AreaService().GetArea(masterAreaId); 14 15 string themeTag = HagsPages.GetThemeByNavigationTag(GetGlobalValue("Global:Page.Top.ID")); // gets the page ID at the top of the tree this page sits on. 16 string siteNavigation = HagsPages.GetActiveAreas(); 17 } 18 19 <!DOCTYPE html> 20 21 <html class="nojs" lang='@GetGlobalValue("Global:Area.LongLang")'> 22 23 <head> 24 <meta charset="utf-8"> 25 <title>@GetValue("Title")</title> 26 @GetValue("MetaTags") 27 @GetValue("CopyRightNotice") 28 29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 30 <meta http-equiv="content-language" content='@GetGlobalValue("Global:Area.LongLang")'> 31 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> 32 <meta name="robots" content="index, follow"> 33 <meta name="author" content='@GetString("DwAreaName")'> 34 <link rel="icon" href="/Files/Images/favicon.ico" type="image/x-icon"> 35 <link rel="shortcut icon" href="/Files/Images/favicon.ico" type="image/x-icon"> 36 37 @foreach (var language in GetLoop("Languages")) 38 { 39 string pageid = language.GetString("PageID"); 40 string url = string.Empty; 41 string productId = System.Web.HttpContext.Current.Request.QueryString.Get("productid"); 42 if (string.IsNullOrEmpty(productId)) 43 { 44 url = @GetGlobalValue("Global:Request.Scheme") + "://" + language.GetString("PrimaryDomain") + Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("default.aspx?id=" + pageid); 45 } 46 else 47 { 48 string productUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("default.aspx?id=" + pageid + "&ProductID=" + productId); 49 if (!string.IsNullOrEmpty(productUrl)) 50 { 51 url = @GetGlobalValue("Global:Request.Scheme") + "://" + language.GetString("PrimaryDomain") + productUrl; 52 } 53 } 54 if (!string.IsNullOrEmpty(url)) 55 { 56 <link rel="alternate" href='@url' hreflang='@language.GetString("Culture")'> 57 } 58 } 59 60 @Styles.Render("~/bundle/site") 61 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/HagsCore/style/css/print.min.css" media="print"> 62 <!--<link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/HagsCore/style/css/style-im-temp3.css" media="screen" />--> 63 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter:400,700&subset=latin,latin-ext"> 64 <link rel="stylesheet" href="/Files/Templates/Designs/HagsCore/style/css/meanmenu.css"> 65 66 @Scripts.Render("~/bundle/jquery") 67 @Scripts.Render("~/bundle/Validation") 68 69 @if (!GoogleTag) 70 { 71 <!-- Google Tag Manager --> 72 <script type="text/javascript"> 73 (function (w, d, s, l, i) { 74 w[l] = w[l] || []; 75 w[l].push({ 76 'gtm.start': 77 new Date().getTime(), 78 event: 'gtm.js' 79 }); 80 var f = d.getElementsByTagName(s)[0], 81 j = d.createElement(s), 82 dl = l != 'dataLayer' ? '&l=' + l : ''; 83 j.async = true; 84 j.src = 85 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 86 f.parentNode.insertBefore(j, f); 87 })(window, document, 'script', 'dataLayer', 'GTM-MCRWZS'); 88 </script> 89 <!-- End Google Tag Manager --> 90 <!-- Facebook Pixel Code --> 91 <script type="text/javascript"> 92 !function (f, b, e, v, n, t, s) { 93 if (f.fbq) return; 94 n = f.fbq = function () { 95 n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments) 96 }; 97 if (!f._fbq) f._fbq = n; 98 n.push = n; 99 n.loaded = !0; 100 n.version = '2.0'; 101 n.queue = []; 102 t = b.createElement(e); 103 t.async = !0; 104 t.src = v; 105 s = b.getElementsByTagName(e)[0]; 106 s.parentNode.insertBefore(t, s) 107 }(window, 108 document, 109 'script', 110 'https://connect.facebook.net/en_US/fbevents.js'); 111 fbq('init', '271101660030700'); 112 fbq('track', 'PageView'); 113 </script> 114 <!-- End Facebook Pixel Code --> 115 } 116 117 @if (GetGlobalValue("Global:Request.Url").Contains("https://hagsdev.hags.")) 118 { 119 <!-- Only on Staging --> 120 <script type="text/javascript" src="https://www.bugherd.com/sidebarv2.js?apikey=jkh6z6dn1mgbxvjaqolwca" async="true"></script> 121 } 122 123 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 124 125 @{ 126 if (!GoogleTag) 127 { 128 string countryCode = GetGlobalValue("Global:Area.LongLang"); 129 <!-- SharpSpring tracking code by country --> 130 switch (countryCode) 131 { 132 case "en-US": 133 <!-- Global --> 134 <script type="text/javascript"> 135 var _ss = _ss || []; 136 _ss.push(['_setDomain', 'https://koi-3QNUK2ISME.marketingautomation.services/net']); 137 _ss.push(['_setAccount', 'KOI-4L2VVPHL7M']); 138 _ss.push(['_trackPageView']); 139 window._pa = window._pa || {}; 140 // _pa.orderId = "myOrderId"; // OPTIONAL: attach unique conversion identifier to conversions 141 // _pa.revenue = "19.99"; // OPTIONAL: attach dynamic purchase values to conversions 142 // _pa.productId = "myProductId"; // OPTIONAL: Include product ID for use with dynamic ads 143 (function () { 144 var ss = document.createElement('script'); 145 ss.type = 'text/javascript'; ss.async = true; 146 ss.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'koi-3QNUK2ISME.marketingautomation.services/client/ss.js? ver=2.4.0'; 147 var scr = document.getElementsByTagName('script')[0]; 148 scr.parentNode.insertBefore(ss, scr); 149 })(); 150 </script> 151 <!-- End Global --> 152 break; 153 154 155 case "es-ES": 156 <!-- Spain --> 157 <script type="text/javascript"> 158 var _ss = _ss || []; 159 _ss.push(['_setDomain', 'https://koi-3QNUK66RL4.marketingautomation.services/net']); 160 _ss.push(['_setAccount', 'KOI-4L2Y74KFC2']); 161 _ss.push(['_trackPageView']); 162 window._pa = window._pa || {}; 163 // _pa.orderId = "myOrderId"; // OPTIONAL: attach unique conversion identifier to conversions 164 // _pa.revenue = "19.99"; // OPTIONAL: attach dynamic purchase values to conversions 165 // _pa.productId = "myProductId"; // OPTIONAL: Include product ID for use with dynamic ads 166 (function () { 167 var ss = document.createElement('script'); 168 ss.type = 'text/javascript'; ss.async = true; 169 ss.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'koi-3QNUK66RL4.marketingautomation.services/client/ss.js?ver=2.4.0'; 170 var scr = document.getElementsByTagName('script')[0]; 171 scr.parentNode.insertBefore(ss, scr); 172 })(); 173 </script> 174 <!-- End Spain --> 175 176 break; 177 case "fr-FR": 178 <!-- France --> 179 <script type="text/javascript"> 180 var _ss = _ss || []; 181 _ss.push(['_setDomain', 'https://koi-3QNUK7NJZ0.marketingautomation.services/net']); 182 _ss.push(['_setAccount', 'KOI-4L2ZXOVJXE']); 183 _ss.push(['_trackPageView']); 184 window._pa = window._pa || {}; 185 // _pa.orderId = "myOrderId"; // OPTIONAL: attach unique conversion identifier to conversions 186 // _pa.revenue = "19.99"; // OPTIONAL: attach dynamic purchase values to conversions 187 // _pa.productId = "myProductId"; // OPTIONAL: Include product ID for use with dynamic ads 188 (function () { 189 var ss = document.createElement('script'); 190 ss.type = 'text/javascript'; ss.async = true; 191 ss.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'koi-3QNUK7NJZ0.marketingautomation.services/client/ss.js?ver=2.4.0'; 192 var scr = document.getElementsByTagName('script')[0]; 193 scr.parentNode.insertBefore(ss, scr); 194 })(); 195 </script> 196 <!-- End France --> 197 198 break; 199 case "de-DE": 200 <!-- Germany --> 201 <script type="text/javascript"> 202 var _ss = _ss || []; 203 _ss.push(['_setDomain', 'https://koi-3QNUK4PZ78.marketingautomation.services/net']); 204 _ss.push(['_setAccount', 'KOI-4L2X1F109U']); 205 _ss.push(['_trackPageView']); 206 window._pa = window._pa || {}; 207 // _pa.orderId = "myOrderId"; // OPTIONAL: attach unique conversion identifier to conversions 208 // _pa.revenue = "19.99"; // OPTIONAL: attach dynamic purchase values to conversions 209 // _pa.productId = "myProductId"; // OPTIONAL: Include product ID for use with dynamic ads 210 (function () { 211 var ss = document.createElement('script'); 212 ss.type = 'text/javascript'; ss.async = true; 213 ss.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'koi-3QNUK4PZ78.marketingautomation.services/client/ss.js?ver=2.4.0'; 214 var scr = document.getElementsByTagName('script')[0]; 215 scr.parentNode.insertBefore(ss, scr); 216 })(); 217 </script> 218 <!-- End Germany --> 219 220 break; 221 case "sv-SE": 222 <!-- Sweden --> 223 <script type="text/javascript"> 224 var _ss = _ss || []; 225 _ss.push(['_setDomain', 'https://koi-3RNS8XYLQS.marketingautomation.services/net']); 226 _ss.push(['_setAccount', 'KOI-4MPT9O4N8I']); 227 _ss.push(['_trackPageView']); 228 window._pa = window._pa || {}; 229 // _pa.orderId = "myOrderId"; // OPTIONAL: attach unique conversion identifier to conversions 230 // _pa.revenue = "19.99"; // OPTIONAL: attach dynamic purchase values to conversions 231 // _pa.productId = "myProductId"; // OPTIONAL: Include product ID for use with dynamic ads 232 (function() { 233 var ss = document.createElement('script'); 234 ss.type = 'text/javascript'; ss.async = true; 235 ss.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'koi-3RNS8XYLQS.marketingautomation.services/client/ss.js?ver=2.4.0'; 236 var scr = document.getElementsByTagName('script')[0]; 237 scr.parentNode.insertBefore(ss, scr); 238 })(); 239 </script> 240 <!-- End Sweden --> 241 242 break; 243 default: 244 245 break; 246 247 } 248 <!-- End SharpSpring tracking code by country --> 249 } 250 251 } 252 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 253 254 @{ 255 if (masterAreaId == 4) 256 { 257 @* Banin Al-Zerajawi banin@adnudging.com tracking code on behalf of Denmark *@ 258 <!-- TrailHub tracking code for Denmark --> 259 <script type="text/javascript">!function () { "use strict"; var e; (e = window.Trailhub = window.Trailhub || []).initialized || (e.invoked ? window.console && console.error && console.error("Please only load the Trailhub script once.") : (e.invoked = !0, e.load = function (e) { var t = document.createElement("script"); t.id = "trailhub", t.type = "text/javascript", t.async = !0, t.src = "https://cdn.trailhub.io/" + e + "/trailhub.js"; var i = document.getElementsByTagName("script")[0]; i.parentNode.insertBefore(t, i) }, e.LOADER_VERSION = "1.0.1", e.load("2b2dbe3640246145"))) }();</script> 260 <!-- End TrailHub tracking code for Denmark --> 261 } 262 } 263 264 265 266 267 <!-- Start of Sleeknote signup and lead generation tool - www.sleeknote.com --> 268 <script id="sleeknoteScript" type="text/javascript"> 269 (function () { 270 var sleeknoteScriptTag = document.createElement("script"); 271 sleeknoteScriptTag.type = "text/javascript"; 272 sleeknoteScriptTag.charset = "utf-8"; 273 sleeknoteScriptTag.src = ("//sleeknotecustomerscripts.sleeknote.com/60385.js"); 274 var s = document.getElementById("sleeknoteScript"); 275 s.parentNode.insertBefore(sleeknoteScriptTag, s); 276 })(); 277 </script> 278 <!-- End of Sleeknote signup and lead generation tool - www.sleeknote.com --> 279 <!-- Meta Business suite --> 280 <meta name="facebook-domain-verification" content="8vnuupfwjjw7l4g2t44cuzv5c17fa2"> 281 <!-- End of Meta Business suite --> 282 <!-- Pintrest --> 283 <meta name="p:domain_verify" content="e984d55d650d51a77b5bd78fce401aee"> 284 <!-- End of Pintrest --> 285 286 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 287 288 @{ 289 if (masterAreaId == 1) 290 { 291 <!-- Google Analytics Property for Global --> 292 <meta name="google-site-verification" content="SU7OrN2pJAoaHy4QUbJqKRyiRK_pJK_mydVX9HnbAjE"> 293 <!-- Google Analytics Property for Global --> 294 } 295 if (masterAreaId == 2) 296 { 297 <!-- Google Analytics Property for Sweden --> 298 <meta name="google-site-verification" content="WMHOYHSUksAhokWvc_pl1xi2eUEIqlSAmqSuPqBuIhw"> 299 <!-- Google Analytics Property for Sweden --> 300 } 301 if (masterAreaId == 3) 302 { 303 <!-- Google Analytics Property for Germany --> 304 <meta name="google-site-verification" content="2FnagwVri1SLEk0f1-cNAMIsqoelzEf6qa64iTOo6A4"> 305 <!-- Google Analytics Property for Germany --> 306 } 307 if (masterAreaId == 4) 308 { 309 <!-- Google Analytics Property for Denmark --> 310 <meta name="google-site-verification" content="iTdN9SsW-DWo1nPaqZ2_W6c1lKr1KdpIE-9PIa7efD8"> 311 <!-- Google Analytics Property for Denmark --> 312 } 313 if (masterAreaId == 5) 314 { 315 <!-- Google Analytics Property for France --> 316 <meta name="google-site-verification" content="q7sWMD42DhdNcVgQjRvpUnHq6UWvgFfxxN7SWLTjDBs"> 317 <!-- Google Analytics Property for France --> 318 } 319 if (masterAreaId == 6) 320 { 321 <!-- Google Analytics Property for Spain --> 322 <meta name="google-site-verification" content="5l8EU56ZLDtGLgFsyPizPWpK1lt_DAqhcYsgiP_wZ2w"> 323 <!-- Google Analytics Property for Spain --> 324 } 325 if (masterAreaId == 7) 326 { 327 <!-- Google Analytics Property for UK --> 328 <meta name="google-site-verification" content="VWJFZapvDhxv8eu8eMl66KkAAArEyIG3pa8ZffeAKrg"> 329 <!-- Google Analytics Property for UK --> 330 } 331 } 332 333 334 335 336 @*For Sweden site to add the customer server chat bot*@ 337 @if (masterArea.ID == 2) 338 { 339 <!--<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>--> 340 } 341 342 <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="89c7e0fa-fa61-446d-9c96-866489bcea3c" data-blockingmode="auto" type="text/javascript"></script> 343 344 @GetValue("Stylesheets") 345 @GetValue("Javascripts") 346 </head> 347 348 <body> 349 <!--<div style="width: 100%;background:red;color:white;padding-top:10px;padding-bottom:1px;text-align:center;font-weight:bold;"> 350 <p>HAGS New Dev Server - DynamicWeb Version 9.12.11 (Database updated from live: 9th May 2022)</p> 351 </div>--> 352 @if (!GoogleTag) 353 { 354 <noscript> 355 <!-- Google Tag Manager (noscript) --> 356 <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MCRWZS" height="0" width="0" style="display:none;visibility:hidden"></iframe> 357 <!-- End Google Tag Manager (noscript) --> 358 <!-- Facebook Pixel Code --> 359 <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=271101660030700&ev=PageView&noscript=1"> 360 </noscript> 361 } 362 <header class="m-theme-background-lightgrey"> 363 <div class="m-header-options-primary m-theme-background-lightgrey"> 364 <div class="l-page"> 365 <div class="container-fluid"> 366 <div class="row"> 367 <div class="col-sm-6 country"> 368 <form class="form-inline"> 369 <div class="form-group website-select"> 370 @{ 371 var siteFirstPageId = GetString("DwAreaFirstPageID"); // for the Hags Logo url. Go to the WEBSITE home page 372 var thisSiteName = HagsWeb.Library.Methods.Page.HagsPages.GetSiteCountryName(@GetGlobalValue("Global:Area.LongLang"), @GetGlobalValue("Global:Area.Name")); 373 var websites = GetLoop("WebsiteLanguages"); 374 string worldwideContactsLink = DWUtilities.GetPageByNavigationTag("worldwide-contacts", masterAreaId); 375 if (websites.Count > 0) 376 { 377 <div class="btn-group"> 378 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> 379 @Translate("SelectYourWebsite", "Select your Website") <span class="caret"></span> 380 </button> 381 <ul class="dropdown-menu" role="menu" style="width: 180px;"> 382 @HagsPages.GetActiveAreas() 383 <li class="divider"></li> 384 <li> 385 <a href="https://www.hags.com/nl-be/"><img src="/Admin/Images/Flags/Small/flag_BE.png" alt="Belgium" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Belgium (Flemish)</a> 386 </li> 387 <li> 388 <a href="https://www.hags.com/fr-be/"><img src="/Admin/Images/Flags/Small/flag_BE.png" alt="Belgium" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Belgium (French)</a> 389 </li> 390 <li> 391 <a href="https://www.hags.com/zh/"><img src="/Admin/Images/Flags/Small/flag_CN.png" alt="China" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;China</a> 392 </li> 393 <li> 394 <a href="https://www.hags.com/hr/"><img src="/Admin/Images/Flags/Small/flag_HR.png" alt="Croatia" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Croatia</a> 395 </li> 396 <!--<li> 397 <a href="https://www.hags.com/cs/"><img src="/Admin/Images/Flags/Small/flag_CZ.png" alt="Czech Republic" itemprop="country" style="height: 18px; margin-top: -2px;" />&nbsp;&nbsp;Czech Republic</a> 398 </li>--> 399 <li> 400 <a href="https://www.hags.com/et/"><img src="/Admin/Images/Flags/Small/flag_EE.png" alt="Estonia" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Estonia</a> 401 </li> 402 <li> 403 <a href="https://www.hags.com/fi/"><img src="/Admin/Images/Flags/Small/flag_FI.png" alt="Finland" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Finland</a> 404 </li> 405 <li> 406 <a href="https://www.hags.com/hu/"><img src="/Admin/Images/Flags/Small/flag_HU.png" alt="Hungary" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Hungary</a> 407 </li> 408 <li> 409 <a href="https://www.hags.com/it/"><img src="/Admin/Images/Flags/Small/flag_IT.png" alt="Italy" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Italy</a> 410 </li> 411 <li> 412 <a href="https://www.hags.com/ja/"><img src="/Admin/Images/Flags/Small/flag_JP.png" alt="Japan" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Japan</a> 413 </li> 414 <li> 415 <a href="https://www.hags.com/lv/"><img src="/Admin/Images/Flags/Small/flag_LV.png" alt="Latvia" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Latvia</a> 416 </li> 417 <li> 418 <a href="https://www.hags.com/nl/"><img src="/Admin/Images/Flags/Small/flag_NL.png" alt="Netherlands" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Netherlands</a> 419 </li> 420 <li> 421 <a href="https://www.hags.com/no/"><img src="/Admin/Images/Flags/Small/flag_NO.png" alt="Norway" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Norway</a> 422 </li> 423 <!--<li> 424 <a href="https://www.hags.com/pl/"><img src="/Admin/Images/Flags/Small/flag_PL.png" alt="Poland" itemprop="country" style="height: 18px; margin-top: -2px;" />&nbsp;&nbsp;Poland</a> 425 </li>--> 426 <li> 427 <a href="https://www.hags.com/sa/"><img src="/Admin/Images/Flags/Small/flag_RS.png" alt="Serbia" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Serbia</a> 428 </li> 429 <!--<li> 430 <a href="https://www.hags.com/sk/"><img src="/Admin/Images/Flags/Small/flag_SK.png" alt="Slovakia" itemprop="country" style="height: 18px; margin-top: -2px;" />&nbsp;&nbsp;Slovakia</a> 431 </li>--> 432 <li> 433 <a href="https://www.hags.com/ko/"><img src="/Admin/Images/Flags/Small/flag_KR.png" alt="South Korea" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;South Korea</a> 434 </li> 435 <li> 436 <a href="https://www.hags.com/ch-de/"><img src="/Admin/Images/Flags/Small/flag_CH.png" alt="Switzerland (German)" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Switzerland (German)</a> 437 </li> 438 <li> 439 <a href="https://www.hags.com/tr/"><img src="/Admin/Images/Flags/Small/flag_TR.png" alt="Turkey" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Turkey</a> 440 </li> 441 <li class="divider"></li> 442 <li> 443 <a href='@worldwideContactsLink'><img src="/Admin/Images/Flags/Small/flag_world.png" alt="Worldwide contacts" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;@Translate("WorldwideContacts", "Other Region...")</a> 444 </li> 445 </ul> 446 </div> 447 } 448 } 449 </div> 450 <div class="text-left country-indicator"> 451 <p>@Translate("CurrentCountry", "Current Country"): <strong>@thisSiteName</strong></p> 452 </div> 453 </form> 454 </div> 455 <div class="col-sm-6 text-right search"> 456 457 <script> 458 $(document).ready(function () { 459 //hide/show searchbox 460 $('#search-box').toggleClass('search-hide'); 461 462 $('.search-icon').on('click', function () { 463 $('#search-box').toggleClass('search-hide'); 464 $('#InputSearch').focus(); 465 }); 466 467 }); 468 469 </script> 470 471 <div class="myhags"> 472 @if (!String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName"))) 473 { 474 string hagsConnectMenu = HagsWeb.Library.Methods.Page.HagsPages.GetSubMenuFromNavigationTag("MyHags", GetGlobalValue("Global:Page.ID"), masterAreaId); 475 Dynamicweb.Content.Page currentMyHagsPage = HagsPages.GetPageByNavigationTag("MyHags", masterAreaId); 476 string currentMyHagsPageUrl = "Default.aspx?ID=" + currentMyHagsPage.ID; 477 478 if (currentMyHagsPage != null || !String.IsNullOrEmpty(currentMyHagsPageUrl)) 479 { 480 <span> 481 <strong style="color: #7b7b7b;"> 482 @Translate("Welcome", "Welcome") @GetGlobalValue("Global:Extranet.FirstName") 483 </strong>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="@currentMyHagsPageUrl" id="myHagsLink" title='@Translate("HAGS Connect", "HAGS Connect")'>@Translate("HAGS Connect", "HAGS Connect")</a>&nbsp;<a href='/admin/Public/ExtranetLogOff.aspx?ID=@GetGlobalValue("Global:Page.ID")' class="dw-login"> 484 <img src="/Files/Templates/Designs/HagsCore/res/img/icons/logout.png" alt="login" itemprop="login" style="height: 22px; padding-right:0px; margin-left:3px;"> 485 </a> 486 </span> 487 488 <span class="hagsConnectMenu" id="hagsConnectMenu"> 489 @hagsConnectMenu 490 </span> 491 } 492 else 493 { 494 <span><strong>@Translate("Welcome", "Welcome") @GetGlobalValue("Global:Extranet.Name")</strong> <a href='/admin/Public/ExtranetLogOff.aspx?ID=@GetGlobalValue("Global:Page.ID")' class="dw-login hide" style="margin-right: 40px;"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/logout.png" alt="login" itemprop="login" style="height: 22px; padding-right:8px; margin-left:12px;">@Translate("SignOut", "Sign Out")</a></span> 495 } 496 } 497 else 498 { 499 if (Dynamicweb.Configuration.SystemConfiguration.Instance.GetBoolean("/Globalsettings/System/MyHags/SSOLoginActive")) 500 { 501 <a href="/Admin/Public/Social/ExternalLogin.aspx?action=login&amp;providerID=3" class="dw-login show"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/login.png" alt="login" itemprop="login" style="height: 22px; padding-right:8px;"> @Translate("MyHAGSlogin", "My HAGS login")</a> 502 <!--a href="#" onclick="return false;" data-toggle="modal" data-target="#login" class="dw-login show"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/login.png" alt="login" itemprop="login" style="height: 22px; padding-right:8px;" /> @Translate("MyHAGSlogin", "My HAGS login")</a--> 503 } 504 else 505 { 506 <a href="#" onclick="return false;" data-toggle="modal" data-target="#login" class="dw-login show"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/login.png" alt="login" itemprop="login" style="height: 22px; padding-right:8px;"> @Translate("MyHAGSlogin", "My HAGS login")</a> 507 } 508 } 509 <!--<a href="#" onclick="return false;" data-toggle="modal" data-target="#saveCollection" class="dw-login show">Save</a>--> 510 </div> 511 512 513 <div class="text-left product-collection-header"> 514 @{ 515 int collectionCount = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection.Count : 0; 516 string collnCount = string.Empty; 517 if (collectionCount > 0) 518 { 519 collnCount = collectionCount > 0 ? string.Format(@"<span class='collection-number'>{0}</span>", collectionCount) : string.Empty; 520 } 521 } 522 <p> 523 <a role="button" href="#productcollection" data-toggle="tab"> 524 <!--$$Translate("MyProductCollection", "My Product Collection")--> 525 <img src="/Files/Templates/Designs/HagsCore/res/img/icons/basket.png" alt="basket" itemprop="basket"> 526 </a> 527 </p> 528 <div id="product-collection-instructions-header"> 529 <div class="product-collection-instructions"> 530 <img src="/Files/Templates/Designs/HagsCore/res/img/buttons/basket.jpg"><h4>@Translate("MyProductCollection", "My Product Collection")?</h4> 531 <p>@Translate("product-collection-instructions-copy", "Simply click on ‘Add to my collection’ and the product will added to the basket located in the site header. Once you have added products to a collection you will be able to print out a product catalogue, download installation guides, images and DWG files or request a quote - all based on the products you’ve added.")</p> 532 </div> 533 </div> 534 <script type="text/javascript"> 535 $(".product-collection-header p a").on( 536 { 537 mouseenter: function () { 538 $("#product-collection-instructions-header").show(); 539 $("#product-collection-instructions").hide(); 540 }, 541 mouseleave: function () { 542 $("#product-collection-instructions-header").hide(); 543 $("#product-collection-instructions").show(); 544 } 545 } 546 ); 547 </script> 548 </div> 549 550 <div class="search-panel"> 551 <img class="search-icon" src="/Files/Templates/Designs/HagsCore/res/img/icons/search-icon.png" alt="search" itemprop="search" style="height: 40px; padding:4px; padding-top: 11px; padding-left: 6px; margin-top: 0px;"> 552 @if (!String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName"))) 553 { 554 <form class="form-inline activeLogin" id="search-box" name="searchBox" action="Default.aspx" method="get"> 555 <div class="form-group"> 556 <input type="hidden" name="ID" value='@GetString("DwAreaSearchPageID")'> 557 <input type="hidden" id="search-advanced-culture" value='@GetGlobalValue("Global:Area.LongLang")'> 558 <input type="hidden" id="search-advanced-resultsurl" value='@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetInteger("DwAreaSearchPageID"))'> 559 <input type="hidden" id="Searchtype" value=""> 560 <label for="InputSearch">@Translate("Search", "Search")</label> 561 <input type="search" name="q" class="form-control" id="InputSearch" maxlength="45" placeholder='@Translate("Search", "Search") HAGS' onkeyup="return forceLower(this);" autocomplete="off"> 562 <input type="hidden" id="search-advanced-pageAreaId" value='@masterArea.ID'> 563 <input type="hidden" id="search-advanced-pagelanguage" value='@masterArea.EcomLanguageId'> 564 <div> 565 <ul class="dropdown-menu search hide" style="left:47%; min-width:340px" role="menu"></ul> 566 </div> 567 </div> 568 </form> 569 } 570 else 571 { 572 <form class="form-inline" id="search-box" name="searchBox" action="Default.aspx" method="get"> 573 <div class="form-group"> 574 <input type="hidden" name="ID" value='@GetString("DwAreaSearchPageID")'> 575 <input type="hidden" id="search-advanced-culture" value='@GetGlobalValue("Global:Area.LongLang")'> 576 <input type="hidden" id="search-advanced-resultsurl" value='@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetInteger("DwAreaSearchPageID"))'> 577 <input type="hidden" id="Searchtype" value=""> 578 <label for="InputSearch">@Translate("Search", "Search")</label> 579 <input type="search" name="q" class="form-control" id="InputSearch" placeholder='@Translate("Search", "Search") HAGS' onkeyup="return forceLower(this);" autocomplete="off"> 580 <input type="hidden" id="search-advanced-pageAreaId" value='@masterArea.ID'> 581 <input type="hidden" id="search-advanced-pagelanguage" value='@masterArea.EcomLanguageId'> 582 <div> 583 <ul class="dropdown-menu search hide" style="left:47%; min-width:340px" role="menu"></ul> 584 </div> 585 </div> 586 </form> 587 } 588 </div> 589 </div> <!-- search-panel --> 590 </div> 591 592 </div> <!-- row --> 593 </div> <!-- container-fluid --> 594 </div> <!-- l-page --> 595 <!-- header-options-primary --> 596 597 <div class="m-header-options-mobile"> 598 <div class="l-page"> 599 <div class="container-fluid"> 600 <div class="row"> 601 602 <div class="m-header-options-mobile-col hide"> 603 604 @if (!String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName"))) 605 { 606 <span>@Translate("Welcome", "Welcome") @GetGlobalValue("Global:Extranet.Name") <a href='/admin/Public/ExtranetLogOff.aspx?ID=@GetGlobalValue("Global:Page.ID")' class="dw-login" style="margin-right:40px;">@Translate("SignOut", "Sign Out")</a></span> 607 } 608 else 609 { 610 <a href="" data-toggle="modal" data-target="#login" class="dw-login" style="margin-right:40px;">@Translate("MyHAGSlogin", "My HAGS login")</a> 611 } 612 613 </div> 614 615 <div class="m-header-options-mobile-col"> 616 <form> 617 <input type="text" class="form-control" id="mobileInputSearch" placeholder='@Translate("Search", "Search") HAGS'> 618 </form> 619 </div> 620 </div> <!-- row --> 621 </div> <!-- container-fluid --> 622 </div> <!-- l-page --> 623 </div> <!-- header-options-mobile --> 624 625 <div class="l-page"> 626 <div class="container-fluid"> 627 <div class="m-header-logo" itemscope="" itemtype="http://schema.org/Organization"> 628 <a href="Default.aspx?ID=@siteFirstPageId" itemprop="url"><img src="/Files/Templates/Designs/HagsCore/res/img/logos/hags.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/logos/hags.png" alt="Hags" itemprop="logo"></a> 629 </div> <!-- logo --> 630 <div class="m-menu-primary print-hide"> 631 <nav class="text-left text-uppercase"> 632 @GetValue("DwNavigation(navbar)") 633 </nav> <!-- text-center --> 634 </div> <!-- m-menu-primary --> 635 636 <div class="m-menu-mobile print-hide"> 637 <nav class="text-center text-uppercase"> 638 @GetValue("DwNavigation(mobileNavbar)") 639 </nav> <!-- text-center --> 640 </div> <!-- m-menu-primary --> 641 642 </div> <!-- container-fluid --> 643 </div> <!-- l-page --> 644 </header> 645 646 <main id="@themeTag"> 647 648 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 649 650 651 652 653 <div id="content">@GetValue("DwContent(content)")</div> 654 655 <div class="container"> 656 <div id="sidebar">@GetValue("DwContent(sidebar)")</div> 657 </div> 658 659 660 661 @if (GetLoop("Item.Area.Accreditation_Images").Count() > 0) 662 { 663 <div class="m-accreditations print-hide" name="Accreditations Carousel"> 664 665 <div class="l-page"> 666 667 <div class="container-fluid text-center"> 668 669 <ul> 670 671 <!-- Accreditation Carousel items --> 672 @foreach (var item in @GetLoop("Item.Area.Accreditation_Images")) 673 { 674 var imageUrl = item.GetString("Item.Area.Accreditation_Images.Image"); 675 var imageAlt = item.GetString("Item.Area.Accreditation_Images.Alternative_Text"); 676 string imageLink = item.GetString("Item.Area.Accreditation_Images.Link"); 677 var imageTitle = item.GetString("Item.Area.Accreditation_Images.Title"); 678 679 if (!string.IsNullOrWhiteSpace(imageLink)) 680 { 681 <li><a href="@imageLink"><img src="@imageUrl" alt="@imageAlt" class="img-responsive"></a></li> 682 } 683 else 684 { 685 <li><img src="@imageUrl" alt="@imageAlt" class="img-responsive"></li> 686 } 687 688 } 689 690 </ul> 691 692 </div> <!-- container-fluid --> 693 694 </div> <!-- l-page --> 695 696 </div> <!-- m-accreditations --> 697 698 } <!--End If any Accreditation Images--> 699 700 </main> 701 702 <footer> 703 <div class="m-theme-background-lightgrey"> 704 <div class="l-page"> 705 <div class="container-fluid"> 706 <div class="m-footer-updates"> 707 <div class="row"> 708 <div class="m-footer-col print-hide"> 709 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Company_Name.Value"))) 710 { 711 <div class="m-footer-address" itemscope="" itemtype="http://schema.org/PostalAddress"> 712 <h3>@Translate("ContactUs", "Contact Us")</h3> 713 <p class="m-footer-address"> 714 <span class="h-adr adr"> 715 <span class="fn p-org org">@GetString("Item.Area.Company_Name.Value")</span><br> 716 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Company_Address"))) 717 { 718 <span class="p-street-address street-address" itemprop="streetAddress">@GetString("Item.Area.Company_Address.Value")</span> 719 } 720 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Company_Address_2.Value"))) 721 { 722 <br><span class="p-street-address street-address" itemprop="streetAddress">@GetString("Item.Area.Company_Address_2.Value")</span> 723 } 724 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Town_City.Value"))) 725 { 726 <br> <span class="p-street-address street-address" itemprop="addressLocality">@GetString("Item.Area.Town_City.Value")</span> 727 } 728 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.County.Value"))) 729 { 730 <br><span class="p-street-address street-address" itemprop="addressRegion">@GetString("Item.Area.County.Value")</span> 731 } 732 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Postcode.Value"))) 733 { 734 <br><span class="p-street-address street-address" itemprop="postalCode">@GetString("Item.Area.Postcode.Value")</span> 735 } 736 </span> 737 </p> 738 <ul class="m-icon-links list-unstyled"> 739 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Contact_Email_Link"))) 740 { 741 string mailTo = "mailto:" + GetString("Item.Area.Contact_Email_Link"); 742 <li><a href="@mailTo" class="clearfix"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/contact/email.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/icons/contact/email.png" class="m-icon pull-left"><span itemprop="email">@GetString("Item.Area.Contact_Email")</span></a></li> 743 } 744 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telephone"))) 745 { 746 string telTo = "tel:" + GetString("Item.Area.Telephone"); 747 <li><a href="@telTo" class="clearfix"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/contact/telephone.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/icons/contact/telephone.png" class="m-icon pull-left"><span itemprop="telephone">@GetString("Item.Area.Telephone")</span></a></li> 748 } 749 </ul> 750 </div> 751 752 } 753 754 </div> 755 <div class="m-footer-col print-hide footer-menu"> 756 <h3>@Translate("CompanyInformation", "Company Information")</h3> 757 @GetValue("DwNavigation(navbarFooter)") 758 </div> 759 760 761 <div class="m-footer-col print-hide"> 762 @if (GetString("Item.Area.Form_Provider") == "sharpspring-provider") 763 { 764 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.Newsletter_Form_ID.Value"))) 765 { 766 <!-- SharpSpring Form Provider --> 767 <div class="sharpspring-provider"> 768 <h3>@Translate("JoinOurNewsletter", "Join our Newsletter")</h3> 769 @{ 770 string ss_src_newsletter = string.Format("https://{0}/client/form.js?ver=2.0.1", GetString("Item.Area.Contact_Form_Domain.Value")); 771 } 772 <!-- SharpSpring Form for Newsletter Form: Revised Formatting --> 773 <script type="text/javascript"> 774 var ss_form = {'account': '@GetString("Item.Area.Contact_Form_Account_ID.Value")', 'formID': '@GetString("Item.Area.Newsletter_Form_ID.Value")'}; 775 ss_form.width = '100%'; 776 ss_form.domain = '@GetString("Item.Area.Contact_Form_Domain.Value")'; 777 // ss_form.hidden = {'field_id': 'value'}; // Modify this for sending hidden variables, or overriding values 778 // ss_form.target_id = 'target'; // Optional parameter: forms will be placed inside the element with the specified id 779 // ss_form.polling = true; // Optional parameter: set to true ONLY if your page loads dynamically and the id needs to be polled continually. 780 </script> 781 <script type="text/javascript" src="@ss_src_newsletter"></script> 782 </div> 783 <!-- End of SharpSpring Form Provider --> 784 } 785 } 786 787 @if (GetString("Item.Area.Form_Provider") == "apsis-provider") 788 { 789 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.APSIS_Newsletter_Form_ID.Value"))) 790 { 791 <!-- APSIS Form Provider --> 792 <div class="apsis-provider"> 793 <h3>@Translate("JoinOurNewsletter", "Join our Newsletter")</h3> 794 @{ 795 string apsis_form = string.Format("afp-{0}", GetString("Item.Area.APSIS_Newsletter_Form_ID.Value")); 796 } 797 <script src="https://forms.apsisforms.com/formbuilder.js"></script> 798 <script> 799 (function() { 800 var form = new ApsisForms.FormbuilderInstance(); 801 form.init({ 802 formId: '@GetString("Item.Area.APSIS_Newsletter_Form_ID.Value")' 803 }); 804 })(); 805 </script> 806 <div class='@apsis_form'>&nbsp;</div> 807 </div> 808 <!-- End of APSIS Form Provider --> 809 } 810 } 811 @if (GetString("Item.Area.Form_Provider") == "dw-native-provider") 812 { 813 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.Constant_Contact_Newsletter_Form_ID.Value"))) 814 { 815 <div class="paragraph module"> 816 <div class="module"> 817 <div class="m-form-contact newsletter m-theme-background-lightgrey" id="contactForms"> 818 <div class="l-page"> 819 <div class="container-fluid"> 820 <div class="row"> 821 <div class="col-sm-12"> 822 <form method="post" action='@GetString("Item.Area.Constant_Contact_Newsletter_Thank_You_Page.Value")' enctype="multipart/form-data" class="" id="dw-form-45" onsubmit="s=function(e){e.elements['FormCH1_h'].value='65d5ae0afa6d1d42d62524f9724c0877';e.elements['_sys_to_email'].value='';e.setAttribute('action', '/Default.aspx?ID=19979&amp;PID=137976');return true};return s(this);"> 823 <input type="hidden" name="FormPID" value="137976"> 824 <input type="hidden" name="FormID" value="45"> 825 <input type="hidden" name="cmd" value="save"> 826 <input type="hidden" name="referer" value='@GetGlobalValue("Global:Area.LongLang")'> 827 <input type="hidden" name="_sys_to_email" value="mrsmith@dynamicweb.com" autocomplete="off"> 828 <input type="hidden" name="FormCH1_h" value="" autocomplete="off"> 829 <input type="hidden" name="FormCH1_f" value="0bb07dda4e060a3475bb4231f2ac93f2" autocomplete="off"> 830 <input type="hidden" name="FormCH1_s" value="f91c0d42a6edb9af05722a3f622f4295" autocomplete="off"> 831 <input type="hidden" name="FormCH1_i" value="3a190d1966f97696309b9461697e097b" autocomplete="off"> 832 <input type="hidden" name="65d5ae0afa6d1d42d62524f9724c0877ts" value="LgtXD89ST0GjItKnx8uC0uEbHAOOJnzJ" style="display:none!important" autocomplete="off"> 833 <input type="text" name="65d5ae0afa6d1d42d62524f9724c0877description" value="" style="display:none!important" autocomplete="off"> 834 <input type="text" name="65d5ae0afa6d1d42d62524f9724c0877email" value="mrssmith@dynamicweb.com" style="display:none!important" autocomplete="off"> 835 <div class="form-group col-sm-12"> 836 <h3>@Translate("JoinOurNewsletter", "Subscribe today!")</h3> 837 </div> 838 <div class="form-group col-sm-12"> 839 <label for="Email" class="control-label text-uppercase">@Translate("Email", "Email")*</label> 840 <input type="text" id="Email" name="Email" required="" class="form-control"> 841 </div> 842 <div class="form-group col-sm-12"> 843 <label for="Name" class="control-label text-uppercase">@Translate("FirstName", "Email")*</label> 844 <input type="text" id="Name" name="Name" required="" class="form-control"> 845 </div> 846 <div class="form-group col-sm-12"> 847 <label for="LastName" class="control-label text-uppercase">@Translate("LastName", "Email")*</label> 848 <input type="text" id="LastName" name="LastName" class="form-control"> 849 </div> 850 <div class="text-right col-sm-12"> 851 <button type="submit" class="m-btn-send btn btn-default text-uppercase" id="Sendenquiry" name="Sendenquiry" value="Test submit">@Translate("Send", "Send")</button> 852 </div> 853 </form> 854 855 <script type="text/javascript"> 856 var __ss_noform = __ss_noform || []; 857 __ss_noform.push(['baseURI', 'https://app-3QNUK2ISME.marketingautomation.services/webforms/receivePostback/MzawMLE0MzQ3BgA/']); 858 __ss_noform.push(['endpoint', '204303c3-d00d-448e-8b1b-392446974bfa']); 859 </script> 860 <script type="text/javascript" src="https://koi-3QNUK2ISME.marketingautomation.services/client/noform.js?ver=1.24"></script> 861 </div> 862 </div> 863 </div> 864 </div> 865 </div> 866 </div> 867 </div> 868 } 869 } 870 871 </div> 872 873 </div> <!-- row --> 874 </div> <!-- m-footer-updates --> 875 <div class="m-footer-links m-theme-border-grey"> 876 <div class="row"> 877 <div class="col-sm-8"> 878 <div class="m-footer-legals"> 879 880 @{ 881 int legalsLink = 0; 882 var legalsPage = HagsWeb.Library.Methods.Page.HagsPages.GetPageByNavigationTag("Legals", masterArea.ID); 883 if (legalsPage != null) 884 { 885 legalsLink = legalsPage.ID; 886 } 887 888 if (legalsLink > 0) 889 { 890 <ul class="list-inline"> 891 <li><a href="/Default.aspx?ID=@legalsLink">@Translate("PrivacyPolicy", "Privacy Policy")</a></li> 892 <li><a href="/Default.aspx?ID=@legalsLink">@Translate("CookieNotice", "Cookie Notice")</a></li> 893 <li><a href="/Default.aspx?ID=@legalsLink">@Translate("TermsConditions", "Terms & Conditions")</a></li> 894 </ul> 895 } 896 } 897 898 899 900 </div> <!-- m-footer-legals --> 901 </div> 902 <div class="col-sm-4 text-right"> 903 <div class="m-social m-social-large"> 904 <ul class="list-inline"> 905 <!-- Social Media items --> 906 @foreach (var item in @GetLoop("Item.Area.Social_Media")) 907 { 908 var linkUrl = item.GetValue("Item.Area.Social_Media.Social_Link"); 909 string linkIcon = "/Files/Templates/Designs/HagsCore/res/img/icons/social/" + item.GetString("Item.Area.Social_Media.Social_Icon") + ".png"; 910 <li><a href="@linkUrl" target="_blank"><img src="@linkIcon" class="m-icon m-theme-background-grey"></a></li> 911 } 912 </ul> 913 </div> <!-- m-social --> 914 </div> 915 </div> <!-- row --> 916 </div> <!-- m-footer-links --> 917 </div> <!-- container-fluid --> 918 </div> <!-- l-page --> 919 </div> 920 <div class="m-footer-country m-theme-background-grey"> 921 <div class="l-page"> 922 <div class="container-fluid"> 923 <div class="m-footer-country-form clearfix"> 924 @{ 925 if (websites.Count > 0) 926 { 927 <div class="btn-group"> 928 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> 929 @Translate("SelectYourWebsite", "Select your Website") <span class="caret"></span> 930 </button> 931 <ul class="dropdown-menu" role="menu" style="width: 180px;"> 932 @HagsPages.GetActiveAreas() 933 <li class="divider"></li> 934 <li> 935 <a href="https://www.hags.com/nl-be/"><img src="/Admin/Images/Flags/Small/flag_BE.png" alt="Belgium" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Belgium (Flemish)</a> 936 </li> 937 <li> 938 <a href="https://www.hags.com/fr-be/"><img src="/Admin/Images/Flags/Small/flag_BE.png" alt="Belgium" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Belgium (French)</a> 939 </li> 940 <li> 941 <a href="https://www.hags.com/hr/"><img src="/Admin/Images/Flags/Small/flag_HR.png" alt="Croatia" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Croatia</a> 942 </li> 943 <!--<li> 944 <a href="https://www.hags.com/cs/"><img src="/Admin/Images/Flags/Small/flag_CR.png" alt="Czech Republic" itemprop="country" style="height: 18px; margin-top: -2px;" />&nbsp;&nbsp;Czech Republic</a> 945 </li>--> 946 <li> 947 <a href="https://www.hags.com/et/"><img src="/Admin/Images/Flags/Small/flag_ET.png" alt="Estonia" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Estonia</a> 948 </li> 949 <li> 950 <a href="https://www.hags.com/fi/"><img src="/Admin/Images/Flags/Small/flag_FI.png" alt="Finland" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Finland</a> 951 </li> 952 <li> 953 <a href="https://www.hags.com/hu/"><img src="/Admin/Images/Flags/Small/flag_HU.png" alt="Hungary" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Hungary</a> 954 </li> 955 <li> 956 <a href="https://www.hags.com/it/"><img src="/Admin/Images/Flags/Small/flag_IT.png" alt="Italy" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Italy</a> 957 </li> 958 <li> 959 <a href="https://www.hags.com/ja/"><img src="/Admin/Images/Flags/Small/flag_JP.png" alt="Japan" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Japan</a> 960 </li> 961 <li> 962 <a href="https://www.hags.com/lv/"><img src="/Admin/Images/Flags/Small/flag_LV.png" alt="Latvia" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Latvia</a> 963 </li> 964 <!--<li> 965 <a href="https://www.hags.com/nl/"><img src="/Admin/Images/Flags/Small/flag_NL.png" alt="Netherlands" itemprop="country" style="height: 18px; margin-top: -2px;" />&nbsp;&nbsp;Netherlands</a> 966 </li>--> 967 <li> 968 <a href="https://www.hags.com/no/"><img src="/Admin/Images/Flags/Small/flag_NO.png" alt="Norway" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Norway</a> 969 </li> 970 <!--<li> 971 <a href="https://www.hags.com/pl/"><img src="/Admin/Images/Flags/Small/flag_PL.png" alt="Poland" itemprop="country" style="height: 18px; margin-top: -2px;" />&nbsp;&nbsp;Poland</a> 972 </li>--> 973 <li> 974 <a href="https://www.hags.com/sa/"><img src="/Admin/Images/Flags/Small/flag_SA.png" alt="Serbia" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Serbia</a> 975 </li> 976 <!--<li> 977 <a href="https://www.hags.com/sk/"><img src="/Admin/Images/Flags/Small/flag_SK.png" alt="Slovakia" itemprop="country" style="height: 18px; margin-top: -2px;" />&nbsp;&nbsp;Slovakia</a> 978 </li>--> 979 <li> 980 <a href="https://www.hags.com/ko/"><img src="/Admin/Images/Flags/Small/flag_KR.png" alt="South Korea" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;South Korea</a> 981 </li> 982 <!--<li> 983 <a href="https://www.hags.com/de-ch/"><img src="/Admin/Images/Flags/Small/flag_CH.png" alt="Switzerland (German)" itemprop="country" style="height: 18px; margin-top: -2px;" />&nbsp;&nbsp;Switzerland (German)</a> 984 </li>--> 985 <li> 986 <a href="https://www.hags.com/tr/"><img src="/Admin/Images/Flags/Small/flag_TR.png" alt="Turkey" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;Turkey</a> 987 </li> 988 <li class="divider"></li> 989 <li> 990 <a href='@worldwideContactsLink'><img src="/Admin/Images/Flags/Small/flag_world.png" alt="Worldwide contacts" itemprop="country" style="height: 18px; margin-top: -2px;">&nbsp;&nbsp;@Translate("WorldwideContacts", "Other Region...")</a> 991 </li> 992 </ul> 993 </div> 994 } 995 } 996 </div> <!-- m-footer-country-form --> 997 </div> <!-- container-fluid --> 998 </div> <!-- l-page --> 999 </div> <!-- m-footer-country --> 1000 1001 @if (masterArea.ID == 14) 1002 { 1003 <!-- LinkedIn Script for hags.nl --> 1004 <script type="text/javascript"> 1005 _linkedin_partner_id = "5929218"; 1006 window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || []; 1007 window._linkedin_data_partner_ids.push(_linkedin_partner_id); 1008 </script> 1009 <script type="text/javascript"> 1010 (function(l) { 1011 if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])}; 1012 window.lintrk.q=[]} 1013 var s = document.getElementsByTagName("script")[0]; 1014 var b = document.createElement("script"); 1015 b.type = "text/javascript";b.async = true; 1016 b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js"; 1017 s.parentNode.insertBefore(b, s);})(window.lintrk); 1018 </script> 1019 <noscript> 1020 <img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=5929218&fmt=gif"> 1021 </noscript> 1022 } 1023 1024 </footer> 1025 1026 @if (GetString("Item.Area.Form_Provider") == "sharpspring-provider") 1027 { 1028 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.Contact_Form_ID.Value"))) 1029 { 1030 <!-- SharpSpring Form Provider --> 1031 <div class="sharpspring-provider"> 1032 <div id="sharpspring-form-message" class="sharpspring-form-message"> 1033 <div id="sharpspring-form-message-container" class="sharpspring-form-message-container active hide-help hide-help-2"> 1034 <p class="close-form"><a id="hide-sharpspring" href="#">X</a></p> 1035 <a id="open-sharpspring" class="m-btn-more m-theme-border-white m-theme-color-white btn btn-default text-uppercase" href="/en-us/play" role="button">@GetString("Item.Area.Contact_Button_CTA.Value")</a> 1036 </div> 1037 </div> 1038 1039 <div id="sharpspring-form-popup" class="overlay sharpspring-form-popup"> 1040 <div class="sharpspring-form-popup-container"> 1041 <p class="close-form"><a href="#" id="close-sharpspring">X</a></p> 1042 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 pop-up-information"> 1043 @{ 1044 string image = string.Format("{0}", GetString("Item.Area.Contact_Image.Value")); 1045 } 1046 <h3>@GetString("Item.Area.Contact_Headline.Value")</h3> 1047 @GetString("Item.Area.Contact_Copy.Value") 1048 <img src="@image" class="pop-up-image img-responsive"> 1049 </div> 1050 1051 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 1052 @{ 1053 string ss_src = string.Format("https://{0}/client/form.js?ver=2.0.1", GetString("Item.Area.Contact_Form_Domain.Value")); 1054 } 1055 <!-- SharpSpring Form for Contact Form: Revised Formatting --> 1056 <script type="text/javascript"> 1057 var ss_form = {'account': '@GetString("Item.Area.Contact_Form_Account_ID.Value")', 'formID': '@GetString("Item.Area.Contact_Form_ID.Value")'}; 1058 ss_form.width = '100%'; 1059 ss_form.domain = '@GetString("Item.Area.Contact_Form_Domain.Value")'; 1060 // ss_form.hidden = {'field_id': 'value'}; // Modify this for sending hidden variables, or overriding values 1061 // ss_form.target_id = 'target'; // Optional parameter: forms will be placed inside the element with the specified id 1062 // ss_form.polling = true; // Optional parameter: set to true ONLY if your page loads dynamically and the id needs to be polled continually. 1063 </script> 1064 <script type="text/javascript" src="@ss_src"></script> 1065 </div> 1066 </div> 1067 </div> 1068 </div> 1069 <!-- End of SharpSpring Form Provider --> 1070 } 1071 } 1072 1073 @if (GetString("Item.Area.Form_Provider") == "apsis-provider") 1074 { 1075 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.APSIS_Contact_Form_ID.Value"))) 1076 { 1077 <!-- APSIS Form Provider --> 1078 <div class="sharpspring-provider"> 1079 <div id="sharpspring-form-message" class="sharpspring-form-message"> 1080 <div id="sharpspring-form-message-container" style="display: none;" class="sharpspring-form-message-container active hide-help hide-help-2"> 1081 <p class="close-form"><a id="" href="#">X</a></p> 1082 <a id="open-sharpspring" class="m-btn-more m-theme-border-white m-theme-color-white btn btn-default text-uppercase" href="/en-us/play" role="button">@GetString("Item.Area.APSIS_Contact_Button_CTA.Value")</a> 1083 </div> 1084 </div> 1085 1086 <div id="sharpspring-form-popup" class="overlay sharpspring-form-popup"> 1087 <div class="sharpspring-form-popup-container"> 1088 <p class="close-form"><a href="#" id="close-sharpspring">X</a></p> 1089 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 pop-up-information"> 1090 @{ 1091 string image = string.Format("{0}", GetString("Item.Area.Contact_Image.Value")); 1092 } 1093 <h3>@GetString("Item.Area.APSIS_Contact_Headline.Value")</h3> 1094 @GetString("Item.Area.APSIS_Contact_Copy.Value") 1095 <img src="@image" class="pop-up-image img-responsive"> 1096 </div> 1097 1098 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 1099 @{ 1100 string apsis_form = string.Format("afp-{0}", GetString("Item.Area.APSIS_Contact_Form_ID.Value")); 1101 } 1102 <script src="https://forms.apsisforms.com/formbuilder.js"></script> 1103 <script> 1104 (function() { 1105 var form = new ApsisForms.FormbuilderInstance(); 1106 form.init({ 1107 formId: '@GetString("Item.Area.APSIS_Contact_Form_ID.Value")' 1108 }); 1109 })(); 1110 </script> 1111 <div class='@apsis_form'>&nbsp;</div> 1112 </div> 1113 </div> 1114 </div> 1115 </div> 1116 <!-- End of APSIS Form Provider --> 1117 } 1118 } 1119 1120 @if (GetString("Item.Area.Form_Provider") == "dw-native-provider") 1121 { 1122 if (!String.IsNullOrWhiteSpace(GetString("Item.Area.Constant_Contact_Enquiry_Form_ID.Value"))) 1123 { 1124 <!-- Native Equiry Form --> 1125 <div class="sharpspring-provider"> 1126 <div id="sharpspring-form-message" class="sharpspring-form-message"> 1127 <div id="sharpspring-form-message-container" class="sharpspring-form-message-container active hide-help hide-help-2"> 1128 <p class="close-form"><a id="hide-sharpspring" href="#">X</a></p> 1129 <a id="open-sharpspring" class="m-btn-more m-theme-border-white m-theme-color-white btn btn-default text-uppercase" href="/en-us/play" role="button">@GetString("Item.Area.Native_Contact_Button_CTA.Value")</a> 1130 </div> 1131 </div> 1132 1133 <div id="sharpspring-form-popup" class="overlay sharpspring-form-popup"> 1134 <div class="sharpspring-form-popup-container m-form-contact support-enquiry"> 1135 <p class="close-form"><a href="#" id="close-sharpspring">X</a></p> 1136 <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 pop-up-information"> 1137 @{ 1138 string image = string.Format("{0}", GetString("Item.Area.Native_Contact_Image.Value")); 1139 } 1140 <h3>@GetString("Item.Area.Native_Contact_Headline.Value")</h3> 1141 @GetString("Item.Area.Native_Contact_Copy.Value") 1142 <img src="@image" class="pop-up-image img-responsive"> 1143 </div> 1144 1145 <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> 1146 <form method="post" action='@GetString("Item.Area.Constant_Contact_Enquiry_Thank_You_Page.Value")' enctype="multipart/form-data" class="" id="dw-form-46" onsubmit="s=function(e){e.elements['FormCH1_h'].value='65d5ae0afa6d1d42d62524f9724c0877';e.elements['_sys_to_email'].value='';e.setAttribute('action', '/Default.aspx?ID=19979&amp;PID=137976');return true};return s(this);"> 1147 <input type="hidden" name="FormPID" value="137976"> 1148 <input type="hidden" name="FormID" value="46"> 1149 <input type="hidden" name="cmd" value="save"> 1150 <input type="hidden" name="referer" value='@GetGlobalValue("Global:Area.LongLang")'> 1151 <input type="hidden" name="_sys_to_email" value="mrsmith@dynamicweb.com" autocomplete="off"> 1152 <input type="hidden" name="FormCH1_h" value="" autocomplete="off"> 1153 <input type="hidden" name="FormCH1_f" value="de44e9916965b009f6c3a0dba020a573" autocomplete="off"> 1154 <input type="hidden" name="FormCH1_s" value="f91c0d42a6edb9af05722a3f622f4295" autocomplete="off"> 1155 <input type="hidden" name="FormCH1_i" value="3a190d1966f97696309b9461697e097b" autocomplete="off"> 1156 <input type="hidden" name="65d5ae0afa6d1d42d62524f9724c0877ts" value="LgtXD89ST0G2t8uWiTrGyg9NXDzg2Y6Y" style="display:none!important" autocomplete="off"> 1157 <input type="text" name="65d5ae0afa6d1d42d62524f9724c0877description" value="" style="display:none!important" autocomplete="off"> 1158 <input type="text" name="65d5ae0afa6d1d42d62524f9724c0877email" value="mrssmith@dynamicweb.com" style="display:none!important" autocomplete="off"> 1159 <div class="form-group col-sm-12"> 1160 <label for="Name" class="control-label text-uppercase">@Translate("FirstName", "First Name")*</label> 1161 <input type="text" id="Name" name="Name" required="" class="form-control"> 1162 </div> 1163 <div class="form-group col-sm-12"> 1164 <label for="LastName" class="control-label text-uppercase">@Translate("LastName", "Last Name")*</label> 1165 <input type="text" id="LastName" name="LastName" class="form-control"> 1166 </div> 1167 <div class="form-group col-sm-12"> 1168 <label for="Email" class="control-label text-uppercase">@Translate("Email", "Email")*</label> 1169 <input type="text" id="Email" name="Email" required="" class="form-control"> 1170 </div> 1171 <div class="form-group col-sm-12"> 1172 <label for="CompanyName" class="control-label text-uppercase">@Translate("CompanyName", "Company Name")*</label> 1173 <input type="text" id="Company" name="Company" required="" class="form-control"> 1174 </div> 1175 <div class="form-group col-sm-12"> 1176 <label for="Telephone" class="control-label text-uppercase">@Translate("Telephone", "Telephone Number")*</label> 1177 <input type="text" id="Telephone" name="Telephone" required="" class="form-control"> 1178 </div> 1179 <div class="form-group col-sm-12"> 1180 <label for="City" class="control-label text-uppercase">@Translate("City", "City")*</label> 1181 <input type="text" id="City" name="City" required="" class="form-control"> 1182 </div> 1183 <div class="form-group col-sm-12"> 1184 <label for="SupportRequest" class="control-label text-uppercase">@Translate("SupportRequest", "Support Request")*</label> 1185 <select id="SupportRequest" name="SupportRequest" required="" class="form-control"> 1186 <option value="" selected="">@Translate("Select", "Select")...</option> 1187 <option value="Contact Seller">@Translate("ContactSeller", "Contact Seller")</option> 1188 <option value="Spare Parts">@Translate("SpareParts", "Spare Parts")</option> 1189 <option value="Installation">@Translate("Installation", "Installation")</option> 1190 <option value="Other">@Translate("Other", "Other")</option> 1191 </select> 1192 </div> 1193 <div class="form-group col-sm-12"> 1194 <label for="Message" class="control-label text-uppercase">@Translate("HowCanWeHelp", "How can we help you?")</label> 1195 <textarea rows="6" id="Message" name="Message" class="form-control"></textarea> 1196 </div> 1197 <div class="form-group col-sm-12"> 1198 <label for="AddImage" class="control-label text-uppercase">@Translate("AddImage", "Add image")</label> 1199 <input type="file" id="AddImage" name="AddImage" multiple=""> 1200 </div> 1201 <div class="form-group col-sm-12" style="padding-top: 16px;padding-bottom: 16px;"> 1202 <input type="checkbox" id="PleaseticktosubscribetomarketingcommunicationsfromHAGS302" name="PleaseticktosubscribetomarketingcommunicationsfromHAGS" value="Yes" style="float:left;"> 1203 <label class="control-label" style="font-family: arial,sans-serif!important;font-weight:normal!important;width:95%;display:block;float:right;">I would like to receive marketing communications from HAGS..</label> 1204 </div> 1205 <div class="text-right col-sm-12"> 1206 <button type="submit" class="m-btn-send btn btn-default text-uppercase" id="Sendenquiry" name="Sendenquiry" value="Submit">@Translate("submit", "submit")</button> 1207 </div> 1208 </form> 1209 1210 <script type="text/javascript"> 1211 var __ss_noform = __ss_noform || []; 1212 __ss_noform.push(['baseURI', 'https://app-3QNUK2ISME.marketingautomation.services/webforms/receivePostback/MzawMLE0MzQ3BgA/']); 1213 __ss_noform.push(['endpoint', 'c7dd2bf4-b049-4fe1-be24-13f799c641b5']); 1214 </script> 1215 <script type="text/javascript" src="https://koi-3QNUK2ISME.marketingautomation.services/client/noform.js?ver=1.24"></script> 1216 </div> 1217 </div> 1218 </div> 1219 </div> 1220 <!-- End of Native Equiry Form --> 1221 1222 } 1223 } 1224 1225 @Scripts.Render("~/bundle/scriptLibraries") 1226 @Scripts.Render("~/bundle/scriptFunctions") 1227 1228 @*<script id="GoogleMapsScript" src="http://maps.google.com/maps/api/js?key=AIzaSyAaJWgQPVPvHs7PimeWS98O2QxURRsGAHk&callback=initMap"></script>*@ 1229 1230 @*add modals here, login, basket*@ 1231 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 1232 @using System.Collections.Generic 1233 @using HagsWeb.Library.BusinessObjects.UsersLists 1234 1235 @{ 1236 int currentAreaID = int.TryParse(GetGlobalValue("Global:Area.ID"), out currentAreaID) ? currentAreaID : 0; 1237 var currentArea = new Dynamicweb.Content.AreaService().GetArea(currentAreaID); 1238 1239 //List<ProductCollectionItem> productCollectionItems = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection : new List<ProductCollectionItem>(); 1240 1241 } 1242 1243 <!--/HagsCore/Master/Includes/Catalogue.cshtml--> 1244 1245 @*<h1>New Catalogue at the bottom of the page the bootstrap modal background/backdrop misbehaves in some browsers covering the modal completly so turn it off data-background="false"</h1>*@ 1246 <div id="CreateCatalog" class="modal fade in" data-background="false" tabindex="-1" role="dialog" aria-labelledby="CreateCatalogModalLabel" aria-hidden="true"> 1247 <div class="modal-backdrop fade in" data-backdrop="static" style="z-index:180;"></div> 1248 <div class="modal-dialog" style="width: 1330px;"> 1249 <div class="m-form-contact-modal modal-content"> 1250 <div class="modal-header"> 1251 <button type="button" class="close blue-close icon-remove" data-dismiss="modal"></button> 1252 <button type="button" class="close" data-dismiss="modal"> 1253 <span aria-hidden="true">x</span> 1254 <span class="sr-only">Close</span> 1255 </button> 1256 <h4 class="modal-title" id="CreateCatalogModalLabel"> 1257 @Translate("CreateYourCatalog", "Create Your Catalogue") 1258 </h4> 1259 </div> 1260 <div class="row2"> 1261 @*<div class="container-fluid"> 1262 <nav class="text-center"> 1263 <ul class="m-nav-tabs-search nav nav-tabs text-uppercase"> 1264 <li id="tabCatProductList" class="active"><a href="#cat-productlist" data-toggle="tab">Product List</a></li> 1265 <li id="tabCustomCatalogue"><a href="#cat-custom" data-toggle="tab">Catalogue</a></li> 1266 </ul> 1267 </nav> 1268 </div>*@ <!-- container-fluid --> 1269 </div> 1270 1271 <div id="div_CreateCatalog"> 1272 <div class="row2"> 1273 <div id="" class="tab-content"> 1274 @*<div id="cat-custom" class="tab-pane fade in active">*@ 1275 <div id="cat-custom"> 1276 <div> 1277 <div class="container-fluid"> 1278 <div class="col-ms-12 col-sm-12" style="margin-top: 20px;"> 1279 <div class="col-ms-6 col-sm-4"> 1280 1281 <form id="frm_CreateCatalog" class="form-horizontal" style="display: block"> 1282 <input type="hidden" name="areaId" value="@currentArea.ID"> 1283 <input type="hidden" name="languageId" value="@currentArea.EcomLanguageId"> 1284 <input type="hidden" value='#CreateCatalog' name='catType'> 1285 <fieldset class="m-theme-border-grey col-ms-12 col-sm-12"> 1286 <div class="row"> 1287 @*<div class="col-ms-12 col-sm-12"> 1288 <div class="form-group"> 1289 <label for="catName" class="col-sm-5 control-label">@Translate("CatalogueName", "Catalogue Name"):</label> 1290 <div class="col-sm-7"><input type="text" class="form-control search-group" value="Kevs Catalogue 2022" name="catName" placeholder="@Translate(" cataloguename",="" "catalogue="" name")"=""></div> 1291 </div> 1292 </div>*@ 1293 <div class="col-ms-12 col-sm-12"> 1294 <div class="form-group"> 1295 <label for="catHagsCatalogName" class="col-sm-5 control-label">@Translate("HagsCatalogName", "Hags Catalog Name"):</label> 1296 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catHagsCatalogName' placeholder='@Translate("HagsCatalogName", "Hags Catalog Name")'></div> 1297 </div> 1298 </div> 1299 <div class="col-ms-12 col-sm-12"> 1300 <div class="form-group"> 1301 <label for="catHagsContactName" class="col-sm-5 control-label">@Translate("HagsContactName", "Hags Contact Name"):</label> 1302 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catHagsContactName' placeholder='@Translate("HagsContactName", "Hags Contact Name")'></div> 1303 </div> 1304 </div> 1305 <div class="col-ms-12 col-sm-12"> 1306 <div class="form-group"> 1307 <label for="catHagsContactPhone" class="col-sm-5 control-label">@Translate("HagsPhoneNumber", "Hags Phone Number"):</label> 1308 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catHagsContactPhone' placeholder='@Translate("HagsPhoneNumber", "Hags Phone Number")'></div> 1309 </div> 1310 </div> 1311 <div class="col-ms-12 col-sm-12"> 1312 <div class="form-group"> 1313 <label for="catHagsContactEmail" class="col-sm-5 control-label">@Translate("HagsContactEmail", "Hags Contact Email"):</label> 1314 <div class="col-sm-7"><input type="email" class="form-control search-group" value='' name='catHagsContactEmail' placeholder='@Translate("HagsContactEmail", "Hags Contact Email")'></div> 1315 </div> 1316 </div> 1317 <div class="col-ms-12 col-sm-12"> 1318 <div class="form-group"> 1319 <label for="catCompanyName" class="col-sm-5 control-label">@Translate("CompanyName", "Company Name"):</label> 1320 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catCompanyName' placeholder='@Translate("CompanyName", "Company Name")'></div> 1321 </div> 1322 </div> 1323 <div class="col-ms-12 col-sm-12"> 1324 <div class="form-group"> 1325 <label for="catAddress" class="col-sm-5 control-label">@Translate("CompanyAddress", "Company Address"):</label> 1326 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddress' placeholder='@Translate("CompanyAddress", "Company Address")'></div> 1327 </div> 1328 </div> 1329 <div class="col-ms-12 col-sm-12"> 1330 <div class="form-group"> 1331 <label for="catAddress2" class="col-sm-5 control-label">&nbsp;</label> 1332 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddress2' placeholder='@Translate("CompanyAddress", "Company Address")'></div> 1333 </div> 1334 </div> 1335 <div class="col-ms-12 col-sm-12"> 1336 <div class="form-group"> 1337 <label for="catAddrTown" class="col-sm-5 control-label">@Translate("CompanyTown", "Company Town"):</label> 1338 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddrTown' placeholder='@Translate("CompanyTown", "Company Town")'></div> 1339 </div> 1340 </div> 1341 <div class="col-ms-12 col-sm-12"> 1342 <div class="form-group"> 1343 <label for="catAddrPostCode" class="col-sm-5 control-label">@Translate("CompanyPostCode", "Company Postal Code"):</label> 1344 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddrPostCode' placeholder='@Translate("CompanyPostCode", "Company Postal Code")'></div> 1345 </div> 1346 </div> 1347 <div class="col-ms-12 col-sm-12"> 1348 <div class="form-group"> 1349 <label for="catAddrCountry" class="col-sm-5 control-label">@Translate("CompanyCountry", "Company Country"):</label> 1350 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddrCountry' placeholder='@Translate("CompanyCountry", "Company Country")'></div> 1351 </div> 1352 </div> 1353 <div class="col-ms-12 col-sm-12"> 1354 <div class="m-search-advanced-buttons text-right"> 1355 @{string printShout = Translate("SaveOrPrint", "Save or Print your Product PDF ");} 1356 <button class="m-btn-search btn btn-default text-uppercase" name="updatecatalogue" type="button" data-shout="@printShout" role="button">@Translate("UpdateCatalogue", "Update Catalogue")</button> 1357 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="emailcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button> 1358 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="refreshemail" type="button" role="button">@Translate("Refresh", "Refresh")</button> 1359 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" data-dismiss="modal" type="button" role="button">@Translate("Cancel", "Cancel")</button> 1360 </div> 1361 </div> 1362 </div><!-- row --> 1363 </fieldset> 1364 </form><!--form - horizontal--> 1365 @*Switch Form here*@ 1366 1367 <form id="frm_CatalogEmailSettings" role="form" class="form-horizontal" style="display:none"> 1368 <input type="hidden" name="pdfFileName" value=""> 1369 <input type="hidden" name="areaId" value="@currentAreaID"> 1370 <fieldset class="m-theme-border-grey col-ms-12 col-sm-12"> 1371 <div class="row"> 1372 <div class="col-ms-12 col-sm-12"> 1373 <div class="form-group"> 1374 <label for="emailFrom" class="col-sm-4 control-label">@Translate("EmailFrom", "Email from"):</label> 1375 <div class="col-sm-8"><input type="email" class="form-control search-group" name="emailFrom" required="" placeholder='@Translate("EmailFrom", "Email from")' value=""></div> 1376 </div> 1377 </div> 1378 <div class="col-ms-12 col-sm-12"> 1379 <div class="form-group"> 1380 <label for="emailTo" class="col-sm-4 control-label">@Translate("EmailTo", "Email to"):</label> 1381 <div class="col-sm-8"><input type="email" class="form-control search-group" name="emailTo" required="" placeholder='@Translate("EmailTo", "Email to")' value=""></div> 1382 </div> 1383 </div> 1384 <div class="col-ms-12 col-sm-12"> 1385 <div class="form-group"> 1386 <label for="emailSubject" class="col-sm-4 control-label">@Translate("EmailSubject", "Subject"):</label> 1387 <div class="col-sm-8"><input type="text" class="form-control search-group" name="emailSubject" placeholder='@Translate("EmailSubject", "Subject")' value=""></div> 1388 </div> 1389 </div> 1390 <div class="col-ms-12 col-sm-12"> 1391 <div class="form-group"> 1392 <label for="emailMessage" class="col-sm-4 control-label">@Translate("Message", "Message"):</label> 1393 <div class="col-sm-8"><textarea class="form-control" name="emailMessage" cols="45" rows="7" value="" placeholder='@Translate("MyMessage", "My Message")'></textarea></div> 1394 </div> 1395 </div> 1396 </div> 1397 </fieldset> 1398 1399 <div name="emailProgressContent" style="display:none;"> 1400 <span id="CreateCatalogueEmailLabel" style="display: block; text-align: center; margin: auto;">@Translate("SendingYourEmail", "Sending your Email")</span> 1401 <img src="/Files/Templates/Designs/HagsCore/res/img/loader/ajax-loader.gif" style="margin: auto; display: block;"> 1402 </div> 1403 1404 <div name="emailProgress" style="display: none;"> 1405 </div> <!--container - fluid--> 1406 1407 <div> 1408 1409 <div class="m-search-advanced-buttons text-right" name="preSendEmail" style="display: block;"> 1410 1411 <button class="m-btn-search btn btn-default text-uppercase" name="emailcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button> 1412 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="refreshemail" type="button" role="button">@Translate("Refresh", "Refresh")</button> 1413 <button class="m-btn-search btn btn-default text-uppercase" name="cancelemail" type="button" role="button">@Translate("Cancel", "Cancel")</button> 1414 1415 </div> 1416 1417 1418 <div class="m-search-advanced-buttons text-center" name="downloadResend" style="display: none;"> 1419 1420 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="resendcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button> 1421 <button class="m-btn-sm-more btn btn-default text-uppercase" style="margin: 2px;" name="refreshemail" type="button" role="button">@Translate("ClearFormSendAgain", "Clear form and send again")</button><br> 1422 <a href="" class="m-btn-sm-more btn btn-default text-uppercase" name="pdfDownloadLink" download="">@Translate("DownloadCatalogue", "Download Catalogue")</a> 1423 <button class="m-btn-sm-more btn btn-default text-uppercase" style="margin: 2px;" data-dismiss="modal" type="button">@Translate("CloseWindow", "Close Window")</button> 1424 1425 </div> 1426 1427 </div> 1428 1429 </form> 1430 <script> 1431 $("#frm_CatalogEmailSettings").validate(); 1432 </script> 1433 1434 </div> 1435 <div class="col-ms-6 col-sm-8"> 1436 <div class="row2"> 1437 <div id="loader" style="display:none;text-align:center"> 1438 <span id="CreateCataloguePdfLabel" style="display: inline-block;margin: 10px 10px 0 0;padding: 5px 10px"></span> 1439 <img src="/Files/Templates/Designs/HagsCore/res/img/loader/ajax-loader.gif" style="margin:auto;display:block;"> 1440 </div> 1441 1442 <div id="pdfViewer" style="width: 834px;"> 1443 @*<object id="pdfObjectViewer" style="display: none;" data="" type="application/pdf" width="100%" height="600"></object> 1444 <embed id="pdfViewer" style="display: none;" src="" type="application/pdf"> 1445 <iframe src="" id="pdfIframeViewer" width="100%" height="600" type="application/pdf" style="display:none;"></iframe>*@ 1446 </div> 1447 </div> 1448 </div> 1449 </div> 1450 </div> <!--container - fluid--> 1451 </div> 1452 </div> 1453 </div> 1454 </div> 1455 1456 <div id="adviceMessage"></div> 1457 1458 </div> 1459 1460 <div class="modal-footer" id="createcatalog-footer"> 1461 1462 <div class="m-search-advanced-buttons text-center"> 1463 1464 <button class="m-btn-search btn btn-default text-uppercase" name="createemail" type="button" role="button">@Translate("EmailCatalogue", "Email Catalogue")</button> 1465 <a href="" class="m-btn-search btn btn-default text-uppercase disabled" id="pdfPrintCatalogue" target="_blank" type="button">@Translate("Print", "Print")</a> 1466 <a href="" class="m-btn-search btn btn-default text-uppercase disabled" id="pdfDownloadCatalogue" download="" type="button">@Translate("Download", "Download")</a> 1467 <button class="m-btn-search btn btn-default text-uppercase" data-dismiss="modal" type="button">@Translate("Cancel", "Cancel")</button> 1468 1469 </div> 1470 1471 </div> 1472 1473 </div> 1474 </div> 1475 1476 </div> 1477 1478 1479 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 1480 @using System.Collections.Generic 1481 @using HagsWeb.Library.BusinessObjects.UsersLists 1482 1483 @{ 1484 int mCurrentAreaID = int.TryParse(GetGlobalValue("Global:Area.ID"), out mCurrentAreaID) ? mCurrentAreaID : 0; 1485 var mCurrentArea = new Dynamicweb.Content.AreaService().GetArea(mCurrentAreaID); 1486 1487 //List<ProductCollectionItem> productCollectionItems = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection : new List<ProductCollectionItem>(); 1488 1489 } 1490 1491 <!--/HagsCore/Master/Includes/MoodBoard.cshtml--> 1492 <div id="CreateMoodboard" class="modal fade in" data-background="false" tabindex="-1" role="dialog" aria-labelledby="CreateMoodboardModalLabel" aria-hidden="true"> 1493 <div class="modal-backdrop fade in" data-backdrop="static" style="z-index:180;"></div> 1494 <div class="modal-dialog" style="width: 1330px;"> 1495 <div class="m-form-contact-modal modal-content"> 1496 <div class="modal-header"> 1497 <button type="button" class="close blue-close icon-remove" data-dismiss="modal"></button> 1498 <button type="button" class="close" data-dismiss="modal"> 1499 <span aria-hidden="true">x</span> 1500 <span class="sr-only">Close</span> 1501 </button> 1502 <h4 class="modal-title" id="CreateMoodboardModalLabel"> 1503 @Translate("CreateYourMoodboard", "Create Your Mood Board") 1504 </h4> 1505 </div> 1506 1507 <div id="div_CreateMoodboard"> 1508 <div class="row2"> 1509 <div id="" class="tab-content"> 1510 @*<div id="cat-custom" class="tab-pane fade in active">*@ 1511 <div id="cat-custom"> 1512 <div> 1513 <div class="container-fluid"> 1514 <div class="col-ms-12 col-sm-12" style="margin-top: 20px;"> 1515 <div class="col-ms-6 col-sm-4"> 1516 1517 <form id="frm_CreateMoodboard" class="form-horizontal" style="display: block"> 1518 <input type="hidden" name="areaId" value="@mCurrentArea.ID"> 1519 <input type="hidden" name="languageId" value="@mCurrentArea.EcomLanguageId"> 1520 <input type="hidden" name="UserId" value='@GetGlobalValue("Global:Extranet.UserID")'> 1521 <input type="hidden" value='#CreateMoodboard' name='catType'> 1522 <fieldset class="m-theme-border-grey col-ms-12 col-sm-12"> 1523 <div class="row"> 1524 1525 <div class="col-ms-12 col-sm-12"> 1526 <div class="form-group"> 1527 <label for="catHagsCatalogName" class="col-sm-5 control-label">@Translate("MoodboardName", "Mood Board Name"):</label> 1528 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catHagsCatalogName' placeholder='@Translate("MoodboardName", "Mood Board Name")'></div> 1529 </div> 1530 </div> 1531 @*<div class="col-ms-12 col-sm-12"> 1532 <div class="form-group"> 1533 <label for="catHagsContactName" class="col-sm-5 control-label">@Translate("HagsContactName", "Hags Contact Name"):</label> 1534 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catHagsContactName' placeholder='@Translate("HagsContactName", "Hags Contact Name")'></div> 1535 </div> 1536 </div>*@ 1537 @*<div class="col-ms-12 col-sm-12"> 1538 <div class="form-group"> 1539 <label for="catHagsContactPhone" class="col-sm-5 control-label">@Translate("HagsPhoneNumber", "Hags Phone Number"):</label> 1540 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catHagsContactPhone' placeholder='@Translate("HagsPhoneNumber", "Hags Phone Number")'></div> 1541 </div> 1542 </div>*@ 1543 @*<div class="col-ms-12 col-sm-12"> 1544 <div class="form-group"> 1545 <label for="catHagsContactEmail" class="col-sm-5 control-label">@Translate("HagsContactEmail", "Hags Contact Email"):</label> 1546 <div class="col-sm-7"><input type="email" class="form-control search-group" value='' name='catHagsContactEmail' placeholder='@Translate("HagsContactEmail", "Hags Contact Email")'></div> 1547 </div> 1548 </div>*@ 1549 <div class="col-ms-12 col-sm-12"> 1550 <div class="form-group"> 1551 <label for="catCompanyName" class="col-sm-5 control-label">@Translate("CompanyName", "Company Name"):</label> 1552 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catCompanyName' placeholder='@Translate("CompanyName", "Company Name")'></div> 1553 </div> 1554 </div> 1555 <div class="col-ms-12 col-sm-12"> 1556 <div class="form-group"> 1557 <label for="catAddress" class="col-sm-5 control-label">@Translate("CompanyAddress", "Company Address"):</label> 1558 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddress' placeholder='@Translate("CompanyAddress", "Company Address")'></div> 1559 </div> 1560 </div> 1561 @*<div class="col-ms-12 col-sm-12"> 1562 <div class="form-group"> 1563 <label for="catAddress2" class="col-sm-5 control-label">&nbsp;</label> 1564 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddress2' placeholder='@Translate("CompanyAddress", "Company Address")'></div> 1565 </div> 1566 </div>*@ 1567 <div class="col-ms-12 col-sm-12"> 1568 <div class="form-group"> 1569 <label for="catAddrTown" class="col-sm-5 control-label">@Translate("CompanyTown", "Company Town"):</label> 1570 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddrTown' placeholder='@Translate("CompanyTown", "Company Town")'></div> 1571 </div> 1572 </div> 1573 <div class="col-ms-12 col-sm-12"> 1574 <div class="form-group"> 1575 <label for="catAddrPostCode" class="col-sm-5 control-label">@Translate("CompanyPostCode", "Company Postal Code"):</label> 1576 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddrPostCode' placeholder='@Translate("CompanyPostCode", "Company Postal Code")'></div> 1577 </div> 1578 </div> 1579 @*<div class="col-ms-12 col-sm-12"> 1580 <div class="form-group"> 1581 <label for="catAddrCountry" class="col-sm-5 control-label">@Translate("CompanyCountry", "Company Country"):</label> 1582 <div class="col-sm-7"><input type="text" class="form-control search-group" value='' name='catAddrCountry' placeholder='@Translate("CompanyCountry", "Company Country")'></div> 1583 </div> 1584 </div>*@ 1585 1586 @*https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file http://jsfiddle.net/Curt/u4NuH/*@ 1587 <div class="col-ms-12 col-sm-12"> 1588 <div class="form-group"> 1589 1590 @*<input type="file" class="upload" id="f_UploadImage"><br> 1591 <img id="myUploadedImg" alt="Photo" style="width:180px;">*@ 1592 1593 <label for="catImageUpload" class="col-sm-5 control-label">@Translate("UploadYourImage", "Upload your Image"):</label> 1594 <div class="col-sm-7"> 1595 <input type="file" accept=".png, .jpg, .jpeg, .gif" class="form-control search-group" name="catImageUpload"> 1596 </div> 1597 <img id="UploadedImg" alt="Uploaded Image" style="width:180px; display:none;"> 1598 <input type="hidden" value='' name='catImage'> 1599 1600 </div> 1601 </div> 1602 <div class="col-ms-12 col-sm-12"> 1603 <div class="m-search-advanced-buttons text-right"> 1604 @{string mPrintShout = Translate("SaveOrPrint", "Save or Print your Product PDF ");} 1605 <button class="m-btn-search btn btn-default text-uppercase" name="updatecatalogue" type="button" data-shout="@mPrintShout" role="button">@Translate("UpdateMoodboard", "Update Moodboard")</button> 1606 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="emailcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button> 1607 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="refreshemail" type="button" role="button">@Translate("Refresh", "Refresh")</button> 1608 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" data-dismiss="modal" type="button" role="button">@Translate("Cancel", "Cancel")</button> 1609 </div> 1610 </div> 1611 </div><!-- row --> 1612 </fieldset> 1613 </form><!--form - horizontal--> 1614 @*Switch Form here*@ 1615 1616 <form id="frm_MoodboardEmailSettings" role="form" class="form-horizontal" style="display:none"> 1617 <input type="hidden" name="pdfFileName" value=""> 1618 <input type="hidden" name="areaId" value="@mCurrentArea.ID"> 1619 <fieldset class="m-theme-border-grey col-ms-12 col-sm-12"> 1620 <div class="row"> 1621 <div class="col-ms-12 col-sm-12"> 1622 <div class="form-group"> 1623 <label for="emailFrom" class="col-sm-4 control-label">@Translate("EmailFrom", "Email from"):</label> 1624 <div class="col-sm-8"><input type="email" class="form-control search-group" name="emailFrom" required="" placeholder='@Translate("EmailFrom", "Email from")' value=""></div> 1625 </div> 1626 </div> 1627 <div class="col-ms-12 col-sm-12"> 1628 <div class="form-group"> 1629 <label for="emailTo" class="col-sm-4 control-label">@Translate("EmailTo", "Email to"):</label> 1630 <div class="col-sm-8"><input type="email" class="form-control search-group" name="emailTo" required="" placeholder='@Translate("EmailTo", "Email to")' value=""></div> 1631 </div> 1632 </div> 1633 <div class="col-ms-12 col-sm-12"> 1634 <div class="form-group"> 1635 <label for="emailSubject" class="col-sm-4 control-label">@Translate("EmailSubject", "Subject"):</label> 1636 <div class="col-sm-8"><input type="text" class="form-control search-group" name="emailSubject" placeholder='@Translate("EmailSubject", "Subject")' value=""></div> 1637 </div> 1638 </div> 1639 <div class="col-ms-12 col-sm-12"> 1640 <div class="form-group"> 1641 <label for="emailMessage" class="col-sm-4 control-label">@Translate("Message", "Message"):</label> 1642 <div class="col-sm-8"><textarea class="form-control" name="emailMessage" cols="45" rows="7" value="" placeholder='@Translate("MyMessage", "My Message")'></textarea></div> 1643 </div> 1644 </div> 1645 </div> 1646 </fieldset> 1647 1648 <div name="emailProgressContent" style="display:none;"> 1649 <span id="CreateMoodboardEmailLabel" style="display: block; text-align: center; margin: auto;">@Translate("SendingYourEmail", "Sending your Email")</span> 1650 <img src="/Files/Templates/Designs/HagsCore/res/img/loader/ajax-loader.gif" style="margin: auto; display: block;"> 1651 </div> 1652 1653 <div name="emailProgress" style="display: none;"> 1654 </div> <!--container - fluid--> 1655 1656 <div> 1657 1658 <div class="m-search-advanced-buttons text-right" name="preSendEmail" style="display: block;"> 1659 1660 <button class="m-btn-search btn btn-default text-uppercase" name="emailcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button> 1661 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="refreshemail" type="button" role="button">@Translate("Refresh", "Refresh")</button> 1662 <button class="m-btn-search btn btn-default text-uppercase" name="cancelemail" type="button" role="button">@Translate("Cancel", "Cancel")</button> 1663 1664 </div> 1665 1666 1667 <div class="m-search-advanced-buttons text-center" name="downloadResend" style="display: none;"> 1668 1669 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="resendcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button> 1670 <button class="m-btn-sm-more btn btn-default text-uppercase" style="margin: 2px;" name="refreshemail" type="button" role="button">@Translate("ClearFormSendAgain", "Clear form and send again")</button><br> 1671 <a href="" class="m-btn-sm-more btn btn-default text-uppercase" name="pdfDownloadLink" download="">@Translate("DownloadCatalogue", "Download Catalogue")</a> 1672 <button class="m-btn-sm-more btn btn-default text-uppercase" style="margin: 2px;" data-dismiss="modal" type="button" role="button">@Translate("CloseWindow", "Close Window")</button> 1673 1674 </div> 1675 1676 </div> 1677 1678 </form> 1679 <script> 1680 $("#frm_MoodboardEmailSettings").validate(); 1681 </script> 1682 1683 </div> 1684 <div class="col-ms-6 col-sm-8"> 1685 <div class="row2"> 1686 <div id="mloader" style="display:none;text-align:center"> 1687 <span id="CreateMoodboardPdfLabel" style="display: inline-block;margin: 10px 10px 0 0;padding: 5px 10px"></span> 1688 <img src="/Files/Templates/Designs/HagsCore/res/img/loader/ajax-loader.gif" style="margin:auto;display:block;"> 1689 </div> 1690 1691 <div id="mPdfViewer" style="width: 834px;"> 1692 @*<object id="pdfObjectViewer" style="display: none;" data="" type="application/pdf" width="100%" height="600"></object> 1693 <embed id="pdfViewer" style="display: none;" src="" type="application/pdf"> 1694 <iframe src="" id="pdfIframeViewer" width="100%" height="600" type="application/pdf" style="display:none;"></iframe>*@ 1695 </div> 1696 </div> 1697 </div> 1698 </div> 1699 </div> <!--container - fluid--> 1700 </div> 1701 </div> 1702 </div> 1703 </div> 1704 1705 <div id="adviceMessage"></div> 1706 1707 </div> 1708 1709 <div class="modal-footer" id="createmoodboard-footer"> 1710 1711 <div class="m-search-advanced-buttons text-center"> 1712 1713 <button class="m-btn-search btn btn-default text-uppercase" name="createemail" type="button" role="button">@Translate("EmailMoodboard", "Email Moodboard")</button> 1714 <a href="" class="m-btn-search btn btn-default text-uppercase disabled" id="pdfPrintCatalogue" target="_blank" type="button">@Translate("Print", "Print")</a> 1715 <a href="" class="m-btn-search btn btn-default text-uppercase disabled" id="pdfDownloadCatalogue" download="" type="button">@Translate("Download", "Download")</a> 1716 <button class="m-btn-search btn btn-default text-uppercase" data-dismiss="modal" type="button">@Translate("Cancel", "Cancel")</button> 1717 1718 </div> 1719 1720 </div> 1721 1722 </div> 1723 </div> 1724 1725 </div> 1726 1727 1728 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 1729 @{ 1730 1731 int areaID = HagsWeb.Library.Utilities.WebUtilities.CheckInteger(GetGlobalValue("Global:Area.ID")); 1732 Dynamicweb.Content.Page HagsConnectRegistrationPage = HagsWeb.Library.Methods.Page.HagsPages.GetPageByNavigationTag("CreateAccountPage", areaID); 1733 Dynamicweb.Content.Page HagsConnectHomePage = HagsWeb.Library.Methods.Page.HagsPages.GetPageByNavigationTag("MyHags", areaID); 1734 1735 1736 //Testing 1737 //var cult = GetGlobalValue("Global:Area.LongLang").ToString(); 1738 //var a = GetLoop("WebsiteLanguages").Select(m=> m).Where(n=>n.GetValue("Culture").ToString() == cult).ToList(); 1739 //var siteFirstPageIdxx = GetValue("DwAreaFirstPageID").ToString(); 1740 1741 string validationMessages = string.Format("messages_{0}.min.js", GetGlobalValue("Global:Area.Lang")); 1742 string areaLanguage = GetGlobalValue("Global:Area.Lang"); 1743 string loginPageId = HagsConnectHomePage.ID.ToString();// "105"; // GetGlobalValue("Global:Page.ID"); 1744 1745 // Notes: for the Forgotten Password we now are just advising the user to contact their local office for a reset 1746 // We do however maintain the original code as is for when they change their mind back again! 1747 } 1748 1749 @*http://solutionset.dynamicweb.dk/en-US/Cart.aspx*@ 1750 1751 @if (GetInteger(GetGlobalValue("Global:Extranet.UserID")) == 0) 1752 { 1753 1754 <script type="text/javascript" src="/Files/Templates/Designs/HagsCore/script/source/functions/login.js"></script> 1755 1756 @*@Scripts.Render("~/bundle/Validation")*@ 1757 <!--HagsCore\Master\Includes\LoginModal.cshtml--> 1758 <div class="modal fade in" id="login" tabindex="-1" role="dialog" aria-labelledby="LoginModalLabel" aria-hidden="true" style="display: none;z-index:200;"> 1759 1760 @if (areaLanguage != "en") 1761 { 1762 <script src="/Files/Templates/Designs/HagsCore/script/source/libraries/validation/localization/@validationMessages"></script> 1763 } 1764 1765 <div class="modal-backdrop fade in" data-backdrop="static" style="z-index:180;"></div> 1766 1767 <div class="modal-dialog modal-md"> 1768 <div class="m-form-contact-modal modal-content"> 1769 1770 <input type="hidden" id="action" value=""> 1771 1772 <div class="modal-header"> 1773 1774 <button type="button" class="close blue-close icon-remove" data-dismiss="modal"></button> 1775 1776 <button type="button" class="close" data-dismiss="modal"> 1777 <span aria-hidden="true">×</span> 1778 <span class="sr-only">Close</span> 1779 </button> 1780 1781 <h4 class="modal-title" id="LoginModalLabel"> 1782 <span class="icon-key"></span> 1783 @Translate("MyHAGSlogin", "Login to HAGS Connect") 1784 </h4> 1785 1786 </div> 1787 1788 @*/?id=105*@ 1789 1790 <form role="form" id="loginform" method="post" action="/Default.aspx?id=@loginPageId" style="display: block"> 1791 <div class="modal-body"> 1792 1793 <input type="hidden" name="ID" value="@loginPageId"> 1794 <input type="hidden" name="DWExtranetUsernameRemember" value="True"> 1795 <input type="hidden" name="DWExtranetPasswordRemember" value="True"> 1796 <input type="hidden" name="redirect" value="/Default.aspx?id=@loginPageId"> 1797 1798 1799 @{ 1800 var LoginError = GetString("DW_extranet_error_uk"); 1801 } 1802 1803 @if (!String.IsNullOrWhiteSpace(LoginError)) 1804 { 1805 <script type="text/javascript"> 1806 showLoginDialog("#login"); 1807 </script> 1808 1809 <p class="text-danger">@Translate("LoginError", "Sorry, but we found no user with that username and password.")</p> 1810 } 1811 1812 <div class="form-group"> 1813 1814 <label for="username" class="control-label text-uppercase">@Translate("Username", "Username") <sup>*</sup></label> 1815 <input type="text" class="form-control" name="username" id="username" required="" placeholder='@Translate("EnterUsername", "Enter Username")'> 1816 1817 </div> 1818 <div class="form-group"> 1819 1820 <label for="password" class="control-label text-uppercase">@Translate("Password", "Password") <sup>*</sup></label> 1821 <input type="password" class="form-control" name="password" id="password" required="" placeholder='@Translate("EnterPassword", "Enter Password")'> 1822 1823 </div> 1824 <div class="form-group"> 1825 @{ 1826 string link = "/Default.aspx?ID=" + GetPageIdByNavigationTag("LogInPage"); 1827 link += "&LoginAction=Recovery"; 1828 } 1829 1830 <p> 1831 <a href="@link" class="pull-left">@Translate("ForgotPassword", "Forgotten your Password?")</a> 1832 </p> 1833 <p>&nbsp;</p> 1834 1835 @*<p> 1836 <a href="#" class="pull-left" name="switchView" data-show="#lostpasswordform">@Translate("ForgotPassword", "Forgotten your Password?")</a> 1837 </p> 1838 <p>&nbsp;</p>*@ 1839 1840 </div> 1841 </div> 1842 <div class="modal-footer"> 1843 <div class="row"> 1844 <div class="col-md-12"> 1845 <div class="form-group checkbox pull-left"> 1846 1847 <p> 1848 <input type="checkbox" name="Autologin" checked="" value="True"><label>@Translate("RememberMe", "Remember Me")</label> 1849 </p> 1850 1851 </div> 1852 1853 <button type="submit" class="m-btn-send btn btn-default text-uppercase">@Translate("SignIn", "Sign In")</button> 1854 1855 <div> 1856 @if (GetLoop("DWExtranetExternalLoginProviders").Count != 0) 1857 { 1858 foreach (LoopItem LoginProvider in GetLoop("DWExtranetExternalLoginProviders")) 1859 { 1860 var ProviderName = LoginProvider.GetString("ProviderName").ToLower(); 1861 <a href='/Admin/Public/Social/ExternalLogin.aspx?action=login&providerID=@LoginProvider.GetValue("ProviderID")' class="btn btn-sm btn-primary">Login with <i class="fa fa-@ProviderName"></i> @LoginProvider.GetString("ProviderName")</a> 1862 } 1863 } 1864 </div> 1865 1866 </div> 1867 </div> 1868 </div> 1869 1870 </form>@*Login Form*@ 1871 1872 1873 <form role="form" method="post" id="lostpasswordform" action="Default.aspx?ID=@loginPageId&amp;LoginAction=RecoveryLinkSent" style="display: none"> 1874 <div class="modal-body"> 1875 <input type="hidden" name="ForgotPasswordMailTemplate" value="Login/RecoveryEmail.cshtml"> 1876 <input type="hidden" name="ForgotPasswordSenderEmail" value="noreply@hags.foundrycomms.co.uk"> 1877 <input type="hidden" name="ForgotPasswordMailSubject" value="Password recovery from modal version"> 1878 1879 <div class="mb-3">@Translate("Insert Email", "Insert your email below and you will receive an email where you can recover your password.")</div> 1880 <div class="form-group mb-3"> 1881 <label class="control-label text-uppercase" for="AccessUserEmail">@Translate("Email")</label> 1882 <input type="text" class="form-control" name="AccessUserEmail" id="AccessUserEmail" required="" placeholder="@Translate(" email")"=""> 1883 <div class="invalid-feedback" for="AccessUserEmail"></div> 1884 </div> 1885 </div> 1886 1887 <div class="modal-footer"> 1888 <div class="text-right"> 1889 <button type="submit" name="LoginAction" value="Recovery" class="m-btn-send btn btn-default text-uppercase" id="PasswordRecoveryButton">@Translate("Send password recovery")</button> 1890 <a href="/en-us/my-hags-log-in" class="btn btn-link d-inline px-0 px-lg-3" id="BackToSignInButton">@Translate("Login to your MyHags Account")</a> 1891 </div> 1892 </div> 1893 </form>@*forgot password form*@ 1894 1895 1896 @if (HagsConnectRegistrationPage != null) 1897 { 1898 <hr> 1899 <div class="modal-header"> 1900 <h4 class="modal-title">@Translate("No Account", "Not got a HAGS Connect account?")</h4> 1901 </div> 1902 1903 <div class="modal-body"> 1904 <p>@Translate("Registration Instructions", "If you'd like a HAGS Connect account you can register for one by the regisration button below. Once you have compelted the registration form you'll be sent an email, once approved, to activate your account.")</p> 1905 </div> 1906 1907 <div class="row"> 1908 <div class="col-md-12"> 1909 <div class="modal-footer"> 1910 1911 <div class="text-right"> 1912 <a href="Default.aspx?ID=@HagsConnectRegistrationPage.ID" class="m-btn-send btn btn-default text-uppercase">@Translate("Register", "Register")</a> 1913 </div> 1914 1915 </div> 1916 </div> 1917 </div> 1918 } 1919 else 1920 { 1921 <hr> 1922 <div class="modal-header"> 1923 <h4 class="modal-title">@Translate("Registration Page Not Found", "Registration Page not found")</h4> 1924 </div> 1925 } 1926 1927 1928 <script> 1929 $("#loginform").validate(); 1930 $("#lostpasswordform").validate(); 1931 </script> 1932 1933 </div> 1934 </div> 1935 </div> 1936 1937 } 1938 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 1939 @{ 1940 if (!String.IsNullOrWhiteSpace(GetString("RedirectMyHagsPage")) && (Dynamicweb.Environment.ExecutingContext.IsFrontEnd())) 1941 { 1942 System.Web.HttpContext.Current.Response.Redirect(GetString("RedirectMyHagsPage")); 1943 } 1944 1945 //int areaID = HagsWeb.Library.Utilities.WebUtilities.CheckInteger(GetGlobalValue("Global:Area.ID")); 1946 //Dynamicweb.Content.Page MyHagsPage = HagsWeb.Library.Methods.Page.HagsPages.GetPageByNavigationTag("MyHags", areaID); 1947 // string redirectPage = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(MyHagsPage.ID); 1948 1949 1950 //Testing 1951 //var cult = GetGlobalValue("Global:Area.LongLang").ToString(); 1952 //var a = GetLoop("WebsiteLanguages").Select(m=> m).Where(n=>n.GetValue("Culture").ToString() == cult).ToList(); 1953 //var siteFirstPageIdxx = GetValue("DwAreaFirstPageID").ToString(); 1954 1955 string registerValidationMessages = string.Format("messages_{0}.min.js", GetGlobalValue("Global:Area.Lang")); 1956 string registerAreaLanguage = GetGlobalValue("Global:Area.Lang"); 1957 string registerPageId = GetGlobalValue("Global:Page.ID"); 1958 1959 1960 int parentAreaId = int.TryParse(GetGlobalValue("Global:Area.ID"), out parentAreaId) ? parentAreaId : 0; 1961 Dynamicweb.Content.Area parentArea = new Dynamicweb.Content.AreaService().GetArea(parentAreaId); 1962 1963 } 1964 1965 @*http://solutionset.dynamicweb.dk/en-US/Cart.aspx*@ 1966 1967 @if (GetInteger(GetGlobalValue("Global:Extranet.UserID")) == 0) 1968 { 1969 1970 <script type="text/javascript" src="/Files/Templates/Designs/HagsCore/script/source/functions/login.js"></script> 1971 1972 @*@Scripts.Render("~/bundle/Validation")*@ 1973 1974 <div class="modal fade in" id="Register" tabindex="-1" role="dialog" aria-labelledby="RegisterModalLabel" aria-hidden="true" style="display:none; z-index:200;"> 1975 1976 @if (registerAreaLanguage != "en") 1977 { 1978 <script src="/Files/Templates/Designs/HagsCore/script/source/libraries/validation/localization/@registerValidationMessages"></script> 1979 } 1980 1981 <div class="modal-backdrop fade in" data-backdrop="static" style="z-index:180;"></div> 1982 1983 <div class="modal-dialog modal-md" style="overflow-y: initial !important"> 1984 <div class="m-form-contact-modal modal-content"> 1985 1986 <input type="hidden" id="action" value=""> 1987 1988 <div class="modal-header"> 1989 1990 <button type="button" class="close blue-close icon-remove" data-dismiss="modal"></button> 1991 1992 <button type="button" class="close" data-dismiss="modal"> 1993 <span aria-hidden="true">×</span> 1994 <span class="sr-only">Close</span> 1995 </button> 1996 1997 <h4 class="modal-title" id="RegisterModalLabel"> 1998 <span class="icon-key"></span> 1999 @Translate("RegisterForMyHags", "Register for a MyHags Account") 2000 </h4> 2001 2002 <p>In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before the final copy is applied.</p> 2003 2004 @{ 2005 string selectedCountry = GetGlobalValue("Global:Area.LongLang").Substring(GetGlobalValue("Global:Area.LongLang").Length - 2); 2006 HashSet<string[,]> countrySelector = new HashSet<string[,]>(); 2007 2008 countrySelector = HagsWeb.Library.Methods.HagsUsers.UsersFilter.GetHagsCountries(parentArea.EcomLanguageId); 2009 2010 } 2011 @*<p>Country:@selectedCountry</p>*@ 2012 </div> 2013 2014 @*/?id=105*@ 2015 2016 <form role="form" id="registerform" method="post" action="/Default.aspx?id=@registerPageId" style="display: block"> 2017 <div class="modal-body" style="height: 60vh;overflow-y: auto;"> 2018 2019 <input type="hidden" name="ID" value="@registerPageId"> 2020 <input type="hidden" name="DWExtranetUsernameRemember" value="True"> 2021 <input type="hidden" name="DWExtranetPasswordRemember" value="True"> 2022 <input type="hidden" name="redirect" value="/Default.aspx?id=@registerPageId"> 2023 2024 2025 @*@{ 2026 var LoginError = GetString("DW_extranet_error_uk"); 2027 }*@ 2028 2029 @*@if (!String.IsNullOrWhiteSpace(LoginError)) 2030 { 2031 <script type="text/javascript"> 2032 showLoginDialog("#login"); 2033 </script> 2034 2035 <p class="text-danger">@Translate("LoginError", "Sorry, but we found no user with that username and password.")</p> 2036 }*@ 2037 2038 <div style="color:white; background-color:lightgrey;font-weight:bold; padding:10px; margin-bottom:20px;">YOUR DETAILS</div> 2039 2040 2041 <div class="form-group"> 2042 <label for="UserManagement_Form_FirstName" class="control-label text-uppercase">First Name <sup>*</sup></label> 2043 <input type="text" class="form-control" required="" id="UserManagement_Form_FirstName" name="UserManagement_Form_FirstName" placeholder="Enter your First Name" aria-required="true"> 2044 </div> 2045 2046 <div class="form-group"> 2047 <label for="UserManagement_Form_LastName" class="control-label text-uppercase">Last Name <sup>*</sup></label> 2048 <input type="text" class="form-control" required="" id="UserManagement_Form_LastName" name="UserManagement_Form_LastName" placeholder="Enter your Last Name" aria-required="true"> 2049 </div> 2050 2051 2052 <div class="form-group"> 2053 <label for="UserManagement_Form_Email" class="control-label text-uppercase">Email <sup>*</sup></label> 2054 <input type="text" class="form-control" required="" id="UserManagement_Form_Email" name="UserManagement_Form_Email" placeholder="Enter your Email Address" aria-required="true"> 2055 </div> 2056 2057 <div class="form-group"> 2058 <label for="UserManagement_Form_PhoneMobile" class="control-label text-uppercase">Mobile </label> 2059 <input type="text" class="form-control" id="UserManagement_Form_PhoneMobile" name="UserManagement_Form_PhoneMobile" placeholder="Enter your Mobile Phone" aria-required="true"> 2060 </div> 2061 2062 <div class="form-group"> 2063 <label for="UserManagement_Form_JobTitle" class="control-label text-uppercase">Job Title <sup>*</sup></label> 2064 <input type="text" class="form-control" required="" id="UserManagement_Form_JobTitle" name="UserManagement_Form_JobTitle" placeholder="Enter your Job Title" aria-required="true"> 2065 </div> 2066 2067 @*Profile Picture if required*@ 2068 @*<div class="form-group"> 2069 <label for="UserManagement_Form_ImageUploader" class="control-label text-uppercase">@Translate("Profilepicture", "Profile picture") <sup>*</sup></label> 2070 @GetValue("UserManagement:User.Image.Uploader") 2071 </div>*@ 2072 2073 <div style="color:white; background-color:lightgrey;font-weight:bold; padding:10px; margin-bottom:20px;">COMPANY DETAILS</div> 2074 2075 2076 <div class="form-group"> 2077 <label for="UserManagement_Form_Company" class="control-label text-uppercase">Company Name <sup>*</sup></label> 2078 <input type="text" class="form-control" required="" id="UserManagement_Form_Company" name="UserManagement_Form_Company" placeholder="Enter your Company Name" aria-required="true"> 2079 </div> 2080 2081 <div class="form-group"> 2082 <label for="UserManagement_Form_Address" class="control-label text-uppercase">Address <sup>*</sup></label> 2083 <input type="text" class="form-control" required="" id="UserManagement_Form_Address" name="UserManagement_Form_Address" placeholder="Enter your Address" aria-required="true"> 2084 </div> 2085 2086 <div class="form-group"> 2087 <label for="UserManagement_Form_City" class="control-label text-uppercase">Town/City <sup>*</sup></label> 2088 <input type="text" class="form-control" required="" id="UserManagement_Form_City" name="UserManagement_Form_City" placeholder="Enter your Town/City" aria-required="true"> 2089 </div> 2090 2091 <div class="form-group"> 2092 <label for="UserManagement_Form_Zip" class="control-label text-uppercase">PostCode <sup>*</sup></label> 2093 <input type="text" class="form-control" required="" id="UserManagement_Form_Zip" name="UserManagement_Form_Zip" placeholder="Enter your PostCode" aria-required="true"> 2094 </div> 2095 2096 @if (countrySelector.Any()) 2097 { 2098 <div class="form-group"> 2099 <label for="UserManagement_Form_Country" class="control-label text-uppercase">@Translate("SelectYourCountry", "Select Your Country") <sup>*</sup> </label> 2100 <select class="form-control" required="" id="UserManagement_Form_Country" name="UserManagement_Form_Country"> 2101 <option value="">@Translate("SelectYourCountry", "Select your Country")</option> 2102 @foreach (var country in countrySelector) 2103 { 2104 <option value="@country[0, 1]">@country[0, 1]</option> 2105 } 2106 2107 </select> 2108 </div> 2109 } 2110 2111 <div class="form-group"> 2112 <label for="Type" class="control-label text-uppercase">Type? <sup>*</sup></label> 2113 <input type="text" class="form-control" required="" id="Type" name="Type" placeholder="Please select your Type?" aria-required="true"> 2114 </div> 2115 2116 2117 <div style="color:white; background-color:lightgrey;font-weight:bold; padding:10px; margin-bottom:20px;">AREAS OF INTEREST</div> 2118 2119 <div class="form-group"> 2120 <div style="width:40%;float:left;"> 2121 <div class="form-check form-check-inline"> 2122 <input class="form-check-input" style="width:18px; height:18px;" type="checkbox" id="inlineCheckbox1" value="Play"> 2123 <label class="form-check-label" for="inlineCheckbox1">Play</label> 2124 </div> 2125 <div class="form-check form-check-inline"> 2126 <input class="form-check-input" style="width:18px; height:18px;" type="checkbox" id="inlineCheckbox2" value="SportFitness"> 2127 <label class="form-check-label" for="inlineCheckbox2">Sport and Fitness</label> 2128 </div> 2129 <div class="form-check form-check-inline"> 2130 <input class="form-check-input" style="width:18px; height:18px;" type="checkbox" id="inlineCheckbox3" value="ParkUrban"> 2131 <label class="form-check-label" for="inlineCheckbox3">Park & Urban Furniture</label> 2132 </div> 2133 2134 </div> 2135 <div style="float:right; width:40%;"> 2136 <div class="form-check form-check-inline"> 2137 <input class="form-check-input" style="width:18px; height:18px;" type="checkbox" id="inlineCheckbox4" value="Marine"> 2138 <label class="form-check-label" for="inlineCheckbox4">Marine</label> 2139 </div> 2140 <div class="form-check form-check-inline"> 2141 <input class="form-check-input" style="width:18px; height:18px;" type="checkbox" id="inlineCheckbox5" value="Shade"> 2142 <label class="form-check-label" for="inlineCheckbox5">Shade</label> 2143 </div> 2144 <div class="form-check form-check-inline"> 2145 <input class="form-check-input" style="width:18px; height:18px;" type="checkbox" id="inlineCheckbox6" value="Other"> 2146 <label class="form-check-label" for="inlineCheckbox6">Other</label> 2147 </div> 2148 </div> 2149 </div> 2150 2151 <div style="color:white; background-color:lightgrey;font-weight:bold; padding:10px; margin-bottom:20px;clear:both">ACCOUNT LOGIN DETAILS</div> 2152 2153 <div class="form-group"> 2154 <label for="UserManagement_Form_UserName" class="control-label text-uppercase">@Translate("Username", "Username") <sup>*</sup></label> 2155 <input type="text" class="form-control" required="" id="UserManagement_Form_UserName" name="UserManagement_Form_UserName" placeholder="" aria-required="true"> 2156 </div> 2157 2158 2159 <div class="form-group"> 2160 <label for="UserManagement_Form_NewPassword" class="control-label text-uppercase">@Translate("Password", "Password") <sup>*</sup></label> 2161 <input type="text" class="form-control" required="" id="UserManagement_Form_NewPassword" name="UserManagement_Form_NewPassword" placeholder="Please select your Password" aria-required="true"> 2162 </div> 2163 2164 <div class="form-group"> 2165 <label for="UserManagement_Form_NewPasswordConfirm" class="control-label text-uppercase">Repeat @Translate("Password", "Password") <sup>*</sup></label> 2166 <input type="text" class="form-control" required="" id="UserManagement_Form_NewPasswordConfirm" name="UserManagement_Form_NewPasswordConfirm" placeholder="Please repeat your Password" aria-required="true"> 2167 </div> 2168 2169 <div class="form-group"> 2170 <label class="control-label text-uppercase"><sup>*</sup> @Translate("RequiredFields", "Required Fields")</label> 2171 </div> 2172 2173 </div> 2174 2175 <div class="modal-footer"> 2176 2177 <div class="text-right"> 2178 @*<button type="button" data-ajax="" id="" class="m-btn-send btn btn-default text-uppercase">@Translate("Register", "Register")</button>*@ 2179 2180 @*<button type="button" data-ajax="" id="" class="m-btn-send btn btn-default text-uppercase pull-left" data-dismiss="modal" data-toggle="modal" data-target="#Register">@Translate("Register", "Register")</button>*@ 2181 </div> 2182 2183 <div class="form-group" style="float:right;"> 2184 <button type="button" data-ajax="" id="" class="m-btn-send btn btn-default text-uppercase">@Translate("Register", "Register")3</button> 2185 </div> 2186 2187 </div> 2188 2189 </form>@*Registration Form*@ 2190 2191 </div> 2192 </div> 2193 2194 <script> 2195 $("#registerform").validate(); 2196 //$("#lostpasswordform").validate(); 2197 </script> 2198 2199 </div> 2200 2201 } 2202 2203 @*@if (!String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName"))) 2204 {*@ 2205 2206 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2207 @using HagsWeb.Library.State; 2208 @using HagsWeb.Library.BusinessObjects.UsersLists; 2209 @{ 2210 2211 int saveCollectionAreaID = HagsWeb.Library.Utilities.WebUtilities.CheckInteger(GetGlobalValue("Global:Area.ID")); 2212 Dynamicweb.Content.Page saveCollectionMyHagsRegistrationPage = HagsWeb.Library.Methods.Page.HagsPages.GetPageByNavigationTag("CreateAccountPage", saveCollectionAreaID); 2213 2214 bool savecollection = bool.Parse(string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("savecollection")) ? "false" : Dynamicweb.Context.Current.Request.QueryString.Get("savecollection")); 2215 2216 2217 EditCollection editSession = new EditCollection(); 2218 if (SessionManager.IsSessionValueSet("EditCollectionSession_" + GetGlobalValue("Global:Extranet.UserID"))) 2219 { 2220 editSession = (EditCollection)SessionManager.GetSessionItem("EditCollectionSession_" + GetGlobalValue("Global:Extranet.UserID")); 2221 } 2222 2223 string currentCollectionName = string.Empty; // Dynamicweb.Context.Current.Request.QueryString.Get("collection"); 2224 string currentCollectionDescription = string.Empty; 2225 string currentCollectionOriginalFileName = string.Empty; 2226 if (editSession != null) 2227 { 2228 currentCollectionName = editSession.CollectionName; 2229 currentCollectionDescription = editSession.CollectionDescription; 2230 currentCollectionOriginalFileName = editSession.OriginalFileName; 2231 } 2232 2233 bool isLoggedIn = false; 2234 if (!String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName"))) 2235 { 2236 isLoggedIn = true; 2237 } 2238 2239 //Testing 2240 //var cult = GetGlobalValue("Global:Area.LongLang").ToString(); 2241 //var a = GetLoop("WebsiteLanguages").Select(m=> m).Where(n=>n.GetValue("Culture").ToString() == cult).ToList(); 2242 //var siteFirstPageIdxx = GetValue("DwAreaFirstPageID").ToString(); 2243 2244 string saveCollectionValidationMessages = string.Format("messages_{0}.min.js", GetGlobalValue("Global:Area.Lang")); 2245 string saveCollectionAreaLanguage = GetGlobalValue("Global:Area.Lang"); 2246 string saveCollectionLoginPageId = GetGlobalValue("Global:Page.ID"); 2247 string UserId = GetGlobalValue("Global:Extranet.UserID"); 2248 2249 // Notes: for the Forgotten Password we now are just advising the user to contact their local office for a reset 2250 // We do however maintain the original code as is for when they change their mind back again! 2251 } 2252 2253 @*http://solutionset.dynamicweb.dk/en-US/Cart.aspx*@ 2254 2255 <!--IncludeFile("HagsCore/Master/Includes/SaveCollectionModal.cshtml")--> 2256 2257 @if (GetInteger(GetGlobalValue("Global:Extranet.UserID")) == 0) 2258 { 2259 2260 <script type="text/javascript" src="/Files/Templates/Designs/HagsCore/script/source/functions/login.js"></script> 2261 2262 @*@Scripts.Render("~/bundle/Validation")*@ 2263 2264 <div class="modal fade in" id="saveCollection" tabindex="-1" role="dialog" aria-labelledby="LoginModalLabel" aria-hidden="true" style="display: none;z-index:200;"> 2265 2266 @if (areaLanguage != "en") 2267 { 2268 <script src="/Files/Templates/Designs/HagsCore/script/source/libraries/validation/localization/@saveCollectionValidationMessages"></script> 2269 } 2270 2271 <div class="modal-backdrop fade in" data-backdrop="static" style="z-index:180;"></div> 2272 2273 <div class="modal-dialog modal-md"> 2274 <div class="m-form-contact-modal modal-content"> 2275 2276 <input type="hidden" id="action" value=""> 2277 2278 <div class="modal-header"> 2279 2280 <button type="button" class="close blue-close icon-remove" data-dismiss="modal"></button> 2281 2282 <button type="button" class="close" data-dismiss="modal"> 2283 <span aria-hidden="true">×</span> 2284 <span class="sr-only">Close</span> 2285 </button> 2286 2287 <h4 class="modal-title" id="LoginModalLabel"> 2288 <span class="icon-key"></span> 2289 @Translate("SaveMyHagsCollection", "Save HAGS Connect Collection") 2290 </h4> 2291 2292 </div> 2293 2294 @if (!isLoggedIn) 2295 { 2296 <form role="form" id="saveCollectionloginForm" method="post" action="/Default.aspx?id=@saveCollectionLoginPageId" style="display: block"> 2297 <div class="modal-body"> 2298 2299 <input type="hidden" name="ID" value="@saveCollectionLoginPageId"> 2300 <input type="hidden" name="DWExtranetUsernameRemember" value="True"> 2301 <input type="hidden" name="DWExtranetPasswordRemember" value="True"> 2302 <input type="hidden" name="redirect" value="/Default.aspx?id=@saveCollectionLoginPageId&savecollection=true"> 2303 2304 2305 @{ 2306 var LoginError = GetString("DW_extranet_error_uk"); 2307 } 2308 2309 @if (!String.IsNullOrWhiteSpace(LoginError)) 2310 { 2311 @*<script type="text/javascript"> 2312 showLoginDialog("#saveCollection"); 2313 </script>*@ 2314 2315 <p class="text-danger">@Translate("LoginError", "Sorry, but we found no user with that username and password.")</p> 2316 } 2317 2318 @if (String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName"))) 2319 { 2320 <div class="form-group"> 2321 2322 <label for="username" class="control-label text-uppercase">@Translate("Username", "Username") <sup>*</sup></label> 2323 <input type="text" class="form-control" name="username" id="saveCollectionUsername" required="" placeholder='@Translate("EnterUsername", "Enter Username")'> 2324 2325 </div> 2326 <div class="form-group"> 2327 2328 <label for="password" class="control-label text-uppercase">@Translate("Password", "Password") <sup>*</sup></label> 2329 <input type="password" class="form-control" name="password" id="saveCollectionPassword" required="" placeholder='@Translate("EnterPassword", "Enter Password")'> 2330 2331 </div> 2332 <div class="form-group"> 2333 @{ 2334 string link = "/Default.aspx?ID=" + GetPageIdByNavigationTag("LogInPage"); 2335 link += "&LoginAction=Recovery"; 2336 } 2337 2338 <p> 2339 <a href="@link" class="pull-left">@Translate("ForgotPassword", "Forgotten your Password?")</a> 2340 </p> 2341 <p>&nbsp;</p> 2342 2343 @*<p> 2344 <a href="#" class="pull-left" name="switchView" data-show="#lostpasswordform">@Translate("ForgotPassword", "Forgotten your Password?")</a> 2345 </p> 2346 <p>&nbsp;</p>*@ 2347 2348 </div> 2349 } 2350 2351 </div> 2352 <div class="modal-footer"> 2353 <div class="row"> 2354 <div class="col-md-12"> 2355 <div class="form-group checkbox pull-left"> 2356 2357 <p> 2358 <input type="checkbox" name="Autologin" checked="" value="True"><label>@Translate("RememberMe", "Remember Me")</label> 2359 </p> 2360 2361 </div> 2362 2363 <button type="submit" class="m-btn-send btn btn-default text-uppercase">@Translate("Save", "Save")</button> 2364 2365 </div> 2366 </div> 2367 </div> 2368 2369 </form>@*Login Form*@ 2370 2371 <!--if (saveCollectionMyHagsRegistrationPage != null) 2372 { 2373 <hr /> 2374 <div class="modal-header"> 2375 <h4 class="modal-title"> 2376 Not got an account? 2377 </h4> 2378 </div> 2379 2380 <div class="modal-body"> 2381 <p>In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before the final copy is applied.</p> 2382 </div> 2383 <div class="modal-footer"> 2384 2385 <div class="text-right"> 2386 <a href="Default.aspx?ID=@saveCollectionMyHagsRegistrationPage.ID" class="m-btn-send btn btn-default text-uppercase">@Translate("Register", "Register")</a> 2387 </div> 2388 2389 </div> 2390 }--> 2391 } 2392 else 2393 { 2394 if (savecollection) 2395 { 2396 <script type="text/javascript"> 2397 showLoginDialog("#saveCollection"); 2398 </script> 2399 } 2400 2401 2402 <form role="form" method="post" id="saveCollectionForm" action=""> 2403 <input type="hidden" name="UserId" value="@UserId"> 2404 <input type="hidden" name="OriginalFileName" value="@currentCollectionOriginalFileName"> 2405 <div class="modal-body"> 2406 <div class="form-group"> 2407 <label for="collectionName" class="control-label text-uppercase">@Translate("CollectionName", "Name of Collection") <sup>*</sup></label> 2408 <input type="text" class="form-control" name="CollectionName" value="@currentCollectionName" required="" placeholder='@Translate("CollectionName", "Name of Collection")'> 2409 </div> 2410 2411 <div class="form-group"> 2412 <label for="collectionDescription" class="control-label text-uppercase">@Translate("CollectionDescription", "Description") <sup>*</sup></label> 2413 <textarea type="text" class="form-control" rows="4" cols="50" name="CollectionDescription" required="" placeholder='@Translate("CollectionDescription", "Description")'>@currentCollectionDescription</textarea> 2414 </div> 2415 2416 <!--<div class="form-group"> 2417 <label for="CustomField.AccessUser_AccessUser_MyHagsType" class="control-label text-uppercase">Type <sup>*</sup></label> 2418 <select class="form-control valid" required="" name="CollectionType" id="CustomField.AccessUser_AccessUser_MyHagsType" aria-required="true" aria-invalid="false"> 2419 <option value="">Select a Type</option> 2420 <option value="Blonde">Blonde</option> 2421 <option value="Brunette">Brunette</option> 2422 <option value="Redhead">Redhead</option> 2423 <option value="Bald">Bald</option> 2424 </select> 2425 </div>--> 2426 2427 <div class="modal-footer"> 2428 <div class="row"> 2429 <div class="col-md-12"> 2430 <div id="resultAdvice"></div> 2431 <button type="submit" id="save" name="savecollection" class="m-btn-send btn btn-default text-uppercase">@Translate("Save", "Save")</button> 2432 <button type="button" id="continue" name="modalclose" class="m-btn-send btn btn-default text-uppercase" style="display: none; float:left;" data-dismiss="modal">@Translate("ContinueToAddProducts", "Continue to add products")</button> 2433 <button type="button" id="new" name="removecollection" class="m-btn-send btn btn-default text-uppercase" style="display: none;float:right;" data-removeproductlist="All" data-dismiss="modal">@Translate("StartNewCollection", "Start a new collection")</button> 2434 </div> 2435 </div> 2436 </div> 2437 </div> 2438 </form> 2439 } 2440 </div> 2441 </div> 2442 2443 <script> 2444 $("#saveCollectionloginForm").validate(); 2445 $("#saveCollectionForm").validate(); 2446 </script> 2447 2448 </div> 2449 2450 } 2451 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2452 2453 <div class="modal fade in" id="adviceModal" tabindex="-1" role="dialog" aria-labelledby="adviceModalLabel" aria-hidden="true" style="display: none;z-index:300;"> 2454 2455 <div class="modal-backdrop fade in" data-backdrop="static" style="z-index:280;"></div> 2456 2457 <div class="modal-dialog modal-md"> 2458 <div class="m-form-contact-modal modal-content"> 2459 2460 <div class="modal-header"> 2461 2462 @*<button type="button" class="close blue-close icon-remove" data-dismiss="modal"></button>*@ 2463 2464 <button type="button" class="close" data-dismiss="modal"> 2465 <span aria-hidden="true">×</span> 2466 <span class="sr-only">Close</span> 2467 </button> 2468 2469 <!--<h4 class="modal-title" id="adviceModalLabel"> 2470 <span class="icon-key"></span> 2471 @Translate("MyHags", "Hags Connect") 2472 </h4>--> 2473 2474 </div> 2475 2476 <div class="modal-body"> 2477 <div class="row"> 2478 <div class="col-md-12"> 2479 <div id="resultAdvice" class="advice-message"></div> 2480 </div> 2481 </div> 2482 2483 <div class="modal-footer"> 2484 <div class="row"> 2485 <div class="col-md-12"> 2486 <button type="button" name="modalclose" class="m-btn-send btn btn-default text-uppercase" style="display: block;" data-dismiss="modal">@Translate("Close", "Close")</button> 2487 </div> 2488 </div> 2489 </div> 2490 </div> 2491 </div> 2492 </div> 2493 </div> 2494 @*}*@ 2495 2496 @if (!GoogleTag) 2497 { 2498 @* Global site tag (gtag.js) - Google Analytics *@ 2499 <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-22990197-56"></script> 2500 <script> 2501 window.dataLayer = window.dataLayer || []; 2502 2503 function gtag() { dataLayer.push(arguments); } 2504 2505 gtag('js', new Date()); 2506 2507 gtag('config', 'UA-22990197-56'); 2508 </script> 2509 } 2510 2511 @*For UK Site add some LinkedIn Code*@ 2512 @if (masterArea.ID == 7) 2513 { 2514 <script type="text/javascript">_linkedin_partner_id = "3415313"; window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || []; window._linkedin_data_partner_ids.push(_linkedin_partner_id);</script> 2515 <script type="text/javascript">(function (l) { if (!l) { window.lintrk = function (a, b) { window.lintrk.q.push([a, b]) }; window.lintrk.q = [] } var s = document.getElementsByTagName("script")[0]; var b = document.createElement("script"); b.type = "text/javascript"; b.async = true; b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js"; s.parentNode.insertBefore(b, s); })(window.lintrk);</script> 2516 <noscript> <img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3415313&fmt=gif"> </noscript> 2517 } 2518 2519 <script src="/Files/Templates/Designs/HagsCore/script/source/functions/jquery.meanmenu.js"></script> 2520 2521 <script> 2522 jQuery(document).ready(function () { 2523 jQuery('.m-menu-mobile nav').meanmenu(); 2524 }); 2525 </script> 2526 2527 <script> 2528 $(document).ready(function () { 2529 2530 $('.myhags a[data-target="#login"]').on('click', function () { 2531 dataLayer.push({ 'event': 'header_login' }); 2532 //console.log('header_login'); 2533 }); 2534 2535 $('.product-collection-header a[href="#productcollection"]').on('click', function () { 2536 dataLayer.push({ 'event': 'view_collection' }); 2537 //console.log('view_collection'); 2538 }); 2539 2540 $('.m-icon-links span[itemprop="email"]').parent().on('click', function () { 2541 dataLayer.push({ 'event': 'click_email' }); 2542 //console.log('click_email'); 2543 }); 2544 2545 $('.m-icon-links span[itemprop="telephone"]').parent().on('click', function () { 2546 dataLayer.push({ 'event': 'click_call' }); 2547 //console.log('click_call'); 2548 }); 2549 2550 }); 2551 </script> 2552 2553 </div></div></body> 2554 2555 </html>