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