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