Error compiling template "Designs/motostore/_parsed/News.parsed.cshtml"
Line 939: The name 'GeneralSettings' does not exist in the current context

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Co3.Motostore.Dw.Utilities 3 4 @using System 5 @using System.Web 6 @using Dynamicweb.Rendering; 7 @using Dynamicweb.Modules.UserManagement; 8 9 @using System.Text.RegularExpressions 10 @using System.Web 11 12 13 @functions{ 14 public class WrapMethods 15 { 16 //Gets the contrasting color 17 public static string getContrastYIQ(string hexcolor) 18 { 19 if (hexcolor != "") 20 { 21 hexcolor = Regex.Replace(hexcolor, "[^0-9a-zA-Z]+", ""); 22 23 int r = Convert.ToByte(hexcolor.Substring(0, 2), 16); 24 int g = Convert.ToByte(hexcolor.Substring(2, 2), 16); 25 int b = Convert.ToByte(hexcolor.Substring(4, 2), 16); 26 int yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; 27 28 if (yiq >= 128) 29 { 30 return "black"; 31 } 32 else 33 { 34 return "white"; 35 } 36 } 37 else 38 { 39 return "black"; 40 } 41 } 42 43 44 //Truncate text 45 public static string Truncate (string value, int count, bool strip=true) 46 { 47 if (strip == true){ 48 value = StripHtmlTagByCharArray(value); 49 } 50 51 if (value.Length > count) 52 { 53 value = value.Substring(0, count - 1) + "..."; 54 } 55 56 return value; 57 } 58 59 60 //Strip text from HTML 61 public static string StripHtmlTagByCharArray(string htmlString) 62 { 63 char[] array = new char[htmlString.Length]; 64 int arrayIndex = 0; 65 bool inside = false; 66 67 for (int i = 0; i < htmlString.Length; i++) 68 { 69 char let = htmlString[i]; 70 if (let == '<') 71 { 72 inside = true; 73 continue; 74 } 75 if (let == '>') 76 { 77 inside = false; 78 continue; 79 } 80 if (!inside) 81 { 82 array[arrayIndex] = let; 83 arrayIndex++; 84 } 85 } 86 return new string(array, 0, arrayIndex); 87 } 88 89 public static string ColumnMaker(int Col, string ScreenSize) 90 { 91 string Columns = ""; 92 93 switch (Col) 94 { 95 case 1: 96 Columns = "col-"+ScreenSize+"-12"; 97 break; 98 99 case 2: 100 Columns = "col-"+ScreenSize+"-6"; 101 break; 102 103 case 3: 104 Columns = "col-"+ScreenSize+"-4"; 105 break; 106 107 case 4: 108 Columns = "col-"+ScreenSize+"-3"; 109 break; 110 111 case 6: 112 Columns = "col-"+ScreenSize+"-2"; 113 break; 114 115 default: 116 Columns = "col-"+ScreenSize+"-3"; 117 break; 118 } 119 120 return Columns; 121 } 122 } 123 } 124 @helper MiniCartTop() 125 { 126 var quantity = GetString("Ecom:Order.OrderLines.TotalProductQuantity"); 127 var price = GetString("Ecom:Order.OrderLines.Total.PriceWithVAT"); 128 var cartid = "88"; //GetValue("DwAreaCartPageID"); 129 var security = new Dynamicweb.Security(); 130 if (security.UserLoggedIn) 131 { 132 price = GetString("Ecom:Order.OrderLines.Total.PriceWithoutVAT"); 133 } 134 135 if (string.IsNullOrWhiteSpace(quantity)) 136 { 137 quantity = "0"; 138 price = "kr. 0,00"; 139 } 140 141 <li class="dropdown animate-hover ajaxminicart" data-animate="animated fadeInUp"> 142 <a href="Default.aspx?ID=@cartid" title="" id="minipagecart" class="dw-minicart"> 143 <span class="minicart-quantity">@quantity</span> 144 <span>@price</span> 145 </a> 146 <ul class="sub-menu cart-dropdown"> 147 <li id="minicart"> 148 @MiniCart() 149 </li> 150 </ul> 151 </li> 152 } 153 154 @helper MiniCartTopSmall() 155 { 156 var quantity = GetString("Ecom:Order.OrderLines.TotalProductQuantity"); 157 var price = GetString("Ecom:Order.OrderLines.Total.PriceWithVAT"); 158 var cartid = "88"; //GetValue("DwAreaCartPageID"); 159 var security = new Dynamicweb.Security(); 160 if (security.UserLoggedIn) 161 { 162 price = GetString("Ecom:Order.OrderLines.Total.PriceWithoutVAT"); 163 } 164 165 if (string.IsNullOrWhiteSpace(quantity)) 166 { 167 quantity = "0"; 168 price = "kr. 0,00"; 169 } 170 171 <div class="hidden-md hidden-lg pull-left ajaxminicartsmall"> 172 <ul class="top-menu"> 173 <li> 174 <a href="Default.aspx?ID=@cartid" id="smallscreen-minipagecart"> 175 <button class="btn btn-sm btn-base dw-minicart" id="minipagecart-button" style="padding: 0 20px 6px;"> 176 <strong> 177 <span class="minicart-quantity">@quantity</span> 178 <span>@price</span> 179 </strong> 180 </button> 181 </a> 182 183 <ul class="sub-menu hidden-xs"> 184 <li id="smallscreen-minicart"> 185 @MiniCart() 186 </li> 187 </ul> 188 </li> 189 </ul> 190 </div> 191 } 192 193 194 @helper MiniCart() 195 { 196 var security = new Dynamicweb.Security(); 197 198 <div class="dropdown-cart"> 199 @if (GetInteger("Ecom:Order.OrderLines.TotalProductQuantity") > 0) 200 { 201 <div class="col-md-12 col-sm-12 col-xs-12"> 202 <div class="row"> 203 <span class="cart-items"> 204 @Translate("You have", "You have")<strong> @GetValue("Ecom:Order.OrderLines.TotalProductQuantity")</strong> @Translate("items in your cart", "items in your cart") 205 </span> 206 <table class="table table-cart"> 207 <tbody> 208 <tr> 209 <th colspan="2">@Translate("Product", "Product")</th> 210 <th class="text-center">@Translate("Qty", "Qty")</th> 211 <th>@Translate("Total", "Total")</th> 212 </tr> 213 214 @foreach (var orderline in GetLoop("OrderLines")) 215 { 216 var image = "/Admin/Public/GetImage.ashx?Image=/Files/Images/Ecom/Products/small/" + orderline.GetString("Ecom:Product:Field.ProductPictureName") + ".jpg&amp;Format=jpg&amp;Width=80"; 217 if (security.UserLoggedIn && !orderline.GetBoolean("Ecom:Order:OrderLine.IsProduct")) 218 { 219 } 220 else 221 { 222 <tr> 223 <td> 224 <img src="@image" class="img-center" alt=""> 225 </td> 226 <td> 227 <a href="@orderline.GetValue(" ecom:order:orderline.productlink")"="">@orderline.GetValue("Ecom:Order:OrderLine.ProductName")</a><br><small>@orderline.GetString("Ecom:Order:OrderLine.ProductVariantText")</small> 228 </td> 229 <td class="text-center">@orderline.GetValue("Ecom:Order:OrderLine.Quantity")</td> 230 <td> 231 <nobr> 232 @if (orderline.GetInteger("Ecom:Order:OrderLine.Points") > 0) 233 { 234 @orderline.GetDouble("Ecom:Order:OrderLine.Points") 235 ; 236 <text> </text> 237 @Translate("orderline_points", "points") 238 } 239 else 240 { 241 if (security.UserLoggedIn) 242 { 243 @orderline.GetValue("Ecom:Order:olPrice.PriceWithoutVATFormatted") 244 ; 245 } 246 else 247 { 248 @orderline.GetValue("Ecom:Order:olPrice.PriceWithVATFormatted") 249 ; 250 } 251 } 252 </nobr> 253 </td> 254 </tr> 255 } 256 } 257 258 <tr> 259 <td class="text-center"> 260 <i class="fa fa-credit-card"></i> 261 </td> 262 <td> 263 @GetString("Ecom:Order.PaymentMethod") 264 </td> 265 <td class="text-center"></td> 266 <td>@GetValue("Ecom:Order.PaymentFee")</td> 267 </tr> 268 @if (!security.UserLoggedIn) 269 { 270 <tr> 271 <td class="text-center"> 272 <i class="fa fa-truck"></i> 273 </td> 274 <td> 275 @GetString("Ecom:Order.ShippingMethod") 276 </td> 277 <td class="text-center"></td> 278 <td>@GetValue("Ecom:Order.ShippingFee")</td> 279 </tr> 280 } 281 </tbody> 282 </table> 283 </div> 284 </div> 285 <div class="col-md-12 col-sm-12 col-xs-12"> 286 <div class="row"> 287 <div class="col-md-8"> 288 <!-- 289 @{ 290 var edittextstring = Translate("Edit cart", "Edit cart"); 291 var cartid = GetValue("DwAreaCartPageID"); 292 } 293 294 <form action="/Default.aspx?ID=@cartid" method="post"> 295 <input type="submit" name="CartV2.GotoStep1" id="CartV2.GotoStep1" value="@edittextstring" class="btn btn-xs btn-base pull-left" /> 296 </form> 297 --> 298 </div> 299 <div class="col-md-4"> 300 <a href="Default.aspx?ID=88" class="btn btn-xs btn-base pull-right">@Translate("Proceed to checkout", "Proceed to checkout")</a> 301 <span class="clearfix"></span> 302 </div> 303 </div> 304 <div class="row">&nbsp;</div> 305 </div> 306 } 307 else 308 { 309 <span class="cart-items">@Translate("Your shopping cart is empty.", "Your shopping cart is empty.")</span> 310 } 311 </div> 312 } 313 @{ 314 string siteHost = HttpContext.Current.Request.Url.Host; 315 } 316 317 <!DOCTYPE html> 318 <!--[if lt IE 7]> <html lang="da" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> 319 <!--[if IE 7]> <html lang="da" class="no-js lt-ie9 lt-ie8"> <![endif]--> 320 <!--[if IE 8]> <html lang="da" class="no-js lt-ie9"> <![endif]--> 321 <!--[if gt IE 8]><!--> 322 <html lang="da" class="no-js"> 323 <!--<![endif]--> 324 <head> 325 326 <!-- Google Tag Manager --> 327 <script> 328 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 329 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 330 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 331 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 332 })(window, document, 'script', 'dataLayer', 'GTM-P43RJT'); 333 </script> 334 <!-- End Google Tag Manager --> 335 336 337 <meta charset="utf-8"> 338 <title>@GetValue("Title")</title> 339 @GetValue("MetaTags") 340 @GetValue("CopyRightNotice") 341 342 343 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 344 @if(siteHost.Contains("webtester.dk")){ 345 <meta name="robots" content="noindex,nofollow"> 346 } else{ 347 <meta name="robots" content="index, follow"> 348 } 349 350 @{ 351 string MetaDescription = GetString("Meta.Description"); 352 string MetaKeywords = GetString("Meta.Keywords"); 353 } 354 355 356 357 358 <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1"> 359 360 <!-- Facebook Admin --> 361 @*@if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FacebookCommendAdmin"))) { 362 string fbadmin = GetString("Item.Area.FacebookCommendAdmin"); 363 <meta property="fb:admins" content="@fbadmin"> 364 }*@ 365 366 <link href="/Files/Templates/Designs/motostore/images/favicon.png" rel="icon" type="image/png"> 367 368 <!-- Variables --> 369 @{ 370 var attrValue = ""; 371 string url = GetGlobalValue("Global:Pageview.Url"); 372 if (url == "/") 373 { 374 url = "/home.aspx"; 375 } 376 string currentpageid = GetString("DwPageID"); 377 string firstpageid = GetString("DwAreaFirstActivePageID"); 378 string searchplaceholder = Translate("Search products", "Search products"); 379 var cartid = GetValue("DwAreaCartPageID"); 380 bool loggedIn = Int32.Parse(GetGlobalValue("Global:Extranet.UserID")) > 0 ? true : false; 381 } 382 383 <!--[if lt IE 9]> 384 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> 385 <script>window.jQuery || document.write('<script src="static/dist/js/vendor/jquery-1.11.2.min.js"><\/script>')</script> 386 <![endif]--> 387 <!--[if gte IE 9]><!--> 388 <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> 389 <script>window.jQuery || document.write('<script src="static/dist/js/vendor/jquery-2.1.3.min.js"><\/script>')</script> 390 <!--<![endif]--> 391 392 <script src="/Files/Templates/Designs/motostore/static/dist/js/vendor/modernizr.custom.js"></script> 393 <!--[if lt IE 9]><script src="static/dist/js/legacy.min.js"></script><![endif]--> 394 <!-- TrustBox script --> 395 <script type="text/javascript" src="//widget.trustpilot.com/bootstrap/v5/tp.widget.sync.bootstrap.min.js" async=""></script> 396 <!-- End Trustbox script --> 397 398 <!-- Custom styles --> 399 <link rel="stylesheet" href="/Files/Templates/Designs/motostore/assets/min/main.min.css?v=2.2"> 400 <link rel="stylesheet" href="/Files/Templates/Designs/motostore/assets/_style/co3-custom-style.css?v=2.53"> 401 402 @GetValue("Stylesheets") 403 @GetValue("Javascripts") 404 </head> 405 406 <!-- MAIN WRAPPER --> 407 @{ 408 var security = new Dynamicweb.Security(); 409 var frontPageClass = ""; 410 411 if (currentpageid == firstpageid) 412 { 413 frontPageClass = "frontpage"; 414 } 415 416 if (GetGlobalValue("WebServiceConnectionStatus").ToString().ToLower() == "false") 417 { 418 frontPageClass += " no-webservice"; 419 } 420 } 421 422 <body id="sitecontent" class="@frontPageClass"> 423 424 <!-- Google Tag Manager (noscript) --> 425 <noscript> 426 <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P43RJT" height="0" width="0" style="display:none;visibility:hidden"></iframe> 427 </noscript> 428 <!-- End Google Tag Manager (noscript) --> 429 430 <script> 431 window.dataLayer = window.dataLayer || []; 432 @if(loggedIn) 433 { 434 @:dataLayer.push({'userID' : '@GetString("DWextranet_AccessUserUserName")', 'LoggedIn' : true}); 435 } 436 else 437 { 438 @:dataLayer.push({'LoggedIn' : false}); 439 } 440 </script> 441 <!--[if lt IE 8]> 442 <p class="chromeframe">Du bruger en <strong>forældet</strong> browser. Vær venlig at <a href="http://browsehappy.com/">opgrader din browser</a> eller <a href="http://www.google.com/chromeframe/?redirect=true">aktiver Google Chrome Frame</a> for at forbedre din weboplevelse.</p> 443 <![endif]--> 444 <!-- ALERTS --> 445 <div class="alert alert-danger absolute-top" role="alert"> 446 <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button> 447 <p>Der kan i øjeblikket ikke oprettes forbindelse til NAV.&nbsp;<a href="#" class="alert-link">Prøv igen</a></p> 448 </div> 449 <!-- MODALS --> 450 <!-- LOGIN --> 451 <div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 452 <div class="modal-dialog modal-sm"> 453 <div class="modal-content"> 454 <div class="modal-header"> 455 <h4 class="modal-title" id="myModalLabel">@Translate("LoginOnlyDealers", "LoginOnlyDealers")</h4> 456 </div> 457 <form role="form" id="loginform" method="post" action="@url"> 458 <div class="modal-body"> 459 @if (!string.IsNullOrWhiteSpace(GetString("DW_extranet_error_uk"))) 460 { 461 <script>alert("@GetValue("DW_extranet_error_uk")");</script> 462 } 463 464 <input type="hidden" name="ID" value="@currentpageid"> 465 <input type="hidden" name="DWExtranetUsernameRemember" value="True"> 466 <input type="hidden" name="DWExtranetPasswordRemember" value="True"> 467 <div class="form-group"> 468 @{ attrValue = Translate("Enter username", "Enter username"); 469 } 470 471 <label for="username">@Translate("Username", "Username")</label> 472 <input type="text" class="form-control" name="username" id="username" placeholder="@attrValue" value="@GetValue(" dwextranetusername")"="" style="width: 100% !important"> 473 </div> 474 <div class="form-group" style="padding-top: 10px"> 475 @{ attrValue = Translate("Enter password", "Enter password"); 476 } 477 478 <label for="password">@Translate("Password", "Password")</label> 479 <input type="password" class="form-control" name="password" id="password" placeholder="@attrValue" style="width: 100% !important"> 480 <p>&nbsp;</p> 481 <a class="pull-left" href="/login?LoginAction=Recovery">@Translate("Forgot your password?", "Forgot your password?")</a> 482 <text>&nbsp;</text> 483 </div> 484 </div> 485 <div class="modal-footer"> 486 <div class="row"> 487 <div class="col-md-12"> 488 <div class="checkbox pull-left" style="margin-top: 0px !important"> 489 <label> 490 <input type="checkbox" name="Autologin" checked="checked" value="True"> @Translate("Remember me", "Remember me") 491 </label> 492 </div> 493 <button type="submit" class="btn btn-xs btn-base pull-right">@Translate("Sign in", "Sign in")</button> 494 </div> 495 </div> 496 </div> 497 @if (GetLoop("DWExtranetExternalLoginProviders").Count != 0) 498 { 499 <div class="modal-footer"> 500 <div class="row"> 501 <div class="col-md-12"> 502 <div class="pull-left">@Translate("Or sign in using", "Or sign in using"):</div> 503 <p>&nbsp;</p> 504 </div> 505 </div> 506 507 <div class="row"> 508 <div class="col-md-12"> 509 @foreach (LoopItem LoginProvider in GetLoop("DWExtranetExternalLoginProviders")) 510 { 511 var ProviderName = LoginProvider.GetString("ProviderName").ToLower(); 512 <a href='/Admin/Public/Social/ExternalLogin.aspx?action=login&providerID=@LoginProvider.GetValue("ProviderID")' class="btn btn-xs btn-base pull-left"><i class="fa fa-@ProviderName"></i>@LoginProvider.GetString("ProviderName")</a><text>&nbsp;&nbsp;&nbsp;</text> 513 } 514 </div> 515 </div> 516 </div> 517 } 518 </form> 519 </div> 520 </div> 521 </div> 522 523 <!-- MOBILE MENU --> 524 @{ 525 var offsetmenuplace = "left"; 526 } 527 528 <div id="myNavmenu" class="navmenu navmenu-default navmenu-fixed-@offsetmenuplace offcanvas"> 529 <div class="row offcanvas-row brand-row"> 530 <div class="col-sm-12 col-xs-12 offcanvas-col"> 531 <a href="/Default.aspx?ID=@firstpageid" class="brand" style=""> 532 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GeneralLogo"))) 533 { 534 var logoimage = GetString("Item.Area.GeneralLogo"); 535 <div class="dw-offsetmenu-logo"> 536 <img src="@logoimage" title='@GetValue("Item.Area.GeneralLogoText")'> 537 </div> 538 } 539 else 540 { 541 <div class="dw-offsetmenu-logo">@GetValue("Item.Area.GeneralLogoText")</div> 542 } 543 </a> 544 </div> 545 </div> 546 @if (GetBoolean("Item.Area.EcomEnabled")) 547 { 548 <div class="row offcanvas-row search-row"> 549 <div class="col-sm-12 col-xs-12 offcanvas-col"> 550 <form method="get" action="/products"> 551 <div class="input-group"> 552 <input type="text" class="form-control" name="searchterm" tabindex="1" placeholder="@searchplaceholder"> 553 <span class="input-group-btn"> 554 <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i></button> 555 </span> 556 </div> 557 </form> 558 </div> 559 </div> 560 <div class="row offcanvas-row sign-in-row"> 561 <div class="col-sm-12 col-xs-12 offcanvas-col"> 562 @if (!Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 563 { 564 <div class="pull-left"> 565 <a href="/Login.aspx"><button class="btn btn-sm btn-primary"><i class="fa fa-sign-in"></i> @Translate("Sign in", "Sign in")</button></a> 566 </div> 567 } 568 569 @if (Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 570 { 571 <div class="pull-left" id="user-data" style="padding: 11px 11px 0 16px !important"> 572 <a href="Default.aspx?ID=8473" class="btn btn-sm btn-default"> 573 <i class="fa fa-user"></i> <strong>@GetGlobalValue("Global:Extranet.Name")</strong> 574 </a> 575 </div> 576 <div class="pull-left" style="padding: 11px 11px 0 16px !important"> 577 <a href="/Admin/Public/ExtranetLogoff.aspx?redirect=no"><button class="btn btn-sm btn-default"><i class="fa fa-sign-out"></i> @Translate("Sign out", "Sign out")</button></a> 578 </div> 579 } 580 </div> 581 <div class="col-sm-12 col-xs-12 offcanvas-col"> 582 <ul class="nav nav-pills nav-stacked"> 583 @RenderSnippet("Toolsmenu") 584 </ul> 585 @GetValue("DwNavigation(drawernavigation)") 586 </div> 587 </div> 588 } 589 </div> 590 591 <!-- HEADER AND CONTENT--> 592 593 <div class="body-wrap shad"> 594 <!-- HEADER --> 595 <div id="divHeaderWrapper"> 596 <header class="header-alpha header-cover"> 597 598 <!-- TOP HEADER --> 599 <div class="top-header"> 600 <div class="container"> 601 <div class="row"> 602 <div class="col-md-3 logobox"> 603 </div> 604 <div class="col-md-9 logobox"> 605 <nav class="top-header-menu hidden-sm hidden-xs"> 606 <ul class="top-menu"> 607 @SnippetStart("Toolsmenu") 608 @GetValue("DwNavigation(servicemenu)") 609 @SnippetEnd("Toolsmenu") 610 @RenderSnippet("Toolsmenu") 611 612 <!-- Ecommerce user menu --> 613 @if (GetBoolean("Item.Area.EcomEnabled")) 614 { 615 if (!Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 616 { 617 <text> 618 <li><a href="#" data-toggle="modal" data-target="#login">@Translate("Login", "Login")</a></li> 619 </text> 620 } 621 if (Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 622 { 623 var userProfileId = GetString("Item.Area.UserProfilePageId"); 624 <text> 625 <li> 626 <a href="Default.aspx?ID=@userProfileId"> 627 <nobr> 628 <i class="fa fa-user"></i> <strong>@GetGlobalValue("Global:Extranet.Name")</strong> 629 </nobr> 630 </a> 631 </li> 632 <li> 633 <a href='/Admin/Public/ExtranetLogoff.aspx?redirect=no'>@Translate("Logout", "Logout")</a> 634 </li> 635 </text> 636 } 637 638 if(Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 639 { 640 string query = Dynamicweb.Base.ChkString(HttpContext.Current.Request.QueryString); 641 string currentURL = "/Default.aspx?" + query; 642 string offLink = Dynamicweb.Base.ReplaceQueryString(currentURL, "HideNettoPrice", "false"); 643 string onLink = Dynamicweb.Base.ReplaceQueryString(currentURL, "HideNettoPrice", "true"); 644 645 <li> 646 @if (DisPlay.DW.Nellemann.Logic.Helper.GetHideNettoPrices()) 647 { 648 <a class="btn btn-success" style="padding-bottom: 7px;padding-top: 7px;border-radius: 0;" href='@offLink'>@Translate("retailPrices", "Vejl. priser")</a> 649 } 650 else 651 { 652 <a class="btn btn-danger" style="padding-bottom: 7px;padding-top: 7px;border-radius: 0;" href='@onLink'>@Translate("retailPrices", "Vejl. priser")</a> 653 } 654 </li> 655 } 656 } 657 658 <!-- Ecommerce Cart --> 659 @if (GetBoolean("Item.Area.EcomEnabled")) 660 { 661 @MiniCartTop(); 662 } 663 </ul> 664 </nav> 665 </div> 666 </div> 667 </div> 668 </div> 669 670 <!-- MAIN NAV --> 671 <div class="nav-wrapper"> 672 <div id="navOne" class="navbar" role="navigation"> 673 <div class="container"> 674 <div class="instant-search-result js-instant-search-result"> 675 676 <i class="fa fa-times js-close-search-results" aria-hidden="true"></i> 677 678 <div class="row"> 679 <div class="col-xs-12 col-md-6"> 680 <div class="js-search-products search-products"> 681 <h3>Produkter</h3> 682 <div class="results-container"></div> 683 </div> 684 </div> 685 686 <div class="col-xs-12 col-md-6"> 687 <div class="js-search-content search-content"> 688 <h3>Indhold</h3> 689 <div class="results-container"></div> 690 </div> 691 </div> 692 </div> 693 694 <div class="js-no-results hidden"> 695 <h3>@Translate("NoSearchResults", "Søgningen gav desværre ingen resultater")</h3> 696 </div> 697 698 </div> 699 <div class="navbar-header pull-left"> 700 <div> 701 <a href="/Default.aspx?ID=@firstpageid" class="brand"> 702 <div class="dw-offsetmenu-logo"><img src="/Files/Templates/Designs/motostore/static/dist/images/motostore-logo.png" title="Motostore"></div> 703 </a> 704 </div> 705 </div> 706 707 <!-- Small screen header --> 708 <div class="hidden-md hidden-lg row header-sm"> 709 <div class="hidden-md hidden-lg pull-left"> 710 <button type="button" class="btn btn-sm btn-base btn-offcanvas-menu" data-toggle="offcanvas" data-target="#myNavmenu" data-canvas="body"> 711 <i class="fa fa-bars"></i> 712 </button> 713 </div> 714 @if (GetBoolean("Item.Area.EcomEnabled")) 715 { 716 717 @MiniCartTopSmall() 718 719 720 if (Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 721 { 722 <div class="hidden-md hidden-lg hidden-xs pull-left"> 723 <a href='/Admin/Public/ExtranetLogoff.aspx?redirect=no'><button class="btn btn-sm btn-base btn-logoff"><i class="fa fa-sign-out"></i></button></a> 724 </div> 725 <div class="hidden-md hidden-lg hidden-xs pull-left"> 726 <a href="Default.aspx?ID=8473" class="btn btn-sm btn-base btn-user"> 727 <i class="fa fa-user"></i> <strong>@GetGlobalValue("Global:Extranet.Name")</strong> 728 </a> 729 </div> 730 } 731 732 if (!Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 733 { 734 <div class="hidden-md hidden-lg hidden-xs pull-left"> 735 <a href="/Login.aspx"><button class="btn btn-sm btn-base btn-login"><i class="fa fa-sign-in"></i></button></a> 736 </div> 737 } 738 739 } 740 </div> 741 742 <!-- Big screen header --> 743 <div class="navbar-navigation"> 744 <div class=""> 745 <nav class="col-md-10 col-sm-10 col-xs-10 navbar-collapse collapse navbar-right p-r-0"> 746 <span class="hidden-sm hidden-xs topnavigation"> 747 @GetValue("DwNavigation(topnavigation)") 748 </span> 749 @if (GetBoolean("Item.Area.EcomEnabled")) 750 { 751 <ul class="nav navbar-nav" id="searchnavigation"> 752 <li class="search-toggle hidden-sm hidden-xs open"> 753 <a class="dropdown-toggle"><i class="fa fa-search"></i><span></span></a> 754 <ul class="dropdown-menu dropdown-menu-user"> 755 <li id="dropdownForm"> 756 <div class="dropdown-form"> 757 <form role="form" method="get" action="/products" novalidate=""> 758 <div class="input-group"> 759 <input type="text" id="input-search" autocomplete="off" class="form-control search js-instant-search-query" name="searchterm" placeholder="@searchplaceholder"> 760 <span class="input-group-btn js-icon-container"> 761 <button class="btn btn-base" type="submit"><i class="fa fa-search"></i></button> 762 </span> 763 </div> 764 </form> 765 </div> 766 </li> 767 </ul> 768 </li> 769 </ul> 770 } 771 </nav> 772 </div> 773 </div> 774 775 <ul class="motostore-bike-picker"> 776 <li> 777 <div class="js-motostore-bike-selector-container"> 778 <div class="motostore-bike-selector-outer"> 779 780 <div class="js-motostore-bike-selector-selectBike"> 781 <div class="row"> 782 <div class="col-md-8 col-sm-6 col-xs-6"> 783 <div class="js-motostore-bike-selector-text ">Få vist produkter, der passer til din motorcykel</div> 784 </div> 785 <div class="col-md-4 col-sm-6 col-xs-6"> 786 <button type="button" class="btn btn-block js-motostore-bike-selector-choose" data-toggle="modal" data-target="#motostore-modal">VÆLG MOTORCYKEL</button> 787 </div> 788 </div> 789 </div> 790 <div class="js-motostore-bike-selector-editBike"> 791 <div class="row"> 792 <div class="col-md-8 col-sm-6 col-xs-6"> 793 <div class="js-motostore-bike-selector-text ">Din motorcykel:&nbsp;<span class="js-motostore-bike-selector-selected-bike-text"></span></div> 794 </div> 795 <div class="col-md-4 col-sm-6 col-xs-6"> 796 <button type="button" class="btn btn-block js-motostore-bike-selector-choose" data-toggle="modal" data-target="#motostore-modal">RET/SLET MOTORCYKEL</button> 797 </div> 798 </div> 799 </div> 800 </div> 801 </div> 802 <div class="js-motostore-bike-selector-container js-motostore-bike-selector-container-mobile" style="display:none"> 803 <div class="motostore-bike-selector-outer"> 804 805 <div class="js-motostore-bike-selector-selectBike"> 806 <div class="row"> 807 <div class="col-md-8 col-sm-6 col-xs-6"> 808 <div class="js-motostore-bike-selector-text ">Få vist produkter, der passer til din motorcykel</div> 809 </div> 810 <div class="col-md-4 col-sm-6 col-xs-6"> 811 <button type="button" class="btn btn-block js-motostore-bike-selector-choose" data-toggle="modal" data-target="#motostore-modal">VÆLG MOTORCYKEL</button> 812 </div> 813 </div> 814 </div> 815 816 <div class="js-motostore-bike-selector-editBike"> 817 <div class="row"> 818 <div class="col-md-8 col-sm-6 col-xs-6"> 819 <div class="js-motostore-bike-selector-text ">Din motorcykel:&nbsp;<span class="js-motostore-bike-selector-selected-bike-text"></span></div> 820 </div> 821 <div class="col-md-4 col-sm-6 col-xs-6"> 822 <button type="button" class="btn btn-block js-motostore-bike-selector-choose" data-toggle="modal" data-target="#motostore-modal">RET/SLET MOTORCYKEL</button> 823 </div> 824 </div> 825 </div> 826 </div> 827 </div> 828 </li> 829 </ul> 830 831 </div> 832 </div> 833 </div> 834 </header> 835 </div> 836 <!-- Attention bar --> 837 <!--<section class="attention-bar"> 838 <div class="container"> 839 <div class="row"> 840 <div class="col-sm-12"> 841 <a href="/information" title="GRATIS LEVERING" class="delivery"> 842 <div class="attention-bar-text"> 843 <p class="h6">GRATIS LEVERING</p> 844 <p>ved køb over 500 kr.</p> 845 </div> 846 </a> 847 <a href="/information" title="Spar fragten" class="house"> 848 <div class="attention-bar-text"> 849 <p class="h6">Spar fragten</p> 850 <p>hent i en af vores 25 butikker</p> 851 </div> 852 </a> 853 <a href="/information" title="Returlabel" class="barcode"> 854 <div class="attention-bar-text"> 855 <p class="h6">Returlabel</p> 856 <p>vedlægges</p> 857 </div> 858 </a> 859 <!-- 860 <a href="/information" title="Returret" class=""> 861 <div class="attention-bar-text"> 862 <p class="h6">14 dages returret</p> 863 <p>2 års reklamationsret</p> 864 </div> 865 </a> 866 867 <a href="/information" title="Bestil" class="counter"> 868 <div class="attention-bar-text"> 869 <i class="fa fa-clock-o"></i> 870 <p class="h6">Bestil inden 14.30.</p> 871 <p>Vi sender i dag*</p> 872 </div> 873 <!--<div class="attention-bar-counter"> 874 <div class="attention-bar-col"> 875 <span id="counter-hours">23</span> 876 <span>timer</span> 877 </div> 878 <div class="attention-bar-col"> 879 <span id="counter-minutes">48</span> 880 <span>min</span> 881 </div> 882 </div> 883 </a> 884 <div class="trustpilot-widget col-md-3 col-sm-12 col-xs-12 pull-left" data-locale="da-DK" data-template-id="53aa8807dec7e10d38f59f32" data-businessunit-id="57cff28b0000ff00059468d1" data-style-height="150px" data-style-width="100%" data-theme="light" style="height: 57px; width: 157px; overflow: hidden;"> 885 <a href="https://dk.trustpilot.com/review/motostore.dk" target="_blank">Trustpilot</a> 886 </div> 887 </div> 888 </div> 889 </div> 890 </section>--> 891 <section class="attention-bar-co3"> 892 <div class="container"> 893 <div class="attention-bar-flex"> 894 @foreach (var item in GetLoop("Item.Area.USPItems")) 895 { 896 string icon = item.GetString("Item.Area.USPItems.FA_icon"); 897 string link = item.GetString("Item.Area.USPItems.Link"); 898 string title = item.GetString("Item.Area.USPItems.Title"); 899 <div class="col"> 900 <div class="attention-bar-text"> 901 <a href="@link" title="@title" class="delivery"> 902 <div class="img-container"> 903 <i class="fa fa-@icon"></i> 904 </div> 905 <div class="text-container"> 906 <p class="h6">@title</p> 907 <p>@item.GetValue("Item.Area.USPItems.Description")</p> 908 </div> 909 </a> 910 </div> 911 </div> 912 } 913 @if(GetBoolean("Item.Area.USP_Trustpilot")){ 914 <div class="col"> 915 <div class="trustpilot-widget col-md-3 col-sm-12 col-xs-12 pull-left" data-locale="da-DK" data-template-id="53aa8807dec7e10d38f59f32" data-businessunit-id="57cff28b0000ff00059468d1" data-style-height="47px" data-style-width="100%" data-theme="light" style="height: 47px; width: 122px; overflow: hidden;"> 916 <a href="https://dk.trustpilot.com/review/motostore.dk" target="_blank">Trustpilot</a> 917 </div> 918 </div> 919 } 920 </div> 921 </div> 922 </section> 923 <!-- MAIN CONTENT --> 924 925 @GetValue("Title(News page)") 926 @GetValue("Description(News page with left navigation and content area 3+9)") 927 928 @{ 929 string siteurl = GetGlobalValue("Global:Request.Url").ToString(); 930 string attributeValue = ""; 931 } 932 933 934 @if(GetBoolean("Item.Page.LayoutShowBreadcrumb")){ 935 <div class="pg-opt pin"> 936 <div class="container"> 937 <div class="row"> 938 <div class="col-lg-3 col-md-3 hidden-sm hidden-xs"> 939 @if (GeneralSettings.Navigation.BreadcrumbMode != "light") 940 { 941 <div class="dw-breadcrumb-title">@GetGlobalValue("Global:Page.Top.Name")</div> 942 } 943 </div> 944 <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12"> 945 @GetValue("DwNavigation(breadcrumb)") 946 </div> 947 </div> 948 </div> 949 </div> 950 } 951 952 <section class="slice white animate-hover-slide"> 953 <div class="w-section"> 954 <div class="container"> 955 <div class="row"> 956 @if(!GetBoolean("Item.Page.LayoutHideLeftMenu")) { 957 <div class="col-md-3 hidden-sm hidden-xs"> 958 <div class="widget"> 959 <h3 class="dw-section-title dw-section-title-small"><span>@GetGlobalValue("Global:Page.Name")</span></h3> 960 <text>&nbsp;</text> 961 @GetValue("DwNavigation(leftnavigation)") 962 </div> 963 </div> 964 } 965 966 <div class="col-md-9 col-sm-12 col-xs-12"> 967 <div class="post-item"> 968 @if (!string.IsNullOrWhiteSpace(GetString("Item.GeneralImage"))) { 969 attributeValue = GetString("Item.GeneralImage"); 970 <div class="post-meta-top"> 971 <div class="post-image"> 972 <div class="img-responsive" style="background-image: url(/Admin/Public/GetImage.ashx?image=@attributeValue&width=1280&height=350&compression=90&crop=1);height:350px;background-position:bottom center"> 973 </div> 974 </div> 975 </div> 976 } 977 <div class="post-content"> 978 <h2 class="post-title">@GetValue("Item.Heading")</h2> 979 <span class="post-tags">@Translate("Written by", "Written by") @GetValue("Item.GeneralAuthor") - @GetValue("DwDateLong")</span> 980 <div class="clearfix"></div> 981 982 <div class="post-desc"> 983 <p>@GetValue("Item.Text")</p> 984 </div> 985 986 @if (GetBoolean("Item.Page.FacebookLikeButton")){ 987 <p>&nbsp;</p> 988 <iframe src="//www.facebook.com/plugins/like.php?href=@siteurl&amp;width=200&amp;layout=button_count&amp;action=recommend&amp;show_faces=true&amp;share=true&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowtransparency="true"></iframe> 989 } 990 </div> 991 </div> 992 993 <div class="col-md-9" dwcontent="" id="modulecontent" title="For modules"></div> 994 </div> 995 </div> 996 </div> 997 </div></section> 998 999 1000 <!-- FOOTER --> 1001 <footer class="footer"> 1002 <section class="footer-top-row"> 1003 <div class="container"> 1004 <div class="row"> 1005 <div class="col-md-4 col-xs-12"> 1006 <div class="col contact-info" itemscope="" itemtype="http://schema.org/Store"> 1007 <h4 itemprop="name">@GetValue("Item.Area.FooterCompanyName")</h4> 1008 <address itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress"> 1009 <p itemprop="streetAddress">@GetString("Item.Area.FooterAddress").Replace("\n", "<br>")</p> 1010 <!--<p itemprop="name">Nellemann & Drewsen ApS</p> 1011 <p itemprop="streetAddress">Langdyssen 1</p> 1012 <p itemprop="addressLocality"><span itemprop="postal-code">8200</span> Aarhus N</p> 1013 <p itemprop="country-name">Danmark</p>--> 1014 </address> 1015 @{var StoreEmail = @GetString("Item.Area.FooterEmail");} 1016 @{var StorePhone = @GetString("Item.Area.FooterPhone");} 1017 <p><a href="mailto:@StoreEmail" title="Email Us" itemprop="email">@StoreEmail</a></p> 1018 <p><a href="tel:@StorePhone" itemprop="telephone">@StorePhone</a></p> 1019 </div> 1020 </div> 1021 <div class="col-md-6 col-xs-12"> 1022 <div class="col-sm-4 col-xs-12 no-padding"> 1023 <h4>Produkter</h4> 1024 @GetValue("DwNavigation(footerProductGroups)") 1025 </div> 1026 <div class="col-sm-4 col-xs-12"> 1027 <h4>@GetString("Item.Area.Column3Headline")</h4> 1028 <p> 1029 @GetString("Item.Area.Column3Text").Replace("\n", "<br>") 1030 </p> 1031 </div> 1032 <div class="col-sm-4 col-xs-12 no-padding"> 1033 <h4>Om os</h4> 1034 @foreach (var link in GetLoop("Item.Area.LinkList")) 1035 { 1036 1037 <a href='/Default.aspx?ID=@link.GetValue("Item.Area.LinkList.Link")'>@link.GetValue("Item.Area.LinkList.LinkText")</a> 1038 1039 } 1040 <div class="creditcards"><img src="/Files/Templates/Designs/motostore/static/dist/images/creditcards.png" alt="Mastercard, VISA, JBC, American express,Dankort"></div> 1041 </div> 1042 </div> 1043 <div class="col-md-2 col-xs-12"></div> 1044 </div> 1045 </div> 1046 </section> 1047 <section class="footer-bottom-row"> 1048 <div class="container"> 1049 <div class="row"> 1050 <div class="col-xs-6 "> 1051 </div> 1052 <div class="col-xs-6"> 1053 <div class="col pull-right"> 1054 <a href="#" title="Motostore"><img src="/Files/Templates/Designs/motostore/static/dist/images/motostore-logo-blue.png" class="footer-logo" alt="motostore"></a> 1055 </div> 1056 </div> 1057 </div> 1058 </div> 1059 </section> 1060 1061 </footer> 1062 <!--/div--> 1063 1064 <!-- Start: Modal --> 1065 <div class="modal fade" id="motostore-modal" tabindex="-1" role="dialog" aria-labelledby="motostore-modal-title" aria-hidden="true"> 1066 <div class="modal-dialog modal-dialog-centered" role="document"> 1067 <div class="modal-content"> 1068 <div class="modal-header"> 1069 <h5 class="modal-title" id="motostore-modal-title">@Translate("Bike Selector Headline", "Vælg Motorcykel")</h5> 1070 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 1071 <span aria-hidden="true">&times;</span> 1072 </button> 1073 </div> 1074 <div class="modal-body"> 1075 <div class="form-group"> 1076 @{ 1077 string filterAdded = Translate("Bike Selector - filter is added", "Filter tilføjet"); 1078 string addFilter = Translate("Bike Selector - add filter", "Se alt til din MC"); 1079 1080 } 1081 <form class="motostore-bike-selector-form js-motostore-bike-selector-form" data-currentmodel="@HttpContext.Current.Session[Constants.VEHICLEMODELS_SESSION_KEY]"> 1082 <div class="row"> 1083 <div class="col-md-4 col-sm-12 col-xs-12"> 1084 <select name="brands" data-text="Vælg mærke" class="form-control js-motostore-selector js-motostore-bike-selector-brand motostore-bike-selector-brand"> 1085 <option value="">@Translate("Bike Selector - choose brand", "Vælg mærke")</option> 1086 </select> 1087 </div> 1088 1089 <div class="col-md-4 col-sm-12 col-xs-12"> 1090 <select name="years" data-text="Vælg årgang" class="form-control js-motostore-selector js-motostore-bike-selector-year motostore-bike-selector-year" disabled=""> 1091 <option value="">@Translate("Bike Selector - choose year", "Vælg årgang")</option> 1092 </select> 1093 </div> 1094 <div class="col-md-4 col-sm-12 col-xs-12"> 1095 <select name="models" data-text="Vælg model" class="form-control js-motostore-selector js-motostore-bike-selector-model motostore-bike-selector-model" disabled=""> 1096 <option value="">@Translate("Bike Selector - choose model", "Vælg model")</option> 1097 </select> 1098 </div> 1099 <div class="row>"> 1100 <div class="col-md-2 col-sm-12 col-xs-12"></div> 1101 <div class="col-md-4 col-sm-12 col-xs-12"> 1102 <button class="motostore-bike-selector-submit js-motostore-bike-selector-submit btn btn-primary" type="button" onclick="location.href='/products/?mc=true'" type="button">@addFilter</button> 1103 </div> 1104 <div class="col-md-4 col-sm-12 col-xs-12"> 1105 <button class="motostore-bike-selector-cancel js-motostore-bike-selector-reset btn btn-primary" type="button">@Translate("Bike Selector - reset", "Nulstil")</button> 1106 </div> 1107 <div class="col-md-2 col-sm-12 col-xs-12"></div> 1108 </div> 1109 </div> 1110 </form> 1111 </div> 1112 </div> 1113 </div> 1114 </div> 1115 </div> 1116 <!-- End: Modal --> 1117 <script src="/Files/Templates/Designs/motostore/assets/min/library.min.js?v=1.1"></script> 1118 <script src="/Files/Templates/Designs/motostore/assets/min/main.min.js?v=3.1"></script> 1119 <script src="/Files/Templates/Designs/motostore/assets/_js/co3-custom.js?v=1.21"></script> 1120 <script src="/Files/Templates/Designs/motostore/assets/_js/datepicker-da.js?v=1"></script> 1121 <link rel="stylesheet" href="/Files/Templates/Designs/motostore/assets/_style/jquery-ui.css?v=1"> 1122 <script>(function(){var o=document.createElement('script');o.type='text/javascript';o.async=true;o.src='https://secure.viabill.com/psp/web/webshop/pricetag/T1dpaKNV_pI%3D';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(o,s);})();</script> 1123 <script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script> 1124 <script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us18.list-manage.com","uuid":"326ccbf03b131839465094eb1","lid":"9b7da5321e"}) })</script> 1125 1126 </div></body> 1127 </html> 1128