Error executing template "Designs/standard_responsiv/_parsed/Gallery.parsed.cshtml"
System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\dynamicweb.net\Solutions\Soegaard\mx5club.dw9.dynamicweb-cms.com\Files\Billeder\Galleri\2022\Vi fejrer 30 års klub jubilæum'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
   at CompiledRazorTemplates.Dynamic.RazorEngine_46ae9803d81e4b2482d377b32dc789ba.Execute() in E:\dynamicweb.net\Solutions\Soegaard\mx5club.dw9.dynamicweb-cms.com\Files\Templates\Designs\standard_responsiv\_parsed\Gallery.parsed.cshtml:line 1237
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 <html lang="da"> 3 <head> 4 <script type="text/javascript"> 5 //Redirect to home if not logged in 6 //if (document.cookie.indexOf("Dynamicweb=Visitor") < 0) { window.location.replace("http://mx5club.dk"); } 7 </script> 8 <meta charset="UTF-8"> 9 <title></title> 10 <base href="https://mx5club.dk/"> 11 <meta name="generator" content="Dynamicweb 9"> 12 13 14 15 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no"> 16 17 <!--favicons--> 18 19 <link rel="shortcut icon" href='/Files/Templates/Designs/standard_responsiv/images/ikoner/favicon.ico' type="image/x-icon"> 20 21 22 23 <link href="/Files/Templates/Designs/standard_responsiv/images/ikoner/apple-touch-icon-180x180.png" rel="apple-touch-icon" sizes="180x180"> 24 25 26 27 <link href="//mx5club.dk/files/Templates/Designs/standard_responsiv/images/ikoner/icon-hires.png" rel="icon" sizes="192x192"> 28 29 <!--Bootstrap--> 30 <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> 31 32 <style> 33 .hctrl_483 { 34 height: 200px; 35 overflow: hidden; 36 } 37 38 @@media (min-width:993px) { 39 .revolu_slider { 40 margin: 0px -15px; 41 } 42 } 43 44 .tp-caption { 45 top: 20px !important; 46 position: relative !important; 47 left: 8px !important; 48 } 49 50 @@media (max-width:992px) { 51 .tp-caption { 52 left: 16px !important; 53 } 54 } 55 56 @@media (max-width:768px) { 57 .tp-caption { 58 left: 0px !important; 59 } 60 } 61 /* skal altid være der */ 62 .revolu_slider { 63 margin-bottom: 30px; 64 } 65 66 .tp-caption h1 { 67 font-size: 22px; 68 } 69 70 .tp-caption-container { 71 position: relative !important; 72 top: 0px; 73 height: 100%; 74 -webkit-transform: translateY(-100%) !important; 75 -ms-transform: translateY(-100%) !important; 76 transform: translateY(-100%) !important; 77 } 78 79 80 81 /* SLIDESHOW */ 82 .revolu_slider_483 .tp-caption { 83 left: 0px !important; 84 width: 100% !important; 85 height: auto !important; 86 max-width: 100% !important; 87 margin-left: auto !important; 88 background: transparent !important; 89 text-align: center !important; 90 position: absolute !important; 91 cursor: default !important; 92 position: absolute !important; 93 top: 50% !important; 94 -webkit-transform: translateY(-50%) !important; 95 -ms-transform: translateY(-50%) !important; 96 transform: translateY(-50%) !important; 97 } 98 /* 99 @@media (max-width: 1060px) { 100 .revolu_slider_483 .tp-caption{ 101 top:30px !important; 102 } 103 } 104 */ 105 .revolu_slider_483 .tp-caption h1 { 106 margin: auto !important; 107 vertical-align: middle !important; 108 max-width: 600px; 109 color: #fff; 110 font-size: 36px; 111 font-weight: 400; 112 } 113 114 .revolu_slider_483 .tp-caption h4 { 115 line-height: 28px; 116 color: #fff !important; 117 margin: 10px auto 10px auto !important; 118 max-width: 600px !important; 119 font-size: 18px; 120 } 121 122 @@media (max-width: 768px) { 123 .revolu_slider_483 .tp-caption h1 { 124 font-size: 24px !important !important; 125 } 126 127 .revolu_slider_483 .tp-caption h4 { 128 font-size: 18px; 129 line-height: 22px; 130 } 131 132 .revolu_slider_483 .tp-caption { 133 top: 4 !important; 134 } 135 } 136 137 138 .revolu_slider_483 .tp-caption h1, .revolu_slider_483 .tp-caption h4 { 139 color: #FFFFFF !important; 140 } 141 </style> 142 143 <link href="/Files/Templates/Designs/standard_responsiv/assets/revolutionslider/css/style.css" rel="stylesheet" type="text/css" /> 144 <link href="/Files/Templates/Designs/standard_responsiv/assets/revolutionslider/css/settings.css" rel="stylesheet" type="text/css" /> 145 146 147 148 <link href="/Files/Templates/Designs/standard_responsiv/includes/nav/meanmenu/styles.css" rel="stylesheet" type="text/css"> 149 <link href="/Files/Templates/Designs/standard_responsiv/includes/nav/meanmenu/meanmenu.css" rel="stylesheet" type="text/css"> 150 151 <style> 152 .mean-nav > ul > li:first-child { 153 margin-top: 78px; 154 } 155 </style> 156 157 <link href='/Files/Templates/Designs/customfonts/Material_fonts.css' rel="stylesheet"> 158 159 <link href='/Files/Templates/Designs/standard_responsiv/stylesheets/custom.css' rel="stylesheet"> 160 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> 161 <script src="/Files/Templates/Designs/standard_responsiv/javascript/functions.js"></script> 162 <style type="text/css"> 163 /* BODY */ 164 body { 165 height: 100%; 166 } 167 168 body:after { 169 content: ''; 170 z-index: -2; 171 width: 120%; 172 height: 120%; 173 position: fixed; 174 top: -25px; 175 left: -25px; 176 background: url(/Files/Templates/Designs/standard_responsiv/../../../../../../); 177 background-size: cover; 178 background-repeat: no-repeat; 179 /* 180 -webkit-filter: sepia(1); 181 -moz-filter: grayscale(100%); 182 -o-filter: grayscale(100%); 183 -ms-filter: grayscale(100%); 184 filter: sepia(1); 185 */ 186 } 187 188 body:before { 189 content: ''; 190 z-index: -1; 191 width: 100%; 192 height: 100%; 193 position: fixed; 194 top: 0px; 195 left: 0px; 196 opacity: 1; 197 background-color: #F5F5F5; 198 } 199 200 /* TOP */ 201 202 203 #top { 204 background-color: #FFFFFF; 205 } 206 207 208 /* CONTENT Background */ 209 /* 210 .widthdecider:before { 211 content: ''; width: 100%; height: 100%; position: relative; top:0px; left:0px; 212 213 opacity: 0.9; 214 background-color: #ffffff; 215 }*/ 216 .widthdecider { 217 background-color: rgba(255,255,255,1); 218 } 219 220 .secondarycontainer { 221 background-color: #EEEEEE; 222 } 223 224 /* LINKS */ 225 a, a:visited, .pagination > li > a { 226 color: #000000; 227 } 228 229 .btn-dw-primary, input[type="button"], input[type="reset"], input[type="submit"] { 230 background-color: #000000; 231 color: #fff; 232 } 233 234 a.Button01, .Button01 { 235 border: none; 236 background: #000000; 237 color: #fff !important; 238 border: none !important; 239 } 240 241 .pagination > li.active > a { 242 background-color: #000000; 243 color: #fff !important; 244 } 245 246 .btn-dw-cart { 247 background-color: #B0C787; 248 } 249 250 /* FOOTER */ 251 #footer p, #footer h1, #footer h2, #footer h3, #footer h4, #footer h5 { 252 color: #595959; 253 } 254 255 #footer a, #footer a:visited { 256 color: #000000; 257 } 258 259 260 /* COOKIE WARNING */ 261 262 263 #CookieWarning, .CokieWarning_Info a.cookie-link, .CokieWarning_Info, .CookieWarning_Header { 264 color: #FFFFFF !important; 265 } 266 267 268 269 270 #CookieWarning:before { 271 background-color: #000000 !important; 272 } 273 274 275 /* SUBMENUER I VENSTRE KOLONNE */ 276 #LeftNav ul.M0 > li > a[class$="_Active"], #LeftNav ul.M0 > li > a:hover[class$="_Active"], #LeftNav ul.M0 > li:not(.nonclick) > a:hover { 277 color: #fff; 278 background-color: #000000; 279 } 280 281 #LeftNav ul > li:not(.nonclick) > a:hover, 282 #LeftNav a[class$="_Active"] { 283 color: #000000; 284 } 285 286 /* SUBMENU I TOPPEN */ 287 #cssmenu3 a.L2_Active { 288 color: #000000; 289 } 290 291 .modal-header { 292 color: #fff !important; 293 background-color: #000000; 294 } 295 296 #sitemap2_5 a:hover { 297 color: #000000 !important; 298 } 299 300 301 302 303 304 305 .ribbon.base { 306 border-right-color: #FFC421; 307 background-color: #FFC421; 308 } 309 310 .ribbon.base:before { 311 border-top-color: #FFC421 !important; 312 } 313 314 .ribbon.base:after { 315 border-bottom-color: #FFC421 !important; 316 } 317 </style> 318 319 <script type="text/javascript"> 320 $(document).ready(function () { 321 var lighterShade = ColorLuminance("#000000", 0.15); 322 $('.btn-dw-primary, input[type="button"]:not(.CookieWarning_AcceptAll), input[type="reset"], input[type="submit"]').hover(function () { $(this).css("background-color", lighterShade); }, function () { $(this).css("background-color", "#000000"); }); 323 324 $('.Button01, .pagination>li.active>a').hover(function () { $(this).css("background", lighterShade); }, function () { $(this).css("background", "#000000"); }); 325 326 lighterShade = ColorLuminance("#000000", 0.15); 327 $('a:not(.btn-dw-primary, .pill-left, .Button01, .Button a, input[type="button"], input[type="reset"], input[type="submit"], #footer a, #cssmenu > ul > li > a, #cssmenu2 > ul > li > a, #cssmenu3 > ul > li > a, .secondary-navigation > ul > li a, .top-header .top-header-menu>ul.top-menu>li>a, .wp-block.product .product-title a, #LeftNav a, #poweredby > a, #minipagecart, #orderlistcontent a, #sitemap2_5 a)').hover(function () { $(this).css("color", lighterShade); }, function () { $(this).css("color", "#000000"); }); 328 329 footerHighlight = ColorLuminance("#000000", -0.15); 330 $('#footer a').hover(function () { $(this).css("color", footerHighlight); }, function () { $(this).css("color", "#000000"); }); 331 332 ecomHighlight = ColorLuminance("#B0C787", 0.15); 333 $('.btn-dw-cart').hover(function () { $(this).css("background-color", ecomHighlight); }, function () { $(this).css("background-color", "#B0C787"); }); 334 335 336 337 }); 338 </script> 339 340 341 <script type="text/javascript"> 342 $(document).ready(function () { 343 var buttonShade = ColorLuminance("#5E7EAD", 0.15); 344 $('input[type="button"].CookieWarning_AcceptAll').hover(function () { $(this).css("background-color", buttonShade); }, function () { $(this).css("background-color", "#5E7EAD"); }); 345 }); 346 </script> 347 <style type="text/css"> 348 input[type="button"].CookieWarning_AcceptAll { 349 background-color: #5E7EAD; 350 } 351 </style> 352 353 354 <script type="text/javascript"> 355 $(document).ready(function () { 356 //Dropdown menu 357 var dropdownClr = ColorLuminance("#F5F5F5", 0.30); 358 $("#cssmenu .M1").css("background-color", dropdownClr); 359 var dropdownClr2 = ColorLuminance("#F5F5F5", 0.40); 360 $("#cssmenu .M2").css("background-color", dropdownClr2); 361 var dropdown_hover = ColorLuminance("#F5F5F5", 0.45); 362 $('#cssmenu .M1 a').hover(function () { $(this).css("background-color", dropdown_hover); }, function () { $(this).css("background-color", dropdownClr); }); 363 var dropdown_hover2 = ColorLuminance("#F5F5F5", 0.55); 364 $('#cssmenu .M2 a').hover(function () { $(this).css("background-color", dropdown_hover2); }, function () { $(this).css("background-color", dropdownClr2); }); 365 }); 366 </script> 367 <!-- snippets to load javascript /flexnav, jquery, bootstrap, owl carousel and custom js --> 368 <!-- logo fix on IE to fix width on logo--> 369 <!--[if IE]> 370 <style> 371 @@media(max-width: 992px){ 372 .logoiehack { 373 max-width: 300px; 374 } 375 } 376 </style> 377 <![endif]--> 378 379 380 381 382 383 <script src='https://www.google.com/recaptcha/api.js'></script> 384 385 <!-- ******* CSS ******* --> 386 387 388 <link href='/Files/Templates/Designs/standard_responsiv/stylesheets/fullwidth.css' rel='stylesheet'> 389 390 391 <link href='/Files/Templates/Designs/standard_responsiv/stylesheets/bootstrap_clearfix.css' rel="stylesheet"> 392 <link href='/Files/Templates/Designs/customcss/MX5.css?v=22:15:13' rel="stylesheet"> 393 394 <!--Prinvenlig funktion--> 395 <style type="text/css" media="screen"> 396 <!-- 397 398 #FooterPrint { 399 display: none; 400 } 401 --> 402 </style> 403 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/standard_responsiv/stylesheets/Print.css" media="print"> 404 <!--/Printvenlig funktion--> 405 <!-- font awesome --> 406 <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> 407 408 409 410 <!--owl carousel--> 411 <!-- TODO: owl needs to be put in own include folder --> 412 <link href="/Files/Templates/Designs/standard_responsiv/assets/owl-carousel/owl-carousel.css" rel="stylesheet" type="text/css"> 413 <link href="/Files/Templates/Designs/standard_responsiv/assets/owl-carousel/owl-theme.css" rel="stylesheet" type="text/css"> 414 <link href="/Files/Templates/Designs/standard_responsiv/assets/owl-carousel/owl-custom.css" rel="stylesheet" type="text/css"> 415 416 417 418 419 420 421 422 <style type="text/css"> 423 #socialicons ul { 424 list-style: none; 425 padding: 0px; 426 margin: 0px; 427 } 428 429 #socialicons { 430 display: none; 431 } 432 433 #socialicons li { 434 display: inline-block; 435 margin-right: 5px; 436 } 437 438 #socialicons a { 439 font-size: 21px; 440 color: #9e9e9e; 441 } 442 </style> 443 444 <script type="text/javascript"> 445 (function (w, d, n) { 446 w[n] = w[n] || function (name, value) { w[n][name] = value; }; 447 var dwa = d.createElement('script'); dwa.type = 'text/javascript'; dwa.async = 1; 448 dwa.src = '/Admin/Content/JsLib/dw/dwansta.min.js'; 449 var s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(dwa, s); 450 })(window, document, 'analytics'); 451 452 analytics('sessionID', 'm0gtgrqdl3qh3xrdfsnugaqk'); 453 analytics('pageID', 1455); 454 analytics('areaID', 1); 455 analytics('engagement', 7); 456 </script> 457 458 </head> 459 460 <body> 461 <img src="/Files/Templates/Designs/standard_responsiv/images/mx5_logo.png" class="img-responsive onlyprint"> 462 <div class="widthdecider container-background " style="margin-top:-10px; padding-top:10px;" id="navdiv"> 463 <div id="top" style="margin-bottom:30px;"> 464 <div class="secondarycontainer print logo_menu" style="padding:0px;"> 465 <div class="container"> 466 <div class="secondary-navigation"> 467 468 469 470 <div class="ecom_mobile print"> 471 <ul class="top-menu print"> 472 473 474 475 <li><a href="/login" title="login"><i class="fa fa-sign-in"></i>&nbsp;Log ind</a></li> 476 477 </li> 478 479 480 </ul> 481 </div> 482 483 <style type="text/css"> 484 @@media(max-width:991px) { 485 .ecom_mobile { 486 display: block !important; 487 top: 50px; 488 } 489 } 490 491 .top-menu li { 492 display: inline-block; 493 margin-right: 15px; 494 } 495 496 .ecom_mobile .top-menu li > a { 497 color: #ffffff !important; 498 } 499 500 .top-menu li:last-of-type { 501 margin-right: 0px; 502 } 503 </style> 504 505 506 507 <style type="text/css"> 508 .ul-searchform { 509 margin: 0px 0px 0px 8px !important; 510 } 511 512 .searchform-secondary-menu { 513 padding: 0px !important; 514 } 515 516 #top-search { 517 padding: 2px 5px; 518 } 519 520 .searchform-secondary-menu > button { 521 padding: 0px; 522 } 523 </style> 524 525 <ul class="ul-searchform xs-hidden sm-hidden"> 526 <li class="searchform-secondary-menu"> 527 <form action="/Default.aspx?ID=71" method="get" name="SearchForm1"> 528 <input type="hidden" name="ID" value="71"> 529 <input id="top-search" type="text" name="q" value="" placeholder="Søg"> 530 531 532 <button type="submit" style="border:none; background:transparent;"><i class="fa fa-search"></i></button> 533 534 535 </form> 536 </li> 537 </ul> 538 539 540 <ul role="dropdown" style="margin-top:12px"> 541 542 <!-- **** SEKUNDÆR MENU **** --> 543 544 545 546 547 @if (Pageview.User == null) { 548 <li><a href="#" data-toggle="modal" data-target="#login">Log ind</a></li> 549 <li><a href="/opret-profil">Bliv medlem</a></li> 550 } else { 551 <li> 552 <a href="/Default.aspx?ID=821"> 553 <nobr> 554 <i class="fa fa-user"></i>&nbsp;<strong>@Pageview.User.Name</strong> 555 </nobr> 556 </a> 557 </li> 558 <li> 559 <a href='/Admin/Public/ExtranetLogoff.aspx?ID=@Pageview.ID'>@Translate("Logout", "Log ud")</a> 560 </li> 561 } 562 563 564 565 566 567 <!-- **** SPROGVALG **** --> 568 569 570 571 </ul> 572 573 574 575 </div> 576 </div> 577 </div> 578 579 580 581 582 <div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 583 <div class="modal-dialog modal-sm"> 584 <div class="modal-content"> 585 <div class="modal-header"> 586 <h4 class="modal-title" id="myModalLabel">Log ind</h4> 587 </div> 588 <form role="form" id="loginform" method="post"> 589 <div class="modal-body"> 590 591 <input type="hidden" name="ID" value="1111"> 592 <input type="checkbox" name="DWExtranetUsernameRemember" value="True" hidden=""> 593 <input type="checkbox" name="DWExtranetPasswordRemember" value="True" hidden=""> 594 <div class="form-group"> 595 <label for="username">Brugernavn</label> 596 <input type="text" class="form-control" name="username" id="username" placeholder='Indtast brugernavn' value="" style="width:100%"> 597 </div> 598 <div class="form-group"> 599 600 <label for="password">Kodeord</label> 601 <input type="password" class="form-control" name="password" id="password" placeholder='Indtast kodeord'> 602 <p>&nbsp;</p> 603 <a class="pull-left" href="/login?LoginAction=Recovery">Glemt dit kodeord?</a> 604 &nbsp; 605 </div> 606 </div> 607 <div class="modal-footer"> 608 <div class="row"> 609 <div class="col-md-12"> 610 <div class="checkbox pull-left" style="padding-top:15px;"> 611 <label> 612 <input type="checkbox" name="Autologin" value="False"> Husk mig 613 </label> 614 </div> 615 <button type="submit" class="Button01 pull-right">Log ind</button> 616 </div> 617 </div> 618 </div> 619 620 621 622 </form> 623 </div> 624 </div> 625 </div> 626 <script type="text/javascript"> 627 $(document).ready(function () { 628 var ruser = $("#login.modal input[name='DWExtranetUsernameRemember']"); 629 var rpass = $("#login.modal input[name='DWExtranetPasswordRemember']"); 630 $("#login.modal input[name='Autologin']").on('change', function () { 631 var boo = ruser.val(); 632 console.log("boo: " + boo); 633 console.log(ruser.length); 634 if (boo == "True") { 635 ruser.val("False").prop("checked", false); rpass.val("False").prop("checked", false); 636 } else { 637 ruser.val("True").prop("checked", true); rpass.val("True").prop("checked", true); 638 } 639 }); 640 }); 641 </script> 642 643 644 645 <div class="logo_menu logo_container"> 646 <div class="topcontainer" style="background-color:#FFFFFF;"> 647 <div class="navbar container" role="navigation" style="margin-bottom:0px;"> 648 <div class="navbar-header"> 649 650 <a class="navbar-brand" href="/forside"> 651 <img src="/Files/Templates/Designs/standard_responsiv/images/mx5_logo.png" class="img-responsive logoiehack" style="z-index:10" alt=""> 652 </a> 653 654 </div> 655 <div class="clearfix"></div> 656 </div> 657 </div> 658 </div> 659 <div id="logo_spacer"></div> 660 661 <!-- SLIDESHOW --> 662 <div id="topslideshow"> 663 @RenderParagraphContent(483) 664 </div> 665 666 <!-- DECIDE ALIGNMENT OF MENU --> 667 <style type="text/css"> 668 #cssmenu { 669 float: center !important; 670 text-align: center; 671 } 672 673 #cssmenu ul li { 674 float: none !important; 675 display: inline-block; 676 } 677 678 .mean-highlight { 679 background-color: #000000; 680 } 681 </style> 682 683 <!-- Navigation includes various menus and skins --> 684 685 <div class="logo_menu menu_container"> 686 <div class="menudiv" style="background-color:#F5F5F5"> 687 <div class="menucontainer container" style="padding:0px 0px;"> 688 <nav id="cssmenu" class="align-center"> 689 <!-- display house on top menu mobile linking to home page --> 690 691 <div class="house-mobile"> 692 <a href="/forside" class=""> 693 <i class="fa fa-home"></i> 694 </a> 695 </div> 696 <div class="globe-mobile"> 697 <ul class="nav nav-tabs" role="dropdown" id="sprogvalg"> 698 <li> 699 <a class="firstitem" href="#"><i class="fa fa-globe"></i></a> 700 <ul class="M3"></ul> 701 </li> 702 </ul> 703 </div> 704 @{ 705 var rootPages = Dynamicweb.Services.Pages.GetRootPagesForArea(Pageview.AreaID).Where(x => x.Active && !x.IsFolder && Dynamicweb.Frontend.LoginHandler.IsCurrentUserAllowed(x)); 706 707 <ul> 708 @foreach (Dynamicweb.Content.Page rootPage in rootPages) { 709 var subPages = Dynamicweb.Services.Pages.GetPagesByParentID(rootPage.ID).Where(x => x.Active && !x.IsFolder && Dynamicweb.Frontend.LoginHandler.IsCurrentUserAllowed(x)); 710 <li> 711 <a href="/Default.aspx?ID=@rootPage.ID">@rootPage.MenuText</a> 712 @if (subPages.Any()) { 713 <ul class="M1 test"> 714 @foreach (var subPage in subPages) { 715 <li> 716 <a href="/Default.aspx?ID=@subPage.ID">@subPage.MenuText</a> 717 </li> 718 } 719 </ul> 720 } 721 </li> 722 } 723 </ul> 724 725 } 726 @*else { 727 <ul> 728 <li> 729 <a href="/forside">Forside</a> 730 </li> 731 <li> 732 <a href="/nyheder">Nyheder</a> 733 </li> 734 <li> 735 <a href="/arrangementer">Arrangementer</a> 736 </li> 737 <li> 738 <a href="/forum">Forum</a> 739 </li> 740 <li> 741 <a href="/klubben">Klubben</a> 742 <ul class="M1"> 743 <li> 744 <a href="/klubben/vedtægter-forretningsorden">Vedtægter & Forretningsorden</a> 745 </li> 746 <li> 747 <a href="/klubben/turreferater">Turreferater</a> 748 </li> 749 <li> 750 <a href="/klubben/mx-5-hvorfor">MX-5 Hvorfor ?</a> 751 </li> 752 <li> 753 <a href="/klubben/kolonnekørsel">Kolonnekørsel</a> 754 </li> 755 <li> 756 <a href="/klubben/referater">Referater</a> 757 </li> 758 <li> 759 <a href="/klubben/betalingsservice">Betalingsservice</a> 760 </li> 761 </ul> 762 </li> 763 <li> 764 <a href="/vejledning-faq">Vejledning/FAQ</a> 765 </li> 766 <li> 767 <a href="/kontakt">Kontakt</a> 768 <ul class="M1"> 769 <li> 770 <a href="/kontakt/cookies-og-persondata-politik">Cookies og persondata politik</a> 771 </li> 772 <li> 773 <a href="/kontakt/links">Links</a> 774 </li> 775 <li> 776 <a href="/kontakt/bestyrelsen">Bestyrelsen</a> 777 </li> 778 </ul> 779 </li> 780 <li> 781 <a href="/læsestof">Læsestof</a> 782 <ul class="M1"> 783 <li> 784 <a href="/læsestof/før-man-køber-mx-5">Før man køber MX-5</a> 785 </li> 786 <li> 787 <a href="/læsestof/klubbladet-roadstar">Klubbladet Roadstar</a> 788 </li> 789 </ul> 790 </li> 791 <li> 792 <a href="/Galleri">Galleri</a> 793 </li> 794 <li> 795 <a href="https://mx5club.dk/forum/g%C3%A6steforum?PID=3886">Gæsteforum</a> 796 </li> 797 </ul> 798 }*@ 799 800 </nav> 801 </div> 802 </div> 803 </div> 804 805 <style type="text/css"> 806 /* Hidden stuff */ 807 #cssmenu .secondary-navigation-hidden, #cssmenu .mean2-header, #cssmenu .menu2-mobil { 808 display: none !important; 809 } 810 /* MENU */ 811 #cssmenu > ul > li > #activeitem, #cssmenu > ul > li > .inpath { 812 color: #000000; 813 } 814 815 #cssmenu > ul > li > a:hover { 816 color: #000000; 817 } 818 </style> 819 820 <script type="text/javascript"> 821 function compressMainMenu(identifier, name) { 822 $(".mean-nav > ul").prepend("<li id='mean_" + name + "'><a>" + name + "</a><ul style='display:none'></ul><a class='mean-expand' id='mean_" + name + "_expand' href='#' style='font-size: 18px'>+</a></li>"); 823 $(identifier).appendTo("#mean_" + name + " > ul"); 824 $('#mean_' + name + '_expand').on("click", function (e) { 825 e.preventDefault(); 826 if ($(this).hasClass("mean-clicked")) { 827 $(this).text("+"); 828 $(this).prev('ul').slideUp(300, function () { }); 829 } else { 830 $(this).text("-"); 831 $(this).prev('ul').slideDown(300, function () { }); 832 } 833 $(this).toggleClass("mean-clicked"); 834 }); 835 } 836 </script> 837 838 839 <!-- DROPDOWN MENU --> 840 <script src="/Files/Templates/Designs/standard_responsiv/includes/nav/meanmenu/doubletaptogo.min.js"></script> 841 <style type="text/css"> 842 #cssmenu .M1 { 843 display: block !important; 844 } 845 846 #cssmenu ul.two-col { 847 -webkit-column-count: 2 !important; 848 -moz-column-count: 2 !important; 849 column-count: 2 !important; 850 columns: 2 !important; 851 } 852 853 #cssmenu ul.three-col { 854 -webkit-column-count: 3 !important; 855 -moz-column-count: 3 !important; 856 column-count: 3 !important; 857 columns: 3 !important; 858 } 859 860 #cssmenu ul.four-col { 861 -webkit-column-count: 4 !important; 862 -moz-column-count: 4 !important; 863 column-count: 4 !important; 864 columns: 4 !important; 865 } 866 /* 867 #cssmenu ul.two-col > li, #cssmenu ul.three-col > li, #cssmenu ul.four-col > li { display: table; } 868 */ 869 /* .mean-nav ul { background-color: #004051 !important; }*/ 870 871 872 #cssmenu ul ul ul { 873 display: none !important; 874 } 875 </style> 876 <script type="text/javascript"> 877 $(document).ready(function () { 878 879 $("#cssmenu ul ul ul").addClass("noshow"); 880 881 882 //Multiple columns on account of the number of items 883 $('#cssmenu > ul > li:has(ul):not(".mean2-header")').each(function () { 884 var elems = $(this).find(".M1").children().length; 885 var subelems = $(this).find(".M2:not(.noshow)").length; 886 //Don't do columns if there are 3rd level elements. No good way to deploy last level in columns. 887 if (subelems < 1) { 888 if (elems > 5) { $(this).find(".M1").addClass("two-col"); } 889 if (elems > 8) { $(this).find(".M1").addClass("three-col"); } 890 if (elems > 11) { $(this).find(".M1").addClass("four-col"); } 891 } 892 893 }) 894 895 //Double tap to go on mobile and tablets 896 897 898 //positioning 899 $('#cssmenu li:has(ul):not(".mean2-header")').hover( 900 function () { 901 checkPos($(this)); 902 }, function () { 903 $(this).find("ul").css({ left: "" }); 904 } 905 ); 906 907 908 }); 909 910 function checkPos(parent) { 911 var ul = parent.find("ul"); 912 913 ul.removeClass("goleft"); 914 ul.removeClass("container"); 915 916 var left = parent.offset().left; 917 var ulwidth = ul.outerWidth(); 918 var totalwidth = parseInt(left) + parseInt(ulwidth) + 15; 919 var goleft_width = parseInt(left) - parseInt(ulwidth) + 15; 920 if (ul.hasClass("M2")) { totalwidth += 180; } 921 var windowwidth = parseInt($(window).width()); 922 923 var goleft = false; 924 var dontgoleft = false; 925 926 if (totalwidth > windowwidth) { goleft = true; } 927 if (goleft_width < 0) { dontgoleft = true; } 928 929 if (goleft && !dontgoleft) { ul.addClass("goleft"); } 930 931 if (goleft && dontgoleft) { 932 ul.addClass("container"); 933 //var left = $("#cssmenu").offset().left; 934 var lpos = Math.floor(parent.position().left) * -1; 935 ul.css({ left: lpos }); 936 } 937 // console.log(parent.find("a:first-of-type").text()); 938 // console.log("left: "+left); 939 // console.log("ul width: "+ulwidth); 940 // console.log("total width: "+totalwidth); 941 // console.log("window: "+windowwidth); 942 } 943 </script> 944 945 946 947 948 949 950 951 952 953 </div> 954 <div class="row" id="maincontent" style="margin:0px"> 955 <!-- CONTENT --> 956 <!--<link rel="stylesheet" href="stylesheets/VenstreMenu2-5.css"/> --> 957 958 <div class='content-extra-padding min-height-page container'> 959 <div class="row"> 960 @using Dynamicweb.Rendering 961 @using Dynamicweb.Frontend 962 @using System.IO 963 @inherits ViewModelTemplate<PageViewModel> 964 965 @functions{ 966 967 public class YearFolder { 968 969 public string Name { get; set; } 970 public string Path { get; set; } 971 public List<MonthFolder> MonthFolders { get; set; } 972 973 public YearFolder(string Name, string Path) { 974 this.Name = Name; 975 this.Path = Path; 976 this.MonthFolders = new List<MonthFolder>(); 977 } 978 } 979 980 public class MonthFolder { 981 982 public string Name { get; set; } 983 public string Path { get; set; } 984 public int MonthNumber { get; set; } 985 public List<string> EventFolders { get; set; } 986 987 public MonthFolder(string Name, string Path, int MonthNumber = 0) { 988 this.Name = Name; 989 this.Path = Path; 990 this.MonthNumber = MonthNumber; 991 this.EventFolders = new List<string>(); 992 } 993 } 994 995 } 996 997 998 @Title("Underside skabelon") 999 @Description("Layout til undersiderne") 1000 @{ 1001 string contentwrapperClass = "content-extra-padding min-height-page"; 1002 if (Pageview.Area.Item != null && (string)Pageview.Area.Item["Fuld_Bredde"] == "full") { 1003 contentwrapperClass += "container"; 1004 } 1005 1006 string folder = "/Files/Billeder/Galleri/"; 1007 string filesPath = System.Web.HttpContext.Current.Server.MapPath("" + folder.Replace("/", "\\")); 1008 var yearFolders = Directory.EnumerateDirectories("" + filesPath, "2???", SearchOption.TopDirectoryOnly).OrderByDescending(x => x); 1009 1010 bool isTest = System.Web.HttpContext.Current.Request.QueryString.Get("test") == "test"; 1011 1012 1013 Dictionary<string, IOrderedEnumerable<string>> newFolders = new Dictionary<string, IOrderedEnumerable<string>>(); 1014 1015 List<YearFolder> newYearFolders = new List<YearFolder>(); 1016 1017 bool loggedInUser = Pageview.User != null; 1018 if (isTest) { 1019 loggedInUser = true; 1020 } 1021 1022 if (loggedInUser) { 1023 foreach (string s in yearFolders) { 1024 newFolders.Add(s, Directory.EnumerateDirectories("" + s, "*", SearchOption.TopDirectoryOnly).OrderBy(x => x)); 1025 1026 var newYearFolder = new YearFolder(s.Substring(s.LastIndexOf("\\") + 1), s); 1027 1028 foreach (var i in Directory.EnumerateDirectories("" + newYearFolder.Path, "*", SearchOption.TopDirectoryOnly).OrderBy(x => x)) { 1029 int monthNumber = 0; 1030 string thisFolderName = i.LastIndexOf("\\") > 1 ? i.Substring(i.LastIndexOf("\\") + 1) : ""; 1031 1032 if (!string.IsNullOrEmpty(thisFolderName) && int.TryParse(thisFolderName, out monthNumber) && monthNumber != 0) { 1033 DateTime monthDate = new DateTime(DateTime.Now.Year, monthNumber, 1); 1034 1035 1036 MonthFolder newMonthFolder = new MonthFolder(monthDate.ToString("MMMM"), i, monthNumber); 1037 foreach (var eventDic in Directory.EnumerateDirectories("" + newMonthFolder.Path, "*", SearchOption.TopDirectoryOnly).OrderBy(x => x)) { 1038 newMonthFolder.EventFolders.Add(eventDic); 1039 } 1040 if (newMonthFolder.EventFolders.Any()) { 1041 newYearFolder.MonthFolders.Add(newMonthFolder); 1042 } 1043 1044 } else { 1045 MonthFolder newMonthFolder = new MonthFolder(i.Substring(i.LastIndexOf("\\") + 1), i); 1046 newYearFolder.MonthFolders.Add(newMonthFolder); 1047 } 1048 1049 1050 } 1051 //newYearFolder.MonthFolders.Add() 1052 1053 newYearFolders.Add(newYearFolder); 1054 } 1055 } else { 1056 1057 foreach (string s in yearFolders) { 1058 1059 if(!Directory.EnumerateFiles(s, "*.jp*", SearchOption.AllDirectories).Any()) { 1060 continue; 1061 } 1062 1063 newFolders.Add(s, Directory.EnumerateDirectories("" + s, "*", SearchOption.TopDirectoryOnly).OrderBy(x => x)); 1064 1065 var newYearFolder = new YearFolder(s.Substring(s.LastIndexOf("\\") + 1), s); 1066 1067 foreach (var i in Directory.EnumerateDirectories("" + newYearFolder.Path, "*", SearchOption.TopDirectoryOnly).OrderBy(x => x)) { 1068 if (!Directory.EnumerateFiles(i, "*.jp*", SearchOption.AllDirectories).Any()) { 1069 continue; 1070 } 1071 int monthNumber = 0; 1072 string thisFolderName = i.LastIndexOf("\\") > 1 ? i.Substring(i.LastIndexOf("\\") + 1) : ""; 1073 1074 if (!string.IsNullOrEmpty(thisFolderName) && int.TryParse(thisFolderName, out monthNumber) && monthNumber != 0) { 1075 1076 DateTime monthDate = new DateTime(DateTime.Now.Year, monthNumber, 1); 1077 1078 1079 MonthFolder newMonthFolder = new MonthFolder(monthDate.ToString("MMMM"), i, monthNumber); 1080 foreach (var eventDic in Directory.EnumerateDirectories("" + newMonthFolder.Path, "*", SearchOption.TopDirectoryOnly).OrderBy(x => x)) { 1081 newMonthFolder.EventFolders.Add(eventDic); 1082 } 1083 if (newMonthFolder.EventFolders.Any()) { 1084 newYearFolder.MonthFolders.Add(newMonthFolder); 1085 } 1086 1087 1088 } else { 1089 MonthFolder newMonthFolder = new MonthFolder(i.Substring(i.LastIndexOf("\\") + 1), i); 1090 newYearFolder.MonthFolders.Add(newMonthFolder); 1091 } 1092 1093 1094 } 1095 //newYearFolder.MonthFolders.Add() 1096 1097 newYearFolders.Add(newYearFolder); 1098 } 1099 1100 1101 1102 1103 1104 1105 1106 //foreach (string s in yearFolders) { 1107 // if (Directory.EnumerateFiles("" + s, "*.jp*", SearchOption.AllDirectories).Any()) { 1108 // newFolders.Add(s, Directory 1109 // .EnumerateDirectories("" + s, "*", SearchOption.TopDirectoryOnly) 1110 // .Where(x => Directory.EnumerateFiles("" + x, "*.jp*", SearchOption.AllDirectories).Any()).OrderBy(x => x)); 1111 1112 // if (Directory.EnumerateFiles(s, "*.jp*", SearchOption.AllDirectories).Any()) { 1113 // newYearFolders.Add(new YearFolder(s.Substring(s.LastIndexOf("\\") + 1), s)); 1114 // } 1115 1116 // } 1117 1118 //} 1119 } 1120 1121 1122 //var folders = Directory.EnumerateDirectories("" + filesPath, "*.*", SearchOption.TopDirectoryOnly).OrderByDescending(x => x); 1123 1124 string currentFolder = "" + System.Web.HttpContext.Current.Request.QueryString.Get("galleryfolder"); 1125 string currentYear = "" + System.Web.HttpContext.Current.Request.QueryString.Get("year"); 1126 string currentMonth = "" + System.Web.HttpContext.Current.Request.QueryString.Get("month"); 1127 int currentIntMonth = 0; 1128 1129 1130 //if (string.IsNullOrWhiteSpace(currentYear)) { 1131 // currentYear = yearFolders.First().Substring(yearFolders.First().LastIndexOf("\\") + 1); 1132 //} 1133 1134 if (!string.IsNullOrWhiteSpace(currentFolder)) { 1135 1136 if (!string.IsNullOrWhiteSpace(currentMonth)) { 1137 1138 if (int.TryParse(currentMonth, out currentIntMonth) && currentIntMonth != 0 && currentIntMonth < 13) { 1139 currentFolder = filesPath + currentYear + "\\" + currentIntMonth.ToString("00") + "\\" + System.Web.HttpUtility.UrlDecode(currentFolder); 1140 } else { 1141 currentFolder = filesPath + currentYear + "\\" + System.Web.HttpUtility.UrlDecode(currentFolder); 1142 } 1143 1144 } else { 1145 currentFolder = filesPath + currentYear + "\\" + System.Web.HttpUtility.UrlDecode(currentFolder); 1146 } 1147 1148 } 1149 1150 string currentYearName = currentYear.Substring(currentYear.LastIndexOf("\\") + 1); 1151 string currentFolderName = currentFolder.Substring(currentFolder.LastIndexOf("\\") + 1); 1152 string currentFolderWebPath = folder + currentYearName + "/" + currentFolderName + "/"; 1153 if (currentIntMonth != 0) { 1154 currentFolderWebPath = folder + currentYearName + "/" + currentIntMonth.ToString("00") + "/" + currentFolderName + "/"; 1155 } 1156 1157 1158 1159 } 1160 <div class="@contentwrapperClass"> 1161 <div class="row"> 1162 <div class="col-sm-3 col-md-3 col-lg-3 col-xs-12"> 1163 <div class="sidemenu row" id="LeftNav"> 1164 <div class="col-lg-12 col-xs-12" id="LeftNavContainer"> 1165 <ul> 1166 <li><a href="/Default.aspx?ID=@Model.ID">Galleri forside</a></li> 1167 @foreach (var year in newYearFolders) { 1168 string yearClass = "menu-opener"; 1169 string yearText = year.Name; 1170 if (yearText == currentYear) { 1171 yearClass += " active"; 1172 } 1173 <li class="@yearClass"> 1174 <a title="fold ud">@yearText</a> 1175 <ul class="menu-wrapper M0"> 1176 @foreach (var monthFolder in year.MonthFolders) { 1177 string folderName = monthFolder.Name; 1178 1179 if (monthFolder.MonthNumber != 0) { 1180 string monthClass = "menu-opener month"; 1181 if (monthFolder.MonthNumber == currentIntMonth) { 1182 monthClass += " active"; 1183 } 1184 <li class="@monthClass"> 1185 <a title="fold ud">@monthFolder.Name</a> 1186 <ul class="menu-wrapper M0"> 1187 @foreach (var i in monthFolder.EventFolders) { 1188 string eventFolderName = i.Substring(i.LastIndexOf("\\") + 1); 1189 string folderUrl = "/Default.aspx?ID=" + Pageview.ID + "&amp;galleryfolder=" + System.Web.HttpUtility.UrlEncode(eventFolderName) + "&amp;year=" + yearText + "&amp;month=" + monthFolder.MonthNumber; 1190 string liClass = "L2"; 1191 if (eventFolderName == currentFolderName) { 1192 liClass += "_Active"; 1193 } 1194 <li class="@liClass"> 1195 <a class="@liClass" title="@eventFolderName" href="@folderUrl">@eventFolderName</a> 1196 </li> 1197 } 1198 </ul> 1199 </li> 1200 1201 1202 } else { 1203 string folderUrl = "/Default.aspx?ID=" + Pageview.ID + "&amp;galleryfolder=" + System.Web.HttpUtility.UrlEncode(folderName) + "&amp;year=" + yearText + "&amp;month=" + monthFolder.MonthNumber; 1204 string liClass = "L2"; 1205 if (folderName == currentFolderName) { 1206 liClass += "_Active"; 1207 } 1208 <li class="@liClass"> 1209 <a class="@liClass" title="@folderName" href="@folderUrl">@folderName</a> 1210 </li> 1211 } 1212 1213 1214 } 1215 </ul> 1216 </li> 1217 } 1218 </ul> 1219 </div> 1220 </div> 1221 </div> 1222 <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 displayprint"> 1223 @if (!string.IsNullOrWhiteSpace(currentFolderName)) { 1224 <h1>@currentFolderName</h1> 1225 <div class="row"> 1226 <div class="col-md-12 col-lg-12 col-sm-12 col-xs-12"> 1227 @foreach (var i in Model.Item.GetItems("Texts")) { 1228 if (i.GetInt32("Year").ToString().ToLower() == currentYear.ToLower() && i.GetString("FolderName").ToLower() == currentFolderName.ToLower()) { 1229 if (!string.IsNullOrWhiteSpace(i.GetString("Text"))) { 1230 <div>@i.GetString("Text")</div> 1231 } 1232 break; 1233 } 1234 } 1235 <div class="row"> 1236 <div class="col-md-12 col-lg-12 col-sm-12 col-xs-12"> 1237 @foreach (string s in Directory.EnumerateFiles("" + currentFolder, "*.jp*", SearchOption.TopDirectoryOnly)) { 1238 string fileName = s.Substring(s.LastIndexOf("\\") + 1); 1239 string fileUrl = currentFolderWebPath + fileName; 1240 string fileCroppedUrl = "/admin/public/getimage.ashx?Image=" + fileUrl + "&amp;width=384&amp;height=256&amp;crop=0"; 1241 <div class="GalleryImg col-lg-3 col-md-4 col-sm-4 col-xs-12"> 1242 <a href="@fileUrl" class="swipebox"> 1243 <img class="img-responsive" title="@fileName" alt="@fileName" src="@fileCroppedUrl"> 1244 </a> 1245 </div> 1246 } 1247 </div> 1248 </div> 1249 1250 </div> 1251 </div> 1252 } else { 1253 <div class="row"> 1254 <div class="col-xs-12"> 1255 @Model.Item.GetString("WelcomeContent") 1256 </div> 1257 </div> 1258 } 1259 1260 <div class="row"> 1261 @if (loggedInUser && !string.IsNullOrWhiteSpace(currentFolderName)) { 1262 <div class="col-xs-12"> 1263 @Model.Placeholder("ContentFull", "Fuld bredde") 1264 </div> 1265 } 1266 </div> 1267 </div> 1268 </div> 1269 </div> 1270 @if (false) { 1271 <div class="@contentwrapperClass"> 1272 <div class="row"> 1273 <div class="col-sm-3 col-md-3 col-lg-3 col-xs-12"> 1274 <div class="sidemenu row" id="LeftNav"> 1275 <div class="col-lg-12 col-xs-12" id="LeftNavContainer"> 1276 <ul> 1277 <li><a href="/Default.aspx?ID=@Model.ID">Galleri forside</a></li> 1278 @foreach (var year in newFolders) { 1279 string yearClass = "menu-opener"; 1280 string yearText = year.Key.Substring(year.Key.LastIndexOf("\\") + 1); 1281 if (yearText == currentYear) { 1282 yearClass += " active"; 1283 } 1284 <li class="@yearClass"> 1285 <a title="fold ud">@yearText</a> 1286 <ul class="menu-wrapper M0"> 1287 @foreach (string s in year.Value) { 1288 string folderName = s.Substring(s.LastIndexOf("\\") + 1); 1289 string folderUrl = "/Default.aspx?ID=" + Pageview.ID + "&amp;galleryfolder=" + System.Web.HttpUtility.UrlEncode(folderName) + "&amp;year=" + yearText; 1290 string liClass = "L2"; 1291 if (folderName == currentFolderName) { 1292 liClass += "_Active"; 1293 } 1294 <li class="@liClass"> 1295 <a class="@liClass" title="@folderName" href="@folderUrl">@folderName</a> 1296 </li> 1297 } 1298 </ul> 1299 </li> 1300 } 1301 </ul> 1302 </div> 1303 </div> 1304 </div> 1305 <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 displayprint"> 1306 @if (!string.IsNullOrWhiteSpace(currentFolderName)) { 1307 <h1>@currentFolderName</h1> 1308 <div class="row"> 1309 <div class="col-md-12 col-lg-12 col-sm-12 col-xs-12"> 1310 @foreach (var i in Model.Item.GetItems("Texts")) { 1311 if (i.GetInt32("Year").ToString().ToLower() == currentYear.ToLower() && i.GetString("FolderName").ToLower() == currentFolderName.ToLower()) { 1312 if (!string.IsNullOrWhiteSpace(i.GetString("Text"))) { 1313 <div>@i.GetString("Text")</div> 1314 } 1315 break; 1316 } 1317 } 1318 <div class="row"> 1319 <div class="col-md-12 col-lg-12 col-sm-12 col-xs-12"> 1320 <pre>@currentFolder</pre> 1321 @foreach (string s in Directory.EnumerateFiles("" + currentFolder, "*.jp*", SearchOption.TopDirectoryOnly)) { 1322 string fileName = s.Substring(s.LastIndexOf("\\") + 1); 1323 string fileUrl = currentFolderWebPath + fileName; 1324 string fileCroppedUrl = "/admin/public/getimage.ashx?Image=" + fileUrl + "&amp;width=384&amp;height=256&amp;crop=0"; 1325 PushPromise(fileCroppedUrl); 1326 <div class="GalleryImg col-lg-3 col-md-4 col-sm-4 col-xs-12"> 1327 <a href="@fileUrl" class="swipebox"> 1328 <img class="img-responsive" title="@fileName" alt="@fileName" src="@fileCroppedUrl"> 1329 </a> 1330 </div> 1331 } 1332 </div> 1333 </div> 1334 1335 </div> 1336 </div> 1337 } else { 1338 <div class="row"> 1339 <div class="col-xs-12"> 1340 @Model.Item.GetString("WelcomeContent") 1341 </div> 1342 </div> 1343 } 1344 1345 <div class="row"> 1346 @*@if (loggedInUser && !string.IsNullOrWhiteSpace(currentFolderName)) { 1347 <div class="col-xs-12"> 1348 Model.Placeholder("ContentFull", "Fuld bredde") 1349 </div> 1350 }*@ 1351 </div> 1352 </div> 1353 </div> 1354 </div> 1355 } 1356 1357 1358 @SnippetStart("ParagraphScript") 1359 <style> 1360 .GalleryImg { 1361 padding: 5px; 1362 text-align: center; 1363 vertical-align: middle; 1364 } 1365 1366 .menu-wrapper { 1367 display: none; 1368 padding-left: 0; 1369 list-style: none; 1370 } 1371 1372 .menu-opener > a { 1373 cursor: pointer; 1374 user-select: none; /* supported by Chrome and Opera */ 1375 -webkit-user-select: none; /* Safari */ 1376 -khtml-user-select: none; /* Konqueror HTML */ 1377 -moz-user-select: none; /* Firefox */ 1378 -ms-user-select: none; /* Internet Explorer/Edge */ 1379 } 1380 1381 #LeftNavContainer .menu-opener > a { 1382 display: block; 1383 } 1384 1385 #LeftNavContainer .menu-opener > a:hover { 1386 background-color: #f7f7f7 !important; 1387 color: #000 !important; 1388 } 1389 1390 #LeftNavContainer .menu-opener > a:after { 1391 display: inline-block; 1392 font: normal normal normal 14px/1 FontAwesome; 1393 font-size: inherit; 1394 text-rendering: auto; 1395 -webkit-font-smoothing: antialiased; 1396 -moz-osx-font-smoothing: grayscale; 1397 margin-left: 5px; 1398 content: "\f107"; 1399 } 1400 1401 #LeftNavContainer .menu-opener.active > a { 1402 background-color: #f0f0f0 !important; 1403 color: #333 !important; 1404 font-weight: bold !important; 1405 } 1406 1407 #LeftNavContainer .menu-opener.active > a:after { 1408 content: "\f106"; 1409 } 1410 1411 #LeftNavContainer .menu-opener > a { 1412 display: block; 1413 } 1414 1415 #LeftNavContainer .menu-opener > ul > li > a { 1416 padding: 5px 10px 5px 30px !important; 1417 } 1418 1419 .menu-opener.active > .menu-wrapper { 1420 display: inherit; 1421 } 1422 1423 #LeftNavContainer .month > a{ 1424 font-weight:bold !important; 1425 text-transform:capitalize; 1426 } 1427 </style> 1428 <script defer> 1429 $("form#dw-form-13").prepend("<input type=\"hidden\" name=\"FormUploadPath\" value=\"@currentFolderWebPath.Substring(6)\">") 1430 $("form#dw-form-13").prepend("<input type=\"hidden\" name=\"formSubmitPageAfterSave\" value=\"" + document.location + "\">") 1431 $(".menu-opener > a").click(function (e) { 1432 e.preventDefault(); 1433 console.log($(".menu-wrapper", $(this).parent())); 1434 $(this).parent().toggleClass("active"); 1435 return false; 1436 }); 1437 window.addEventListener("DOMContentLoaded", function() { 1438 var form = document.getElementById("dw-form-13"); 1439 var submitButton = document.getElementById("Send"); 1440 1441 form.addEventListener("submit", function() { 1442 submitButton.disabled = true; 1443 submitButton.value = "Vent venligst..."; 1444 1445 setTimeout(function() { 1446 submitButton.disabled = false; 1447 submitButton.value = "Send"; 1448 }, 5000); 1449 }); 1450 }); 1451 </script> 1452 @if (loggedInUser) { 1453 <script> 1454 $("#Upload").attr("accept", ".jpg,jpeg") 1455 </script> 1456 } 1457 @SnippetEnd("ParagraphScript") 1458 1459 </div><!-- /row --> 1460 1461 </div><!-- /container --> 1462 <!--SCRIPT TIL AT SKJULE VENSTRE MENU, HVIS DEN ER HELT TOM --> 1463 <!-- KAMPAGNE --> 1464 <!-- Sekundær footer --> 1465 1466 1467 1468 <div id="footer" style="background-color:#EEEEEE;" class="print"> 1469 <div class="col-lg-12" style="float: none;"> 1470 <div class="container"> 1471 <div class="multi_3833 col-lg-3 col-md-3 col-sm-3 col-xs-12 paragraphcontainer multisection bgimage_texttop multibg multi_top flex y_normal multi_standard_padding noborder " id="3833"> 1472 <style type="text/css"> 1473 .multi_3833 p, .multi_3833 h1, .multi_3833 h2, .multi_3833 h3, .multi_3833 h4, .multi_3833 ul { 1474 color: !important; 1475 } 1476 1477 .multi_3833 .module .flexcol, .multi_3833 .module .dynamic-container .item { 1478 clear: none; 1479 } 1480 </style> 1481 1482 <div class='multispacer' style='width:100%; display:block;background: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0)),url("");color: !important;;'> 1483 1484 1485 1486 1487 <div class="multitop"> 1488 1489 1490 <div class="figure"> 1491 <h4 class="h4"><span class="ImageText">Links</span></h4> 1492 1493 <div class="Citat"><span class="ImageText"><a href="/forum">⇒ Forum</a></span></div> 1494 1495 <div class="Citat"><span class="ImageText"><a href="https://mx5club.dk/kontakt/bestyrelsen">⇒ Kontakt</a></span></div> 1496 1497 <div class="Citat"><span class="ImageText"><a href="/værksted">⇒ Værksted</a></span></div> 1498 1499 <div class="Citat"><a href="https://mx5club.dk/tur-foto-og-referater"><span class="ImageText"></span></a><a href="/tur-foto-og-referater">⇒ </a><a href="https://mx5club.dk/tur-foto-og-referater">Tur foto og -referater</a></div> 1500 1501 <div class="Citat"><a href="/vejledninger">⇒&nbsp;</a><a href="/læsestof/før-man-køber-mx-5">Før man køber MX-5</a></div> 1502 1503 <div class="Citat"><a href="https://mx5club.dk/vejledninger">⇒ Vejledninger</a></div> 1504 1505 <div class="Citat">&nbsp;</div> 1506 1507 <div class="Citat">&nbsp;</div> 1508 1509 <div class="Citat">&nbsp;</div> 1510 1511 <div class="Citat">&nbsp;</div> 1512 1513 <h4 class="h4">&nbsp;</h4> 1514 1515 <p>&nbsp;</p> 1516 1517 <p>&nbsp;</p> 1518 1519 </div> 1520 1521 <div class="module"> 1522 1523 </div> 1524 1525 1526 </div> 1527 1528 1529 1530 </div> 1531 </div> 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 <div class="multi_3882 col-lg-3 col-md-3 col-sm-3 col-xs-12 paragraphcontainer multisection bgimage_texttop multibg multibg multi_top flex y_normal multi_standard_padding noborder " id="3882"> 1549 <style type="text/css"> 1550 .multi_3882 p, .multi_3882 h1, .multi_3882 h2, .multi_3882 h3, .multi_3882 h4, .multi_3882 ul { 1551 color: !important; 1552 } 1553 1554 .multi_3882 .module .flexcol, .multi_3882 .module .dynamic-container .item { 1555 clear: none; 1556 } 1557 </style> 1558 1559 <div class='multispacer' style='width:100%; display:block;background-color: #8F8F8F;color: ;background: linear-gradient(rgba(143,143,143,0),rgba(143,143,143,0)),url("");color: !important;;'> 1560 1561 1562 1563 1564 <div class="multitop"> 1565 1566 1567 <div class="figure"> 1568 <h4 class="h4">MX-5 Club Denmark</h4> 1569 1570 <div class="Citat"><span class="ImageText"><a href="/klubben">⇒ Klubben</a></span></div> 1571 1572 <div class="Citat"><a href="/klubben/vedtægter-forretningsorden">⇒ Vedtægter &amp; Forretningsorden</a></div> 1573 1574 <div class="Citat"><a href="/klubben/kolonnekørsel">⇒ Kolonnekørsel</a></div> 1575 1576 <div class="Citat"><a href="/klubben/mx-5-hvorfor">⇒ MX-5 Hvorfor ?</a></div> 1577 1578 <div class="Citat"><a href="/klubben/betalingsservice">⇒ Betalingsservice</a></div> 1579 1580 <div class="Citat"><a href="/klubben/betalingsservice">⇒&nbsp;</a><a href="/kontakt/cookies-og-persondata-politik">Cookies og persondata politik</a></div> 1581 1582 <div class="Citat">&nbsp;</div> 1583 1584 </div> 1585 1586 <div class="module"> 1587 1588 </div> 1589 1590 1591 </div> 1592 1593 1594 1595 </div> 1596 </div> 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 <div class="multi_3883 col-lg-3 col-md-3 col-sm-3 col-xs-12 paragraphcontainer multisection bgimage_texttop multibg multibg multi_top flex y_normal multi_standard_padding noborder " id="3883"> 1614 <style type="text/css"> 1615 .multi_3883 p, .multi_3883 h1, .multi_3883 h2, .multi_3883 h3, .multi_3883 h4, .multi_3883 ul { 1616 color: !important; 1617 } 1618 1619 .multi_3883 .module .flexcol, .multi_3883 .module .dynamic-container .item { 1620 clear: none; 1621 } 1622 </style> 1623 1624 <div class='multispacer' style='width:100%; display:block;background-color: #8F8F8F;color: ;background: linear-gradient(rgba(143,143,143,0),rgba(143,143,143,0)),url("");color: !important;;'> 1625 1626 1627 1628 1629 <div class="multitop"> 1630 1631 1632 <div class="figure"> 1633 <h4 class="h4"><strong>Åben sportsvogn</strong><span class="ImageText"></span></h4> 1634 1635 <div class="Citat"><span class="ImageText">Har du allerede en Mazda MX-5, eller påtænker du at investere i en - MX-5&nbsp;Club Denmark er samlingsstedet for ligesindede individualister med </span><span class="ImageText">hang til MX-5 sportsvogne. Du er meget velkommen til at kontakte os </span><span class="ImageText">for at høre mere om klubbens aktiviteter.&nbsp;</span>Du kan også skrive til vores gæste forum.</div> 1636 1637 <p><span class="ImageText"></span></p> 1638 1639 </div> 1640 1641 <div class="module"> 1642 1643 </div> 1644 1645 1646 </div> 1647 1648 1649 1650 </div> 1651 </div> 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 <div class="multi_3884 col-lg-3 col-md-3 col-sm-3 col-xs-12 paragraphcontainer multisection title-sub-first multi_top flex y_normal multi_standard_padding noborder " id="3884"> 1669 <style type="text/css"> 1670 .multi_3884 p, .multi_3884 h1, .multi_3884 h2, .multi_3884 h3, .multi_3884 h4, .multi_3884 ul { 1671 color: !important; 1672 } 1673 1674 .multi_3884 .module .flexcol, .multi_3884 .module .dynamic-container .item { 1675 clear: none; 1676 } 1677 </style> 1678 1679 1680 1681 1682 <div class="multitop"> 1683 1684 1685 </div> 1686 <div class="multibottom"> 1687 <div class="figure"> 1688 <p style="text-align: center;"><img alt="logo" src="/Admin/Public/GetImage.ashx?width=736&height=385&crop=7&DoNotUpscale=false&Compression=75&image=%2fFiles%2fFiler%2fKlub+logo%2fStor+MX5+logo.jpg" style="width: 250px; height: 132px;" /></p> 1689 1690 <p style="text-align: center;"> 1691 <strong> 1692 <span style="font-size:12.0pt;font-family:">Bank: Danske Bank 9570 12795289 </span><span style="font-size:12.0pt;font-family:"> 1693 Mobilepay: 13894<br /> 1694 CVR: 1695 </span> 1696 </strong><span style="font-size:12.0pt;font-family:"> </span><strong>32990908<span style="font-size:12.0pt;font-family:"></span></strong> 1697 </p> 1698 1699 <p style="text-align: center;"><a href="https://www.facebook.com/groups/mx5club.dk/" target="_blank"><img alt="" src="/Files/Billeder/fb-logo.jpg" style="width: 62px; height: 62px;"></a></p> 1700 1701 <p>&nbsp;</p> 1702 1703 </div> 1704 1705 <div class="module"> 1706 1707 </div> 1708 1709 1710 </div> 1711 1712 1713 1714 1715 1716 1717 </div> 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 <div id="poweredby"> 1728 <a href="http://www.soegaard-co.dk" target="_blank" style="color:#ababab; font-size:11px;" class="powered-by">Powered by Søgaard & Co.</a> 1729 </div> 1730 </div> 1731 </div> 1732 </div> 1733 </div> <!-- container end --> 1734 <!-- search - which are being added to the top menu on mobile/ipad otherwise it's hidden --> 1735 1736 <div id="SearchBar" class="only-show-mobile print"> 1737 <form action="Default.aspx" method="get" name="SearchForm1"> 1738 <input type="hidden" name="ID" value="71"> 1739 <input id="SearchField" type="text" name="q" value=""> 1740 <button id="searchimages" type="submit" value="Søg"><i class="fa fa-search"></i></button> 1741 </form> 1742 </div> 1743 </div> 1744 1745 1746 1747 <a id="tothetop"> 1748 <i class="fa fa-angle-up"></i> 1749 </a> 1750 1751 <style type="text/css"> 1752 #tothetop { 1753 width: 40px; 1754 height: 40px; 1755 position: fixed; 1756 bottom: 50px; 1757 right: 30px; 1758 cursor: pointer; 1759 display: none; 1760 z-index: 999; 1761 } 1762 1763 #tothetop:before { 1764 content: ''; 1765 width: 100%; 1766 height: 100%; 1767 position: absolute; 1768 background-color: #000; 1769 opacity: 0.25; 1770 z-index: 998; 1771 } 1772 1773 #tothetop .fa { 1774 color: #fff; 1775 z-index: 999; 1776 font-size: 40px; 1777 line-height: 37px; 1778 width: 100; 1779 z-index: 999; 1780 position: relative; 1781 margin-left: 6px; 1782 } 1783 </style> 1784 1785 <script type="text/javascript"> 1786 var isVisible = false; 1787 $(window).scroll(function () { 1788 var shouldBeVisible = $(window).scrollTop() > 600; 1789 if (shouldBeVisible && !isVisible) { 1790 isVisible = true; 1791 $('#tothetop').fadeIn(200); 1792 } else if (isVisible && !shouldBeVisible) { 1793 isVisible = false; 1794 $('#tothetop').fadeOut(200); 1795 } 1796 }); 1797 $(document).ready(function () { 1798 $('#tothetop').click(function () { 1799 $('body,html').animate({ 1800 scrollTop: 0 1801 }, 400); 1802 return false; 1803 }); 1804 }); 1805 </script> 1806 1807 1808 1809 1810 1811 1812 <script src="/Files/System/validation.js"></script> 1813 1814 1815 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> 1816 <script src="/Files/Templates/Designs/standard_responsiv/assets/owl-carousel/owl.js"></script> 1817 1818 <script src="//cdnjs.cloudflare.com/ajax/libs/spin.js/2.0.1/spin.min.js"></script> 1819 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> 1820 <script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> 1821 1822 1823 <script src="/Files/Templates/Designs/customjs/bootstrap_test.js"></script> 1824 1825 1826 1827 <link rel="Stylesheet" href="/Files/Templates/Designs/standard_responsiv/assets/swipebox/swipebox.css"> 1828 <script type="text/javascript" src="/Files/Templates/Designs/standard_responsiv/assets/swipebox/jquery.swipebox.min.js"></script> 1829 <script type="text/javascript"> 1830 $(".ecom_mobile").insertBefore($("#navdiv")); 1831 1832 $(function () { 1833 1834 $('.swipebox').swipebox({ 1835 hideBarsDelay: 0, 1836 loopAtEnd: true, 1837 beforeOpen: function () { 1838 $(".at4-share-outer").hide(); 1839 }, 1840 afterClose: function () { 1841 $(".at4-share-outer").show(); 1842 } 1843 }); 1844 1845 $('.swipebox-video').swipebox({ 1846 hideBarsDelay: 0, 1847 loopAtEnd: true, 1848 beforeOpen: function () { 1849 $(".at4-share-outer").hide(); 1850 }, 1851 afterOpen: function () { 1852 $("#swipebox-bottom-bar").hide(); 1853 console.log("hiding bottom bar"); 1854 }, 1855 afterClose: function () { 1856 $(".at4-share-outer").show(); 1857 } 1858 }); 1859 }); 1860 </script> 1861 1862 1863 1864 <script src="/Files/Templates/Designs/standard_responsiv/assets/revolutionslider/js/jquery.themepunch.tools.min.js"></script> 1865 <script src="/Files/Templates/Designs/standard_responsiv/assets/revolutionslider/js/jquery.themepunch.revolution.min.js"></script> 1866 <script> 1867 var SliderHeight_483 = 380; 1868 SliderHeight_483 = 200; 1869 if (SliderHeight_483 == 0) SliderHeight = 380; 1870 1871 1872 //console.log("SliderHeight_483: "+SliderHeight_483); 1873 jQuery(document).ready(function () { 1874 jQuery('.revolu_slider_483 > div > .tp-banner-container > .tp-banner').revolution( 1875 { 1876 delay: 10000, 1877 startheight: SliderHeight_483, 1878 autoHeight: "off", 1879 minHeight: "250", 1880 lazyLoad: "on", 1881 shuffle: "" 1882 }); 1883 1884 $(".revolu_slider_483").fadeTo(500, 1); 1885 $(".revolu_slider_483").removeClass("hctrl_483"); 1886 //.show(200, function(){$("#topslideshow > #slidetop_container").css({"height":"auto"});}); 1887 }); 1888 1889 </script> 1890 1891 1892 <script src="/Files/Templates/Designs/standard_responsiv/includes/nav/meanmenu/jquery.meanmenu.min.js"></script> 1893 <script src="/Files/Templates/Designs/standard_responsiv/includes/nav/meanmenu/script.js"></script> 1894 <script> 1895 $(document).ready(function () { 1896 /* 1897 $($('a[href*="GroupID="]').parent('li').get().reverse()).each(function(){ 1898 var $this = $(this); 1899 $this.insertBefore($this.siblings(':eq(0)')); 1900 }); 1901 /* 1902 add secondary menu to main menu in mobile/tablet view 1903 */ 1904 /* 1905 //add topmenu li elements to meanmenu 1906 var topMenu = $(".secondary-navigation >ul").children().clone().addClass("added-top-menu"); 1907 $("nav > ul").append(topMenu); 1908 */ 1909 //add class to sprogvalg ul so it works as a tab function on mobile as well 1910 1911 1912 $("#sprogvalg > li").addClass("dropdown"); 1913 $("#sprogvalg > li > a").addClass("dropdown-toggle").attr("data-toggle", "dropdown"); 1914 $("#sprogvalg > li > ul").addClass("dropdown-menu").attr("role", "menu"); 1915 1916 1917 //$("sprogvalg .firstitem").html('<i class="fa fa-globe"></i>'); 1918 var languageCount = $("#sprogvalg > li > ul").children().length; 1919 //languageCount = 0; 1920 var sprogvalg = false; 1921 1922 if (languageCount > 0 && sprogvalg) { 1923 $(".house-mobile").hide(); 1924 $("#sprogvalg").show(); 1925 $(".globe-mobile").show(); 1926 } else { 1927 $("#sprogvalg").hide(); 1928 // $(".house-mobile").show(); 1929 } 1930 1931 1932 // .after($("#LeftNavContainer > .M0").clone()); 1933 1934 1935 1936 1937 1938 $("#cssmenu").meanmenu({ meanScreenWidth: "991" }); 1939 1940 1941 1942 $("body").prepend($(".globe-mobile")); 1943 1944 }); 1945 </script> 1946 1947 <!-- ******* JAVASCRIPT ******* --> 1948 1949 <script> 1950 //Add rows around all adjacent multisections 1951 $(document).ready(function () { 1952 var collection = []; 1953 1954 $('.multisection:not(.x1,.x2,.x3,.col-lg-12.col-md-12.col-sm-12.col-xs-12)').each(function () { 1955 var nextBox = $(this).next().hasClass('multisection'); 1956 1957 collection.push($(this)); 1958 1959 if ($(this).next().hasClasses(["x1", "x2", "x3", "x4"])) { 1960 nextBox = false; 1961 } 1962 1963 if (!nextBox) { 1964 var container = $('<div class="row multirow"></div>'); 1965 container.insertBefore(collection[0]); 1966 for (i = 0; i < collection.length; i++) { 1967 collection[i].appendTo(container); 1968 } 1969 collection = []; 1970 } 1971 }) 1972 }); 1973 1974 $.fn.extend({ 1975 hasClasses: function (selectors) { 1976 var self = this; 1977 for (var i in selectors) { 1978 if ($(self).hasClass(selectors[i])) 1979 return true; 1980 } 1981 return false; 1982 } 1983 }); 1984 </script> 1985 @RenderSnippet("ParagraphScript") 1986 </body> 1987 </html>