Error compiling template "Designs/AddSecure/_parsed/NewsArticle.parsed.cshtml"
Line 1600: Invalid expression term '%'
Line 1600: Syntax error, ',' expected
Line 565: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 1600: The name 'Item' does not exist in the current context
Line 1973: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 1973: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 1974: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 1974: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 2008: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 2009: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 2016: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 2016: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 2017: 'User.get_Current(PagePermissionLevels)' is obsolete: 'Use GetCurrentUser instead'
Line 2356: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 2365: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 2375: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 2385: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 2472: The variable 'e' is declared but never used

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 using System; 13 using System.Collections.Generic; 14 15 #line 3 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 16 using System.Linq; 17 18 #line default 19 #line hidden 20 21 #line 2 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 22 using System.Diagnostics; 23 24 #line default 25 #line hidden 26 27 #line 4 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 28 using System.Net.Http; 29 30 #line default 31 #line hidden 32 33 #line 5 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 34 using System.Web; 35 36 #line default 37 #line hidden 38 39 #line 6 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 40 using System.Web.Caching; 41 42 #line default 43 #line hidden 44 45 #line 7 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 46 using System.Xml; 47 48 #line default 49 #line hidden 50 51 #line 8 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 52 using AddSecure.DW.Data.Repositories; 53 54 #line default 55 #line hidden 56 57 #line 9 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 58 using AddSecure.DW.Helpers; 59 60 #line default 61 #line hidden 62 63 #line 10 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 64 using AddSecure.DW.InvoiceService; 65 66 #line default 67 #line hidden 68 69 #line 11 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 70 using AddSecure.DW.ViewModels; 71 72 #line default 73 #line hidden 74 75 #line 12 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 76 using Dynamicweb.Caching; 77 78 #line default 79 #line hidden 80 81 #line 13 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 82 using Dynamicweb.Content; 83 84 #line default 85 #line hidden 86 87 #line 14 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 88 using Dynamicweb.Core; 89 90 #line default 91 #line hidden 92 93 #line 15 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 94 using Dynamicweb.Ecommerce.Integration; 95 96 #line default 97 #line hidden 98 99 #line 16 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 100 using Dynamicweb.Ecommerce.LiveIntegration; 101 102 #line default 103 #line hidden 104 105 #line 17 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 106 using Dynamicweb.Ecommerce.Notifications; 107 108 #line default 109 #line hidden 110 111 #line 18 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 112 using Dynamicweb.Ecommerce.Orders; 113 114 #line default 115 #line hidden 116 117 #line 19 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 118 using Dynamicweb.Ecommerce.Products; 119 120 #line default 121 #line hidden 122 123 #line 20 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 124 using Dynamicweb.Environment.Web; 125 126 #line default 127 #line hidden 128 129 #line 21 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 130 using Dynamicweb.Frontend; 131 132 #line default 133 #line hidden 134 135 #line 22 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 136 using Dynamicweb.Logging; 137 138 #line default 139 #line hidden 140 141 #line 418 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 142 using Dynamicweb.Rendering; 143 144 #line default 145 #line hidden 146 147 #line 24 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 148 using Dynamicweb.Security; 149 150 #line default 151 #line hidden 152 153 #line 25 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 154 using Dynamicweb.Security.Permissions; 155 156 #line default 157 #line hidden 158 159 #line 26 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 160 using Dynamicweb.Security.UserManagement; 161 162 #line default 163 #line hidden 164 165 #line 27 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 166 using Extensions = AddSecure.DW.Helpers.Extensions; 167 168 #line default 169 #line hidden 170 171 #line 28 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 172 using Logger = AddSecure.DW.Helpers.Logger; 173 174 #line default 175 #line hidden 176 177 178 public class RazorEngine_e6e291eecd1e4f8fa547a1c717ec6bd7 : RazorTemplateBase<RazorTemplateModel<Template>> { 179 180 #line hidden 181 182 public RazorEngine_e6e291eecd1e4f8fa547a1c717ec6bd7() { 183 } 184 185 public override void Execute() { 186 WriteLiteral("\r\n<!DOCTYPE html>\r\n<html"); 187 188 WriteLiteral(" lang=\"en\""); 189 190 WriteLiteral(">\r\n\r\n"); 191 192 193 #line 33 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 194 195 Culture masterCulture = CultureHelper.GetCulture(); 196 string cookieOptInLevel = GetGlobalValue("Global:CookieOptInLevel"); 197 198 199 #line default 200 #line hidden 201 WriteLiteral("\r\n\r\n<head>\r\n"); 202 203 204 #line 39 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 205 206 207 #line default 208 #line hidden 209 210 #line 39 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 211 if (!TestHelper.IsInternalEnvironment() && cookieOptInLevel?.ToLower() == "all") // Avoids collecting data locally 212 { 213 if (masterCulture.Country == CultureHelper.Country.Sweden) // Google Tag Manager Sweden 214 { 215 216 217 #line default 218 #line hidden 219 WriteLiteral(" <!-- Google Tag Manager -->\r\n"); 220 221 WriteLiteral(@" <script> 222 (function (w, d, s, l, i) { 223 w[l] = w[l] || []; 224 w[l].push({ 225 'gtm.start': 226 new Date().getTime(), 227 event: 'gtm.js' 228 }); 229 var f = d.getElementsByTagName(s)[0], 230 j = d.createElement(s), 231 dl = l != 'dataLayer' ? '&l=' + l : ''; 232 j.async = true; 233 j.src = 234 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 235 f.parentNode.insertBefore(j, f); 236 })(window, document, 'script', 'dataLayer', 'GTM-5WRF35N'); 237 </script> 238 "); 239 240 WriteLiteral(" <!-- End Google Tag Manager -->\r\n"); 241 242 243 #line 62 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 244 } 245 else // Google Tag Manager Norway 246 { 247 248 249 #line default 250 #line hidden 251 WriteLiteral(" <!-- Google Tag Manager -->\r\n"); 252 253 WriteLiteral(@" <script> 254 (function (w, d, s, l, i) { 255 w[l] = w[l] || []; 256 w[l].push({ 257 'gtm.start': 258 new Date().getTime(), 259 event: 'gtm.js' 260 }); 261 var f = d.getElementsByTagName(s)[0], 262 j = d.createElement(s), 263 dl = l != 'dataLayer' ? '&l=' + l : ''; 264 j.async = true; 265 j.src = 266 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 267 f.parentNode.insertBefore(j, f); 268 })(window, document, 'script', 'dataLayer', 'GTM-WN92RFT'); 269 </script> 270 "); 271 272 WriteLiteral(" <!-- End Google Tag Manager -->\r\n"); 273 274 275 #line 84 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 276 } 277 } 278 279 280 #line default 281 #line hidden 282 WriteLiteral(" <meta"); 283 284 WriteLiteral(" charset=\"utf-8\""); 285 286 WriteLiteral(">\r\n <meta"); 287 288 WriteLiteral(" http-equiv=\"X-UA-Compatible\""); 289 290 WriteLiteral(" content=\"IE=edge\""); 291 292 WriteLiteral(">\r\n <meta"); 293 294 WriteLiteral(" name=\"viewport\""); 295 296 WriteLiteral(" content=\"width=device-width, initial-scale=1\""); 297 298 WriteLiteral(">\r\n \r\n <meta"); 299 300 WriteLiteral(" name=\"author\""); 301 302 WriteLiteral(" content=\"\""); 303 304 WriteLiteral(">\r\n\r\n "); 305 306 WriteLiteral("\r\n <link"); 307 308 WriteLiteral(" rel=\"icon\""); 309 310 WriteLiteral(" href=\"/Files/Templates/Designs/AddSecure/Images/favicon.ico\""); 311 312 WriteLiteral(">\r\n\r\n <title>"); 313 314 315 #line 95 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 316 Write(GetValue("Title")); 317 318 319 #line default 320 #line hidden 321 WriteLiteral("</title>\r\n"); 322 323 324 #line 96 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 325 Write(GetValue("MetaTags")); 326 327 328 #line default 329 #line hidden 330 WriteLiteral("\r\n"); 331 332 333 #line 97 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 334 Write(GetValue("CopyRightNotice")); 335 336 337 #line default 338 #line hidden 339 WriteLiteral("\r\n\r\n\r\n <!-- jQuery -->\r\n <script"); 340 341 WriteLiteral(" src=\"/Files/Templates/Designs/AddSecure/libs/jquery.js\""); 342 343 WriteLiteral("></script>\r\n <script"); 344 345 WriteLiteral(" src=\"/Files/Templates/Designs/AddSecure/libs/jquery-ui-1.12.1/jquery-ui.min.js\""); 346 347 WriteLiteral("></script>\r\n <link"); 348 349 WriteLiteral(" href=\"/Files/Templates/Designs/AddSecure/libs/jquery-ui-1.12.1/jquery-ui.css\""); 350 351 WriteLiteral(" rel=\"stylesheet\""); 352 353 WriteLiteral(">\r\n <link"); 354 355 WriteLiteral(" href=\"/Files/Templates/Designs/AddSecure/libs/jquery-ui-1.12.1/jquery-ui.theme.m" + 356 "in.css\""); 357 358 WriteLiteral(" rel=\"stylesheet\""); 359 360 WriteLiteral(">\r\n <!-- Custom Fonts -->\r\n <link"); 361 362 WriteLiteral(" href=\"https://fonts.googleapis.com/css?family=Asap:400,600%7COpen+Sans:400,400i," + 363 "700&display=swap\""); 364 365 WriteLiteral(" rel=\"stylesheet\""); 366 367 WriteLiteral(">\r\n\r\n\r\n <!-- Bootstrap Core -->\r\n <script"); 368 369 WriteLiteral(" src=\"/Files/Templates/Designs/AddSecure/libs/bootstrap/bootstrap.min.js\""); 370 371 WriteLiteral("></script>\r\n <link"); 372 373 WriteLiteral(" href=\"/Files/Templates/Designs/AddSecure/libs/bootstrap/bootstrap.min.css\""); 374 375 WriteLiteral(" rel=\"stylesheet\""); 376 377 WriteLiteral(">\r\n\r\n\r\n <!-- Bootstrap Table -->\r\n "); 378 379 WriteLiteral("\r\n\r\n <!-- Chosen -->\r\n <script"); 380 381 WriteLiteral(" src=\"/Files/Templates/Designs/AddSecure/libs/chosen_v1.8.7/chosen.jquery.js\""); 382 383 WriteLiteral("></script>\r\n\r\n <!-- Font awesome -->\r\n <link"); 384 385 WriteLiteral(" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.cs" + 386 "s\""); 387 388 WriteLiteral(" rel=\"stylesheet\""); 389 390 WriteLiteral(">\r\n\r\n <!-- Validator JS -->\r\n "); 391 392 WriteLiteral("\r\n\r\n <!-- Custom JS -->\r\n <script>\r\n\t var areaCulture = \'"); 393 394 395 #line 130 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 396 Write(new Area().Culture.ToLower()); 397 398 399 #line default 400 #line hidden 401 WriteLiteral("\';\r\n\t function GetAjaxUrl(ajaxPage) {\r\n\t\t var lang = (areaCulture == \"nb-no" + 402 "\" || areaCulture == \"en-us\") ? \"no\" : \"sv\";\r\n\t\t return \"/\" + lang + \"/\" + aja" + 403 "xPage;\r\n\t }\r\n </script>\r\n <script>var isImpersonating = \""); 404 405 406 #line 136 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 407 Write((GetGlobalValue("Global:Extranet.SecondaryUser.ID").IsNullOrEmpty() == false).ToString().ToLower()); 408 409 410 #line default 411 #line hidden 412 WriteLiteral("\";</script>\r\n <script"); 413 414 WriteLiteral(" src=\"/Files/Templates/Designs/AddSecure/js/master.min.js?cache_bust=174721421787" + 415 "2\""); 416 417 WriteLiteral("></script>\r\n\r\n <!-- Latest compiled and minified CSS -->\r\n "); 418 419 WriteLiteral("\r\n\r\n <!-- Custom CSS -->\r\n <link"); 420 421 WriteLiteral(" href=\"/Files/Templates/Designs/AddSecure/css/master.min.css?cache_bust=174721421" + 422 "7872\""); 423 424 WriteLiteral(" rel=\"stylesheet\""); 425 426 WriteLiteral(">\r\n\r\n <link"); 427 428 WriteLiteral(" href=\"/Files/Templates/Designs/AddSecure/fonts/Icomoon/style.css\""); 429 430 WriteLiteral(" rel=\"stylesheet\""); 431 432 WriteLiteral(@"> 433 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> 434 <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> 435 <!--[if lt IE 9]> 436 <script src=""https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js""></script> 437 <script src=""https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js""></script> 438 <![endif]--> 439 "); 440 441 442 #line 154 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 443 Write(GetValue("Stylesheets")); 444 445 446 #line default 447 #line hidden 448 WriteLiteral("\r\n"); 449 450 451 #line 155 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 452 Write(GetValue("Javascripts")); 453 454 455 #line default 456 #line hidden 457 WriteLiteral("\r\n</head>\r\n\r\n<body>\r\n"); 458 459 460 #line 159 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 461 462 463 #line default 464 #line hidden 465 466 #line 159 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 467 468 Logger.TurnOnLoggingFunctionality(); 469 if (TestHelper.IsInternalOrExternalTestEnvironment()) 470 { 471 Logger.TurnOnLoggingFunctionality(); 472 } 473 else 474 { 475 // Logger.TurnOffLoggingFunctionality(); 476 } 477 //TODO: Add this line in when something needs to be logged. It's turned off for performance reasons 478 //Logger.TurnLoggingFunctionalityToErrorsOnly(); 479 480 481 #line default 482 #line hidden 483 WriteLiteral("\r\n"); 484 485 486 #line 172 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 487 488 489 #line default 490 #line hidden 491 492 #line 172 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 493 if (!TestHelper.IsInternalEnvironment() && cookieOptInLevel?.ToLower() == "all") // Avoids collecting data locally 494 { 495 if (masterCulture.Country == CultureHelper.Country.Sweden) // Google Tag Manager Sweden 496 { 497 498 499 #line default 500 #line hidden 501 WriteLiteral(" <!-- Google Tag Manager (noscript) -->\r\n"); 502 503 WriteLiteral(" <noscript>\r\n <iframe"); 504 505 WriteLiteral(" src=\"https://www.googletagmanager.com/ns.html?id=GTM-5WRF35N\""); 506 507 WriteLiteral(" height=\"0\""); 508 509 WriteLiteral(" width=\"0\""); 510 511 WriteLiteral(" style=\"display: none; visibility: hidden\""); 512 513 WriteLiteral("></iframe>\r\n </noscript>\r\n"); 514 515 WriteLiteral(" <!-- End Google Tag Manager (noscript) -->\r\n"); 516 517 518 #line 181 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 519 } 520 else // Google Tag Manager Norway 521 { 522 523 524 #line default 525 #line hidden 526 WriteLiteral(" <!-- Google Tag Manager (noscript) -->\r\n"); 527 528 WriteLiteral(" <noscript>\r\n <iframe"); 529 530 WriteLiteral(" src=\"https://www.googletagmanager.com/ns.html?id=GTM-WN92RFT\""); 531 532 WriteLiteral(" height=\"0\""); 533 534 WriteLiteral(" width=\"0\""); 535 536 WriteLiteral(" style=\"display: none; visibility: hidden\""); 537 538 WriteLiteral("></iframe>\r\n </noscript>\r\n"); 539 540 WriteLiteral(" <!-- End Google Tag Manager (noscript) -->\r\n"); 541 542 543 #line 189 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 544 } 545 } 546 547 548 #line default 549 #line hidden 550 WriteLiteral(" "); 551 552 553 #line 191 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 554 555 556 557 #line default 558 #line hidden 559 560 #line 193 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 561 562 string fullName = GetString("DW_extranet_AccessUserName"); 563 string[] names = Extensions.GetNameInitials(fullName); 564 565 var user = User.GetCurrentExtranetUser(); 566 var currentCulture = GetGlobalValue("Global:Area.LongLang"); 567 int logoutId = CultureHelper.GetResultBasedOffLang(GetPageIdByNavigationTag("login swe"), GetPageIdByNavigationTag("login sweeng"), GetPageIdByNavigationTag("login nor"), GetPageIdByNavigationTag("login noreng")); 568 569 string homeUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "home"); 570 string loginUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "login"); 571 string accessDeniedUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "accessdenied"); 572 string changeaccountUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "changeaccount"); 573 574 if (user.IsFronteggUser()) 575 { 576 fullName += " - " + user.Company; 577 } 578 579 if (string.IsNullOrWhiteSpace(GetString("DW_extranet_AccessUserName"))) 580 { 581 Dynamicweb.Context.Current.Response.Redirect("~/" + loginUrl); 582 } 583 584 if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Page.IsProtected"))) 585 { 586 if (user.IsSveaUser() && GetString("Global.PageId") == "1") 587 { 588 var pageId1 = GetString("DwPageID"); 589 var sveaUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "sveainvoices"); 590 Dynamicweb.Context.Current.Response.Redirect("~/" + sveaUrl); 591 } 592 else if (true) 593 { 594 Dynamicweb.Context.Current.Response.Redirect("~/" + accessDeniedUrl); 595 } 596 } 597 598 // TODO: To add the IoT orderflows, remove this code 599 if (GetGlobalValue("Global:Page.NavigationTag").ToLower().Contains("iot")) 600 { 601 Dynamicweb.Context.Current.Response.Redirect(AddSecure.DW.Helpers.Extensions.GetUrl(GetPageIdByNavigationTag, "home")); 602 } 603 604 System.Web.HttpContext.Current.Session["current_password_master"] = user.Password; 605 606 if (System.Web.HttpContext.Current.Request.Url.ParseQueryString()["cuRedirect"] != null) 607 { 608 var redirectValue = System.Web.HttpContext.Current.Request.Url.ParseQueryString()["cuRedirect"]; 609 if (redirectValue.ToString() == "home") 610 { 611 Dynamicweb.Context.Current.Response.Redirect(AddSecure.DW.Helpers.Extensions.GetUrl(GetPageIdByNavigationTag, "home")); 612 } 613 } 614 615 //EmailHelper.TestEmailForActivatedUsers(); 616 617 618 619 #line default 620 #line hidden 621 WriteLiteral("\r\n"); 622 623 624 #line 250 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 625 626 627 #line default 628 #line hidden 629 630 #line 250 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 631 if (TestHelper.IsLocalEnvironment() && !Connector.IsWebServiceConnectionAvailable()) 632 { 633 634 635 #line default 636 #line hidden 637 WriteLiteral(" <div>Hey buddy! You don\'t have any connection to NAV right now. Kind rega" + 638 "rds, your friendly neighborhood developer.</div>\r\n"); 639 640 641 #line 253 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 642 } 643 644 645 #line default 646 #line hidden 647 WriteLiteral(" <!-- Top Header Menu -->\r\n"); 648 649 650 #line 255 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 651 652 653 #line default 654 #line hidden 655 656 #line 255 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 657 if (GetGlobalValue("Global:Extranet.SecondaryUser.ID").IsNullOrEmpty() == false) 658 { 659 660 661 #line default 662 #line hidden 663 WriteLiteral(" <div"); 664 665 WriteLiteral(" class=\"impersonate-container\""); 666 667 WriteLiteral(">\r\n <div"); 668 669 WriteLiteral(" class=\"impersonating-line\""); 670 671 WriteLiteral("></div>\r\n <div"); 672 673 WriteLiteral(" class=\"impersonating\""); 674 675 WriteLiteral(">\r\n <b>"); 676 677 678 #line 260 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 679 Write(Translate("Impersonating", "Imiterar")); 680 681 682 #line default 683 #line hidden 684 WriteLiteral(":</b>\r\n"); 685 686 WriteLiteral(" "); 687 688 689 #line 261 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 690 Write(user.UserName); 691 692 693 #line default 694 #line hidden 695 WriteLiteral(", "); 696 697 698 #line 261 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 699 Write(user.Name); 700 701 702 #line default 703 #line hidden 704 WriteLiteral(", "); 705 706 707 #line 261 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 708 Write(user.Company); 709 710 711 #line default 712 #line hidden 713 WriteLiteral("\r\n <br"); 714 715 WriteLiteral(" class=\"hidden-desktop\""); 716 717 WriteLiteral(">\r\n <form"); 718 719 WriteLiteral(" method=\"get\""); 720 721 WriteLiteral(" id=\"form-impersonate\""); 722 723 WriteLiteral(">\r\n <input"); 724 725 WriteLiteral(" type=\"hidden\""); 726 727 WriteLiteral(" name=\"DwExtranetRemoveSecondaryUser\""); 728 729 WriteLiteral(" id=\"DwExtranetRemoveSecondaryUser\""); 730 731 WriteLiteral(" value=\"1\""); 732 733 WriteLiteral(">\r\n <button"); 734 735 WriteLiteral(" type=\"button\""); 736 737 WriteLiteral(" class=\"btn btn--yellow big-mini margin-left-10 stop-impersonating\""); 738 739 WriteLiteral(">"); 740 741 742 #line 265 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 743 Write(Translate("Stop impersonating", "Sluta imitera")); 744 745 746 #line default 747 #line hidden 748 WriteLiteral("</button>\r\n </form>\r\n </div>\r\n </div>\r\n"); 749 750 WriteLiteral(" <div"); 751 752 WriteLiteral(" class=\"impersonate-5px\""); 753 754 WriteLiteral("></div>\r\n"); 755 756 WriteLiteral(" <script>\r\n $(\'.stop-impersonating\').click(function () {\r\n " + 757 " $(\'#form-impersonate\')[0].submit();\r\n });\r\n </scrip" + 758 "t>\r\n"); 759 760 761 #line 275 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 762 } 763 764 765 #line default 766 #line hidden 767 WriteLiteral(" <div"); 768 769 WriteLiteral(" class=\"top-header-menu\""); 770 771 WriteLiteral(">\r\n <div"); 772 773 WriteLiteral(" class=\"container\""); 774 775 WriteLiteral(">\r\n <ul"); 776 777 WriteLiteral(" class=\"nav navbar-nav\""); 778 779 WriteLiteral(">\r\n"); 780 781 782 #line 279 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 783 784 785 #line default 786 #line hidden 787 788 #line 279 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 789 foreach (var language in GetLoop("Languages")) 790 { 791 string obsoleteCulture = language.GetString("Culture"); 792 //string linkText = CultureHelper.GetResultBasedOffLang(obsoleteCulture, "svenska", "english", "norsk", "english"); 793 var linkText = CultureHelper.GetResultBasedOffLang(obsoleteCulture, "Sverige", "english", "Norge", "english"); 794 795 var queryParams = HttpContext.Current.Request.Url.Query; 796 if (language.GetBoolean("IsCurrent") == false) 797 { 798 string languagePage = language.GetString("PageID"); 799 800 801 #line default 802 #line hidden 803 WriteLiteral(" <li"); 804 805 WriteAttribute("class", Tuple.Create(" class=\"", 13140), Tuple.Create("\"", 13194) 806 , Tuple.Create(Tuple.Create("", 13148), Tuple.Create("flags", 13148), true) 807 808 #line 289 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 809 , Tuple.Create(Tuple.Create(" ", 13153), Tuple.Create<System.Object, System.Int32>(obsoleteCulture.Substring(3).ToLower() 810 811 #line default 812 #line hidden 813 , 13154), false) 814 , Tuple.Create(Tuple.Create(" ", 13193), Tuple.Create("", 13193), true) 815 ); 816 817 WriteLiteral("><a"); 818 819 WriteAttribute("class", Tuple.Create(" class=\"", 13198), Tuple.Create("\"", 13259) 820 , Tuple.Create(Tuple.Create("", 13206), Tuple.Create("language", 13206), true) 821 , Tuple.Create(Tuple.Create(" ", 13214), Tuple.Create("lang-", 13215), true) 822 823 #line 289 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 824 , Tuple.Create(Tuple.Create("", 13220), Tuple.Create<System.Object, System.Int32>(obsoleteCulture.Substring(3).ToLower() 825 826 #line default 827 #line hidden 828 , 13220), false) 829 ); 830 831 WriteAttribute("href", Tuple.Create(" href=\"", 13260), Tuple.Create("\"", 13313) 832 , Tuple.Create(Tuple.Create("", 13267), Tuple.Create("/Default.aspx?ID=", 13267), true) 833 834 #line 289 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 835 , Tuple.Create(Tuple.Create("", 13284), Tuple.Create<System.Object, System.Int32>(languagePage + queryParams 836 837 #line default 838 #line hidden 839 , 13284), false) 840 ); 841 842 WriteAttribute("hreflang", Tuple.Create(" hreflang=\"", 13314), Tuple.Create("\"", 13357) 843 844 #line 289 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 845 , Tuple.Create(Tuple.Create("", 13325), Tuple.Create<System.Object, System.Int32>(obsoleteCulture.Substring(0, 2) 846 847 #line default 848 #line hidden 849 , 13325), false) 850 ); 851 852 WriteLiteral(">"); 853 854 855 #line 289 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 856 Write(Translate(linkText)); 857 858 859 #line default 860 #line hidden 861 WriteLiteral("</a></li>\r\n"); 862 863 WriteLiteral(" <script>\r\n var queryParams = \'"); 864 865 866 #line 291 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 867 Write(queryParams); 868 869 870 #line default 871 #line hidden 872 WriteLiteral("\';\r\n $(\'.lang-"); 873 874 875 #line 292 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 876 Write(obsoleteCulture.Substring(3).ToLower()); 877 878 879 #line default 880 #line hidden 881 WriteLiteral("\').attr(\'href\',\r\n $(\'.lang-"); 882 883 884 #line 293 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 885 Write(obsoleteCulture.Substring(3).ToLower()); 886 887 888 #line default 889 #line hidden 890 WriteLiteral("\').attr(\'href\') + queryParams);\r\n </script>\r\n"); 891 892 893 #line 295 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 894 } 895 else 896 { 897 898 899 #line default 900 #line hidden 901 WriteLiteral(" <li"); 902 903 WriteAttribute("class", Tuple.Create(" class=\"", 13815), Tuple.Create("\"", 13876) 904 , Tuple.Create(Tuple.Create("", 13823), Tuple.Create("flags", 13823), true) 905 , Tuple.Create(Tuple.Create(" ", 13828), Tuple.Create("active", 13829), true) 906 907 #line 298 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 908 , Tuple.Create(Tuple.Create(" ", 13835), Tuple.Create<System.Object, System.Int32>(obsoleteCulture.Substring(3).ToLower() 909 910 #line default 911 #line hidden 912 , 13836), false) 913 , Tuple.Create(Tuple.Create(" ", 13875), Tuple.Create("", 13875), true) 914 ); 915 916 WriteLiteral("><a"); 917 918 WriteLiteral(" class=\"language\""); 919 920 WriteLiteral(">"); 921 922 923 #line 298 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 924 Write(Translate(linkText)); 925 926 927 #line default 928 #line hidden 929 WriteLiteral("</a></li>\r\n"); 930 931 932 #line 299 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 933 } 934 } 935 936 937 #line default 938 #line hidden 939 WriteLiteral(" </ul>\r\n <ul"); 940 941 WriteLiteral(" class=\"nav navbar-nav pull-right\""); 942 943 WriteLiteral(" style=\"height: 40px;\""); 944 945 WriteLiteral(">\r\n"); 946 947 948 #line 303 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 949 950 951 #line default 952 #line hidden 953 954 #line 303 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 955 if (!string.IsNullOrWhiteSpace(GetString("DW_extranet_AccessUserName"))) 956 { 957 958 959 #line default 960 #line hidden 961 WriteLiteral(" <li>\r\n <a"); 962 963 WriteLiteral(" class=\"log-out\""); 964 965 WriteAttribute("href", Tuple.Create(" href=\"", 14242), Tuple.Create("\"", 14295) 966 , Tuple.Create(Tuple.Create("", 14249), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 14249), true) 967 968 #line 306 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 969 , Tuple.Create(Tuple.Create("", 14286), Tuple.Create<System.Object, System.Int32>(logoutId 970 971 #line default 972 #line hidden 973 , 14286), false) 974 ); 975 976 WriteLiteral(">"); 977 978 979 #line 306 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 980 Write(Translate("Logout")); 981 982 983 #line default 984 #line hidden 985 WriteLiteral("</a>\r\n </li>\r\n"); 986 987 WriteLiteral(" <li>\r\n <a"); 988 989 WriteLiteral(" href=\"\""); 990 991 WriteLiteral(" class=\"name-tag\""); 992 993 WriteLiteral(">\r\n"); 994 995 WriteLiteral(" "); 996 997 998 #line 310 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 999 Write(fullName); 1000 1001 1002 #line default 1003 #line hidden 1004 WriteLiteral("\r\n </a>\r\n </li>\r\n"); 1005 1006 WriteLiteral(" <li>\r\n"); 1007 1008 1009 #line 314 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1010 1011 1012 #line default 1013 #line hidden 1014 1015 #line 314 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1016 if (names.Length > 1) 1017 { 1018 string initials = names[0].Substring(0, 1) + names[1].Substring(0, 1); 1019 1020 1021 #line default 1022 #line hidden 1023 WriteLiteral(" <span"); 1024 1025 WriteLiteral(" class=\"initials-badge\""); 1026 1027 WriteLiteral(">"); 1028 1029 1030 #line 317 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1031 Write(initials.ToUpper()); 1032 1033 1034 #line default 1035 #line hidden 1036 WriteLiteral("</span>\r\n"); 1037 1038 1039 #line 318 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1040 } 1041 else 1042 { 1043 string initials = names[0].Substring(0, 1); 1044 1045 1046 #line default 1047 #line hidden 1048 WriteLiteral(" <span"); 1049 1050 WriteLiteral(" class=\"initials-badge\""); 1051 1052 WriteLiteral(">"); 1053 1054 1055 #line 322 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1056 Write(initials.ToUpper()); 1057 1058 1059 #line default 1060 #line hidden 1061 WriteLiteral("</span>\r\n"); 1062 1063 1064 #line 323 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1065 } 1066 1067 1068 #line default 1069 #line hidden 1070 WriteLiteral(" </li>\r\n"); 1071 1072 1073 #line 325 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1074 if (FronteggHelper.CanChangeUser()) 1075 { 1076 1077 1078 #line default 1079 #line hidden 1080 WriteLiteral(" <li><a"); 1081 1082 WriteAttribute("href", Tuple.Create(" href=\"", 15218), Tuple.Create("\"", 15242) 1083 1084 #line 327 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1085 , Tuple.Create(Tuple.Create("", 15225), Tuple.Create<System.Object, System.Int32>(changeaccountUrl 1086 1087 #line default 1088 #line hidden 1089 , 15225), false) 1090 ); 1091 1092 WriteAttribute("title", Tuple.Create(" title=\'", 15243), Tuple.Create("\'", 15303) 1093 1094 #line 327 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1095 , Tuple.Create(Tuple.Create("", 15251), Tuple.Create<System.Object, System.Int32>(Translate("ChangeAccountTooltip", "Byta användare") 1096 1097 #line default 1098 #line hidden 1099 , 15251), false) 1100 ); 1101 1102 WriteLiteral("><span"); 1103 1104 WriteLiteral(" class=\"glyphicon glyphicon-transfer\""); 1105 1106 WriteLiteral(" style=\"color: white;font-size: 20px;padding: 0px 0px 0px 0px;top: -2px;\""); 1107 1108 WriteLiteral("></span></a></li>\r\n"); 1109 1110 1111 #line 328 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1112 } 1113 } 1114 1115 1116 #line default 1117 #line hidden 1118 1119 #line 338 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1120 1121 1122 1123 #line default 1124 #line hidden 1125 WriteLiteral(" </ul>\r\n </div>\r\n </div>\r\n <!-- Top Navigation Menu -->\r\n" + 1126 " <nav"); 1127 1128 WriteLiteral(" class=\"navbar top-navigation-menu\""); 1129 1130 WriteLiteral(" role=\"navigation\""); 1131 1132 WriteLiteral(">\r\n <div"); 1133 1134 WriteLiteral(" class=\"container\""); 1135 1136 WriteLiteral(">\r\n <!-- Brand and toggle get grouped for better mobile display -->\r\n " + 1137 " <div"); 1138 1139 WriteLiteral(" class=\"navbar-header\""); 1140 1141 WriteLiteral(">\r\n <button"); 1142 1143 WriteLiteral(" type=\"button\""); 1144 1145 WriteLiteral(" class=\"navbar-toggle no-focus\""); 1146 1147 WriteLiteral(" data-toggle=\"collapse\""); 1148 1149 WriteLiteral(" data-target=\"#bs-example-navbar-collapse-1\""); 1150 1151 WriteLiteral(" style=\"\""); 1152 1153 WriteLiteral(">\r\n <span"); 1154 1155 WriteLiteral(" class=\"sr-only\""); 1156 1157 WriteLiteral(">Toggle navigation</span>\r\n <span"); 1158 1159 WriteLiteral(" class=\"icon-bar\""); 1160 1161 WriteLiteral("></span>\r\n <span"); 1162 1163 WriteLiteral(" class=\"icon-bar\""); 1164 1165 WriteLiteral("></span>\r\n <span"); 1166 1167 WriteLiteral(" class=\"icon-bar\""); 1168 1169 WriteLiteral("></span>\r\n <span"); 1170 1171 WriteLiteral(" class=\"glyphicon glyphicon-remove\""); 1172 1173 WriteLiteral("></span>\r\n </button>\r\n <a"); 1174 1175 WriteLiteral(" class=\"navbar-brand\""); 1176 1177 WriteAttribute("href", Tuple.Create(" href=\"", 16940), Tuple.Create("\"", 16955) 1178 1179 #line 354 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1180 , Tuple.Create(Tuple.Create("", 16947), Tuple.Create<System.Object, System.Int32>(homeUrl 1181 1182 #line default 1183 #line hidden 1184 , 16947), false) 1185 ); 1186 1187 WriteLiteral(">\r\n <img"); 1188 1189 WriteLiteral(" class=\"img-responsive\""); 1190 1191 WriteLiteral(" src=\"/Files/Templates/Designs/AddSecure/./Images/AddSecureLogo.png\""); 1192 1193 WriteLiteral(">\r\n </a>\r\n </div>\r\n <!-- Collect the nav lin" + 1194 "ks, forms, and other content for toggling -->\r\n <div"); 1195 1196 WriteLiteral(" class=\"collapse navbar-collapse\""); 1197 1198 WriteLiteral(" id=\"bs-example-navbar-collapse-1\""); 1199 1200 WriteLiteral(">\r\n <div"); 1201 1202 WriteLiteral(" class=\"visible-xs row mobile-nav-top\""); 1203 1204 WriteLiteral(">\r\n <div"); 1205 1206 WriteLiteral(" class=\"col-xs-12 mobile-menu-name\""); 1207 1208 WriteLiteral(">\r\n"); 1209 1210 1211 #line 362 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1212 1213 1214 #line default 1215 #line hidden 1216 1217 #line 362 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1218 1219 if (!string.IsNullOrWhiteSpace(GetString("DW_extranet_AccessUserName"))) 1220 { 1221 if (names.Length > 1) 1222 { 1223 string initials = names[0].Substring(0, 1) + names[1].Substring(0, 1); 1224 1225 1226 #line default 1227 #line hidden 1228 WriteLiteral(" <span"); 1229 1230 WriteLiteral(" class=\"initials-tag\""); 1231 1232 WriteLiteral(">"); 1233 1234 1235 #line 368 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1236 Write(initials.ToUpper()); 1237 1238 1239 #line default 1240 #line hidden 1241 WriteLiteral("</span>\r\n"); 1242 1243 1244 #line 369 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1245 } 1246 else 1247 { 1248 string initials = names[0].Substring(0, 1); 1249 1250 1251 #line default 1252 #line hidden 1253 WriteLiteral(" <span"); 1254 1255 WriteLiteral(" class=\"initials-tag\""); 1256 1257 WriteLiteral(">"); 1258 1259 1260 #line 373 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1261 Write(initials.ToUpper()); 1262 1263 1264 #line default 1265 #line hidden 1266 WriteLiteral("</span>\r\n"); 1267 1268 1269 #line 374 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1270 } 1271 1272 1273 #line default 1274 #line hidden 1275 WriteLiteral(" <span"); 1276 1277 WriteLiteral(" class=\"name-tag\""); 1278 1279 WriteLiteral(">"); 1280 1281 1282 #line 375 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1283 Write(GetValue("DW_extranet_AccessUserName")); 1284 1285 1286 #line default 1287 #line hidden 1288 WriteLiteral("</span>\r\n"); 1289 1290 WriteLiteral(" <a"); 1291 1292 WriteAttribute("href", Tuple.Create(" href=\"", 18313), Tuple.Create("\"", 18366) 1293 , Tuple.Create(Tuple.Create("", 18320), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 18320), true) 1294 1295 #line 376 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1296 , Tuple.Create(Tuple.Create("", 18357), Tuple.Create<System.Object, System.Int32>(logoutId 1297 1298 #line default 1299 #line hidden 1300 , 18357), false) 1301 ); 1302 1303 WriteLiteral(">"); 1304 1305 1306 #line 376 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1307 Write(Translate("Logout")); 1308 1309 1310 #line default 1311 #line hidden 1312 WriteLiteral("</a>\r\n"); 1313 1314 1315 #line 377 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1316 } 1317 1318 1319 #line default 1320 #line hidden 1321 WriteLiteral("\r\n </div>\r\n </div>\r\n <div"); 1322 1323 WriteLiteral(" class=\"hidden-mobile pull-right\""); 1324 1325 WriteLiteral(">\r\n"); 1326 1327 WriteLiteral(" "); 1328 1329 1330 #line 382 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1331 Write(GetValue("DwNavigation(navbar)")); 1332 1333 1334 #line default 1335 #line hidden 1336 WriteLiteral("\r\n </div>\r\n <div"); 1337 1338 WriteLiteral(" class=\"visible-mobile\""); 1339 1340 WriteLiteral(">\r\n"); 1341 1342 WriteLiteral(" "); 1343 1344 1345 #line 385 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1346 Write(GetValue("DwNavigation(navbar2)")); 1347 1348 1349 #line default 1350 #line hidden 1351 WriteLiteral("\r\n </div>\r\n <div"); 1352 1353 WriteLiteral(" class=\"row\""); 1354 1355 WriteLiteral(">\r\n <div"); 1356 1357 WriteLiteral(" class=\"col-xs-12 visible-xs mobile-menu-languages\""); 1358 1359 WriteLiteral(">\r\n\r\n"); 1360 1361 1362 #line 390 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1363 1364 1365 #line default 1366 #line hidden 1367 1368 #line 390 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1369 foreach (var language in GetLoop("Languages")) 1370 { 1371 string obsoleteCulture = language.GetString("Culture"); 1372 string linkText = CultureHelper.GetResultBasedOffLang(obsoleteCulture, "svenska", "english", "norsk", "english"); 1373 1374 var queryParams = HttpContext.Current.Request.Url.Query; 1375 if (!language.GetBoolean("IsCurrent")) 1376 { 1377 string languagePage = language.GetString("PageID"); 1378 1379 1380 #line default 1381 #line hidden 1382 WriteLiteral(" <div"); 1383 1384 WriteAttribute("class", Tuple.Create(" class=\"", 19516), Tuple.Create("\"", 19570) 1385 , Tuple.Create(Tuple.Create("", 19524), Tuple.Create("flags", 19524), true) 1386 1387 #line 399 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1388 , Tuple.Create(Tuple.Create(" ", 19529), Tuple.Create<System.Object, System.Int32>(obsoleteCulture.Substring(3).ToLower() 1389 1390 #line default 1391 #line hidden 1392 , 19530), false) 1393 , Tuple.Create(Tuple.Create(" ", 19569), Tuple.Create("", 19569), true) 1394 ); 1395 1396 WriteLiteral("><a"); 1397 1398 WriteLiteral(" class=\"language\""); 1399 1400 WriteAttribute("href", Tuple.Create(" href=\"", 19591), Tuple.Create("\"", 19644) 1401 , Tuple.Create(Tuple.Create("", 19598), Tuple.Create("/Default.aspx?ID=", 19598), true) 1402 1403 #line 399 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1404 , Tuple.Create(Tuple.Create("", 19615), Tuple.Create<System.Object, System.Int32>(languagePage + queryParams 1405 1406 #line default 1407 #line hidden 1408 , 19615), false) 1409 ); 1410 1411 WriteAttribute("hreflang", Tuple.Create(" hreflang=\"", 19645), Tuple.Create("\"", 19688) 1412 1413 #line 399 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1414 , Tuple.Create(Tuple.Create("", 19656), Tuple.Create<System.Object, System.Int32>(obsoleteCulture.Substring(0, 2) 1415 1416 #line default 1417 #line hidden 1418 , 19656), false) 1419 ); 1420 1421 WriteLiteral(">"); 1422 1423 1424 #line 399 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1425 Write(linkText); 1426 1427 1428 #line default 1429 #line hidden 1430 WriteLiteral("</a></div>\r\n"); 1431 1432 1433 #line 400 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1434 } 1435 else 1436 { 1437 1438 1439 #line default 1440 #line hidden 1441 WriteLiteral(" <div"); 1442 1443 WriteAttribute("class", Tuple.Create(" class=\"", 19843), Tuple.Create("\"", 19904) 1444 , Tuple.Create(Tuple.Create("", 19851), Tuple.Create("flags", 19851), true) 1445 , Tuple.Create(Tuple.Create(" ", 19856), Tuple.Create("active", 19857), true) 1446 1447 #line 403 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1448 , Tuple.Create(Tuple.Create(" ", 19863), Tuple.Create<System.Object, System.Int32>(obsoleteCulture.Substring(3).ToLower() 1449 1450 #line default 1451 #line hidden 1452 , 19864), false) 1453 , Tuple.Create(Tuple.Create(" ", 19903), Tuple.Create("", 19903), true) 1454 ); 1455 1456 WriteLiteral("><a"); 1457 1458 WriteLiteral(" class=\"language\""); 1459 1460 WriteLiteral(">"); 1461 1462 1463 #line 403 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1464 Write(linkText); 1465 1466 1467 #line default 1468 #line hidden 1469 WriteLiteral("</a></div>\r\n"); 1470 1471 1472 #line 404 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1473 } 1474 } 1475 1476 1477 #line default 1478 #line hidden 1479 WriteLiteral(" </div>\r\n </div>\r\n </div>\r\n " + 1480 " <!-- /.navbar-collapse -->\r\n </div>\r\n <!-- /.container -->\r\n " + 1481 " </nav>\r\n\r\n <!-- Page Content -->\r\n <div"); 1482 1483 WriteLiteral(" class=\"container-fluid\""); 1484 1485 WriteLiteral(">\r\n <section"); 1486 1487 WriteLiteral(" class=\"center-container content-container dw-mod\""); 1488 1489 WriteLiteral(" id=\"content\""); 1490 1491 WriteLiteral(">\r\n"); 1492 1493 1494 #line 417 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1495 1496 1497 #line default 1498 #line hidden 1499 WriteLiteral("\r\n\r\n\r\n"); 1500 1501 1502 #line 422 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1503 1504 bool hasOnlyText = GetString("Item.PublishDate") == "" && GetString("Item.Image") == ""; 1505 1506 1507 #line default 1508 #line hidden 1509 WriteLiteral("\r\n\r\n<!-- Article content -->\r\n<div"); 1510 1511 WriteLiteral(" class=\"news-wrapper\""); 1512 1513 WriteLiteral(">\r\n\t<div"); 1514 1515 WriteLiteral(" class=\"container news-container\""); 1516 1517 WriteLiteral(">\r\n\t\t<!-- General Section -->\r\n\t\t<h1"); 1518 1519 WriteLiteral(" class=\"h1 news-header\""); 1520 1521 WriteLiteral(" style=\"margin-bottom: 15px;\""); 1522 1523 WriteLiteral(">"); 1524 1525 1526 #line 430 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1527 Write(GetString("Item.Headline")); 1528 1529 1530 #line default 1531 #line hidden 1532 WriteLiteral("</h1>\r\n"); 1533 1534 1535 #line 431 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1536 1537 1538 #line default 1539 #line hidden 1540 1541 #line 431 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1542 if (GetString("Item.PublishDate") != "") 1543 { 1544 1545 1546 #line default 1547 #line hidden 1548 WriteLiteral("\t\t\t<p"); 1549 1550 WriteLiteral(" class=\"publish-date\""); 1551 1552 WriteLiteral(">"); 1553 1554 1555 #line 433 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1556 Write(Translate("Published ")); 1557 1558 1559 #line default 1560 #line hidden 1561 WriteLiteral(" "); 1562 1563 1564 #line 433 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1565 Write(GetString("Item.PublishDate").Split(' ').First()); 1566 1567 1568 #line default 1569 #line hidden 1570 WriteLiteral("</p>\r\n"); 1571 1572 1573 #line 434 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1574 } 1575 1576 1577 #line default 1578 #line hidden 1579 WriteLiteral("\t\t"); 1580 1581 1582 #line 435 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1583 if (GetString("Item.Image") != "") 1584 { 1585 1586 1587 #line default 1588 #line hidden 1589 WriteLiteral("\t\t\t<div"); 1590 1591 WriteLiteral(" class=\"text-center\""); 1592 1593 WriteLiteral(">\r\n\t\t\t\t<img"); 1594 1595 WriteLiteral(" class=\"img-responsive\""); 1596 1597 WriteAttribute("src", Tuple.Create(" src=\'", 21009), Tuple.Create("\'", 21043) 1598 1599 #line 438 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1600 , Tuple.Create(Tuple.Create("", 21015), Tuple.Create<System.Object, System.Int32>(GetString(%22Item.Image%22) 1601 1602 #line default 1603 #line hidden 1604 , 21015), false) 1605 ); 1606 1607 WriteLiteral(">\r\n\t\t\t</div>\r\n"); 1608 1609 1610 #line 440 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1611 } 1612 1613 1614 #line default 1615 #line hidden 1616 WriteLiteral("\t\t"); 1617 1618 1619 #line 441 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1620 if (GetString("Item.Body_Text") != "") 1621 { 1622 1623 1624 #line default 1625 #line hidden 1626 WriteLiteral("\t\t\t<div"); 1627 1628 WriteAttribute("class", Tuple.Create(" class=\"", 21118), Tuple.Create("\"", 21173) 1629 , Tuple.Create(Tuple.Create("", 21126), Tuple.Create("news-body", 21126), true) 1630 1631 #line 443 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1632 , Tuple.Create(Tuple.Create(" ", 21135), Tuple.Create<System.Object, System.Int32>(hasOnlyText ? " no-padding-top":"" 1633 1634 #line default 1635 #line hidden 1636 , 21136), false) 1637 ); 1638 1639 WriteLiteral("=\"\" style=\"line-height: 34px !important;\">\r\n"); 1640 1641 WriteLiteral("\t\t\t\t"); 1642 1643 1644 #line 444 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1645 Write(GetString("Item.Body_Text")); 1646 1647 1648 #line default 1649 #line hidden 1650 WriteLiteral("\r\n\t\t\t</div>\r\n"); 1651 1652 1653 #line 446 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1654 } 1655 1656 1657 #line default 1658 #line hidden 1659 WriteLiteral("\r\n\t\t&#8592; <a"); 1660 1661 WriteLiteral(" href=\"#\""); 1662 1663 WriteLiteral(" class=\"news-link\""); 1664 1665 WriteLiteral(">"); 1666 1667 1668 #line 448 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1669 Write(Translate("Back to the news list")); 1670 1671 1672 #line default 1673 #line hidden 1674 WriteLiteral("</a>\r\n\r\n\t</div>\r\n</div>\r\n\r\n<script>\r\n\t$(document).ready(function() {\r\n\t\t$(\'.news-" + 1675 "link\').attr(\"href\", getUrlNews(window.location.href));\r\n\t});\r\n</script>\r\n " + 1676 " <div"); 1677 1678 WriteLiteral(" id=\"nav-error-popup\""); 1679 1680 WriteLiteral(" class=\"modal-wrapper\""); 1681 1682 WriteLiteral(">\r\n <div"); 1683 1684 WriteLiteral(" class=\"modal-content\""); 1685 1686 WriteLiteral(">\r\n\t<span"); 1687 1688 WriteLiteral(" class=\"modal-close modal-cross\""); 1689 1690 WriteLiteral(">&times;</span>\r\n\t<div"); 1691 1692 WriteLiteral(" class=\"modal-table\""); 1693 1694 WriteLiteral(">\r\n\t\t<div"); 1695 1696 WriteLiteral(" class=\"modal-middle-wrapper\""); 1697 1698 WriteLiteral(">\r\n\t\t\t<div"); 1699 1700 WriteLiteral(" class=\"modal-inner-content-wrapper\""); 1701 1702 WriteLiteral(">\r\n\t\t\t\t<div"); 1703 1704 WriteLiteral(" class=\"content\""); 1705 1706 WriteLiteral(">\r\n\t\t\t\t\t<p>\r\n"); 1707 1708 WriteLiteral("\t\t\t\t\t\t"); 1709 1710 1711 #line 466 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1712 Write(Translate("An error occurred", "Ett fel inträffade")); 1713 1714 1715 #line default 1716 #line hidden 1717 WriteLiteral("\r\n\t\t\t\t\t\t"); 1718 1719 WriteLiteral("\r\n\t\t\t\t\t\r\n\t\t\t\t\t<p"); 1720 1721 WriteLiteral(" class=\"error-content\""); 1722 1723 WriteLiteral(">"); 1724 1725 1726 #line 469 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1727 Write(Translate("There was an error contacting an external system, please contact AddSecure and give them this error: ")); 1728 1729 1730 #line default 1731 #line hidden 1732 WriteLiteral("<br><br>"); 1733 1734 1735 #line 469 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1736 Write(HttpContext.Current.Items["ErpError"]); 1737 1738 1739 #line default 1740 #line hidden 1741 WriteLiteral("<br></p> \r\n\t\t\t\t</div>\r\n\t\t\t\t<input"); 1742 1743 WriteLiteral(" type=\"submit\""); 1744 1745 WriteLiteral(" class=\"btn btn--secondary btn--modal modal-close\""); 1746 1747 WriteAttribute("value", Tuple.Create(" value=\"", 22182), Tuple.Create("\"", 22207) 1748 1749 #line 471 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1750 , Tuple.Create(Tuple.Create("", 22190), Tuple.Create<System.Object, System.Int32>(Translate(" ok") 1751 1752 #line default 1753 #line hidden 1754 , 22190), false) 1755 ); 1756 1757 WriteLiteral(@"=""""> 1758 </div> 1759 </div> 1760 </div> 1761 </div> 1762 1763 <script> 1764 $(document).ready(function () { 1765 $(""#nav-error-popup .modal-close"").click(function () { 1766 $(""#nav-error-popup"").css(""display"", ""none""); 1767 }); 1768 1769 $("".modal-close, .modal-close-nostyle"").click(function () { 1770 $("".modal-wrapper"").css(""display"", ""none""); 1771 }); 1772 1773 //$(""#nav-error-popup.modal-wrapper"").click(function () { 1774 // if (!$(this).hasClass(""modal-content"")) 1775 // $(""#nav-error-popup"").css(""display"", ""none""); 1776 //}); 1777 1778 $("".content"").html(function () { 1779 if ($('#nav-error-popup.modal-wrapper').attr(""data-error"") != '') 1780 return $('#nav-error-popup.modal-wrapper').attr(""data-error""); 1781 }); 1782 }); 1783 </script> 1784 </div> 1785 <div"); 1786 1787 WriteLiteral(" class=\"modal-wrapper no-permission-wrapper\""); 1788 1789 WriteLiteral(">\r\n <div"); 1790 1791 WriteLiteral(" class=\"modal-content\""); 1792 1793 WriteLiteral(">\r\n\t<span"); 1794 1795 WriteLiteral(" class=\"modal-close modal-cross\""); 1796 1797 WriteLiteral(">&times;</span>\r\n\t<div"); 1798 1799 WriteLiteral(" class=\"modal-table\""); 1800 1801 WriteLiteral(">\r\n\t\t<div"); 1802 1803 WriteLiteral(" class=\"modal-middle-wrapper\""); 1804 1805 WriteLiteral(">\r\n\t\t\t<div"); 1806 1807 WriteLiteral(" class=\"modal-inner-content-wrapper\""); 1808 1809 WriteLiteral(">\r\n\t\t\t\t<p>"); 1810 1811 1812 #line 505 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1813 Write(Translate("Your user does not have permission to enter any orderflow. To gain this permissions, please ask the superadmin of your company to turn your account into an admin user." 1814 , "Din användare har inte behörighet att gå in på något orderflöde. För att få denna behörighet, be ditt företags superadmin att ändra ditt konto till en adminanvändare.")); 1815 1816 1817 #line default 1818 #line hidden 1819 WriteLiteral("</p>\r\n\t\t\t\t<button"); 1820 1821 WriteLiteral(" type=\"button\""); 1822 1823 WriteLiteral(" class=\"btn btn--secondary btn--modal modal-close-nostyle\""); 1824 1825 WriteLiteral(">"); 1826 1827 1828 #line 507 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1829 Write(Translate("OK", "OK")); 1830 1831 1832 #line default 1833 #line hidden 1834 WriteLiteral(@"</button> 1835 </div> 1836 </div> 1837 </div> 1838 </div> 1839 1840 <script> 1841 $(document).ready(function () { 1842 $("".show-modal-no-permission"").click(function () { 1843 $("".no-permission-wrapper"").css(""display"", ""block""); 1844 }); 1845 1846 $("".modal-close, .modal-close-nostyle"").click(function () { 1847 $("".modal-wrapper"").css(""display"", ""none""); 1848 }); 1849 1850 //$("".modal-wrapper"").click(function () { 1851 // if (!$(this).hasClass(""modal-content"")) 1852 // $("".modal-wrapper"").css(""display"", ""none""); 1853 //}); 1854 }); 1855 </script> 1856 </div> 1857 </section> 1858 </div> 1859 1860 <!-- Footer --> 1861 <div"); 1862 1863 WriteLiteral(" id=\"footer-full\""); 1864 1865 WriteLiteral(">\r\n <footer>\r\n <div"); 1866 1867 WriteLiteral(" class=\"container\""); 1868 1869 WriteLiteral(">\r\n <div"); 1870 1871 WriteLiteral(" class=\"row\""); 1872 1873 WriteLiteral(">\r\n <div"); 1874 1875 WriteLiteral(" class=\"col-xs-12 col-sm-3\""); 1876 1877 WriteLiteral(">\r\n "); 1878 1879 WriteLiteral("\r\n"); 1880 1881 1882 #line 540 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1883 1884 1885 #line default 1886 #line hidden 1887 1888 #line 540 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1889 if (!string.IsNullOrEmpty(GetString("Item.Area.Parent_Page_1"))) 1890 { 1891 1892 1893 #line default 1894 #line hidden 1895 WriteLiteral(" <h2"); 1896 1897 WriteLiteral(" class=\"footer-header\""); 1898 1899 WriteLiteral("> "); 1900 1901 1902 #line 542 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1903 Write(GetValue("Item.Area.Parent_Page_1.ParagraphName")); 1904 1905 1906 #line default 1907 #line hidden 1908 WriteLiteral("</h2>\r\n"); 1909 1910 1911 #line 543 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1912 foreach (var item in GetLoop("Item.Area.Parent_Page_1.Value.Cards.Value")) 1913 { 1914 1915 1916 #line default 1917 #line hidden 1918 WriteLiteral(" <a"); 1919 1920 WriteLiteral(" class=\"footer-link\""); 1921 1922 WriteAttribute("href", Tuple.Create(" href=\'", 25018), Tuple.Create("\'", 25089) 1923 1924 #line 545 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1925 , Tuple.Create(Tuple.Create("", 25025), Tuple.Create<System.Object, System.Int32>(item.GetValue("Item.Area.Parent_Page_1.Value.Cards.Value.Link") 1926 1927 #line default 1928 #line hidden 1929 , 25025), false) 1930 ); 1931 1932 WriteLiteral(">\r\n"); 1933 1934 WriteLiteral(" "); 1935 1936 1937 #line 546 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1938 Write(item.GetValue("Item.Area.Parent_Page_1.Value.Cards.Value.Header")); 1939 1940 1941 #line default 1942 #line hidden 1943 WriteLiteral("\r\n </a>\r\n"); 1944 1945 1946 #line 548 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1947 } 1948 } 1949 1950 1951 #line default 1952 #line hidden 1953 WriteLiteral(" </div>\r\n <div"); 1954 1955 WriteLiteral(" class=\"col-xs-12 col-sm-3\""); 1956 1957 WriteLiteral(">\r\n"); 1958 1959 1960 #line 552 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1961 1962 1963 #line default 1964 #line hidden 1965 1966 #line 552 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1967 if (!string.IsNullOrEmpty(GetString("Item.Area.Parent_Page_2"))) 1968 { 1969 var parent2_idString = GetString("Item.Area.Parent_Page_2").Split('=')[1]; 1970 int parent2_id = 0; 1971 int.TryParse(parent2_idString, out parent2_id); 1972 1973 string parent2_pageName = Dynamicweb.Services.Pages.GetPage(parent2_id).MenuText; 1974 var parent2_pageList = Dynamicweb.Services.Pages.GetPagesByParentID(parent2_id).ToList(); 1975 var limit = 5; 1976 1977 1978 1979 #line default 1980 #line hidden 1981 WriteLiteral(" <h2"); 1982 1983 WriteLiteral(" class=\"footer-header\""); 1984 1985 WriteLiteral("> "); 1986 1987 1988 #line 562 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1989 Write(parent2_pageName); 1990 1991 1992 #line default 1993 #line hidden 1994 WriteLiteral("</h2>\r\n"); 1995 1996 1997 #line 563 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 1998 1999 for (int i = 0; i < parent2_pageList.Count; i++) 2000 { 2001 if (parent2_pageList[i].NavigationTag.ToLower().Contains("iot") || parent2_pageList[i].Active == false) 2002 { 2003 limit++; 2004 continue; 2005 } 2006 if (i < limit) 2007 { 2008 if ((parent2_pageList[i].NavigationTag.Contains("edit-user") && User.GetCurrentExtranetUser().CustomFieldValues()["AccessUser_UserRole"].Value.ToString().ToLower() != "superadmin") 2009 || (parent2_pageList[i].NavigationTag.Contains("impersonate") && !User.GetCurrentExtranetUser().Groups.Any(x => x.Name.ToLower().StartsWith("system admin"))) 2010 || parent2_pageList[i].Active == false) 2011 { 2012 limit++; 2013 continue; 2014 } 2015 2016 if (Dynamicweb.Services.Pages.GetPage(parent2_id).NavigationTag.ToLower().Contains("products-and-services") 2017 && User.get_Current(PagePermissionLevels.Frontend).CustomFieldValues.First(x => x.CustomField.Name == "UserRole").Value.ToString() == "User") 2018 { 2019 2020 2021 #line default 2022 #line hidden 2023 WriteLiteral(" <a"); 2024 2025 WriteLiteral(" class=\"footer-link show-modal-no-permission\""); 2026 2027 WriteLiteral(" style=\"cursor: pointer;\""); 2028 2029 WriteLiteral(">\r\n"); 2030 2031 WriteLiteral(" "); 2032 2033 2034 #line 585 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2035 Write(parent2_pageList[i].MenuText); 2036 2037 2038 #line default 2039 #line hidden 2040 WriteLiteral("\r\n </a>\r\n"); 2041 2042 2043 #line 587 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2044 } 2045 else 2046 { 2047 2048 2049 #line default 2050 #line hidden 2051 WriteLiteral(" <a"); 2052 2053 WriteLiteral(" class=\"footer-link\""); 2054 2055 WriteAttribute("href", Tuple.Create(" href=\"", 28038), Tuple.Create("\"", 28129) 2056 2057 #line 590 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2058 , Tuple.Create(Tuple.Create("", 28045), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(parent2_pageList[i].ID) 2059 2060 #line default 2061 #line hidden 2062 , 28045), false) 2063 ); 2064 2065 WriteLiteral(">\r\n"); 2066 2067 WriteLiteral(" "); 2068 2069 2070 #line 591 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2071 Write(parent2_pageList[i].MenuText); 2072 2073 2074 #line default 2075 #line hidden 2076 WriteLiteral("\r\n </a>\r\n"); 2077 2078 2079 #line 593 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2080 } 2081 } 2082 else 2083 { 2084 break; 2085 } 2086 } 2087 } 2088 2089 2090 #line default 2091 #line hidden 2092 WriteLiteral(" </div>\r\n <div"); 2093 2094 WriteLiteral(" class=\"col-xs-12 col-sm-6\""); 2095 2096 WriteLiteral(">\r\n <h2"); 2097 2098 WriteLiteral(" class=\"footer-header\""); 2099 2100 WriteLiteral(">"); 2101 2102 2103 #line 603 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2104 Write(Translate("About AddSecure")); 2105 2106 2107 #line default 2108 #line hidden 2109 WriteLiteral("</h2>\r\n <p"); 2110 2111 WriteLiteral(" class=\"about-text\""); 2112 2113 WriteLiteral(">"); 2114 2115 2116 #line 604 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2117 Write(GetValue("Item.Area.About_Text")); 2118 2119 2120 #line default 2121 #line hidden 2122 WriteLiteral("</p>\r\n <h2"); 2123 2124 WriteLiteral(" class=\"footer-header\""); 2125 2126 WriteLiteral(">"); 2127 2128 2129 #line 605 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2130 Write(Translate("Privacy Policy")); 2131 2132 2133 #line default 2134 #line hidden 2135 WriteLiteral("</h2>\r\n <p"); 2136 2137 WriteLiteral(" class=\"about-text\""); 2138 2139 WriteLiteral(">"); 2140 2141 2142 #line 606 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2143 Write(GetValue("Item.Area.Privacy_Policy")); 2144 2145 2146 #line default 2147 #line hidden 2148 WriteLiteral("</p>\r\n <h2"); 2149 2150 WriteLiteral(" class=\"footer-header\""); 2151 2152 WriteLiteral(">"); 2153 2154 2155 #line 607 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2156 Write(Translate("Footer Cookie Policy")); 2157 2158 2159 #line default 2160 #line hidden 2161 WriteLiteral("</h2>\r\n <p"); 2162 2163 WriteLiteral(" class=\"about-text\""); 2164 2165 WriteLiteral(">"); 2166 2167 2168 #line 608 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2169 Write(Translate("Footer Cookie-policy")); 2170 2171 2172 #line default 2173 #line hidden 2174 WriteLiteral("</p>\r\n </div>\r\n </div>\r\n </div>\r\n " + 2175 " </footer>\r\n <div"); 2176 2177 WriteLiteral(" class=\"footer-bottom\""); 2178 2179 WriteLiteral(">\r\n <div"); 2180 2181 WriteLiteral(" class=\"container\""); 2182 2183 WriteLiteral(">\r\n <div"); 2184 2185 WriteLiteral(" class=\"row\""); 2186 2187 WriteLiteral(">\r\n <div"); 2188 2189 WriteLiteral(" class=\"col-xs-12 col-sm-3\""); 2190 2191 WriteLiteral(">\r\n <h2"); 2192 2193 WriteLiteral(" class=\"footer-city\""); 2194 2195 WriteLiteral(">"); 2196 2197 2198 #line 617 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2199 Write(GetValue("Item.Area.Office_1_Name")); 2200 2201 2202 #line default 2203 #line hidden 2204 WriteLiteral("</h2>\r\n <p>"); 2205 2206 2207 #line 618 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2208 Write(GetValue("Item.Area.Office_1_Address_1")); 2209 2210 2211 #line default 2212 #line hidden 2213 WriteLiteral("</p>\r\n <p>"); 2214 2215 2216 #line 619 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2217 Write(GetValue("Item.Area.Office_1_Address_2")); 2218 2219 2220 #line default 2221 #line hidden 2222 WriteLiteral("</p>\r\n </div>\r\n <div"); 2223 2224 WriteLiteral(" class=\"col-xs-12 col-sm-3\""); 2225 2226 WriteLiteral(">\r\n <h2"); 2227 2228 WriteLiteral(" class=\"footer-city\""); 2229 2230 WriteLiteral(">"); 2231 2232 2233 #line 622 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2234 Write(GetValue("Item.Area.Office_2_Name")); 2235 2236 2237 #line default 2238 #line hidden 2239 WriteLiteral("</h2>\r\n <p>"); 2240 2241 2242 #line 623 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2243 Write(GetValue("Item.Area.Office_2_Address_1")); 2244 2245 2246 #line default 2247 #line hidden 2248 WriteLiteral("</p>\r\n <p>"); 2249 2250 2251 #line 624 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2252 Write(GetValue("Item.Area.Office_2_Address_2")); 2253 2254 2255 #line default 2256 #line hidden 2257 WriteLiteral("</p>\r\n </div>\r\n <div"); 2258 2259 WriteLiteral(" class=\"col-xs-12 col-sm-3\""); 2260 2261 WriteLiteral(">\r\n <h2"); 2262 2263 WriteLiteral(" class=\"footer-city\""); 2264 2265 WriteLiteral(">"); 2266 2267 2268 #line 627 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2269 Write(GetValue("Item.Area.Office_3_Name")); 2270 2271 2272 #line default 2273 #line hidden 2274 WriteLiteral("</h2>\r\n <p>"); 2275 2276 2277 #line 628 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2278 Write(GetValue("Item.Area.Office_3_Address_1")); 2279 2280 2281 #line default 2282 #line hidden 2283 WriteLiteral("</p>\r\n <p>"); 2284 2285 2286 #line 629 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2287 Write(GetValue("Item.Area.Office_3_Address_2")); 2288 2289 2290 #line default 2291 #line hidden 2292 WriteLiteral("</p>\r\n </div>\r\n <div"); 2293 2294 WriteLiteral(" class=\"col-xs-12 col-sm-3\""); 2295 2296 WriteLiteral(">\r\n <h2"); 2297 2298 WriteLiteral(" class=\"footer-city\""); 2299 2300 WriteLiteral(">"); 2301 2302 2303 #line 632 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2304 Write(GetValue("Item.Area.Office_4_Name")); 2305 2306 2307 #line default 2308 #line hidden 2309 WriteLiteral("</h2>\r\n <p>"); 2310 2311 2312 #line 633 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2313 Write(GetValue("Item.Area.Office_4_Address_1")); 2314 2315 2316 #line default 2317 #line hidden 2318 WriteLiteral("</p>\r\n <p>"); 2319 2320 2321 #line 634 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2322 Write(GetValue("Item.Area.Office_4_Address_2")); 2323 2324 2325 #line default 2326 #line hidden 2327 WriteLiteral("</p>\r\n </div>\r\n </div>\r\n </div>\r\n " + 2328 " </div>\r\n </div>\r\n\r\n <!-- /.container -->\r\n <script"); 2329 2330 WriteLiteral(" type=\"text/javascript\""); 2331 2332 WriteLiteral(">\r\n $(document).ready(function() {\r\n if (\'"); 2333 2334 2335 #line 644 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2336 Write(HttpContext.Current.Items.Contains("ErpError")); 2337 2338 2339 #line default 2340 #line hidden 2341 WriteLiteral("\' == \"True\") {\r\n $(\'#nav-error-popup\').show();\r\n }\r\n\r\n $" + 2342 "(\'#bs-example-navbar-collapse-1 .hidden-mobile .navbar-nav li a\').prop(\'tabindex" + 2343 "\', \'0\');\r\n });\r\n var culture = \'"); 2344 2345 2346 #line 650 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2347 Write(currentCulture); 2348 2349 2350 #line default 2351 #line hidden 2352 WriteLiteral("\';\r\n if (\'"); 2353 2354 2355 #line 651 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2356 Write(User.GetCurrentExtranetUser().Groups.Any(x => x.Name.ToLower() == "can imitate")); 2357 2358 2359 #line default 2360 #line hidden 2361 WriteLiteral("\'.toLowerCase() ==\r\n \"true\" || \'"); 2362 2363 2364 #line 652 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2365 Write(User.GetCurrentExtranetUser().Groups.Any(x => x.Name.ToLower() == "masteradmin")); 2366 2367 2368 #line default 2369 #line hidden 2370 WriteLiteral("\'.toLowerCase() ==\r\n \"true\") {\r\n $(\'.impersonation\').show();\r\n }" + 2371 "\r\n if (\'"); 2372 2373 2374 #line 656 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2375 Write(User.GetCurrentExtranetUser().Groups.Any(x => x.Name.ToLower() == "inhouse")); 2376 2377 2378 #line default 2379 #line hidden 2380 WriteLiteral("\'.toLowerCase() ==\r\n\t \"true\") {\r\n\t $(\'.inhouse\').show();\r\n }\r\n if" + 2381 " (\'"); 2382 2383 2384 #line 660 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2385 Write(User.GetCurrentExtranetUser().GetUserCustomerType().Equals("reseller").ToString().ToLower()); 2386 2387 2388 #line default 2389 #line hidden 2390 WriteLiteral("\'.toLowerCase() ==\r\n \"true\") {\r\n $(\'.reseller\').show();\r\n }\r\n " + 2391 " </script>\r\n\r\n"); 2392 2393 2394 #line 666 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2395 2396 2397 #line default 2398 #line hidden 2399 2400 #line 666 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2401 2402 // iOS-specific styling 2403 var userAgent = System.Web.HttpContext.Current.Request.UserAgent.ToLower(); 2404 if (userAgent.Contains("iphone;") || userAgent.Contains("ipad;") || userAgent.Contains("ipod;")) 2405 { 2406 if (GetGlobalValue("Global:Device.IsMobile") != "" && GetGlobalValue("Global:Device.IsMobile").ToLower() == "true") 2407 { 2408 2409 2410 #line default 2411 #line hidden 2412 WriteLiteral(" <style>\r\n "); 2413 2414 WriteLiteral(@"@media (max-width: 768px) { 2415 input[type=date] { 2416 min-width: 100%; 2417 width: 100%; 2418 -webkit-min-logical-width: calc(100% - 16px); 2419 } 2420 } 2421 </style> 2422 "); 2423 2424 2425 #line 682 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2426 } 2427 else if (GetGlobalValue("Global:Device.IsTablet") != "" && GetGlobalValue("Global:Device.IsTablet").ToLower() == "true") 2428 { 2429 2430 2431 #line default 2432 #line hidden 2433 WriteLiteral(@" <style> 2434 input[type=date] { 2435 width: 100%; 2436 min-width: 100%; 2437 -webkit-min-logical-width: calc(100% - 16px); 2438 } 2439 </style> 2440 "); 2441 2442 2443 #line 692 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2444 } 2445 } 2446 2447 2448 2449 #line default 2450 #line hidden 2451 2452 #line 695 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2453 2454 if ((GetGlobalValue("Global:Device.IsMobile") != "" && GetGlobalValue("Global:Device.IsMobile").ToLower() == "true") || 2455 (GetGlobalValue("Global:Device.IsTablet") != "" && GetGlobalValue("Global:Device.IsTablet").ToLower() == "true")) 2456 { 2457 2458 2459 #line default 2460 #line hidden 2461 WriteLiteral(" <style>\r\n .dec:active, .dec:focus {\r\n " + 2462 " background: white;\r\n }\r\n </style>\r\n"); 2463 2464 2465 #line 704 "E:\Addsecure PROD\www\Files\Templates\Designs\AddSecure\_parsed\NewsArticle.parsed.cshtml" 2466 } 2467 try 2468 { 2469 // These dates are used in DeliveryPartial and FacilityPartial. They are set in Website Settings. 2470 OrderHelper.SetEarliestAvailableDates(GetInteger("Item.Area.Earliest_Available_Installation_Activation_Date.Value"), GetInteger("Item.Area.Earliest_Available_Delivery_Date.Value")); 2471 } 2472 catch (Exception e) 2473 { 2474 OrderHelper.SetEarliestAvailableDates(1, 1); 2475 } 2476 2477 2478 #line default 2479 #line hidden 2480 WriteLiteral("\r\n\r\n</body>\r\n</html>\r\n\r\n"); 2481 2482 } 2483 } 2484 } 2485

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using System.Diagnostics 3 @using System.Linq 4 @using System.Net.Http 5 @using System.Web 6 @using System.Web.Caching 7 @using System.Xml 8 @using AddSecure.DW.Data.Repositories 9 @using AddSecure.DW.Helpers 10 @using AddSecure.DW.InvoiceService 11 @using AddSecure.DW.ViewModels 12 @using Dynamicweb.Caching 13 @using Dynamicweb.Content 14 @using Dynamicweb.Core 15 @using Dynamicweb.Ecommerce.Integration 16 @using Dynamicweb.Ecommerce.LiveIntegration 17 @using Dynamicweb.Ecommerce.Notifications 18 @using Dynamicweb.Ecommerce.Orders 19 @using Dynamicweb.Ecommerce.Products 20 @using Dynamicweb.Environment.Web 21 @using Dynamicweb.Frontend 22 @using Dynamicweb.Logging 23 @using Dynamicweb.Rendering 24 @using Dynamicweb.Security 25 @using Dynamicweb.Security.Permissions 26 @using Dynamicweb.Security.UserManagement 27 @using Extensions = AddSecure.DW.Helpers.Extensions 28 @using Logger = AddSecure.DW.Helpers.Logger 29 30 <!DOCTYPE html> 31 <html lang="en"> 32 33 @{ 34 Culture masterCulture = CultureHelper.GetCulture(); 35 string cookieOptInLevel = GetGlobalValue("Global:CookieOptInLevel"); 36 } 37 38 <head> 39 @if (!TestHelper.IsInternalEnvironment() && cookieOptInLevel?.ToLower() == "all") // Avoids collecting data locally 40 { 41 if (masterCulture.Country == CultureHelper.Country.Sweden) // Google Tag Manager Sweden 42 { 43 <!-- Google Tag Manager --> 44 <script> 45 (function (w, d, s, l, i) { 46 w[l] = w[l] || []; 47 w[l].push({ 48 'gtm.start': 49 new Date().getTime(), 50 event: 'gtm.js' 51 }); 52 var f = d.getElementsByTagName(s)[0], 53 j = d.createElement(s), 54 dl = l != 'dataLayer' ? '&l=' + l : ''; 55 j.async = true; 56 j.src = 57 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 58 f.parentNode.insertBefore(j, f); 59 })(window, document, 'script', 'dataLayer', 'GTM-5WRF35N'); 60 </script> 61 <!-- End Google Tag Manager --> 62 } 63 else // Google Tag Manager Norway 64 { 65 <!-- Google Tag Manager --> 66 <script> 67 (function (w, d, s, l, i) { 68 w[l] = w[l] || []; 69 w[l].push({ 70 'gtm.start': 71 new Date().getTime(), 72 event: 'gtm.js' 73 }); 74 var f = d.getElementsByTagName(s)[0], 75 j = d.createElement(s), 76 dl = l != 'dataLayer' ? '&l=' + l : ''; 77 j.async = true; 78 j.src = 79 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 80 f.parentNode.insertBefore(j, f); 81 })(window, document, 'script', 'dataLayer', 'GTM-WN92RFT'); 82 </script> 83 <!-- End Google Tag Manager --> 84 } 85 } 86 <meta charset="utf-8"> 87 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 88 <meta name="viewport" content="width=device-width, initial-scale=1"> 89 90 <meta name="author" content=""> 91 92 @*<link rel="shortcut icon" href="/Files/Templates/Designs/AddSecure/favicon.ico">*@ 93 <link rel="icon" href="/Files/Templates/Designs/AddSecure/Images/favicon.ico"> 94 95 <title>@GetValue("Title")</title> 96 @GetValue("MetaTags") 97 @GetValue("CopyRightNotice") 98 99 100 <!-- jQuery --> 101 <script src="/Files/Templates/Designs/AddSecure/libs/jquery.js"></script> 102 <script src="/Files/Templates/Designs/AddSecure/libs/jquery-ui-1.12.1/jquery-ui.min.js"></script> 103 <link href="/Files/Templates/Designs/AddSecure/libs/jquery-ui-1.12.1/jquery-ui.css" rel="stylesheet"> 104 <link href="/Files/Templates/Designs/AddSecure/libs/jquery-ui-1.12.1/jquery-ui.theme.min.css" rel="stylesheet"> 105 <!-- Custom Fonts --> 106 <link href="https://fonts.googleapis.com/css?family=Asap:400,600%7COpen+Sans:400,400i,700&display=swap" rel="stylesheet"> 107 108 109 <!-- Bootstrap Core --> 110 <script src="/Files/Templates/Designs/AddSecure/libs/bootstrap/bootstrap.min.js"></script> 111 <link href="/Files/Templates/Designs/AddSecure/libs/bootstrap/bootstrap.min.css" rel="stylesheet"> 112 113 114 <!-- Bootstrap Table --> 115 @*<script src="/Files/Templates/Designs/AddSecure/libs/bootstrap-table/bootstrap-table.js"></script> 116 <script src="/Files/Templates/Designs/AddSecure/libs/bootstrap-table/bootstrap-table-filter-control.js"></script> 117 <link href="/Files/Templates/Designs/AddSecure/libs/bootstrap-table/bootstrap-table.css" rel="stylesheet">*@ 118 119 <!-- Chosen --> 120 <script src="/Files/Templates/Designs/AddSecure/libs/chosen_v1.8.7/chosen.jquery.js"></script> 121 122 <!-- Font awesome --> 123 <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> 124 125 <!-- Validator JS --> 126 @*<script src="/Files/Templates/Designs/AddSecure/libs/validator.js"></script>*@ 127 128 <!-- Custom JS --> 129 <script> 130 var areaCulture = '@(new Area().Culture.ToLower())'; 131 function GetAjaxUrl(ajaxPage) { 132 var lang = (areaCulture == "nb-no" || areaCulture == "en-us") ? "no" : "sv"; 133 return "/" + lang + "/" + ajaxPage; 134 } 135 </script> 136 <script>var isImpersonating = "@((GetGlobalValue("Global:Extranet.SecondaryUser.ID").IsNullOrEmpty() == false).ToString().ToLower())";</script> 137 <script src="/Files/Templates/Designs/AddSecure/js/master.min.js?cache_bust=1747214217872"></script> 138 139 <!-- Latest compiled and minified CSS --> 140 @*<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.1/bootstrap-table.min.css"> 141 <script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.1/bootstrap-table.min.js"></script> 142 <script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.1/locale/bootstrap-table-zh-CN.min.js"></script>*@ 143 144 <!-- Custom CSS --> 145 <link href="/Files/Templates/Designs/AddSecure/css/master.min.css?cache_bust=1747214217872" rel="stylesheet"> 146 147 <link href="/Files/Templates/Designs/AddSecure/fonts/Icomoon/style.css" rel="stylesheet"> 148 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> 149 <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> 150 <!--[if lt IE 9]> 151 <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> 152 <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> 153 <![endif]--> 154 @GetValue("Stylesheets") 155 @GetValue("Javascripts") 156 </head> 157 158 <body> 159 @{ 160 Logger.TurnOnLoggingFunctionality(); 161 if (TestHelper.IsInternalOrExternalTestEnvironment()) 162 { 163 Logger.TurnOnLoggingFunctionality(); 164 } 165 else 166 { 167 // Logger.TurnOffLoggingFunctionality(); 168 } 169 //TODO: Add this line in when something needs to be logged. It's turned off for performance reasons 170 //Logger.TurnLoggingFunctionalityToErrorsOnly(); 171 } 172 @if (!TestHelper.IsInternalEnvironment() && cookieOptInLevel?.ToLower() == "all") // Avoids collecting data locally 173 { 174 if (masterCulture.Country == CultureHelper.Country.Sweden) // Google Tag Manager Sweden 175 { 176 <!-- Google Tag Manager (noscript) --> 177 <noscript> 178 <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5WRF35N" height="0" width="0" style="display: none; visibility: hidden"></iframe> 179 </noscript> 180 <!-- End Google Tag Manager (noscript) --> 181 } 182 else // Google Tag Manager Norway 183 { 184 <!-- Google Tag Manager (noscript) --> 185 <noscript> 186 <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WN92RFT" height="0" width="0" style="display: none; visibility: hidden"></iframe> 187 </noscript> 188 <!-- End Google Tag Manager (noscript) --> 189 } 190 } 191 @{ 192 @*@Connector.GetSerialNumberByICCID("123456").Result<br> 193 @Connector.GetICCIDBySerialNumber("SERIENR1234").Result<br>*@ 194 string fullName = GetString("DW_extranet_AccessUserName"); 195 string[] names = Extensions.GetNameInitials(fullName); 196 197 var user = User.GetCurrentExtranetUser(); 198 var currentCulture = GetGlobalValue("Global:Area.LongLang"); 199 int logoutId = CultureHelper.GetResultBasedOffLang(GetPageIdByNavigationTag("login swe"), GetPageIdByNavigationTag("login sweeng"), GetPageIdByNavigationTag("login nor"), GetPageIdByNavigationTag("login noreng")); 200 201 string homeUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "home"); 202 string loginUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "login"); 203 string accessDeniedUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "accessdenied"); 204 string changeaccountUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "changeaccount"); 205 206 if (user.IsFronteggUser()) 207 { 208 fullName += " - " + user.Company; 209 } 210 211 if (string.IsNullOrWhiteSpace(GetString("DW_extranet_AccessUserName"))) 212 { 213 Dynamicweb.Context.Current.Response.Redirect("~/" + loginUrl); 214 } 215 216 if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Page.IsProtected"))) 217 { 218 if (user.IsSveaUser() && GetString("Global.PageId") == "1") 219 { 220 var pageId1 = GetString("DwPageID"); 221 var sveaUrl = Extensions.GetUrl(GetPageIdByNavigationTag, "sveainvoices"); 222 Dynamicweb.Context.Current.Response.Redirect("~/" + sveaUrl); 223 } 224 else if (true) 225 { 226 Dynamicweb.Context.Current.Response.Redirect("~/" + accessDeniedUrl); 227 } 228 } 229 230 // TODO: To add the IoT orderflows, remove this code 231 if (GetGlobalValue("Global:Page.NavigationTag").ToLower().Contains("iot")) 232 { 233 Dynamicweb.Context.Current.Response.Redirect(AddSecure.DW.Helpers.Extensions.GetUrl(GetPageIdByNavigationTag, "home")); 234 } 235 236 System.Web.HttpContext.Current.Session["current_password_master"] = user.Password; 237 238 if (System.Web.HttpContext.Current.Request.Url.ParseQueryString()["cuRedirect"] != null) 239 { 240 var redirectValue = System.Web.HttpContext.Current.Request.Url.ParseQueryString()["cuRedirect"]; 241 if (redirectValue.ToString() == "home") 242 { 243 Dynamicweb.Context.Current.Response.Redirect(AddSecure.DW.Helpers.Extensions.GetUrl(GetPageIdByNavigationTag, "home")); 244 } 245 } 246 247 //EmailHelper.TestEmailForActivatedUsers(); 248 249 } 250 @if (TestHelper.IsLocalEnvironment() && !Connector.IsWebServiceConnectionAvailable()) 251 { 252 <div>Hey buddy! You don't have any connection to NAV right now. Kind regards, your friendly neighborhood developer.</div> 253 } 254 <!-- Top Header Menu --> 255 @if (GetGlobalValue("Global:Extranet.SecondaryUser.ID").IsNullOrEmpty() == false) 256 { 257 <div class="impersonate-container"> 258 <div class="impersonating-line"></div> 259 <div class="impersonating"> 260 <b>@Translate("Impersonating", "Imiterar"):</b> 261 @user.UserName, @user.Name, @user.Company 262 <br class="hidden-desktop"> 263 <form method="get" id="form-impersonate"> 264 <input type="hidden" name="DwExtranetRemoveSecondaryUser" id="DwExtranetRemoveSecondaryUser" value="1"> 265 <button type="button" class="btn btn--yellow big-mini margin-left-10 stop-impersonating">@Translate("Stop impersonating", "Sluta imitera")</button> 266 </form> 267 </div> 268 </div> 269 <div class="impersonate-5px"></div> 270 <script> 271 $('.stop-impersonating').click(function () { 272 $('#form-impersonate')[0].submit(); 273 }); 274 </script> 275 } 276 <div class="top-header-menu"> 277 <div class="container"> 278 <ul class="nav navbar-nav"> 279 @foreach (var language in GetLoop("Languages")) 280 { 281 string obsoleteCulture = language.GetString("Culture"); 282 //string linkText = CultureHelper.GetResultBasedOffLang(obsoleteCulture, "svenska", "english", "norsk", "english"); 283 var linkText = CultureHelper.GetResultBasedOffLang(obsoleteCulture, "Sverige", "english", "Norge", "english"); 284 285 var queryParams = HttpContext.Current.Request.Url.Query; 286 if (language.GetBoolean("IsCurrent") == false) 287 { 288 string languagePage = language.GetString("PageID"); 289 <li class="flags @obsoleteCulture.Substring(3).ToLower() "><a class="language lang-@obsoleteCulture.Substring(3).ToLower()" href="/Default.aspx?ID=@(languagePage + queryParams)" hreflang="@obsoleteCulture.Substring(0, 2)">@Translate(linkText)</a></li> 290 <script> 291 var queryParams = '@queryParams'; 292 $('.lang-@obsoleteCulture.Substring(3).ToLower()').attr('href', 293 $('.lang-@obsoleteCulture.Substring(3).ToLower()').attr('href') + queryParams); 294 </script> 295 } 296 else 297 { 298 <li class="flags active @obsoleteCulture.Substring(3).ToLower() "><a class="language">@Translate(linkText)</a></li> 299 } 300 } 301 </ul> 302 <ul class="nav navbar-nav pull-right" style="height: 40px;"> 303 @if (!string.IsNullOrWhiteSpace(GetString("DW_extranet_AccessUserName"))) 304 { 305 <li> 306 <a class="log-out" href="/Admin/Public/ExtranetLogoff.aspx?ID=@logoutId">@Translate("Logout")</a> 307 </li> 308 <li> 309 <a href="" class="name-tag"> 310 @fullName 311 </a> 312 </li> 313 <li> 314 @if (names.Length > 1) 315 { 316 string initials = names[0].Substring(0, 1) + names[1].Substring(0, 1); 317 <span class="initials-badge">@initials.ToUpper()</span> 318 } 319 else 320 { 321 string initials = names[0].Substring(0, 1); 322 <span class="initials-badge">@initials.ToUpper()</span> 323 } 324 </li> 325 if (FronteggHelper.CanChangeUser()) 326 { 327 <li><a href="@changeaccountUrl" title='@Translate("ChangeAccountTooltip", "Byta användare")'><span class="glyphicon glyphicon-transfer" style="color: white;font-size: 20px;padding: 0px 0px 0px 0px;top: -2px;"></span></a></li> 328 } 329 } 330 @* TODO: uncommented because it's probably unreachable code. not removed because it may be reachable somehow / Oscar 331 else 332 { 333 string baseUrl = GetValue("DwAreaName").ToString().ToLower().Replace(" ", ""); 334 string linkUrl = baseUrl + "/login" + languageNr; 335 <li> 336 <a class="" href="@linkUrl" hreflang="@currentCulture.Substring(0, 2)">@Translate("Login")</a> 337 </li> 338 }*@ 339 </ul> 340 </div> 341 </div> 342 <!-- Top Navigation Menu --> 343 <nav class="navbar top-navigation-menu" role="navigation"> 344 <div class="container"> 345 <!-- Brand and toggle get grouped for better mobile display --> 346 <div class="navbar-header"> 347 <button type="button" class="navbar-toggle no-focus" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" style=""> 348 <span class="sr-only">Toggle navigation</span> 349 <span class="icon-bar"></span> 350 <span class="icon-bar"></span> 351 <span class="icon-bar"></span> 352 <span class="glyphicon glyphicon-remove"></span> 353 </button> 354 <a class="navbar-brand" href="@homeUrl"> 355 <img class="img-responsive" src="/Files/Templates/Designs/AddSecure/./Images/AddSecureLogo.png"> 356 </a> 357 </div> 358 <!-- Collect the nav links, forms, and other content for toggling --> 359 <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> 360 <div class="visible-xs row mobile-nav-top"> 361 <div class="col-xs-12 mobile-menu-name"> 362 @{ 363 if (!string.IsNullOrWhiteSpace(GetString("DW_extranet_AccessUserName"))) 364 { 365 if (names.Length > 1) 366 { 367 string initials = names[0].Substring(0, 1) + names[1].Substring(0, 1); 368 <span class="initials-tag">@initials.ToUpper()</span> 369 } 370 else 371 { 372 string initials = names[0].Substring(0, 1); 373 <span class="initials-tag">@initials.ToUpper()</span> 374 } 375 <span class="name-tag">@GetValue("DW_extranet_AccessUserName")</span> 376 <a href="/Admin/Public/ExtranetLogoff.aspx?ID=@logoutId">@Translate("Logout")</a> 377 } 378 } 379 </div> 380 </div> 381 <div class="hidden-mobile pull-right"> 382 @GetValue("DwNavigation(navbar)") 383 </div> 384 <div class="visible-mobile"> 385 @GetValue("DwNavigation(navbar2)") 386 </div> 387 <div class="row"> 388 <div class="col-xs-12 visible-xs mobile-menu-languages"> 389 390 @foreach (var language in GetLoop("Languages")) 391 { 392 string obsoleteCulture = language.GetString("Culture"); 393 string linkText = CultureHelper.GetResultBasedOffLang(obsoleteCulture, "svenska", "english", "norsk", "english"); 394 395 var queryParams = HttpContext.Current.Request.Url.Query; 396 if (!language.GetBoolean("IsCurrent")) 397 { 398 string languagePage = language.GetString("PageID"); 399 <div class="flags @obsoleteCulture.Substring(3).ToLower() "><a class="language" href="/Default.aspx?ID=@(languagePage + queryParams)" hreflang="@obsoleteCulture.Substring(0, 2)">@linkText</a></div> 400 } 401 else 402 { 403 <div class="flags active @obsoleteCulture.Substring(3).ToLower() "><a class="language">@linkText</a></div> 404 } 405 } 406 </div> 407 </div> 408 </div> 409 <!-- /.navbar-collapse --> 410 </div> 411 <!-- /.container --> 412 </nav> 413 414 <!-- Page Content --> 415 <div class="container-fluid"> 416 <section class="center-container content-container dw-mod" id="content"> 417 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 418 @using Dynamicweb.Rendering 419 420 421 422 @{ 423 bool hasOnlyText = GetString("Item.PublishDate") == "" && GetString("Item.Image") == ""; 424 } 425 426 <!-- Article content --> 427 <div class="news-wrapper"> 428 <div class="container news-container"> 429 <!-- General Section --> 430 <h1 class="h1 news-header" style="margin-bottom: 15px;">@GetString("Item.Headline")</h1> 431 @if (GetString("Item.PublishDate") != "") 432 { 433 <p class="publish-date">@Translate("Published ") @GetString("Item.PublishDate").Split(' ').First()</p> 434 } 435 @if (GetString("Item.Image") != "") 436 { 437 <div class="text-center"> 438 <img class="img-responsive" src='@GetString(%22Item.Image%22)'> 439 </div> 440 } 441 @if (GetString("Item.Body_Text") != "") 442 { 443 <div class="news-body @(hasOnlyText ? " no-padding-top":"")"="" style="line-height: 34px !important;"> 444 @GetString("Item.Body_Text") 445 </div> 446 } 447 448 &#8592; <a href="#" class="news-link">@Translate("Back to the news list")</a> 449 450 </div> 451 </div> 452 453 <script> 454 $(document).ready(function() { 455 $('.news-link').attr("href", getUrlNews(window.location.href)); 456 }); 457 </script> 458 <div id="nav-error-popup" class="modal-wrapper"> 459 <div class="modal-content"> 460 <span class="modal-close modal-cross">&times;</span> 461 <div class="modal-table"> 462 <div class="modal-middle-wrapper"> 463 <div class="modal-inner-content-wrapper"> 464 <div class="content"> 465 <p> 466 @Translate("An error occurred", "Ett fel inträffade") 467 @*<hr>*@ 468 469 <p class="error-content">@Translate("There was an error contacting an external system, please contact AddSecure and give them this error: ")<br><br>@HttpContext.Current.Items["ErpError"]<br></p> 470 </div> 471 <input type="submit" class="btn btn--secondary btn--modal modal-close" value="@Translate(" ok")"=""> 472 </div> 473 </div> 474 </div> 475 </div> 476 477 <script> 478 $(document).ready(function () { 479 $("#nav-error-popup .modal-close").click(function () { 480 $("#nav-error-popup").css("display", "none"); 481 }); 482 483 $(".modal-close, .modal-close-nostyle").click(function () { 484 $(".modal-wrapper").css("display", "none"); 485 }); 486 487 //$("#nav-error-popup.modal-wrapper").click(function () { 488 // if (!$(this).hasClass("modal-content")) 489 // $("#nav-error-popup").css("display", "none"); 490 //}); 491 492 $(".content").html(function () { 493 if ($('#nav-error-popup.modal-wrapper').attr("data-error") != '') 494 return $('#nav-error-popup.modal-wrapper').attr("data-error"); 495 }); 496 }); 497 </script> 498 </div> 499 <div class="modal-wrapper no-permission-wrapper"> 500 <div class="modal-content"> 501 <span class="modal-close modal-cross">&times;</span> 502 <div class="modal-table"> 503 <div class="modal-middle-wrapper"> 504 <div class="modal-inner-content-wrapper"> 505 <p>@Translate("Your user does not have permission to enter any orderflow. To gain this permissions, please ask the superadmin of your company to turn your account into an admin user." 506 , "Din användare har inte behörighet att gå in på något orderflöde. För att få denna behörighet, be ditt företags superadmin att ändra ditt konto till en adminanvändare.")</p> 507 <button type="button" class="btn btn--secondary btn--modal modal-close-nostyle">@Translate("OK", "OK")</button> 508 </div> 509 </div> 510 </div> 511 </div> 512 513 <script> 514 $(document).ready(function () { 515 $(".show-modal-no-permission").click(function () { 516 $(".no-permission-wrapper").css("display", "block"); 517 }); 518 519 $(".modal-close, .modal-close-nostyle").click(function () { 520 $(".modal-wrapper").css("display", "none"); 521 }); 522 523 //$(".modal-wrapper").click(function () { 524 // if (!$(this).hasClass("modal-content")) 525 // $(".modal-wrapper").css("display", "none"); 526 //}); 527 }); 528 </script> 529 </div> 530 </section> 531 </div> 532 533 <!-- Footer --> 534 <div id="footer-full"> 535 <footer> 536 <div class="container"> 537 <div class="row"> 538 <div class="col-xs-12 col-sm-3"> 539 @*This should point to a Item type Cards*@ 540 @if (!string.IsNullOrEmpty(GetString("Item.Area.Parent_Page_1"))) 541 { 542 <h2 class="footer-header"> @GetValue("Item.Area.Parent_Page_1.ParagraphName")</h2> 543 foreach (var item in GetLoop("Item.Area.Parent_Page_1.Value.Cards.Value")) 544 { 545 <a class="footer-link" href='@item.GetValue("Item.Area.Parent_Page_1.Value.Cards.Value.Link")'> 546 @item.GetValue("Item.Area.Parent_Page_1.Value.Cards.Value.Header") 547 </a> 548 } 549 } 550 </div> 551 <div class="col-xs-12 col-sm-3"> 552 @if (!string.IsNullOrEmpty(GetString("Item.Area.Parent_Page_2"))) 553 { 554 var parent2_idString = GetString("Item.Area.Parent_Page_2").Split('=')[1]; 555 int parent2_id = 0; 556 int.TryParse(parent2_idString, out parent2_id); 557 558 string parent2_pageName = Dynamicweb.Services.Pages.GetPage(parent2_id).MenuText; 559 var parent2_pageList = Dynamicweb.Services.Pages.GetPagesByParentID(parent2_id).ToList(); 560 var limit = 5; 561 562 <h2 class="footer-header"> @parent2_pageName</h2> 563 564 for (int i = 0; i < parent2_pageList.Count; i++) 565 { 566 if (parent2_pageList[i].NavigationTag.ToLower().Contains("iot") || parent2_pageList[i].Active == false) 567 { 568 limit++; 569 continue; 570 } 571 if (i < limit) 572 { 573 if ((parent2_pageList[i].NavigationTag.Contains("edit-user") && User.GetCurrentExtranetUser().CustomFieldValues()["AccessUser_UserRole"].Value.ToString().ToLower() != "superadmin") 574 || (parent2_pageList[i].NavigationTag.Contains("impersonate") && !User.GetCurrentExtranetUser().Groups.Any(x => x.Name.ToLower().StartsWith("system admin"))) 575 || parent2_pageList[i].Active == false) 576 { 577 limit++; 578 continue; 579 } 580 581 if (Dynamicweb.Services.Pages.GetPage(parent2_id).NavigationTag.ToLower().Contains("products-and-services") 582 && User.get_Current(PagePermissionLevels.Frontend).CustomFieldValues.First(x => x.CustomField.Name == "UserRole").Value.ToString() == "User") 583 { 584 <a class="footer-link show-modal-no-permission" style="cursor: pointer;"> 585 @parent2_pageList[i].MenuText 586 </a> 587 } 588 else 589 { 590 <a class="footer-link" href="@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(parent2_pageList[i].ID)"> 591 @parent2_pageList[i].MenuText 592 </a> 593 } 594 } 595 else 596 { 597 break; 598 } 599 } 600 } 601 </div> 602 <div class="col-xs-12 col-sm-6"> 603 <h2 class="footer-header">@Translate("About AddSecure")</h2> 604 <p class="about-text">@GetValue("Item.Area.About_Text")</p> 605 <h2 class="footer-header">@Translate("Privacy Policy")</h2> 606 <p class="about-text">@GetValue("Item.Area.Privacy_Policy")</p> 607 <h2 class="footer-header">@Translate("Footer Cookie Policy")</h2> 608 <p class="about-text">@Translate("Footer Cookie-policy")</p> 609 </div> 610 </div> 611 </div> 612 </footer> 613 <div class="footer-bottom"> 614 <div class="container"> 615 <div class="row"> 616 <div class="col-xs-12 col-sm-3"> 617 <h2 class="footer-city">@GetValue("Item.Area.Office_1_Name")</h2> 618 <p>@GetValue("Item.Area.Office_1_Address_1")</p> 619 <p>@GetValue("Item.Area.Office_1_Address_2")</p> 620 </div> 621 <div class="col-xs-12 col-sm-3"> 622 <h2 class="footer-city">@GetValue("Item.Area.Office_2_Name")</h2> 623 <p>@GetValue("Item.Area.Office_2_Address_1")</p> 624 <p>@GetValue("Item.Area.Office_2_Address_2")</p> 625 </div> 626 <div class="col-xs-12 col-sm-3"> 627 <h2 class="footer-city">@GetValue("Item.Area.Office_3_Name")</h2> 628 <p>@GetValue("Item.Area.Office_3_Address_1")</p> 629 <p>@GetValue("Item.Area.Office_3_Address_2")</p> 630 </div> 631 <div class="col-xs-12 col-sm-3"> 632 <h2 class="footer-city">@GetValue("Item.Area.Office_4_Name")</h2> 633 <p>@GetValue("Item.Area.Office_4_Address_1")</p> 634 <p>@GetValue("Item.Area.Office_4_Address_2")</p> 635 </div> 636 </div> 637 </div> 638 </div> 639 </div> 640 641 <!-- /.container --> 642 <script type="text/javascript"> 643 $(document).ready(function() { 644 if ('@HttpContext.Current.Items.Contains("ErpError")' == "True") { 645 $('#nav-error-popup').show(); 646 } 647 648 $('#bs-example-navbar-collapse-1 .hidden-mobile .navbar-nav li a').prop('tabindex', '0'); 649 }); 650 var culture = '@currentCulture'; 651 if ('@User.GetCurrentExtranetUser().Groups.Any(x => x.Name.ToLower() == "can imitate")'.toLowerCase() == 652 "true" || '@User.GetCurrentExtranetUser().Groups.Any(x => x.Name.ToLower() == "masteradmin")'.toLowerCase() == 653 "true") { 654 $('.impersonation').show(); 655 } 656 if ('@User.GetCurrentExtranetUser().Groups.Any(x => x.Name.ToLower() == "inhouse")'.toLowerCase() == 657 "true") { 658 $('.inhouse').show(); 659 } 660 if ('@User.GetCurrentExtranetUser().GetUserCustomerType().Equals("reseller").ToString().ToLower()'.toLowerCase() == 661 "true") { 662 $('.reseller').show(); 663 } 664 </script> 665 666 @{ 667 // iOS-specific styling 668 var userAgent = System.Web.HttpContext.Current.Request.UserAgent.ToLower(); 669 if (userAgent.Contains("iphone;") || userAgent.Contains("ipad;") || userAgent.Contains("ipod;")) 670 { 671 if (GetGlobalValue("Global:Device.IsMobile") != "" && GetGlobalValue("Global:Device.IsMobile").ToLower() == "true") 672 { 673 <style> 674 @@media (max-width: 768px) { 675 input[type=date] { 676 min-width: 100%; 677 width: 100%; 678 -webkit-min-logical-width: calc(100% - 16px); 679 } 680 } 681 </style> 682 } 683 else if (GetGlobalValue("Global:Device.IsTablet") != "" && GetGlobalValue("Global:Device.IsTablet").ToLower() == "true") 684 { 685 <style> 686 input[type=date] { 687 width: 100%; 688 min-width: 100%; 689 -webkit-min-logical-width: calc(100% - 16px); 690 } 691 </style> 692 } 693 } 694 695 @* Temporary solution for having unique style for mobile and tablet (not media queries) *@ 696 if ((GetGlobalValue("Global:Device.IsMobile") != "" && GetGlobalValue("Global:Device.IsMobile").ToLower() == "true") || 697 (GetGlobalValue("Global:Device.IsTablet") != "" && GetGlobalValue("Global:Device.IsTablet").ToLower() == "true")) 698 { 699 <style> 700 .dec:active, .dec:focus { 701 background: white; 702 } 703 </style> 704 } 705 try 706 { 707 // These dates are used in DeliveryPartial and FacilityPartial. They are set in Website Settings. 708 OrderHelper.SetEarliestAvailableDates(GetInteger("Item.Area.Earliest_Available_Installation_Activation_Date.Value"), GetInteger("Item.Area.Earliest_Available_Delivery_Date.Value")); 709 } 710 catch (Exception e) 711 { 712 OrderHelper.SetEarliestAvailableDates(1, 1); 713 } 714 } 715 716 </body> 717 </html> 718 719