Error compiling template "Designs/RO/_parsed/InstagramImport.parsed.cshtml"
Line 2799: 'Page' does not contain a definition for 'GetPageById'
Line 2801: 'Page' does not contain a definition for 'GetPagesByParentID'
Line 2832: 'Page' does not contain a definition for 'Save' and no extension method 'Save' accepting a first argument of type 'Page' could be found (are you missing a using directive or an assembly reference?)
Line 3340: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'
Line 3381: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'
Line 3422: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'
Line 3463: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 using System; 13 using System.Collections.Generic; 14 15 #line 699 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 16 using System.Linq; 17 18 #line default 19 #line hidden 20 21 #line 697 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 22 using System.Web; 23 24 #line default 25 #line hidden 26 27 #line 2 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 28 using Dynamicweb.Environment; 29 30 #line default 31 #line hidden 32 33 #line 693 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 34 using Newtonsoft.Json; 35 36 #line default 37 #line hidden 38 39 #line 694 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 40 using Newtonsoft.Json.Linq; 41 42 #line default 43 #line hidden 44 45 #line 695 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 46 using System.Net; 47 48 #line default 49 #line hidden 50 51 #line 696 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 52 using System.IO; 53 54 #line default 55 #line hidden 56 57 #line 698 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 58 using System.Collections; 59 60 #line default 61 #line hidden 62 63 64 public class RazorEngine_9a729b778d554365a2941f2311d7a503 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 65 66 #line hidden 67 68 #line 701 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 69 70 71 public class FeedResolver 72 { 73 public Meta meta { get; set; } 74 public Pagination pagination { get; set; } 75 public List<Data> data { get; set; } 76 } 77 78 public class Data 79 { 80 public Images images { get; set; } 81 public Caption caption { get; set; } 82 public double created_time { get; set; } 83 public string id { get; set; } 84 } 85 86 public class Caption 87 { 88 public string text { get; set; } 89 } 90 91 public class Pagination 92 { 93 public string next_url { get; set; } 94 public string next_max_id { get; set; } 95 } 96 97 // Meta class 98 public class Meta 99 { 100 public string code { get; set; } 101 } 102 103 public class Images 104 { 105 public Image low_resolution { get; set; } 106 public Image thumbnail { get; set; } 107 public Image standard_resolution { get; set; } 108 public Image __original { get; set; } 109 } 110 111 public class Image 112 { 113 public string url { get; set; } 114 public string width { get; set; } 115 public string height { get; set; } 116 } 117 118 public string getListJson(string url) 119 { 120 121 HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); 122 request.Method = "GET"; 123 request.Accept = "application/json"; 124 WebResponse response = request.GetResponse(); 125 Stream stream = response.GetResponseStream(); 126 StreamReader reader = new StreamReader(stream); 127 string content = reader.ReadToEnd(); 128 reader.Close(); 129 response.Close(); 130 131 return content; 132 133 } 134 135 public JToken convertToObject(string jsonString) 136 { 137 JToken token = JObject.Parse(jsonString); 138 return token; 139 } 140 141 public static DateTime UnixTimeStampToDateTime(double unixTimeStamp) 142 { 143 // Unix timestamp is seconds past epoch 144 System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc); 145 dtDateTime = dtDateTime.AddSeconds(unixTimeStamp).ToLocalTime(); 146 return dtDateTime; 147 } 148 149 #line default 150 #line hidden 151 152 153 public RazorEngine_9a729b778d554365a2941f2311d7a503() { 154 } 155 156 public override void Execute() { 157 WriteLiteral("\r\n"); 158 159 160 #line 4 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 161 162 string assetVersion = "?v2.1"; 163 string SearchQuery = HttpContext.Current.Request["Search"]; 164 if (string.IsNullOrEmpty(SearchQuery)) 165 { 166 SearchQuery = ""; 167 } 168 169 string SearchQueryMobile = HttpContext.Current.Request["Search"]; 170 if (string.IsNullOrEmpty(SearchQueryMobile)) 171 { 172 SearchQueryMobile = ""; 173 } 174 175 var GAtracking = GetString("Item.Area.Google_Analytics"); 176 177 var GTM = GetString("Item.Area.GTM"); 178 179 var Smartlook = GetString("Item.Area.Smartlook"); 180 181 var mailchimpID = GetString("Item.Area.MailChimp_ID"); 182 183 var remarketingTag = GetString("Item.Area.Remarketing_Tag"); 184 185 186 187 #line default 188 #line hidden 189 WriteLiteral("\r\n"); 190 191 192 #line 29 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 193 Write(SnippetStart("CurrencySelect")); 194 195 196 #line default 197 #line hidden 198 WriteLiteral("\r\n <select"); 199 200 WriteLiteral(" id=\"SselectCurrencie\""); 201 202 WriteLiteral(" class=\"form-control\""); 203 204 WriteLiteral(" onchange=\"switchCurrencie($(this))\""); 205 206 WriteLiteral(">\r\n"); 207 208 209 #line 31 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 210 211 212 #line default 213 #line hidden 214 215 #line 31 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 216 foreach (var curn in GetLoop("Currencies")) 217 { 218 if (curn.GetBoolean("Currency.IsCurrent")) 219 { 220 221 222 #line default 223 #line hidden 224 WriteLiteral(" <option"); 225 226 WriteAttribute("value", Tuple.Create(" value=\'", 1000), Tuple.Create("\'", 1040) 227 228 #line 35 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 229 , Tuple.Create(Tuple.Create("", 1008), Tuple.Create<System.Object, System.Int32>(curn.GetString("Currency.Code") 230 231 #line default 232 #line hidden 233 , 1008), false) 234 ); 235 236 WriteLiteral(" selected=\"\""); 237 238 WriteLiteral(">"); 239 240 241 #line 35 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 242 Write(curn.GetString("Currency.Name")); 243 244 245 #line default 246 #line hidden 247 WriteLiteral("</option>\r\n"); 248 249 250 #line 36 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 251 } 252 else 253 { 254 255 256 #line default 257 #line hidden 258 WriteLiteral(" <option"); 259 260 WriteAttribute("value", Tuple.Create(" value=\'", 1168), Tuple.Create("\'", 1208) 261 262 #line 39 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 263 , Tuple.Create(Tuple.Create("", 1176), Tuple.Create<System.Object, System.Int32>(curn.GetString("Currency.Code") 264 265 #line default 266 #line hidden 267 , 1176), false) 268 ); 269 270 WriteLiteral(">"); 271 272 273 #line 39 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 274 Write(curn.GetString("Currency.Name")); 275 276 277 #line default 278 #line hidden 279 WriteLiteral("</option>\r\n"); 280 281 282 #line 40 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 283 } 284 } 285 286 287 #line default 288 #line hidden 289 WriteLiteral(" </select>\r\n"); 290 291 292 #line 43 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 293 Write(SnippetEnd("CurrencySelect")); 294 295 296 #line default 297 #line hidden 298 WriteLiteral("\r\n\r\n\r\n<!DOCTYPE html>\r\n\r\n"); 299 300 301 #line 48 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 302 if(GetGlobalValue("Global:Pageview.Url.Raw").Contains("CountryCode") || GetGlobalValue("Global:Pageview.Url.Raw").Contains("CurrencyCode")){ 303 304 305 #line default 306 #line hidden 307 WriteLiteral("<script>\r\n\ttheUrl=\""); 308 309 310 #line 50 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 311 Write(GetGlobalValue("Global:Pageview.Url.Raw")); 312 313 314 #line default 315 #line hidden 316 WriteLiteral("\";\r\n\tif(theUrl.indexOf(\"CurrencyCode\")>=1){theUrl=theUrl.substring(0,theUrl.index" + 317 "Of(\"CurrencyCode\")-1)}\r\n\tif(theUrl.indexOf(\"CountryCode\")>=1){theUrl=theUrl.subs" + 318 "tring(0,theUrl.indexOf(\"CountryCode\")-1)}\r\n\twindow.location.href = theUrl;\r\n</sc" + 319 "ript>\r\n"); 320 321 322 #line 55 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 323 } 324 325 326 #line default 327 #line hidden 328 WriteLiteral("\r\n<html>\r\n<head>\r\n <meta"); 329 330 WriteLiteral(" http-equiv=\"Content-Type\""); 331 332 WriteLiteral(" content=\"text/html; charset=utf-8\""); 333 334 WriteLiteral(">\r\n <meta"); 335 336 WriteLiteral(" name=\"viewport\""); 337 338 WriteLiteral(" content=\"width=device-width, initial-scale=1, maximum-scale=2.5\""); 339 340 WriteLiteral(">\r\n <!-- Meta tag for Bing -->\r\n <meta"); 341 342 WriteLiteral(" name=\"msvalidate.01\""); 343 344 WriteLiteral(" content=\"B8AB0F13F45014296D966BDC9DAD7457\""); 345 346 WriteLiteral("> \r\n \r\n <title>"); 347 348 349 #line 64 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 350 Write(GetValue("Title")); 351 352 353 #line default 354 #line hidden 355 WriteLiteral("</title>\r\n"); 356 357 358 #line 65 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 359 Write(GetValue("MetaTags")); 360 361 362 #line default 363 #line hidden 364 WriteLiteral("\r\n"); 365 366 367 #line 66 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 368 Write(GetValue("CopyRightNotice")); 369 370 371 #line default 372 #line hidden 373 WriteLiteral("\r\n\r\n\r\n\r\n"); 374 375 376 #line 70 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 377 378 379 #line default 380 #line hidden 381 382 #line 70 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 383 if(GetGlobalValue("Global:Pageview.Url.Raw").Contains("productid") || GetInteger("DwPageID")== 4919 || GetInteger("DwPageID")== 6104 ){ 384 385 386 387 388 #line default 389 #line hidden 390 WriteLiteral("<!--$$Snippet(MetaDescription)-->\r\n"); 391 392 393 #line 74 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 394 395 }else{ 396 397 398 399 #line default 400 #line hidden 401 WriteLiteral("<!-- not set meta "); 402 403 404 #line 77 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 405 Write(GetGlobalValue("Global:Pageview.Url.Raw")); 406 407 408 #line default 409 #line hidden 410 WriteLiteral(" -->\r\n"); 411 412 413 #line 78 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 414 415 416 417 418 #line default 419 #line hidden 420 WriteLiteral(" <title></title>\r\n"); 421 422 423 #line 81 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 424 425 426 427 428 429 } 430 431 432 #line default 433 #line hidden 434 WriteLiteral("\r\n\r\n \r\n "); 435 436 WriteLiteral("\r\n "); 437 438 WriteLiteral("\r\n <link"); 439 440 WriteAttribute("href", Tuple.Create(" href=\"", 2888), Tuple.Create("\"", 2955) 441 , Tuple.Create(Tuple.Create("", 2895), Tuple.Create("/Files/Templates/Designs/RO/css/newbundle.css", 2895), true) 442 443 #line 94 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 444 , Tuple.Create(Tuple.Create("", 2940), Tuple.Create<System.Object, System.Int32>(assetVersion 445 446 #line default 447 #line hidden 448 , 2940), false) 449 ); 450 451 WriteLiteral(" rel=\"stylesheet\""); 452 453 WriteLiteral(">\r\n <link"); 454 455 WriteAttribute("href", Tuple.Create(" href=\"", 2985), Tuple.Create("\"", 3049) 456 , Tuple.Create(Tuple.Create("", 2992), Tuple.Create("/Files/Templates/Designs/RO/css/custom.css", 2992), true) 457 458 #line 95 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 459 , Tuple.Create(Tuple.Create("", 3034), Tuple.Create<System.Object, System.Int32>(assetVersion 460 461 #line default 462 #line hidden 463 , 3034), false) 464 ); 465 466 WriteLiteral(" rel=\"stylesheet\""); 467 468 WriteLiteral(">\r\n <link"); 469 470 WriteAttribute("href", Tuple.Create(" href=\"", 3079), Tuple.Create("\"", 3141) 471 , Tuple.Create(Tuple.Create("", 3086), Tuple.Create("/Files/Templates/Designs/RO/css/flex.css", 3086), true) 472 473 #line 96 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 474 , Tuple.Create(Tuple.Create("", 3126), Tuple.Create<System.Object, System.Int32>(assetVersion 475 476 #line default 477 #line hidden 478 , 3126), false) 479 ); 480 481 WriteLiteral(" rel=\"stylesheet\""); 482 483 WriteLiteral(">\r\n <link"); 484 485 WriteLiteral(" rel=\"stylesheet\""); 486 487 WriteAttribute("href", Tuple.Create(" href=\"", 3188), Tuple.Create("\"", 3253) 488 , Tuple.Create(Tuple.Create("", 3195), Tuple.Create("/Files/Templates/Designs/RO/css/f-style.css", 3195), true) 489 490 #line 97 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 491 , Tuple.Create(Tuple.Create("", 3238), Tuple.Create<System.Object, System.Int32>(assetVersion 492 493 #line default 494 #line hidden 495 , 3238), false) 496 ); 497 498 WriteLiteral(">\r\n <link"); 499 500 WriteLiteral(" rel=\"icon\""); 501 502 WriteLiteral(" href=\"/Files/Templates/Designs/RO/favicon.ico\""); 503 504 WriteLiteral(">\r\n\t\r\n \r\n\r\n <link"); 505 506 WriteLiteral(" rel=\"alternate\""); 507 508 WriteLiteral(" href=\"https://rocopenhagen.dk\""); 509 510 WriteLiteral(" hreflang=\"da-DK\""); 511 512 WriteLiteral(">\r\n <link"); 513 514 WriteLiteral(" rel=\"alternate\""); 515 516 WriteLiteral(" href=\"https://rocopenhagen.com\""); 517 518 WriteLiteral(" hreflang=\"en-US\""); 519 520 WriteLiteral(">\r\n <!--GTM Data Layer-->\r\n <script>\r\n dataLayer = [];\r\n </script" + 521 ">\r\n\r\n"); 522 523 524 #line 109 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 525 if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GTM"))){ 526 527 528 #line default 529 #line hidden 530 WriteLiteral(" <!-- GTM -->\r\n"); 531 532 WriteLiteral(@" <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 533 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 534 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 535 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 536 })(window,document,'script','dataLayer','"); 537 538 539 #line 115 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 540 Write(GTM); 541 542 543 #line default 544 #line hidden 545 WriteLiteral("\');</script>\r\n"); 546 547 WriteLiteral(" <!-- End GTM -->\r\n"); 548 549 550 #line 117 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 551 } 552 553 554 #line default 555 #line hidden 556 WriteLiteral("\r\n\r\n\r\n <script"); 557 558 WriteLiteral(" src=\"https://use.typekit.net/tjl4wdh.js\""); 559 560 WriteLiteral("></script>\r\n <script>try { Typekit.load({ async: true }); } catch (e) { }</scr" + 561 "ipt>\r\n "); 562 563 WriteLiteral("\r\n <script"); 564 565 WriteAttribute("src", Tuple.Create(" src=\"", 4283), Tuple.Create("\"", 4348) 566 , Tuple.Create(Tuple.Create("", 4289), Tuple.Create("/Files/Templates/Designs/RO/js/jquery.min.js", 4289), true) 567 568 #line 124 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 569 , Tuple.Create(Tuple.Create("", 4333), Tuple.Create<System.Object, System.Int32>(assetVersion 570 571 #line default 572 #line hidden 573 , 4333), false) 574 ); 575 576 WriteLiteral(@"></script> 577 <!-- Facebook Pixel Code --> 578 <script> 579 !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? 580 n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; 581 n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; 582 t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, 583 document,'script','https://connect.facebook.net/en_US/fbevents.js'); 584 fbq('init', '145461159424985' 585 ); 586 fbq('track', 'PageView'); 587 </script> 588 <noscript> 589 <img"); 590 591 WriteLiteral(" height=\"1\""); 592 593 WriteLiteral(" width=\"1\""); 594 595 WriteLiteral(" style=\"display:none\""); 596 597 WriteLiteral(" src=\"https://www.facebook.com/tr?id=145461159424985&ev=PageView&noscript=1\""); 598 599 WriteLiteral(@"> 600 </noscript> 601 <!-- DO NOT MODIFY --> 602 <!-- End Facebook Pixel Code --> 603 604 605 <!-- Google Code for Remarketing Tag --> 606 <!-------------------------------------------------- 607 Remarketing tags may not be associated with personally identifiable 608 information or placed on pages related to sensitive categories. See more 609 information and instructions on how to setup the tag on: 610 http://google.com/ads/remarketingsetup 611 612 ---------------------------------------------------> 613 <script type=""text/javascript""> 614 /* <![CDATA[ */ 615 var google_conversion_id = "); 616 617 618 #line 153 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 619 Write(remarketingTag); 620 621 622 #line default 623 #line hidden 624 WriteLiteral(@"; 625 var google_custom_params = window.google_tag_params; 626 var google_remarketing_only = true; 627 /* ]]> */ 628 </script> 629 <script type=""text/javascript"" src=""//www.googleadservices.com/pagead/conversion.js""> 630 </script> 631 <noscript> 632 <div style=""display:inline;""> 633 <img height=""1"" width=""1"" style=""border-style:none;"" alt="""" src=""//googleads.g.doubleclick.net/pagead/viewthroughconversion/831067084/?guid=ON&amp;script=0""> 634 </div> 635 </noscript> 636 637 "); 638 639 WriteLiteral(@" 640 641 <style> 642 *::-webkit-input-placeholder { 643 opacity: 1; 644 } 645 *:-moz-placeholder { 646 /* FF 4-18 */ 647 opacity: 1; 648 } 649 *::-moz-placeholder { 650 /* FF 19+ */ 651 opacity: 1; 652 } 653 *:-ms-input-placeholder { 654 /* IE 10+ */ 655 opacity: 1; 656 } 657 </style> 658 659 "); 660 661 WriteLiteral("\r\n"); 662 663 664 #line 192 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 665 if(!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics"))){ 666 667 668 #line default 669 #line hidden 670 WriteLiteral(@" <script> 671 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 672 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 673 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 674 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 675 676 ga('create', '"); 677 678 679 #line 199 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 680 Write(GAtracking); 681 682 683 #line default 684 #line hidden 685 WriteLiteral("\', \'auto\');\r\n ga(\'send\', \'pageview\');\r\n\t\tga(\'require\', \'ecommerce\');\r\n " + 686 "</script>\r\n"); 687 688 689 #line 203 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 690 } 691 692 693 #line default 694 #line hidden 695 WriteLiteral("\r\n"); 696 697 698 #line 205 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 699 if(!string.IsNullOrWhiteSpace(Smartlook)){ 700 701 702 #line default 703 #line hidden 704 WriteLiteral(" <!-- smartlook -->\r\n"); 705 706 WriteLiteral("<script"); 707 708 WriteLiteral(" type=\"text/javascript\""); 709 710 WriteLiteral(@"> 711 window.smartlook||(function(d) { 712 var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0]; 713 var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript'; 714 c.charset='utf-8';c.src='https://rec.smartlook.com/recorder.js';h.appendChild(c); 715 })(document); 716 smartlook('init', '"); 717 718 719 #line 213 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 720 Write(Smartlook); 721 722 723 #line default 724 #line hidden 725 WriteLiteral("\');\r\n</script>\r\n"); 726 727 WriteLiteral(" <!-- End smartlook -->\r\n"); 728 729 730 #line 216 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 731 } 732 733 734 #line default 735 #line hidden 736 WriteLiteral("\r\n \r\n"); 737 738 739 #line 219 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 740 Write(GetValue("Stylesheets")); 741 742 743 #line default 744 #line hidden 745 WriteLiteral("\r\n"); 746 747 748 #line 220 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 749 Write(GetValue("Javascripts")); 750 751 752 #line default 753 #line hidden 754 WriteLiteral("\r\n</head>\r\n<body> \r\n"); 755 756 757 #line 223 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 758 if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GTM"))){ 759 760 761 #line default 762 #line hidden 763 WriteLiteral("<!-- GTM (noscript) -->\r\n"); 764 765 WriteLiteral(" <noscript><iframe"); 766 767 WriteAttribute("src", Tuple.Create(" src=\"", 8686), Tuple.Create("\"", 8742) 768 , Tuple.Create(Tuple.Create("", 8692), Tuple.Create("https://www.googletagmanager.com/ns.html?id=", 8692), true) 769 770 #line 225 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 771 , Tuple.Create(Tuple.Create("", 8736), Tuple.Create<System.Object, System.Int32>(GTM 772 773 #line default 774 #line hidden 775 , 8736), false) 776 ); 777 778 WriteLiteral(" height=\"0\""); 779 780 WriteLiteral(" width=\"0\""); 781 782 WriteLiteral(" style=\"display:none;visibility:hidden\""); 783 784 WriteLiteral("></iframe></noscript>\r\n"); 785 786 WriteLiteral("<!-- End GTM (noscript) -->\r\n"); 787 788 789 #line 227 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 790 } 791 792 793 #line default 794 #line hidden 795 WriteLiteral("\r\n \r\n\r\n"); 796 797 798 #line 231 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 799 800 801 #line default 802 #line hidden 803 804 #line 231 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 805 806 var ID = GetString("Item.Area.Produktside").Replace("Default.aspx?ID=", ""); 807 808 809 #line default 810 #line hidden 811 WriteLiteral("\r\n <form name=\"EcomSearchMobile\" method=\"get\" action=\'"); 812 813 814 #line 234 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 815 Write(GetString("Item.Area.Produktside")); 816 817 818 #line default 819 #line hidden 820 WriteLiteral("\'>\r\n <div id=\"searchbarmobile\" style=\"display: none;\">\r\n <input" + 821 " type=\"hidden\" name=\"ID\" value=\""); 822 823 824 #line 236 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 825 Write(ID); 826 827 828 #line default 829 #line hidden 830 WriteLiteral("\">\r\n <input type=\"text\" name=\"Search\" placeholder=\"Search\" id=\"mobilet" + 831 "extsearch\" value=\""); 832 833 834 #line 237 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 835 Write(SearchQueryMobile); 836 837 838 #line default 839 #line hidden 840 WriteLiteral(@"""> 841 <button type=""submit"" onclick=""submitSearchMobile()"" class=""button"" id=""searchbutton""> 842 <span class=""glyphicon glyphicon-search"" aria-hidden=""true"" id=""searchmobile""></span> 843 </button> 844 </div> 845 </form> 846 <div id=""overlay"" onclick=""closeOverlay()""></div> 847 <header id=""header""> 848 <div class=""container-fluid paddingtop""> 849 <div class=""row""> 850 <div class=""col-xs-12""> 851 <div id=""top"" style=""display: block;""> 852 "); 853 854 855 #line 249 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 856 857 858 #line default 859 #line hidden 860 861 #line 249 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 862 863 int numLang = 0; 864 foreach (var language in GetLoop("Languages")) { 865 numLang++; 866 } 867 868 869 #line default 870 #line hidden 871 WriteLiteral("\r\n\r\n <div class=\"language\">\r\n"); 872 873 874 #line 257 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 875 876 877 #line default 878 #line hidden 879 880 #line 257 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 881 if (numLang > 1) { 882 883 884 #line default 885 #line hidden 886 WriteLiteral(" <div"); 887 888 WriteLiteral(" class=\"languageDiv\""); 889 890 WriteLiteral(">\r\n <select"); 891 892 WriteLiteral(" id=\"selectLanguage\""); 893 894 WriteLiteral(" onchange=\"switchLanguage($(this))\""); 895 896 WriteLiteral(">\r\n"); 897 898 899 #line 260 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 900 901 902 #line default 903 #line hidden 904 905 #line 260 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 906 foreach (var language in GetLoop("Languages")) 907 { 908 if (language.GetBoolean("IsCurrent")) 909 { 910 911 912 #line default 913 #line hidden 914 WriteLiteral(" <option"); 915 916 WriteAttribute("value", Tuple.Create(" value=\'", 10623), Tuple.Create("\'", 10660) 917 918 #line 264 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 919 , Tuple.Create(Tuple.Create("", 10631), Tuple.Create<System.Object, System.Int32>(language.GetString("PageID") 920 921 #line default 922 #line hidden 923 , 10631), false) 924 ); 925 926 WriteLiteral(" selected=\"\""); 927 928 WriteLiteral(">"); 929 930 931 #line 264 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 932 Write(language.GetString("Name")); 933 934 935 #line default 936 #line hidden 937 WriteLiteral("</option>\r\n"); 938 939 940 #line 265 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 941 } 942 else 943 { 944 945 946 #line default 947 #line hidden 948 WriteLiteral(" <option"); 949 950 WriteAttribute("value", Tuple.Create(" value=\'", 10895), Tuple.Create("\'", 10932) 951 952 #line 268 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 953 , Tuple.Create(Tuple.Create("", 10903), Tuple.Create<System.Object, System.Int32>(language.GetString("PageID") 954 955 #line default 956 #line hidden 957 , 10903), false) 958 ); 959 960 WriteLiteral(">"); 961 962 963 #line 268 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 964 Write(language.GetString("Name")); 965 966 967 #line default 968 #line hidden 969 WriteLiteral("</option>\r\n"); 970 971 972 #line 269 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 973 } 974 } 975 976 977 #line default 978 #line hidden 979 WriteLiteral(" </select>\r\n <i"); 980 981 WriteLiteral(" class=\"fa fa-caret-down\""); 982 983 WriteLiteral(" aria-hidden=\"true\""); 984 985 WriteLiteral("></i> \r\n " + 986 " </div>\r\n"); 987 988 989 #line 274 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 990 } 991 992 993 #line default 994 #line hidden 995 WriteLiteral("\r\n <div class=\"currencieDiv\">\r\n " + 996 " <select id=\"selectCurrencie\" onchange=\"switchCurrencie($(this))\">\r\n" + 997 ""); 998 999 1000 #line 278 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1001 1002 1003 #line default 1004 #line hidden 1005 1006 #line 278 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1007 foreach (var curn in GetLoop("Currencies")) 1008 { 1009 if (curn.GetBoolean("Currency.IsCurrent")) 1010 { 1011 1012 1013 #line default 1014 #line hidden 1015 WriteLiteral(" <option"); 1016 1017 WriteAttribute("value", Tuple.Create(" value=\'", 11763), Tuple.Create("\'", 11803) 1018 1019 #line 282 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1020 , Tuple.Create(Tuple.Create("", 11771), Tuple.Create<System.Object, System.Int32>(curn.GetString("Currency.Code") 1021 1022 #line default 1023 #line hidden 1024 , 11771), false) 1025 ); 1026 1027 WriteLiteral(" selected=\"\""); 1028 1029 WriteLiteral(">"); 1030 1031 1032 #line 282 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1033 Write(curn.GetString("Currency.Name")); 1034 1035 1036 #line default 1037 #line hidden 1038 WriteLiteral("</option>\r\n"); 1039 1040 1041 #line 283 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1042 } 1043 else 1044 { 1045 1046 1047 #line default 1048 #line hidden 1049 WriteLiteral(" <option"); 1050 1051 WriteAttribute("value", Tuple.Create(" value=\'", 12043), Tuple.Create("\'", 12083) 1052 1053 #line 286 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1054 , Tuple.Create(Tuple.Create("", 12051), Tuple.Create<System.Object, System.Int32>(curn.GetString("Currency.Code") 1055 1056 #line default 1057 #line hidden 1058 , 12051), false) 1059 ); 1060 1061 WriteLiteral(">"); 1062 1063 1064 #line 286 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1065 Write(curn.GetString("Currency.Name")); 1066 1067 1068 #line default 1069 #line hidden 1070 WriteLiteral("</option>\r\n"); 1071 1072 1073 #line 287 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1074 } 1075 } 1076 1077 1078 #line default 1079 #line hidden 1080 WriteLiteral(" </select>\r\n <i cla" + 1081 "ss=\"fa fa-caret-down\" aria-hidden=\"true\"></i> " + 1082 " \r\n </div>\r\n\r\n " + 1083 " \r\n"); 1084 1085 WriteLiteral(" "); 1086 1087 1088 #line 294 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1089 Write(RenderSnippet("SocialMedia")); 1090 1091 1092 #line default 1093 #line hidden 1094 WriteLiteral(@" 1095 </div> 1096 1097 1098 1099 1100 <div> 1101 <!--ul class=""dwnavigation"" id=""topMenulist"" data-settings=""template:Navbar.xslt;endlevel:1;expandmode:all;parentid:7091;""></ul--> 1102 "); 1103 1104 WriteLiteral(" "); 1105 1106 1107 #line 302 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1108 Write(GetValue("DwNavigation(topMenulist)")); 1109 1110 1111 #line default 1112 #line hidden 1113 WriteLiteral("\r\n </div>\r\n\r\n <div"); 1114 1115 WriteLiteral(" class=\"functions\""); 1116 1117 WriteLiteral(">\r\n <form"); 1118 1119 WriteLiteral(" name=\"EcomSearch\""); 1120 1121 WriteLiteral(" method=\"get\""); 1122 1123 WriteAttribute("action", Tuple.Create(" action=\'", 13005), Tuple.Create("\'", 13049) 1124 1125 #line 306 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1126 , Tuple.Create(Tuple.Create("", 13014), Tuple.Create<System.Object, System.Int32>(GetString("Item.Area.Produktside") 1127 1128 #line default 1129 #line hidden 1130 , 13014), false) 1131 ); 1132 1133 WriteLiteral(">\r\n <div"); 1134 1135 WriteLiteral(" id=\"search\""); 1136 1137 WriteLiteral(" class=\"searchbar\""); 1138 1139 WriteLiteral(" style=\"display: none;\""); 1140 1141 WriteLiteral(">\r\n <input"); 1142 1143 WriteLiteral(" type=\"hidden\""); 1144 1145 WriteLiteral(" name=\"ID\""); 1146 1147 WriteAttribute("value", Tuple.Create(" value=\"", 13211), Tuple.Create("\"", 13222) 1148 1149 #line 308 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1150 , Tuple.Create(Tuple.Create("", 13219), Tuple.Create<System.Object, System.Int32>(ID 1151 1152 #line default 1153 #line hidden 1154 , 13219), false) 1155 ); 1156 1157 WriteLiteral(">\r\n <button"); 1158 1159 WriteLiteral(" type=\"submit\""); 1160 1161 WriteLiteral(" onclick=\"submitSearch()\""); 1162 1163 WriteLiteral(">\r\n <span"); 1164 1165 WriteLiteral(" style=\"display: inline;font-size: 21px;color: black; vertical-align: middle;\""); 1166 1167 WriteLiteral(" class=\"glyphicon glyphicon-search\""); 1168 1169 WriteLiteral("></span>\r\n </button>\r\n " + 1170 " <input"); 1171 1172 WriteLiteral(" type=\"text\""); 1173 1174 WriteLiteral(" name=\"Search\""); 1175 1176 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 13594), Tuple.Create("\"", 13636) 1177 1178 #line 312 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1179 , Tuple.Create(Tuple.Create("", 13608), Tuple.Create<System.Object, System.Int32>(Translate(" search","sã¸g") 1180 1181 #line default 1182 #line hidden 1183 , 13608), false) 1184 ); 1185 1186 WriteLiteral("=\"\" id=\"textsearch\" value=\""); 1187 1188 1189 #line 312 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1190 Write(SearchQuery); 1191 1192 1193 #line default 1194 #line hidden 1195 WriteLiteral("\">\r\n <!--<hr />-->\r\n " + 1196 " </div>\r\n </form>\r\n <" + 1197 "button"); 1198 1199 WriteLiteral(" id=\"searchbuttontrigger\""); 1200 1201 WriteLiteral(" onclick=\"triggerSearch()\""); 1202 1203 WriteLiteral(" type=\"button\""); 1204 1205 WriteLiteral(">\r\n <span"); 1206 1207 WriteLiteral(" style=\"display: inline;font-size: 24px;color: black; vertical-align: middle;\""); 1208 1209 WriteLiteral(" class=\"glyphicon glyphicon-search\""); 1210 1211 WriteLiteral("></span>\r\n </button>\r\n"); 1212 1213 1214 #line 319 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1215 1216 1217 #line default 1218 #line hidden 1219 1220 #line 319 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1221 if (GetGlobalValue("Global:Area.Lang") == "da") 1222 { 1223 1224 1225 #line default 1226 #line hidden 1227 WriteLiteral(" <button"); 1228 1229 WriteLiteral(" class=\"clickable\""); 1230 1231 WriteLiteral(" data-toggle=\"modal\""); 1232 1233 WriteLiteral(" data-target=\"#modal-slide-down-basket\""); 1234 1235 WriteLiteral(" data-backdrop=\"true\""); 1236 1237 WriteLiteral(">\r\n <img"); 1238 1239 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/basket.png\""); 1240 1241 WriteLiteral(" alt=\"kurv\""); 1242 1243 WriteLiteral(">"); 1244 1245 1246 #line 322 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1247 Write(RenderParagraphContent(158)); 1248 1249 1250 #line default 1251 #line hidden 1252 WriteLiteral("\r\n </button>\r\n"); 1253 1254 1255 #line 324 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1256 } 1257 else 1258 { 1259 1260 1261 #line default 1262 #line hidden 1263 WriteLiteral(" <button"); 1264 1265 WriteLiteral(" class=\"clickable\""); 1266 1267 WriteLiteral(" data-toggle=\"modal\""); 1268 1269 WriteLiteral(" data-target=\"#modal-slide-down-basket\""); 1270 1271 WriteLiteral(" data-backdrop=\"true\""); 1272 1273 WriteLiteral(">\r\n <img"); 1274 1275 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/basket.png\""); 1276 1277 WriteLiteral(" alt=\"basket\""); 1278 1279 WriteLiteral(">"); 1280 1281 1282 #line 328 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1283 Write(RenderParagraphContent(194)); 1284 1285 1286 #line default 1287 #line hidden 1288 WriteLiteral("\r\n </button>\r\n"); 1289 1290 1291 #line 330 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1292 } 1293 1294 1295 #line default 1296 #line hidden 1297 WriteLiteral(" <input"); 1298 1299 WriteLiteral(" type=\"hidden\""); 1300 1301 WriteLiteral(" name=\"DwAreaCartPageID\""); 1302 1303 WriteAttribute("value", Tuple.Create(" value=\'", 15056), Tuple.Create("\'", 15095) 1304 1305 #line 331 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1306 , Tuple.Create(Tuple.Create("", 15064), Tuple.Create<System.Object, System.Int32>(GetInteger("DwAreaCartPageID") 1307 1308 #line default 1309 #line hidden 1310 , 15064), false) 1311 ); 1312 1313 WriteLiteral(">\r\n\r\n <div"); 1314 1315 WriteLiteral(" class=\"modal down fade\""); 1316 1317 WriteLiteral(" id=\"modal-slide-down-basket\""); 1318 1319 WriteLiteral(" tabindex=\"-1\""); 1320 1321 WriteLiteral(" role=\"dialog\""); 1322 1323 WriteLiteral(" aria-labelledby=\"myModalLabel2\""); 1324 1325 WriteLiteral(">\r\n <div"); 1326 1327 WriteLiteral(" class=\"modal-dialog\""); 1328 1329 WriteLiteral(" role=\"document\""); 1330 1331 WriteLiteral(">\r\n <div"); 1332 1333 WriteLiteral(" class=\"modal-content\""); 1334 1335 WriteLiteral(">\r\n\r\n <div"); 1336 1337 WriteLiteral(" class=\"modal-header container-fluid\""); 1338 1339 WriteLiteral(">\r\n <div"); 1340 1341 WriteLiteral(" class=\"row\""); 1342 1343 WriteLiteral(">\r\n <div"); 1344 1345 WriteLiteral(" class=\"col-xs-12\""); 1346 1347 WriteLiteral(">\r\n <h3"); 1348 1349 WriteLiteral(" class=\"modal-title\""); 1350 1351 WriteLiteral(" id=\"myModalLabel2\""); 1352 1353 WriteLiteral(">Din Kurv</h3>\r\n <button"); 1354 1355 WriteLiteral(" type=\"button\""); 1356 1357 WriteLiteral(" class=\"close\""); 1358 1359 WriteLiteral(" data-dismiss=\"modal\""); 1360 1361 WriteLiteral("><img"); 1362 1363 WriteLiteral(" src=\'/Files/Templates/Designs/RO/images/close2.png\'"); 1364 1365 WriteLiteral(" alt=\"close luk\""); 1366 1367 WriteLiteral(@"></button> 1368 </div> 1369 </div> 1370 <hr> 1371 </div> 1372 1373 <div"); 1374 1375 WriteLiteral(" class=\"modal-body container-fluid\""); 1376 1377 WriteLiteral(">\r\n <div"); 1378 1379 WriteLiteral(" class=\"row\""); 1380 1381 WriteLiteral(">\r\n <div"); 1382 1383 WriteLiteral(" class=\"col-xs-12 col-sm-7\""); 1384 1385 WriteLiteral(">\r\n <h3>"); 1386 1387 1388 #line 350 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1389 Write(Translate("summary","Summary")); 1390 1391 1392 #line default 1393 #line hidden 1394 WriteLiteral("</h3>\r\n <hr>\r\n"); 1395 1396 1397 #line 352 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1398 1399 1400 #line default 1401 #line hidden 1402 1403 #line 352 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1404 foreach (LoopItem orderline in GetLoop("OrderLines")) 1405 { 1406 string productNumber = orderline.GetString("Ecom:Product.Number"); 1407 string productsize = orderline.GetString("Ecom:Product:Field.productsize.Value"); 1408 string productImage = ""; 1409 1410 if (orderline.GetString("Ecom:Order:OrderLine.Type") == "1") 1411 { 1412 productNumber = "1"; 1413 } 1414 1415 var filePath = "/Files/Images/RO/Produkter/" + productNumber + "_packshot.png"; 1416 1417 if (productsize == "small") 1418 { 1419 productImage = "/Admin/Public/getImage.ashx?Image=/Files/Images/RO/Produkter/" + productNumber + "_packshot.png&format=png&width=240&height=180&crop=0"; 1420 } 1421 else 1422 { 1423 productImage = "/Admin/Public/getImage.ashx?Image=/Files/Images/RO/Produkter/" + productNumber + "_packshot.png&format=png&width=240&height=180&crop=0"; 1424 } 1425 1426 1427 1428 string image = filePath; 1429 1430 if(!System.IO.File.Exists(image)){ 1431 string image2 = "" + filePath; 1432 string imageArea = image2.Remove(image2.Length-3) + GetGlobalValue("Global:Area.Name") + image2.Substring (image2.Length-4,4); 1433 var imageAreaPath = System.Web.HttpContext.Current.Server.MapPath("~/" + @imageArea); 1434 var imgareapack = System.IO.File.Exists(imageAreaPath); 1435 if(imgareapack){ 1436 image = imageArea; 1437 } 1438 } 1439 productImage = "/Admin/Public/getImage.ashx?Image=" + image + "&format=png&width=240&height=240&crop=5"; 1440 1441 1442 1443 string material = orderline.GetString("Ecom:Product:Field.material.Value"); 1444 string translatedmaterial = Translate(material, material); 1445 string karat = orderline.GetString("Ecom:Product:Field.karat.Value") + "kt"; 1446 1447 string price = orderline.GetString("Ecom:Order:OrderLine.Price.PriceWithVAT"); 1448 1449 string meta = ""; 1450 var m = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(filePath); 1451 if(m != null) 1452 { 1453 var lang = GetGlobalValue("Global:Area.Lang"); 1454 if (lang == "da") 1455 { 1456 meta = m.GetValue("Alt"); 1457 } 1458 else if (lang == "en") 1459 { 1460 meta = m.GetValue("AltEng"); 1461 } 1462 } 1463 1464 1465 1466 #line default 1467 #line hidden 1468 WriteLiteral(" <div"); 1469 1470 WriteLiteral(" class=\"row\""); 1471 1472 WriteLiteral(">\r\n <div"); 1473 1474 WriteLiteral(" class=\"col-xs-12 col-sm-4\""); 1475 1476 WriteLiteral(">\r\n <img"); 1477 1478 WriteLiteral(" class=\"img-responsive img-top\""); 1479 1480 WriteAttribute("src", Tuple.Create(" src=\"", 20965), Tuple.Create("\"", 20984) 1481 1482 #line 414 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1483 , Tuple.Create(Tuple.Create("", 20971), Tuple.Create<System.Object, System.Int32>(productImage 1484 1485 #line default 1486 #line hidden 1487 , 20971), false) 1488 ); 1489 1490 WriteLiteral(" alt=\"produktbillede productimage\""); 1491 1492 WriteLiteral(">\r\n </div>\r\n " + 1493 " <div"); 1494 1495 WriteLiteral(" class=\"col-xs-12 col-sm-8\""); 1496 1497 WriteLiteral(">\r\n <div"); 1498 1499 WriteLiteral(" class=\"orderlineinfo\""); 1500 1501 WriteLiteral(">\r\n"); 1502 1503 1504 #line 418 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1505 1506 1507 #line default 1508 #line hidden 1509 1510 #line 418 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1511 if (orderline.GetString("Ecom:Order:OrderLine.Type") != "1" && orderline.GetString("Ecom:Order:OrderLine.Type") != "6") 1512 { 1513 1514 1515 #line default 1516 #line hidden 1517 WriteLiteral(" <h2>"); 1518 1519 1520 #line 420 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1521 Write(orderline.GetString("Ecom:Order:OrderLine.ProductName")); 1522 1523 1524 #line default 1525 #line hidden 1526 WriteLiteral("</h2>\r\n"); 1527 1528 1529 #line 421 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1530 if (orderline.GetString("Ecom:Product.Type") != "3"){ 1531 1532 1533 #line default 1534 #line hidden 1535 WriteLiteral(" <p>"); 1536 1537 1538 #line 422 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1539 Write(karat); 1540 1541 1542 #line default 1543 #line hidden 1544 WriteLiteral(" "); 1545 1546 1547 #line 422 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1548 Write(translatedmaterial); 1549 1550 1551 #line default 1552 #line hidden 1553 WriteLiteral("</p>\r\n"); 1554 1555 1556 #line 423 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1557 } 1558 1559 1560 #line default 1561 #line hidden 1562 WriteLiteral(" <p>"); 1563 1564 1565 #line 424 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1566 Write(orderline.GetString("Ecom:Order:OrderLine.ProductVariantText")); 1567 1568 1569 #line default 1570 #line hidden 1571 WriteLiteral("</p>\r\n"); 1572 1573 WriteLiteral(" <p>"); 1574 1575 1576 #line 425 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1577 Write(Translate("quantity", "Amount")); 1578 1579 1580 #line default 1581 #line hidden 1582 WriteLiteral(": "); 1583 1584 1585 #line 425 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1586 Write(orderline.GetValue("Ecom:Order:OrderLine.Quantity")); 1587 1588 1589 #line default 1590 #line hidden 1591 WriteLiteral(" <span"); 1592 1593 WriteLiteral(" class=\"price\""); 1594 1595 WriteLiteral(">"); 1596 1597 1598 #line 425 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1599 Write(GetString("Ecom:Order.Currency.Code")); 1600 1601 1602 #line default 1603 #line hidden 1604 WriteLiteral(" "); 1605 1606 1607 #line 425 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1608 Write(price); 1609 1610 1611 #line default 1612 #line hidden 1613 WriteLiteral("</span></p>\r\n"); 1614 1615 1616 #line 426 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1617 } 1618 1619 1620 #line default 1621 #line hidden 1622 WriteLiteral("\r\n"); 1623 1624 1625 #line 428 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1626 1627 1628 #line default 1629 #line hidden 1630 1631 #line 428 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1632 if (orderline.GetString("Ecom:Order:OrderLine.Type") == "6") 1633 { 1634 1635 1636 #line default 1637 #line hidden 1638 WriteLiteral(" <h2>"); 1639 1640 1641 #line 430 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1642 Write(orderline.GetString("Ecom:Order:OrderLine.ProductName")); 1643 1644 1645 #line default 1646 #line hidden 1647 WriteLiteral("</h2>\r\n"); 1648 1649 WriteLiteral(" <p>"); 1650 1651 1652 #line 431 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1653 Write(Translate("quantity", "Amount")); 1654 1655 1656 #line default 1657 #line hidden 1658 WriteLiteral(": "); 1659 1660 1661 #line 431 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1662 Write(orderline.GetValue("Ecom:Order:OrderLine.Quantity")); 1663 1664 1665 #line default 1666 #line hidden 1667 WriteLiteral(" <span"); 1668 1669 WriteLiteral(" class=\"price\""); 1670 1671 WriteLiteral(">"); 1672 1673 1674 #line 431 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1675 Write(GetString("Ecom:Order.Currency.Code")); 1676 1677 1678 #line default 1679 #line hidden 1680 WriteLiteral(" "); 1681 1682 1683 #line 431 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1684 Write(price); 1685 1686 1687 #line default 1688 #line hidden 1689 WriteLiteral("</span></p>\r\n"); 1690 1691 1692 #line 432 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1693 } 1694 1695 1696 #line default 1697 #line hidden 1698 WriteLiteral("\r\n"); 1699 1700 1701 #line 434 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1702 1703 1704 #line default 1705 #line hidden 1706 1707 #line 434 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1708 if (orderline.GetString("Ecom:Order:OrderLine.Type") == "1") 1709 { 1710 1711 1712 #line default 1713 #line hidden 1714 WriteLiteral(" <h2>"); 1715 1716 1717 #line 436 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1718 Write(orderline.GetString("Ecom:Order:OrderLine.ProductName")); 1719 1720 1721 #line default 1722 #line hidden 1723 WriteLiteral(" <i><small>("); 1724 1725 1726 #line 436 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1727 Write(Translate("giftcardredeem", "Redeem")); 1728 1729 1730 #line default 1731 #line hidden 1732 WriteLiteral(")</small></i></h2>\r\n"); 1733 1734 WriteLiteral(" <p><span"); 1735 1736 WriteLiteral(" class=\"price\""); 1737 1738 WriteLiteral(">"); 1739 1740 1741 #line 437 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1742 Write(GetString("Ecom:Order.Currency.Code")); 1743 1744 1745 #line default 1746 #line hidden 1747 WriteLiteral(" "); 1748 1749 1750 #line 437 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1751 Write(price); 1752 1753 1754 #line default 1755 #line hidden 1756 WriteLiteral("</span></p>\r\n"); 1757 1758 1759 #line 438 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1760 } 1761 1762 1763 #line default 1764 #line hidden 1765 WriteLiteral(" </div>\r\n " + 1766 " </div>\r\n " + 1767 " </div>\r\n"); 1768 1769 1770 #line 442 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1771 1772 1773 1774 #line default 1775 #line hidden 1776 WriteLiteral(" <hr>\r\n"); 1777 1778 1779 #line 444 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1780 } 1781 1782 1783 #line default 1784 #line hidden 1785 WriteLiteral(" </div>\r\n " + 1786 " <div"); 1787 1788 WriteLiteral(" class=\"col-xs-12 col-sm-offset-1 col-sm-4\""); 1789 1790 WriteLiteral(">\r\n <h3>"); 1791 1792 1793 #line 447 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1794 Write(Translate("total", "Total")); 1795 1796 1797 #line default 1798 #line hidden 1799 WriteLiteral("</h3>\r\n <hr>\r\n"); 1800 1801 1802 #line 449 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1803 1804 1805 #line default 1806 #line hidden 1807 1808 #line 449 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1809 1810 string shippingname = GetString("Ecom:Order.ShippingMethod"); 1811 string shippingprice = GetString("Ecom:Order.ShippingFee.Price"); 1812 1813 string totalDiscount = GetString("Ecom:Order.OrderLines.TotalDiscount"); 1814 bool activeDiscount = false; 1815 if (totalDiscount.Contains("-") || totalDiscount.Contains("(")) 1816 { 1817 activeDiscount = true; 1818 } 1819 1820 if (activeDiscount) 1821 { 1822 1823 1824 #line default 1825 #line hidden 1826 WriteLiteral(" <p>"); 1827 1828 1829 #line 462 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1830 Write(Translate("discount", "Discount")); 1831 1832 1833 #line default 1834 #line hidden 1835 WriteLiteral("</p>\r\n"); 1836 1837 1838 #line 463 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1839 } 1840 1841 1842 #line default 1843 #line hidden 1844 WriteLiteral("\r\n\r\n <div"); 1845 1846 WriteLiteral(" class=\"row\""); 1847 1848 WriteLiteral(">\r\n <div"); 1849 1850 WriteLiteral(" class=\"col-xs-6\""); 1851 1852 WriteLiteral(">\r\n <p>"); 1853 1854 1855 #line 468 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1856 Write(Translate("subtotal", "Sub total")); 1857 1858 1859 #line default 1860 #line hidden 1861 WriteLiteral("</p>\r\n <p>"); 1862 1863 1864 #line 469 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1865 Write(Translate("vat", "VAT")); 1866 1867 1868 #line default 1869 #line hidden 1870 WriteLiteral("</p>\r\n"); 1871 1872 1873 #line 470 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1874 1875 1876 #line default 1877 #line hidden 1878 1879 #line 470 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1880 if (activeDiscount) 1881 { 1882 1883 1884 #line default 1885 #line hidden 1886 WriteLiteral(" <p>"); 1887 1888 1889 #line 472 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1890 Write(Translate("discount", "Discount")); 1891 1892 1893 #line default 1894 #line hidden 1895 WriteLiteral("</p>\r\n"); 1896 1897 1898 #line 473 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1899 } 1900 1901 1902 #line default 1903 #line hidden 1904 WriteLiteral(" <p>"); 1905 1906 1907 #line 474 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1908 Write(shippingname); 1909 1910 1911 #line default 1912 #line hidden 1913 WriteLiteral("</p>\r\n </div>\r\n " + 1914 " <div"); 1915 1916 WriteLiteral(" class=\"col-xs-6 text-right\""); 1917 1918 WriteLiteral(">\r\n\r\n"); 1919 1920 1921 #line 478 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1922 1923 1924 #line default 1925 #line hidden 1926 1927 #line 478 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1928 1929 var priceWithoutDiscountAndShipping = GetDouble("Ecom:Order.Price.PriceWithoutVAT") - GetDouble("Ecom:Order.ShippingFee.Price"); 1930 string newprice = priceWithoutDiscountAndShipping.ToString("N"); 1931 1932 1933 #line default 1934 #line hidden 1935 WriteLiteral("\r\n\r\n <p>"); 1936 1937 1938 #line 483 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1939 Write(GetString("Ecom:Order.Currency.Code")); 1940 1941 1942 #line default 1943 #line hidden 1944 WriteLiteral(" "); 1945 1946 WriteLiteral(" "); 1947 1948 1949 #line 483 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1950 Write(newprice); 1951 1952 1953 #line default 1954 #line hidden 1955 WriteLiteral("</p>\r\n <p"); 1956 1957 WriteLiteral(" id=\"vattype\""); 1958 1959 WriteLiteral(">"); 1960 1961 1962 #line 484 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1963 Write(GetString("Ecom:Order.Currency.Code")); 1964 1965 1966 #line default 1967 #line hidden 1968 WriteLiteral(" "); 1969 1970 1971 #line 484 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1972 Write(GetString("Ecom:Order.Price.VAT")); 1973 1974 1975 #line default 1976 #line hidden 1977 WriteLiteral("</p>\r\n"); 1978 1979 1980 #line 485 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1981 1982 1983 #line default 1984 #line hidden 1985 1986 #line 485 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1987 if (!String.IsNullOrEmpty(GetString("Ecom:Product.Discount.Price"))) 1988 { 1989 1990 1991 #line default 1992 #line hidden 1993 WriteLiteral(" <p>"); 1994 1995 1996 #line 487 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 1997 Write(GetString("Ecom:Order.Currency.Code")); 1998 1999 2000 #line default 2001 #line hidden 2002 WriteLiteral(" "); 2003 2004 2005 #line 487 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2006 Write(GetString("Ecom:Product.Discount.Price.Price")); 2007 2008 2009 #line default 2010 #line hidden 2011 WriteLiteral("</p>\r\n"); 2012 2013 2014 #line 488 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2015 } 2016 2017 2018 #line default 2019 #line hidden 2020 WriteLiteral(" "); 2021 2022 2023 #line 489 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2024 if (activeDiscount) 2025 { 2026 2027 2028 #line default 2029 #line hidden 2030 WriteLiteral(" <p>"); 2031 2032 2033 #line 491 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2034 Write(GetString("Ecom:Order.Currency.Code")); 2035 2036 2037 #line default 2038 #line hidden 2039 WriteLiteral(" -"); 2040 2041 2042 #line 491 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2043 Write(GetString("Ecom:Order.OrderLines.TotalDiscount").Replace("€", "").Replace("(", "").Replace("kr. ", "").Replace(")", "").Replace("-", "")); 2044 2045 2046 #line default 2047 #line hidden 2048 WriteLiteral("</p>\r\n"); 2049 2050 2051 #line 492 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2052 } 2053 2054 2055 #line default 2056 #line hidden 2057 WriteLiteral(" <p>"); 2058 2059 2060 #line 493 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2061 Write(GetString("Ecom:Order.Currency.Code")); 2062 2063 2064 #line default 2065 #line hidden 2066 WriteLiteral(" "); 2067 2068 2069 #line 493 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2070 Write(shippingprice); 2071 2072 2073 #line default 2074 #line hidden 2075 WriteLiteral("</p>\r\n </div>\r\n " + 2076 " </div>\r\n " + 2077 " <hr>\r\n <" + 2078 "div"); 2079 2080 WriteLiteral(" class=\"row\""); 2081 2082 WriteLiteral(">\r\n <div"); 2083 2084 WriteLiteral(" class=\"col-xs-6\""); 2085 2086 WriteLiteral(">\r\n <p"); 2087 2088 WriteLiteral(" class=\"price\""); 2089 2090 WriteLiteral(">Total</p>\r\n </div>\r\n " + 2091 " <div"); 2092 2093 WriteLiteral(" class=\"col-xs-6 text-right\""); 2094 2095 WriteLiteral(">\r\n <p"); 2096 2097 WriteLiteral(" class=\"price\""); 2098 2099 WriteLiteral(">"); 2100 2101 2102 #line 502 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2103 Write(GetString("Ecom:Order.Currency.Code")); 2104 2105 2106 #line default 2107 #line hidden 2108 WriteLiteral(" "); 2109 2110 2111 #line 502 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2112 Write(GetString("Ecom:Order.OrderLines.TotalPriceWithoutSymbol")); 2113 2114 2115 #line default 2116 #line hidden 2117 WriteLiteral("</p>\r\n </div>\r\n " + 2118 " <hr>\r\n " + 2119 " <button"); 2120 2121 WriteLiteral(" style=\"width: 100%;\""); 2122 2123 WriteLiteral(" class=\"btn\""); 2124 2125 WriteLiteral(" onclick=\"GoToBasket()\""); 2126 2127 WriteLiteral(">"); 2128 2129 2130 #line 505 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2131 Write(Translate("basketcheckout", "Basket / Checkout")); 2132 2133 2134 #line default 2135 #line hidden 2136 WriteLiteral(@"</button> 2137 </div> 2138 </div> 2139 </div> 2140 </div> 2141 </div><!-- modal-content --> 2142 </div><!-- modal-dialog --> 2143 </div><!-- modal --> 2144 2145 </div> 2146 2147 </div> 2148 <nav"); 2149 2150 WriteLiteral(" class=\"navbar navbar-default\""); 2151 2152 WriteLiteral(">\r\n <div"); 2153 2154 WriteLiteral(" class=\"container\""); 2155 2156 WriteLiteral(">\r\n <div"); 2157 2158 WriteLiteral(" class=\"navbar-header\""); 2159 2160 WriteLiteral(">\r\n <button"); 2161 2162 WriteLiteral(" type=\"button\""); 2163 2164 WriteLiteral(" class=\"navbar-toggle collapsed\""); 2165 2166 WriteLiteral(" data-toggle=\"collapse\""); 2167 2168 WriteLiteral(" data-target=\"#navbar-collapse\""); 2169 2170 WriteLiteral(" aria-expanded=\"false\""); 2171 2172 WriteLiteral(" onclick=\"hideTop()\""); 2173 2174 WriteLiteral(">\r\n <span"); 2175 2176 WriteLiteral(" class=\"sr-only\""); 2177 2178 WriteLiteral("></span>\r\n <span"); 2179 2180 WriteLiteral(" class=\"icon-bar\""); 2181 2182 WriteLiteral("></span>\r\n <span"); 2183 2184 WriteLiteral(" class=\"icon-bar\""); 2185 2186 WriteLiteral("></span>\r\n <span"); 2187 2188 WriteLiteral(" class=\"icon-bar\""); 2189 2190 WriteLiteral("></span>\r\n </button>\r\n " + 2191 "</div>\r\n <div"); 2192 2193 WriteLiteral(" class=\"collapse navbar-collapse\""); 2194 2195 WriteLiteral(" id=\"navbar-collapse\""); 2196 2197 WriteLiteral(">\r\n <button"); 2198 2199 WriteLiteral(" type=\"button\""); 2200 2201 WriteLiteral(" id=\"searchbuttonmobile\""); 2202 2203 WriteLiteral(" onclick=\"openSearchMobile()\""); 2204 2205 WriteLiteral("><span"); 2206 2207 WriteLiteral(" class=\"glyphicon glyphicon-search\""); 2208 2209 WriteLiteral(" aria-hidden=\"true\""); 2210 2211 WriteLiteral("></span></button>\r\n <button"); 2212 2213 WriteLiteral(" type=\"button\""); 2214 2215 WriteLiteral(" class=\"navbar-toggle collapsed\""); 2216 2217 WriteLiteral(" data-toggle=\"collapse\""); 2218 2219 WriteLiteral(" data-target=\"#navbar-collapse\""); 2220 2221 WriteLiteral(" aria-expanded=\"false\""); 2222 2223 WriteLiteral(" onclick=\"hideTop()\""); 2224 2225 WriteLiteral(">\r\n <span"); 2226 2227 WriteLiteral(" class=\"sr-only\""); 2228 2229 WriteLiteral("></span>\r\n <span"); 2230 2231 WriteLiteral(" class=\"closemobile\""); 2232 2233 WriteLiteral(">&#10005;</span>\r\n </button>\r\n " + 2234 " <div"); 2235 2236 WriteLiteral(" class=\"logo\""); 2237 2238 WriteLiteral(" style=\"display: none;\""); 2239 2240 WriteLiteral(">\r\n <img"); 2241 2242 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/ro_logo.png\""); 2243 2244 WriteLiteral(" class=\"img-responsive\""); 2245 2246 WriteLiteral(" alt=\"ro logo\""); 2247 2248 WriteLiteral(">\r\n </div>\r\n"); 2249 2250 WriteLiteral(" "); 2251 2252 2253 #line 536 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2254 Write(GetValue("DwNavigation(topnavigation)")); 2255 2256 2257 #line default 2258 #line hidden 2259 WriteLiteral("\r\n\r\n"); 2260 2261 WriteLiteral(" "); 2262 2263 2264 #line 538 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2265 Write(GetValue("DwNavigation(topMenulistmobile)")); 2266 2267 2268 #line default 2269 #line hidden 2270 WriteLiteral("\r\n\r\n <div"); 2271 2272 WriteLiteral(" class=\"language mobile text-center\""); 2273 2274 WriteLiteral(">\r\n"); 2275 2276 2277 #line 541 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2278 2279 2280 #line default 2281 #line hidden 2282 2283 #line 541 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2284 if (numLang > 1) { 2285 2286 2287 #line default 2288 #line hidden 2289 WriteLiteral(" <div"); 2290 2291 WriteLiteral(" class=\"languageDiv visible-xs\""); 2292 2293 WriteLiteral(" style=\"margin-top: 2em;display: inline-block !important; float: initial;\""); 2294 2295 WriteLiteral(">\r\n <select"); 2296 2297 WriteLiteral(" id=\"selectLanguageMobile\""); 2298 2299 WriteLiteral(" onchange=\"switchLanguage($(this))\""); 2300 2301 WriteLiteral(">\r\n"); 2302 2303 2304 #line 544 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2305 2306 2307 #line default 2308 #line hidden 2309 2310 #line 544 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2311 foreach (var language in GetLoop("Languages")) 2312 { 2313 if (language.GetBoolean("IsCurrent")) 2314 { 2315 2316 2317 #line default 2318 #line hidden 2319 WriteLiteral(" <option"); 2320 2321 WriteAttribute("value", Tuple.Create(" value=\'", 32183), Tuple.Create("\'", 32220) 2322 2323 #line 548 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2324 , Tuple.Create(Tuple.Create("", 32191), Tuple.Create<System.Object, System.Int32>(language.GetString("PageID") 2325 2326 #line default 2327 #line hidden 2328 , 32191), false) 2329 ); 2330 2331 WriteLiteral(" selected=\"\""); 2332 2333 WriteLiteral(">"); 2334 2335 2336 #line 548 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2337 Write(language.GetString("Name")); 2338 2339 2340 #line default 2341 #line hidden 2342 WriteLiteral("</option>\r\n"); 2343 2344 2345 #line 549 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2346 } 2347 else 2348 { 2349 2350 2351 #line default 2352 #line hidden 2353 WriteLiteral(" <option"); 2354 2355 WriteAttribute("value", Tuple.Create(" value=\'", 32503), Tuple.Create("\'", 32540) 2356 2357 #line 552 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2358 , Tuple.Create(Tuple.Create("", 32511), Tuple.Create<System.Object, System.Int32>(language.GetString("PageID") 2359 2360 #line default 2361 #line hidden 2362 , 32511), false) 2363 ); 2364 2365 WriteLiteral(">"); 2366 2367 2368 #line 552 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2369 Write(language.GetString("Name")); 2370 2371 2372 #line default 2373 #line hidden 2374 WriteLiteral("</option>\r\n"); 2375 2376 2377 #line 553 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2378 } 2379 } 2380 2381 2382 #line default 2383 #line hidden 2384 WriteLiteral(" </select>\r\n " + 2385 " <i"); 2386 2387 WriteLiteral(" class=\"fa fa-caret-down\""); 2388 2389 WriteLiteral(" aria-hidden=\"true\""); 2390 2391 WriteLiteral(" style=\"position: relative; top: -21px; left: 77px; float: left\""); 2392 2393 WriteLiteral("></i>\r\n </div>\r\n"); 2394 2395 2396 #line 558 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2397 } 2398 2399 2400 #line default 2401 #line hidden 2402 WriteLiteral("\r\n <div"); 2403 2404 WriteLiteral(" class=\"currencieDiv\""); 2405 2406 WriteLiteral(">\r\n <select"); 2407 2408 WriteLiteral(" id=\"selectCurrencie\""); 2409 2410 WriteLiteral(" onchange=\"switchCurrencie($(this))\""); 2411 2412 WriteLiteral(">\r\n"); 2413 2414 2415 #line 562 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2416 2417 2418 #line default 2419 #line hidden 2420 2421 #line 562 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2422 foreach (var curn in GetLoop("Currencies")) 2423 { 2424 if (curn.GetBoolean("Currency.IsCurrent")) 2425 { 2426 2427 2428 #line default 2429 #line hidden 2430 WriteLiteral(" <option"); 2431 2432 WriteAttribute("value", Tuple.Create(" value=\'", 33453), Tuple.Create("\'", 33493) 2433 2434 #line 566 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2435 , Tuple.Create(Tuple.Create("", 33461), Tuple.Create<System.Object, System.Int32>(curn.GetString("Currency.Code") 2436 2437 #line default 2438 #line hidden 2439 , 33461), false) 2440 ); 2441 2442 WriteLiteral(" selected=\"\""); 2443 2444 WriteLiteral(">"); 2445 2446 2447 #line 566 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2448 Write(curn.GetString("Currency.Name")); 2449 2450 2451 #line default 2452 #line hidden 2453 WriteLiteral("</option>\r\n"); 2454 2455 2456 #line 567 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2457 } 2458 else 2459 { 2460 2461 2462 #line default 2463 #line hidden 2464 WriteLiteral(" <option"); 2465 2466 WriteAttribute("value", Tuple.Create(" value=\'", 33733), Tuple.Create("\'", 33773) 2467 2468 #line 570 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2469 , Tuple.Create(Tuple.Create("", 33741), Tuple.Create<System.Object, System.Int32>(curn.GetString("Currency.Code") 2470 2471 #line default 2472 #line hidden 2473 , 33741), false) 2474 ); 2475 2476 WriteLiteral(">"); 2477 2478 2479 #line 570 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2480 Write(curn.GetString("Currency.Name")); 2481 2482 2483 #line default 2484 #line hidden 2485 WriteLiteral("</option>\r\n"); 2486 2487 2488 #line 571 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2489 } 2490 } 2491 2492 2493 #line default 2494 #line hidden 2495 WriteLiteral(" </select>\r\n <i"); 2496 2497 WriteLiteral(" class=\"fa fa-caret-down\""); 2498 2499 WriteLiteral(" aria-hidden=\"true\""); 2500 2501 WriteLiteral("></i> \r\n " + 2502 " </div>\r\n \r\n " + 2503 " </div>\r\n <div"); 2504 2505 WriteLiteral(" class=\"mobile-social\""); 2506 2507 WriteLiteral(">"); 2508 2509 2510 #line 578 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2511 Write(RenderSnippet("SocialMedia")); 2512 2513 2514 #line default 2515 #line hidden 2516 WriteLiteral("</div>\r\n </div>\r\n </div>\r\n " + 2517 " </nav>\r\n \r\n"); 2518 2519 2520 #line 583 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2521 2522 2523 #line default 2524 #line hidden 2525 2526 #line 583 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2527 if (GetInteger("DwAreaFirstPageID") == GetInteger("DwPageID")) { 2528 2529 2530 #line default 2531 #line hidden 2532 WriteLiteral(" <div"); 2533 2534 WriteLiteral(" class=\"logo on-front\""); 2535 2536 WriteLiteral(">\r\n <a"); 2537 2538 WriteAttribute("href", Tuple.Create(" href=\'", 34579), Tuple.Create("\'", 34634) 2539 , Tuple.Create(Tuple.Create("", 34586), Tuple.Create("Default.aspx?ID=", 34586), true) 2540 2541 #line 585 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2542 , Tuple.Create(Tuple.Create("", 34602), Tuple.Create<System.Object, System.Int32>(GetInteger("DwAreaFirstPageID") 2543 2544 #line default 2545 #line hidden 2546 , 34602), false) 2547 ); 2548 2549 WriteLiteral(">\r\n <img"); 2550 2551 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/ro_logo.png\""); 2552 2553 WriteLiteral(" class=\"img-responsive\""); 2554 2555 WriteLiteral(" alt=\"ro logo\""); 2556 2557 WriteLiteral(">\r\n </a>\r\n </div>\r\n"); 2558 2559 2560 #line 589 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2561 } 2562 2563 2564 #line default 2565 #line hidden 2566 WriteLiteral("\r\n"); 2567 2568 2569 #line 591 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2570 2571 2572 #line default 2573 #line hidden 2574 2575 #line 591 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2576 if (GetInteger("DwAreaFirstPageID") != GetInteger("DwPageID")) { 2577 2578 2579 #line default 2580 #line hidden 2581 WriteLiteral(" <div"); 2582 2583 WriteLiteral(" class=\"logo\""); 2584 2585 WriteLiteral(">\r\n <a"); 2586 2587 WriteAttribute("href", Tuple.Create(" href=\'", 35029), Tuple.Create("\'", 35084) 2588 , Tuple.Create(Tuple.Create("", 35036), Tuple.Create("Default.aspx?ID=", 35036), true) 2589 2590 #line 593 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2591 , Tuple.Create(Tuple.Create("", 35052), Tuple.Create<System.Object, System.Int32>(GetInteger("DwAreaFirstPageID") 2592 2593 #line default 2594 #line hidden 2595 , 35052), false) 2596 ); 2597 2598 WriteLiteral(">\r\n <img"); 2599 2600 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/ro_logo.png\""); 2601 2602 WriteLiteral(" class=\"img-responsive\""); 2603 2604 WriteLiteral(" alt=\"ro logo\""); 2605 2606 WriteLiteral(">\r\n </a>\r\n </div>\r\n"); 2607 2608 2609 #line 597 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2610 } 2611 2612 2613 #line default 2614 #line hidden 2615 WriteLiteral(" \r\n </div>\r\n </div>\r\n </div>\r\n " + 2616 " </header>\r\n\r\n <div"); 2617 2618 WriteLiteral(" class=\"main\""); 2619 2620 WriteLiteral(">\r\n <div"); 2621 2622 WriteLiteral(" class=\"breadcrumbs-title\""); 2623 2624 WriteLiteral(">\r\n <div"); 2625 2626 WriteLiteral(" class=\"container-fluid\""); 2627 2628 WriteLiteral(">\r\n \r\n <div>\r\n"); 2629 2630 2631 #line 609 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2632 2633 2634 #line default 2635 #line hidden 2636 2637 #line 609 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2638 if (GetInteger("DwAreaFirstPageID") != GetInteger("DwPageID")) 2639 { 2640 var productpage = ""; 2641 2642 if (GetString("DWExtranetAction").Contains("productid")) 2643 { 2644 productpage = "true"; 2645 } 2646 2647 2648 2649 #line default 2650 #line hidden 2651 WriteLiteral(" <ul"); 2652 2653 WriteLiteral(" class=\"breadcrumb\""); 2654 2655 WriteLiteral(" id=\"breadcrumb\""); 2656 2657 WriteLiteral("></ul>\r\n"); 2658 2659 2660 #line 619 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2661 2662 2663 2664 #line default 2665 #line hidden 2666 WriteLiteral(" <script>\r\n $(document)" + 2667 ".ready(function () {\r\n var urlNoHost = locati" + 2668 "on.href.split(\'/\').slice(3);\r\n\r\n function cap" + 2669 "italizeFirstLetter(string) {\r\n return str" + 2670 "ing.charAt(0).toUpperCase() + string.slice(1);\r\n " + 2671 " }\r\n\r\n function noDash(string) {\r\n " + 2672 " return string.replace(/\\-/g, \" \").trim();\r\n " + 2673 " }\r\n\r\n function" + 2674 " convertSpecialChars(name) {\r\n// ae = lille rigtigt ae, &#230; = stort rigtigt A" + 2675 "E\t\t\t\t\t\t\t\t\t\t\r\n// return name.replace(\"ae\"," + 2676 " \"æ\").replace(\"&#230;\", \"æ\").replace(\"oe\", \"ø\").replace(\"&#248;\", \"ø\").repla" + 2677 "ce(\"aa\", \"Ã¥\").replace(\"&#229;\", \"Ã¥\");\r\n " + 2678 " return name.replace(\"ae\", \"æ\").replace(\"&#230;\", \"Æ\").replace(\"oe\", \"ø\").replac" + 2679 "e(\"&#248;\", \"Ø\").replace(\"aa\", \"å\").replace(\"&#229;\", \"Å\");\r\n " + 2680 " }\r\n\r\n function setLiAndA(nam" + 2681 "e,number) {\r\n\r\n var host = location.proto" + 2682 "col + \'//\' + location.host + \'/\';\r\n var u" + 2683 "rl = location.href;\r\n url = url.substring" + 2684 "(0, url.indexOf(name));\r\n var link = url " + 2685 "+ name;\r\n var newname = \"\";\r\n\r\n " + 2686 " if (\""); 2687 2688 2689 #line 646 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2690 Write(productpage); 2691 2692 2693 #line default 2694 #line hidden 2695 WriteLiteral(@""" == ""true"" && number == urlNoHost.length - 1) 2696 { 2697 newname = document.getElementById('prodName').innerHTML; 2698 } 2699 else 2700 { 2701 newname = noDash(name); 2702 } 2703 2704 if("""); 2705 2706 2707 #line 655 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2708 Write(GetString("DwAreaName")); 2709 2710 2711 #line default 2712 #line hidden 2713 WriteLiteral(@""" == ""Dansk"") 2714 { 2715 newname = convertSpecialChars(newname); 2716 } 2717 2718 newname = capitalizeFirstLetter(newname); 2719 if (newname.indexOf('?') > -1) 2720 { 2721 newname = newname.substring(0, newname.indexOf('?')); 2722 } 2723 2724 $('<a />', { 2725 href: link, 2726 text: newname 2727 }).wrap('<li />').parent().appendTo('#breadcrumb'); 2728 } 2729 2730 for (var i in urlNoHost) { 2731 if (urlNoHost[i] == 'produkter' || urlNoHost[i] == 'products') { 2732 urlNoHost.splice(i, 1); 2733 } 2734 } 2735 2736 for (var i in urlNoHost) { 2737 setLiAndA(urlNoHost[i],i); 2738 } 2739 }) 2740 </script> 2741 "); 2742 2743 2744 #line 683 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2745 } 2746 2747 2748 #line default 2749 #line hidden 2750 WriteLiteral(" </div>\r\n \r\n \r\n"); 2751 2752 2753 #line 687 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2754 2755 2756 #line default 2757 #line hidden 2758 2759 #line 687 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2760 if (GetInteger("DwAreaFirstPageID") != GetInteger("DwPageID")) { 2761 2762 2763 #line default 2764 #line hidden 2765 WriteLiteral(" <h1>"); 2766 2767 2768 #line 688 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2769 Write(GetString("DwPageName")); 2770 2771 2772 #line default 2773 #line hidden 2774 WriteLiteral("</h1>\r\n"); 2775 2776 2777 #line 689 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2778 } 2779 2780 2781 #line default 2782 #line hidden 2783 WriteLiteral(" </div></div>\r\n \r\n\r\n"); 2784 2785 WriteLiteral("\r\n"); 2786 2787 WriteLiteral("\r\n"); 2788 2789 2790 #line 782 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2791 2792 // Hent resultater som json 2793 string ApiUrl = "https://api.instagram.com/v1/users/1966900245/media/recent/?access_token=1966900245.c9c6b68.375ea7bd65914bcfb827ad081c2b4ef2&count=33"; 2794 string JsonList = getListJson(ApiUrl); 2795 FeedResolver ListOfImages = Newtonsoft.Json.JsonConvert.DeserializeObject<FeedResolver>(JsonList); 2796 int Increment = 0; 2797 2798 2799 var parentPage = Dynamicweb.Content.Page.GetPageById(7004); 2800 int TopPageForFeedEntries = parentPage.ID; 2801 var CurrentFeedEntries = Dynamicweb.Content.Page.GetPagesByParentID(TopPageForFeedEntries, parentPage.AreaID); 2802 2803 2804 #line default 2805 #line hidden 2806 WriteLiteral("\r\n\r\n"); 2807 2808 2809 #line 795 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2810 foreach (var insta in ListOfImages.data) 2811 { 2812 2813 var CountExistingPage = CurrentFeedEntries.Where(x => 2814 x != null && 2815 !string.IsNullOrEmpty(x.NavigationTag) && 2816 x.NavigationTag.Equals(insta.id) 2817 ); 2818 2819 2820 if (!CountExistingPage.Any() ) 2821 { 2822 2823 try 2824 { 2825 var NewPage = new Dynamicweb.Content.Page(parentPage.AreaID, TopPageForFeedEntries); 2826 2827 NewPage.ItemType = "InstagramBillede"; 2828 NewPage.MenuText = "" + insta.id; 2829 NewPage.Hidden = true; 2830 NewPage.NavigationTag = insta.id; 2831 NewPage.Active = false; 2832 NewPage.Save(); 2833 2834 var item = Dynamicweb.Content.Items.ItemManager.Storage.GetById(NewPage.ItemType, NewPage.ItemId); 2835 item["Dato"] = UnixTimeStampToDateTime(insta.created_time); 2836 item["Billede"] = insta.images.__original.url; 2837 item["BilledeBredde"] = insta.images.__original.width; 2838 item["BilledeH_jde"] = insta.images.__original.height; 2839 item["Overskrift"] = "" + insta.id; 2840 if (insta.caption != null) 2841 { 2842 item["Tekst"] = insta.caption.text; 2843 } 2844 2845 item.Save(); 2846 2847 Increment++; 2848 } 2849 catch (Exception e) 2850 { 2851 2852 2853 #line default 2854 #line hidden 2855 WriteLiteral(" "); 2856 2857 WriteLiteral("Fejl i oprettelse af side "); 2858 2859 2860 #line 836 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2861 Write(Increment); 2862 2863 2864 #line default 2865 #line hidden 2866 WriteLiteral(" "); 2867 2868 2869 #line 836 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2870 Write(e); 2871 2872 2873 #line default 2874 #line hidden 2875 WriteLiteral("<br>"); 2876 2877 WriteLiteral("\r\n"); 2878 2879 2880 #line 837 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2881 } 2882 } 2883 } 2884 2885 2886 #line default 2887 #line hidden 2888 WriteLiteral("\r\n\r\n <!--$$If(Global:CookieOptInLevel == \"_All\")-->\r\n <div"); 2889 2890 WriteLiteral(" class=\"cookie\""); 2891 2892 WriteLiteral(" id=\"cookieWarningDiv\""); 2893 2894 WriteLiteral(">\r\n <div"); 2895 2896 WriteLiteral(" class=\"container-fluid bg-grey\""); 2897 2898 WriteLiteral(">\r\n <div"); 2899 2900 WriteLiteral(" class=\"row\""); 2901 2902 WriteLiteral(">\r\n <div"); 2903 2904 WriteLiteral(" class=\"col-xs-12\""); 2905 2906 WriteLiteral(" style=\"padding: 1.5em;\""); 2907 2908 WriteLiteral(">\r\n <p>\r\n"); 2909 2910 WriteLiteral(" "); 2911 2912 2913 #line 848 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2914 Write(Translate("cookie", "This website uses cookies to remember your preferences, statistics and direct targeting. Read more about our policy <a href='#'>here</a>")); 2915 2916 2917 #line default 2918 #line hidden 2919 WriteLiteral("\r\n <a"); 2920 2921 WriteLiteral(" class=\"cookie-close pull-right\""); 2922 2923 WriteLiteral(" onclick=\"return setOptInCookie(2);\""); 2924 2925 WriteLiteral(">\r\n <span"); 2926 2927 WriteLiteral(" style=\"display:block; float:left; color: #000000; cursor: pointer;\""); 2928 2929 WriteLiteral(">X</span>\r\n </a>\r\n </p>\r\n " + 2930 " </div>\r\n </div>\r\n </div>\r\n </div>" + 2931 "\r\n <!--$$EndIf-->\r\n </div>\r\n\r\n <footer>\r\n <div"); 2932 2933 WriteLiteral(" class=\"container-fluid bg-grey nav-bottom\""); 2934 2935 WriteLiteral(">\r\n <div"); 2936 2937 WriteLiteral(" class=\"row\""); 2938 2939 WriteLiteral(">\r\n <div"); 2940 2941 WriteLiteral(" class=\"col-xs-12 col-sm-12 col-md-6\""); 2942 2943 WriteLiteral(">\r\n <div"); 2944 2945 WriteLiteral(" class=\"row\""); 2946 2947 WriteLiteral(">\r\n <div"); 2948 2949 WriteLiteral(" class=\"col-xs-12 col-sm-6 left-nav-part\""); 2950 2951 WriteLiteral(">\r\n <ul>\r\n"); 2952 2953 2954 #line 867 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2955 2956 2957 #line default 2958 #line hidden 2959 2960 #line 867 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2961 2962 foreach (LoopItem item in GetLoop("Item.Area.Menupunkter")) 2963 { 2964 if (item.GetString("Item.Area.Menupunkter.Placering.Value") == "left") 2965 { 2966 if (item.GetString("Item.Area.Menupunkter.Link.Value") != "") 2967 { 2968 2969 2970 #line default 2971 #line hidden 2972 WriteLiteral(" <li><a"); 2973 2974 WriteAttribute("href", Tuple.Create(" href=\'", 45943), Tuple.Create("\'", 46001) 2975 2976 #line 874 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2977 , Tuple.Create(Tuple.Create("", 45950), Tuple.Create<System.Object, System.Int32>(item.GetString("Item.Area.Menupunkter.Link.Value") 2978 2979 #line default 2980 #line hidden 2981 , 45950), false) 2982 ); 2983 2984 WriteLiteral("> "); 2985 2986 2987 #line 874 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2988 Write(item.GetString("Item.Area.Menupunkter.Overskrift.Value")); 2989 2990 2991 #line default 2992 #line hidden 2993 WriteLiteral("</a></li>\r\n"); 2994 2995 2996 #line 875 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 2997 } 2998 } 2999 } 3000 3001 3002 #line default 3003 #line hidden 3004 WriteLiteral("\r\n </ul>\r\n </div>\r\n " + 3005 " "); 3006 3007 WriteLiteral("\r\n <div"); 3008 3009 WriteLiteral(" class=\"col-xs-12 col-sm-6\""); 3010 3011 WriteLiteral(">\r\n <ul>\r\n"); 3012 3013 3014 #line 884 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3015 3016 3017 #line default 3018 #line hidden 3019 3020 #line 884 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3021 3022 foreach (LoopItem item in GetLoop("Item.Area.Menupunkter")) 3023 { 3024 if (item.GetString("Item.Area.Menupunkter.Placering.Value") == "right") 3025 { 3026 if (item.GetString("Item.Area.Menupunkter.Link.Value") != "") 3027 { 3028 3029 3030 #line default 3031 #line hidden 3032 WriteLiteral(" <li><a"); 3033 3034 WriteAttribute("href", Tuple.Create(" href=\'", 47049), Tuple.Create("\'", 47107) 3035 3036 #line 891 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3037 , Tuple.Create(Tuple.Create("", 47056), Tuple.Create<System.Object, System.Int32>(item.GetString("Item.Area.Menupunkter.Link.Value") 3038 3039 #line default 3040 #line hidden 3041 , 47056), false) 3042 ); 3043 3044 WriteLiteral("> "); 3045 3046 3047 #line 891 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3048 Write(item.GetString("Item.Area.Menupunkter.Overskrift.Value")); 3049 3050 3051 #line default 3052 #line hidden 3053 WriteLiteral("</a></li>\r\n"); 3054 3055 3056 #line 892 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3057 } 3058 } 3059 } 3060 3061 3062 #line default 3063 #line hidden 3064 WriteLiteral("\r\n </ul>\r\n </div>\r\n " + 3065 " </div>\r\n </div>\r\n <div"); 3066 3067 WriteLiteral(" class=\"col-xs-12 col-sm-12 col-md-6\""); 3068 3069 WriteLiteral(">\r\n "); 3070 3071 WriteLiteral("\r\n\r\n"); 3072 3073 3074 #line 913 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3075 3076 3077 #line default 3078 #line hidden 3079 3080 #line 913 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3081 var translateTing = @Translate("submit", "Tilmeld"); 3082 var newsLetterPlaceholder = @Translate("newsletter-placeholder", "Indtast e-mail adresse"); 3083 3084 3085 #line default 3086 #line hidden 3087 WriteLiteral("\r\n\r\n"); 3088 3089 3090 #line 917 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3091 3092 3093 #line default 3094 #line hidden 3095 3096 #line 917 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3097 if(GetString("LongLang")=="en-GB") { 3098 3099 3100 #line default 3101 #line hidden 3102 3103 #line 918 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3104 Write(RenderParagraphContent(1297)); 3105 3106 3107 #line default 3108 #line hidden 3109 3110 #line 918 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3111 3112 } else { 3113 3114 3115 #line default 3116 #line hidden 3117 3118 #line 920 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3119 Write(RenderParagraphContent(1296)); 3120 3121 3122 #line default 3123 #line hidden 3124 3125 #line 920 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3126 3127 } 3128 3129 3130 #line default 3131 #line hidden 3132 WriteLiteral("\r\n "); 3133 3134 WriteLiteral("\r\n </div>\r\n </div>\r\n\r\n <div"); 3135 3136 WriteLiteral(" class=\"row cards\""); 3137 3138 WriteLiteral(">\r\n <div"); 3139 3140 WriteLiteral(" class=\"col-xs-12 connect\""); 3141 3142 WriteLiteral(">"); 3143 3144 3145 #line 948 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3146 Write(RenderSnippet("SocialMedia")); 3147 3148 3149 #line default 3150 #line hidden 3151 WriteLiteral("</div>\r\n <div"); 3152 3153 WriteLiteral(" class=\"col-xs-12\""); 3154 3155 WriteLiteral(">\r\n \r\n"); 3156 3157 3158 #line 951 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3159 if(@GetGlobalValue("Global:Area.ID").ToString()=="1"){ 3160 3161 3162 #line default 3163 #line hidden 3164 WriteLiteral(" <img"); 3165 3166 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/dankort.png\""); 3167 3168 WriteLiteral(" width=\"51\""); 3169 3170 WriteLiteral(" height=\"32\""); 3171 3172 WriteLiteral(" alt=\"Dankort\""); 3173 3174 WriteLiteral(">\r\n"); 3175 3176 WriteLiteral(" <img"); 3177 3178 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/visa.png\""); 3179 3180 WriteLiteral(" width=\"51\""); 3181 3182 WriteLiteral(" height=\"32\""); 3183 3184 WriteLiteral(" alt=\"Visa\""); 3185 3186 WriteLiteral(">\r\n"); 3187 3188 WriteLiteral(" <img"); 3189 3190 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/mastercard.png\""); 3191 3192 WriteLiteral(" width=\"51\""); 3193 3194 WriteLiteral(" height=\"32\""); 3195 3196 WriteLiteral(" alt=\"Mastercard\""); 3197 3198 WriteLiteral(">\r\n"); 3199 3200 WriteLiteral(" <img"); 3201 3202 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/jcb.png\""); 3203 3204 WriteLiteral(" width=\"51\""); 3205 3206 WriteLiteral(" height=\"32\""); 3207 3208 WriteLiteral(" alt=\"JCB\""); 3209 3210 WriteLiteral(">\r\n"); 3211 3212 WriteLiteral(" <img"); 3213 3214 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/maestro.png\""); 3215 3216 WriteLiteral(" width=\"52\""); 3217 3218 WriteLiteral(" height=\"32\""); 3219 3220 WriteLiteral(" alt=\"Maestro\""); 3221 3222 WriteLiteral(">\r\n"); 3223 3224 WriteLiteral(" <img"); 3225 3226 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/mobilepay.png\""); 3227 3228 WriteLiteral(" width=\"51\""); 3229 3230 WriteLiteral(" height=\"32\""); 3231 3232 WriteLiteral(" alt=\"MobilePay\""); 3233 3234 WriteLiteral(">\r\n"); 3235 3236 3237 #line 958 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3238 }else{ 3239 3240 3241 #line default 3242 #line hidden 3243 WriteLiteral(" <img"); 3244 3245 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/visa.png\""); 3246 3247 WriteLiteral(" width=\"51\""); 3248 3249 WriteLiteral(" height=\"32\""); 3250 3251 WriteLiteral(" alt=\"Visa\""); 3252 3253 WriteLiteral(">\r\n"); 3254 3255 WriteLiteral(" <img"); 3256 3257 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/mastercard.png\""); 3258 3259 WriteLiteral(" width=\"51\""); 3260 3261 WriteLiteral(" height=\"32\""); 3262 3263 WriteLiteral(" alt=\"Mastercard\""); 3264 3265 WriteLiteral(">\r\n"); 3266 3267 WriteLiteral(" <img"); 3268 3269 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/jcb.png\""); 3270 3271 WriteLiteral(" width=\"51\""); 3272 3273 WriteLiteral(" height=\"32\""); 3274 3275 WriteLiteral(" alt=\"JCB\""); 3276 3277 WriteLiteral(">\r\n"); 3278 3279 WriteLiteral(" <img"); 3280 3281 WriteLiteral(" src=\"/Files/Templates/Designs/RO/images/maestro.png\""); 3282 3283 WriteLiteral(" width=\"52\""); 3284 3285 WriteLiteral(" height=\"32\""); 3286 3287 WriteLiteral(" alt=\"Maestro\""); 3288 3289 WriteLiteral(">\r\n"); 3290 3291 3292 #line 963 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3293 } 3294 3295 3296 #line default 3297 #line hidden 3298 WriteLiteral(" </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <div"); 3299 3300 WriteLiteral(" class=\"container-fluid bg-grey information\""); 3301 3302 WriteLiteral(">\r\n <div"); 3303 3304 WriteLiteral(" class=\"row\""); 3305 3306 WriteLiteral(">\r\n <div"); 3307 3308 WriteLiteral(" class=\"col-xs-12 content\""); 3309 3310 WriteLiteral(">"); 3311 3312 3313 #line 971 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3314 Write(GetString("Item.Area.Information")); 3315 3316 3317 #line default 3318 #line hidden 3319 WriteLiteral("</div>\r\n </div>\r\n </div>\r\n </footer>\r\n\r\n"); 3320 3321 WriteLiteral(" "); 3322 3323 3324 #line 976 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3325 Write(SnippetStart("SocialMedia")); 3326 3327 3328 #line default 3329 #line hidden 3330 WriteLiteral("\r\n\r\n"); 3331 3332 3333 #line 978 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3334 3335 3336 #line default 3337 #line hidden 3338 3339 #line 978 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3340 if (GetValue("Item.Area.Facebook") != "") 3341 { 3342 3343 3344 #line default 3345 #line hidden 3346 WriteLiteral(" <a"); 3347 3348 WriteAttribute("href", Tuple.Create(" href=\'", 52421), Tuple.Create("\'", 52460) 3349 3350 #line 980 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3351 , Tuple.Create(Tuple.Create("", 52428), Tuple.Create<System.Object, System.Int32>(GetString("Item.Area.Facebook") 3352 3353 #line default 3354 #line hidden 3355 , 52428), false) 3356 ); 3357 3358 WriteLiteral(" target=\"_blank\""); 3359 3360 WriteLiteral(" class=\"nounderline\""); 3361 3362 WriteLiteral(">\r\n <div"); 3363 3364 WriteLiteral(" class=\"fa fa-facebook fa-3\""); 3365 3366 WriteLiteral(" aria-hidden=\"true\""); 3367 3368 WriteLiteral("></div>\r\n </a>\r\n"); 3369 3370 3371 #line 983 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3372 } 3373 3374 3375 #line default 3376 #line hidden 3377 WriteLiteral(" "); 3378 3379 3380 #line 984 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3381 if (GetValue("Item.Area.Pinterest") != "") 3382 { 3383 3384 3385 #line default 3386 #line hidden 3387 WriteLiteral(" <a"); 3388 3389 WriteAttribute("href", Tuple.Create(" href=\'", 52659), Tuple.Create("\'", 52699) 3390 3391 #line 986 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3392 , Tuple.Create(Tuple.Create("", 52666), Tuple.Create<System.Object, System.Int32>(GetString("Item.Area.Pinterest") 3393 3394 #line default 3395 #line hidden 3396 , 52666), false) 3397 ); 3398 3399 WriteLiteral(" target=\"_blank\""); 3400 3401 WriteLiteral(" class=\"nounderline\""); 3402 3403 WriteLiteral(">\r\n <div"); 3404 3405 WriteLiteral(" class=\"fa fa-pinterest\""); 3406 3407 WriteLiteral(" aria-hidden=\"true\""); 3408 3409 WriteLiteral("></div>\r\n </a>\r\n"); 3410 3411 3412 #line 989 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3413 } 3414 3415 3416 #line default 3417 #line hidden 3418 WriteLiteral(" "); 3419 3420 3421 #line 990 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3422 if (GetValue("Item.Area.LinkedIn") != "") 3423 { 3424 3425 3426 #line default 3427 #line hidden 3428 WriteLiteral(" <a"); 3429 3430 WriteAttribute("href", Tuple.Create(" href=\'", 52893), Tuple.Create("\'", 52932) 3431 3432 #line 992 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3433 , Tuple.Create(Tuple.Create("", 52900), Tuple.Create<System.Object, System.Int32>(GetString("Item.Area.LinkedIn") 3434 3435 #line default 3436 #line hidden 3437 , 52900), false) 3438 ); 3439 3440 WriteLiteral(" target=\"_blank\""); 3441 3442 WriteLiteral(" class=\"nounderline\""); 3443 3444 WriteLiteral(">\r\n <div"); 3445 3446 WriteLiteral(" class=\"fa fa-linkedin\""); 3447 3448 WriteLiteral(" aria-hidden=\"true\""); 3449 3450 WriteLiteral("></div>\r\n </a>\r\n"); 3451 3452 3453 #line 995 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3454 } 3455 3456 3457 #line default 3458 #line hidden 3459 WriteLiteral(" "); 3460 3461 3462 #line 996 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3463 if (GetValue("Item.Area.Instagram") != "") 3464 { 3465 3466 3467 #line default 3468 #line hidden 3469 WriteLiteral(" <a"); 3470 3471 WriteAttribute("href", Tuple.Create(" href=\'", 53126), Tuple.Create("\'", 53166) 3472 3473 #line 998 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3474 , Tuple.Create(Tuple.Create("", 53133), Tuple.Create<System.Object, System.Int32>(GetString("Item.Area.Instagram") 3475 3476 #line default 3477 #line hidden 3478 , 53133), false) 3479 ); 3480 3481 WriteLiteral(" target=\"_blank\""); 3482 3483 WriteLiteral(" class=\"nounderline\""); 3484 3485 WriteLiteral(">\r\n <div"); 3486 3487 WriteLiteral(" class=\"fa fa-instagram\""); 3488 3489 WriteLiteral(" aria-hidden=\"true\""); 3490 3491 WriteLiteral("></div>\r\n </a>\r\n"); 3492 3493 3494 #line 1001 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3495 } 3496 3497 3498 #line default 3499 #line hidden 3500 WriteLiteral(" "); 3501 3502 3503 #line 1002 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3504 Write(SnippetEnd("SocialMedia")); 3505 3506 3507 #line default 3508 #line hidden 3509 WriteLiteral("\r\n\r\n \r\n "); 3510 3511 WriteLiteral("\r\n <script"); 3512 3513 WriteAttribute("src", Tuple.Create(" src=\"", 53664), Tuple.Create("\"", 53725) 3514 , Tuple.Create(Tuple.Create("", 53670), Tuple.Create("/Files/Templates/Designs/RO/js/bundle.js", 53670), true) 3515 3516 #line 1009 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3517 , Tuple.Create(Tuple.Create("", 53710), Tuple.Create<System.Object, System.Int32>(assetVersion 3518 3519 #line default 3520 #line hidden 3521 , 53710), false) 3522 ); 3523 3524 WriteLiteral("></script>\r\n\r\n <script>\r\n var $container = $(\'.grid\').imagesLoaded(func" + 3525 "tion () {\r\n // init Packery after all images have loaded\r\n " + 3526 " $container.packery({\r\n itemSelector: \'div[class*=\"col-\"\',\r\n " + 3527 " percentPosition: true\r\n });\r\n });\r\n\r\n functi" + 3528 "on hideTop() {\r\n var top = document.getElementById(\'top\');\r\n\r\n " + 3529 " if (top.style.display == \"none\") {\r\n top.style.display = \"bl" + 3530 "ock\";\r\n }\r\n else {\r\n top.style.display = \"n" + 3531 "one\";\r\n }\r\n }\r\n\r\n function openSearchMobile() {\r\n " + 3532 " var searchbar = document.getElementById(\'searchbarmobile\');\r\n v" + 3533 "ar navbar = document.getElementById(\'navbar-collapse\');\r\n var overlay" + 3534 " = document.getElementById(\'overlay\');\r\n\r\n if (searchbar.style.displa" + 3535 "y == \"none\") {\r\n searchbar.style.display = \"block\";\r\n " + 3536 " setTimeout(function () {\r\n searchbar.style.opacity = 1;\r\n" + 3537 " }, 0);\r\n overlay.style.display = \"block\";\r\n " + 3538 " }\r\n else {\r\n searchbar.style.display = \"none\";\r\n" + 3539 " navbar.style.top = \"0%\";\r\n overlay.style.display " + 3540 "= \"none\";\r\n }\r\n }\r\n\r\n function closeOverlay() {\r\n " + 3541 " var searchbar = document.getElementById(\'searchbarmobile\');\r\n v" + 3542 "ar navbar = document.getElementById(\'navbar-collapse\');\r\n var overlay" + 3543 " = document.getElementById(\'overlay\');\r\n\r\n searchbar.style.display = " + 3544 "\"none\";\r\n searchbar.style.opacity = 0;\r\n overlay.style.dis" + 3545 "play = \"none\";\r\n }\r\n\r\n function setOptInCookie(optInLevel) {\r\n " + 3546 " var xmlhttp;\r\n if (window.XMLHttpRequest) {\r\n " + 3547 "xmlhttp = new XMLHttpRequest();\r\n }\r\n else {\r\n " + 3548 " xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n }\r\n " + 3549 " xmlhttp.onreadystatechange = function () {\r\n if (xmlhttp.readyS" + 3550 "tate == 4 && xmlhttp.status == 200) {\r\n var div = document.ge" + 3551 "tElementById(\"cookieWarningDiv\");\r\n div.parentNode.removeChil" + 3552 "d(div);\r\n return false;\r\n }\r\n }\r\n " + 3553 " xmlhttp.open(\"GET\", \"/admin/public/CookieOptInLevelConfig.aspx?cmd=Set" + 3554 "CookieOptInLevel&OptInLevel=\" + optInLevel, true);\r\n xmlhttp.send();\r" + 3555 "\n return false;\r\n }\r\n\r\n var searchbutton = document.get" + 3556 "ElementById(\'searchbuttontrigger\');\r\n var searchbar = document.getElement" + 3557 "ById(\'search\');\r\n var textsearch = document.getElementById(\'textsearch\');" + 3558 "\r\n var topContainer = document.getElementById(\'top\');\r\n var check " + 3559 "= 0;\r\n\r\n function triggerSearch() {\r\n \r\n if (search" + 3560 "bar.style.display == \"none\") {\r\n searchbar.style.display = \"block" + 3561 "\";\r\n setTimeout(function () {\r\n searchbar.styl" + 3562 "e.opacity = 1;\r\n searchbar.style.transition = \"all 0.5s\";\r\n " + 3563 " searchbutton.style.transition = \"all 0.5s\"\r\n }," + 3564 " 0);\r\n searchbutton.style.display = \"none\";\r\n chec" + 3565 "k = 1;\r\n topContainer.classList.add(\"active\");\r\n }\r\n " + 3566 " }\r\n\r\n $(document).click(function (e) {\r\n if (check == 0 " + 3567 "&& e.target != textsearch) {\r\n topContainer.classList.remove(\"act" + 3568 "ive\");\r\n searchbar.style.display = \"none\";\r\n setTi" + 3569 "meout(function () {\r\n searchbutton.style.opacity = 1;\r\n " + 3570 " searchbutton.style.transition = \"all 0.5s\";\r\n s" + 3571 "earchbar.style.transition = \"all 0.5s\"\r\n }, 0);\r\n " + 3572 "searchbutton.style.display = \"inline-block\";\r\n \r\n }\r\n " + 3573 " else {\r\n check = 0;\r\n }\r\n });\r\n\r\n " + 3574 " function submitSearch() {\r\n document.EcomSearch.submit();\r\n " + 3575 " }\r\n\r\n function submitSearchMobile() {\r\n document.EcomSearch" + 3576 "Mobile.submit();\r\n }\r\n\r\n function switchLanguage(caller) {\r\n " + 3577 " var selectLang = document.getElementById($(caller).attr(\'id\'));\r\n " + 3578 " var ID = selectLang.options[selectLang.selectedIndex].value;\r\n\r\n /" + 3579 "/ empty the cart before we go to new language layer\r\n var url = \'<!--" + 3580 "$$Global:Pageview.Url.Raw.JSEncoded()-->\';\r\n // $.post(url, {\r\n // " + 3581 " \'CartCmd\': \'emptycart\'\r\n // })\r\n // .done(function () {\r\n " + 3582 " //\t\t\r\n // })\r\n \r\n alturl = \"/Default.aspx?ID=\" + ID;\r\n"); 3583 3584 3585 #line 1140 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3586 3587 3588 #line default 3589 #line hidden 3590 3591 #line 1140 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3592 if (!string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.GetString("GroupID"))){ 3593 3594 3595 #line default 3596 #line hidden 3597 WriteLiteral(" \t\t\t\t"); 3598 3599 WriteLiteral("alturl = alturl + \"&GroupID="); 3600 3601 3602 #line 1141 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3603 Write(Dynamicweb.Context.Current.Request.GetString("GroupID")); 3604 3605 3606 #line default 3607 #line hidden 3608 WriteLiteral("\";"); 3609 3610 WriteLiteral("\r\n"); 3611 3612 3613 #line 1142 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3614 } 3615 3616 3617 #line default 3618 #line hidden 3619 WriteLiteral(" "); 3620 3621 3622 #line 1143 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3623 if (!string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.GetString("ProductId"))){ 3624 3625 3626 #line default 3627 #line hidden 3628 WriteLiteral(" \t\t\t\t"); 3629 3630 WriteLiteral("alturl = alturl + \"&ProductID="); 3631 3632 3633 #line 1144 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3634 Write(Dynamicweb.Context.Current.Request.GetString("ProductID")); 3635 3636 3637 #line default 3638 #line hidden 3639 WriteLiteral("\";"); 3640 3641 WriteLiteral("\r\n"); 3642 3643 3644 #line 1145 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3645 } 3646 3647 3648 #line default 3649 #line hidden 3650 WriteLiteral(@" 3651 window.location.href = alturl; 3652 } 3653 3654 function switchCurrencie(caller) { 3655 var selectCurn = document.getElementById($(caller).attr('id')); 3656 var CC = selectCurn.options[selectCurn.selectedIndex].value; 3657 alturl="""); 3658 3659 3660 #line 1153 "D:\dynamicweb.net\Solutions\FlexMedia\rocopenhagen.cloud.dynamicweb-cms.com\Files\Templates\Designs\RO\_parsed\InstagramImport.parsed.cshtml" 3661 Write(GetGlobalValue("Global:Pageview.Url.Raw")); 3662 3663 3664 #line default 3665 #line hidden 3666 WriteLiteral(@"""; 3667 if(CC==""DKK""){ 3668 // alturl = alturl + ""&CountryCode=DK&CurrencyCode=DKK""; 3669 alturl = alturl + ""&CurrencyCode=DKK""; 3670 }else if(CC==""GBP""){ 3671 // alturl = alturl + ""&CountryCode=GB&CurrencyCode=GBP""; 3672 alturl = alturl + ""&CurrencyCode=GBP""; 3673 }else{ 3674 // alturl = alturl + ""&CountryCode=DE&CurrencyCode=EUR""; 3675 alturl = alturl + ""&CurrencyCode=EUR""; 3676 } 3677 window.location.href = alturl; 3678 } 3679 3680 3681 function GoToBasket() { 3682 var url = document.getElementsByName(""DwAreaCartPageID"")[0].value; 3683 window.location.href = ""/Default.aspx?ID="" + url; 3684 } 3685 </script> 3686 <!--$$Snippet(AdditionalJavascript)--> 3687 3688 3689 3690 3691 </body> 3692 </html> 3693 3694 "); 3695 3696 } 3697 } 3698 } 3699

1 @using System.Web; 2 @using Dynamicweb.Environment; 3 4 @{ 5 string assetVersion = "?v2.1"; 6 string SearchQuery = HttpContext.Current.Request["Search"]; 7 if (string.IsNullOrEmpty(SearchQuery)) 8 { 9 SearchQuery = ""; 10 } 11 12 string SearchQueryMobile = HttpContext.Current.Request["Search"]; 13 if (string.IsNullOrEmpty(SearchQueryMobile)) 14 { 15 SearchQueryMobile = ""; 16 } 17 18 var GAtracking = GetString("Item.Area.Google_Analytics"); 19 20 var GTM = GetString("Item.Area.GTM"); 21 22 var Smartlook = GetString("Item.Area.Smartlook"); 23 24 var mailchimpID = GetString("Item.Area.MailChimp_ID"); 25 26 var remarketingTag = GetString("Item.Area.Remarketing_Tag"); 27 28 } 29 @SnippetStart("CurrencySelect") 30 <select id="SselectCurrencie" class="form-control" onchange="switchCurrencie($(this))"> 31 @foreach (var curn in GetLoop("Currencies")) 32 { 33 if (curn.GetBoolean("Currency.IsCurrent")) 34 { 35 <option value='@curn.GetString("Currency.Code")' selected="">@curn.GetString("Currency.Name")</option> 36 } 37 else 38 { 39 <option value='@curn.GetString("Currency.Code")'>@curn.GetString("Currency.Name")</option> 40 } 41 } 42 </select> 43 @SnippetEnd("CurrencySelect") 44 45 46 <!DOCTYPE html> 47 48 @if(GetGlobalValue("Global:Pageview.Url.Raw").Contains("CountryCode") || GetGlobalValue("Global:Pageview.Url.Raw").Contains("CurrencyCode")){ 49 <script> 50 theUrl="@GetGlobalValue("Global:Pageview.Url.Raw")"; 51 if(theUrl.indexOf("CurrencyCode")>=1){theUrl=theUrl.substring(0,theUrl.indexOf("CurrencyCode")-1)} 52 if(theUrl.indexOf("CountryCode")>=1){theUrl=theUrl.substring(0,theUrl.indexOf("CountryCode")-1)} 53 window.location.href = theUrl; 54 </script> 55 } 56 57 <html> 58 <head> 59 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 60 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2.5"> 61 <!-- Meta tag for Bing --> 62 <meta name="msvalidate.01" content="B8AB0F13F45014296D966BDC9DAD7457"> 63 64 <title>@GetValue("Title")</title> 65 @GetValue("MetaTags") 66 @GetValue("CopyRightNotice") 67 68 69 70 @if(GetGlobalValue("Global:Pageview.Url.Raw").Contains("productid") || GetInteger("DwPageID")== 4919 || GetInteger("DwPageID")== 6104 ){ 71 72 73 <!--@Snippet(MetaDescription)--> 74 75 }else{ 76 77 <!-- not set meta @GetGlobalValue("Global:Pageview.Url.Raw") --> 78 79 80 <title></title> 81 82 83 84 85 86 } 87 88 89 90 @*<link rel="stylesheet" href="/Files/Templates/Designs/RO/css/bootstrap.min.css"> 91 <link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css"> 92 <link rel="stylesheet" href="/Files/Templates/Designs/RO/css/ro_style.min.css">*@ 93 @* <link href="/Files/Templates/Designs/RO/css/bundle.min.css@(assetVersion)" rel="stylesheet"> *@ 94 <link href="/Files/Templates/Designs/RO/css/newbundle.css@(assetVersion)" rel="stylesheet"> 95 <link href="/Files/Templates/Designs/RO/css/custom.css@(assetVersion)" rel="stylesheet"> 96 <link href="/Files/Templates/Designs/RO/css/flex.css@(assetVersion)" rel="stylesheet"> 97 <link rel="stylesheet" href="/Files/Templates/Designs/RO/css/f-style.css@(assetVersion)"> 98 <link rel="icon" href="/Files/Templates/Designs/RO/favicon.ico"> 99 100 101 102 <link rel="alternate" href="https://rocopenhagen.dk" hreflang="da-DK"> 103 <link rel="alternate" href="https://rocopenhagen.com" hreflang="en-US"> 104 <!--GTM Data Layer--> 105 <script> 106 dataLayer = []; 107 </script> 108 109 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GTM"))){ 110 <!-- GTM --> 111 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 112 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 113 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 114 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 115 })(window,document,'script','dataLayer','@GTM');</script> 116 <!-- End GTM --> 117 } 118 119 120 121 <script src="https://use.typekit.net/tjl4wdh.js"></script> 122 <script>try { Typekit.load({ async: true }); } catch (e) { }</script> 123 @*<script src="https://code.jquery.com/jquery.min.js"></script>*@ 124 <script src="/Files/Templates/Designs/RO/js/jquery.min.js@(assetVersion)"></script> 125 <!-- Facebook Pixel Code --> 126 <script> 127 !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? 128 n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; 129 n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; 130 t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, 131 document,'script','https://connect.facebook.net/en_US/fbevents.js'); 132 fbq('init', '145461159424985' 133 ); 134 fbq('track', 'PageView'); 135 </script> 136 <noscript> 137 <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=145461159424985&ev=PageView&noscript=1"> 138 </noscript> 139 <!-- DO NOT MODIFY --> 140 <!-- End Facebook Pixel Code --> 141 142 143 <!-- Google Code for Remarketing Tag --> 144 <!-------------------------------------------------- 145 Remarketing tags may not be associated with personally identifiable 146 information or placed on pages related to sensitive categories. See more 147 information and instructions on how to setup the tag on: 148 http://google.com/ads/remarketingsetup 149 150 ---------------------------------------------------> 151 <script type="text/javascript"> 152 /* <![CDATA[ */ 153 var google_conversion_id = @remarketingTag; 154 var google_custom_params = window.google_tag_params; 155 var google_remarketing_only = true; 156 /* ]]> */ 157 </script> 158 <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> 159 </script> 160 <noscript> 161 <div style="display:inline;"> 162 <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/831067084/?guid=ON&amp;script=0"> 163 </div> 164 </noscript> 165 166 @* 167 <!-- script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/_embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script --> 168 <!-- script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us16.list-manage.com","uuid":"4dd87e9d150463df79cfbb660","lid":"@mailchimpID"}) })</script --> 169 170 <!--script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/4dd87e9d150463df79cfbb660/acea8145de4d14207c3c5fcc0.js");</script --> 171 *@ 172 173 <style> 174 *::-webkit-input-placeholder { 175 opacity: 1; 176 } 177 *:-moz-placeholder { 178 /* FF 4-18 */ 179 opacity: 1; 180 } 181 *::-moz-placeholder { 182 /* FF 19+ */ 183 opacity: 1; 184 } 185 *:-ms-input-placeholder { 186 /* IE 10+ */ 187 opacity: 1; 188 } 189 </style> 190 191 @*if(!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics"))&&string.IsNullOrWhiteSpace(GetString("Item.Area.GTM"))){*@ 192 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics"))){ 193 <script> 194 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 195 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 196 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 197 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 198 199 ga('create', '@GAtracking', 'auto'); 200 ga('send', 'pageview'); 201 ga('require', 'ecommerce'); 202 </script> 203 } 204 205 @if(!string.IsNullOrWhiteSpace(Smartlook)){ 206 <!-- smartlook --> 207 <script type="text/javascript"> 208 window.smartlook||(function(d) { 209 var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0]; 210 var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript'; 211 c.charset='utf-8';c.src='https://rec.smartlook.com/recorder.js';h.appendChild(c); 212 })(document); 213 smartlook('init', '@Smartlook'); 214 </script> 215 <!-- End smartlook --> 216 } 217 218 219 @GetValue("Stylesheets") 220 @GetValue("Javascripts") 221 </head> 222 <body> 223 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GTM"))){ 224 <!-- GTM (noscript) --> 225 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=@(GTM)" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 226 <!-- End GTM (noscript) --> 227 } 228 229 230 231 @{ 232 var ID = GetString("Item.Area.Produktside").Replace("Default.aspx?ID=", ""); 233 } 234 <form name="EcomSearchMobile" method="get" action='@GetString("Item.Area.Produktside")'> 235 <div id="searchbarmobile" style="display: none;"> 236 <input type="hidden" name="ID" value="@ID"> 237 <input type="text" name="Search" placeholder="Search" id="mobiletextsearch" value="@(SearchQueryMobile)"> 238 <button type="submit" onclick="submitSearchMobile()" class="button" id="searchbutton"> 239 <span class="glyphicon glyphicon-search" aria-hidden="true" id="searchmobile"></span> 240 </button> 241 </div> 242 </form> 243 <div id="overlay" onclick="closeOverlay()"></div> 244 <header id="header"> 245 <div class="container-fluid paddingtop"> 246 <div class="row"> 247 <div class="col-xs-12"> 248 <div id="top" style="display: block;"> 249 @{ 250 int numLang = 0; 251 foreach (var language in GetLoop("Languages")) { 252 numLang++; 253 } 254 } 255 256 <div class="language"> 257 @if (numLang > 1) { 258 <div class="languageDiv"> 259 <select id="selectLanguage" onchange="switchLanguage($(this))"> 260 @foreach (var language in GetLoop("Languages")) 261 { 262 if (language.GetBoolean("IsCurrent")) 263 { 264 <option value='@language.GetString("PageID")' selected="">@language.GetString("Name")</option> 265 } 266 else 267 { 268 <option value='@language.GetString("PageID")'>@language.GetString("Name")</option> 269 } 270 } 271 </select> 272 <i class="fa fa-caret-down" aria-hidden="true"></i> 273 </div> 274 } 275 276 <div class="currencieDiv"> 277 <select id="selectCurrencie" onchange="switchCurrencie($(this))"> 278 @foreach (var curn in GetLoop("Currencies")) 279 { 280 if (curn.GetBoolean("Currency.IsCurrent")) 281 { 282 <option value='@curn.GetString("Currency.Code")' selected="">@curn.GetString("Currency.Name")</option> 283 } 284 else 285 { 286 <option value='@curn.GetString("Currency.Code")'>@curn.GetString("Currency.Name")</option> 287 } 288 } 289 </select> 290 <i class="fa fa-caret-down" aria-hidden="true"></i> 291 </div> 292 293 294 @RenderSnippet("SocialMedia") 295 </div> 296 297 298 299 300 <div> 301 <!--ul class="dwnavigation" id="topMenulist" data-settings="template:Navbar.xslt;endlevel:1;expandmode:all;parentid:7091;"></ul--> 302 @GetValue("DwNavigation(topMenulist)") 303 </div> 304 305 <div class="functions"> 306 <form name="EcomSearch" method="get" action='@GetString("Item.Area.Produktside")'> 307 <div id="search" class="searchbar" style="display: none;"> 308 <input type="hidden" name="ID" value="@ID"> 309 <button type="submit" onclick="submitSearch()"> 310 <span style="display: inline;font-size: 21px;color: black; vertical-align: middle;" class="glyphicon glyphicon-search"></span> 311 </button> 312 <input type="text" name="Search" placeholder="@Translate(" search","sã¸g")"="" id="textsearch" value="@(SearchQuery)"> 313 <!--<hr />--> 314 </div> 315 </form> 316 <button id="searchbuttontrigger" onclick="triggerSearch()" type="button"> 317 <span style="display: inline;font-size: 24px;color: black; vertical-align: middle;" class="glyphicon glyphicon-search"></span> 318 </button> 319 @if (GetGlobalValue("Global:Area.Lang") == "da") 320 { 321 <button class="clickable" data-toggle="modal" data-target="#modal-slide-down-basket" data-backdrop="true"> 322 <img src="/Files/Templates/Designs/RO/images/basket.png" alt="kurv">@RenderParagraphContent(158) 323 </button> 324 } 325 else 326 { 327 <button class="clickable" data-toggle="modal" data-target="#modal-slide-down-basket" data-backdrop="true"> 328 <img src="/Files/Templates/Designs/RO/images/basket.png" alt="basket">@RenderParagraphContent(194) 329 </button> 330 } 331 <input type="hidden" name="DwAreaCartPageID" value='@GetInteger("DwAreaCartPageID")'> 332 333 <div class="modal down fade" id="modal-slide-down-basket" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2"> 334 <div class="modal-dialog" role="document"> 335 <div class="modal-content"> 336 337 <div class="modal-header container-fluid"> 338 <div class="row"> 339 <div class="col-xs-12"> 340 <h3 class="modal-title" id="myModalLabel2">Din Kurv</h3> 341 <button type="button" class="close" data-dismiss="modal"><img src='/Files/Templates/Designs/RO/images/close2.png' alt="close luk"></button> 342 </div> 343 </div> 344 <hr> 345 </div> 346 347 <div class="modal-body container-fluid"> 348 <div class="row"> 349 <div class="col-xs-12 col-sm-7"> 350 <h3>@Translate("summary","Summary")</h3> 351 <hr> 352 @foreach (LoopItem orderline in GetLoop("OrderLines")) 353 { 354 string productNumber = orderline.GetString("Ecom:Product.Number"); 355 string productsize = orderline.GetString("Ecom:Product:Field.productsize.Value"); 356 string productImage = ""; 357 358 if (orderline.GetString("Ecom:Order:OrderLine.Type") == "1") 359 { 360 productNumber = "1"; 361 } 362 363 var filePath = "/Files/Images/RO/Produkter/" + productNumber + "_packshot.png"; 364 365 if (productsize == "small") 366 { 367 productImage = "/Admin/Public/getImage.ashx?Image=/Files/Images/RO/Produkter/" + productNumber + "_packshot.png&format=png&width=240&height=180&crop=0"; 368 } 369 else 370 { 371 productImage = "/Admin/Public/getImage.ashx?Image=/Files/Images/RO/Produkter/" + productNumber + "_packshot.png&format=png&width=240&height=180&crop=0"; 372 } 373 374 375 376 string image = filePath; 377 378 if(!System.IO.File.Exists(image)){ 379 string image2 = "" + filePath; 380 string imageArea = image2.Remove(image2.Length-3) + GetGlobalValue("Global:Area.Name") + image2.Substring (image2.Length-4,4); 381 var imageAreaPath = System.Web.HttpContext.Current.Server.MapPath("~/" + @imageArea); 382 var imgareapack = System.IO.File.Exists(imageAreaPath); 383 if(imgareapack){ 384 image = imageArea; 385 } 386 } 387 productImage = "/Admin/Public/getImage.ashx?Image=" + image + "&format=png&width=240&height=240&crop=5"; 388 389 390 391 string material = orderline.GetString("Ecom:Product:Field.material.Value"); 392 string translatedmaterial = Translate(material, material); 393 string karat = orderline.GetString("Ecom:Product:Field.karat.Value") + "kt"; 394 395 string price = orderline.GetString("Ecom:Order:OrderLine.Price.PriceWithVAT"); 396 397 string meta = ""; 398 var m = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(filePath); 399 if(m != null) 400 { 401 var lang = GetGlobalValue("Global:Area.Lang"); 402 if (lang == "da") 403 { 404 meta = m.GetValue("Alt"); 405 } 406 else if (lang == "en") 407 { 408 meta = m.GetValue("AltEng"); 409 } 410 } 411 412 <div class="row"> 413 <div class="col-xs-12 col-sm-4"> 414 <img class="img-responsive img-top" src="@productImage" alt="produktbillede productimage"> 415 </div> 416 <div class="col-xs-12 col-sm-8"> 417 <div class="orderlineinfo"> 418 @if (orderline.GetString("Ecom:Order:OrderLine.Type") != "1" && orderline.GetString("Ecom:Order:OrderLine.Type") != "6") 419 { 420 <h2>@orderline.GetString("Ecom:Order:OrderLine.ProductName")</h2> 421 if (orderline.GetString("Ecom:Product.Type") != "3"){ 422 <p>@karat @translatedmaterial</p> 423 } 424 <p>@orderline.GetString("Ecom:Order:OrderLine.ProductVariantText")</p> 425 <p>@Translate("quantity", "Amount"): @orderline.GetValue("Ecom:Order:OrderLine.Quantity") <span class="price">@GetString("Ecom:Order.Currency.Code") @price</span></p> 426 } 427 428 @if (orderline.GetString("Ecom:Order:OrderLine.Type") == "6") 429 { 430 <h2>@orderline.GetString("Ecom:Order:OrderLine.ProductName")</h2> 431 <p>@Translate("quantity", "Amount"): @orderline.GetValue("Ecom:Order:OrderLine.Quantity") <span class="price">@GetString("Ecom:Order.Currency.Code") @price</span></p> 432 } 433 434 @if (orderline.GetString("Ecom:Order:OrderLine.Type") == "1") 435 { 436 <h2>@orderline.GetString("Ecom:Order:OrderLine.ProductName") <i><small>(@Translate("giftcardredeem", "Redeem"))</small></i></h2> 437 <p><span class="price">@GetString("Ecom:Order.Currency.Code") @price</span></p> 438 } 439 </div> 440 </div> 441 </div> 442 443 <hr> 444 } 445 </div> 446 <div class="col-xs-12 col-sm-offset-1 col-sm-4"> 447 <h3>@Translate("total", "Total")</h3> 448 <hr> 449 @{ 450 string shippingname = GetString("Ecom:Order.ShippingMethod"); 451 string shippingprice = GetString("Ecom:Order.ShippingFee.Price"); 452 453 string totalDiscount = GetString("Ecom:Order.OrderLines.TotalDiscount"); 454 bool activeDiscount = false; 455 if (totalDiscount.Contains("-") || totalDiscount.Contains("(")) 456 { 457 activeDiscount = true; 458 } 459 460 if (activeDiscount) 461 { 462 <p>@Translate("discount", "Discount")</p> 463 } 464 } 465 466 <div class="row"> 467 <div class="col-xs-6"> 468 <p>@Translate("subtotal", "Sub total")</p> 469 <p>@Translate("vat", "VAT")</p> 470 @if (activeDiscount) 471 { 472 <p>@Translate("discount", "Discount")</p> 473 } 474 <p>@shippingname</p> 475 </div> 476 <div class="col-xs-6 text-right"> 477 478 @{ 479 var priceWithoutDiscountAndShipping = GetDouble("Ecom:Order.Price.PriceWithoutVAT") - GetDouble("Ecom:Order.ShippingFee.Price"); 480 string newprice = priceWithoutDiscountAndShipping.ToString("N"); 481 } 482 483 <p>@GetString("Ecom:Order.Currency.Code") @*<span id="combinedSubPrice"></span>*@ @newprice</p> 484 <p id="vattype">@GetString("Ecom:Order.Currency.Code") @GetString("Ecom:Order.Price.VAT")</p> 485 @if (!String.IsNullOrEmpty(GetString("Ecom:Product.Discount.Price"))) 486 { 487 <p>@GetString("Ecom:Order.Currency.Code") @GetString("Ecom:Product.Discount.Price.Price")</p> 488 } 489 @if (activeDiscount) 490 { 491 <p>@GetString("Ecom:Order.Currency.Code") -@GetString("Ecom:Order.OrderLines.TotalDiscount").Replace("€", "").Replace("(", "").Replace("kr. ", "").Replace(")", "").Replace("-", "")</p> 492 } 493 <p>@GetString("Ecom:Order.Currency.Code") @shippingprice</p> 494 </div> 495 </div> 496 <hr> 497 <div class="row"> 498 <div class="col-xs-6"> 499 <p class="price">Total</p> 500 </div> 501 <div class="col-xs-6 text-right"> 502 <p class="price">@GetString("Ecom:Order.Currency.Code") @GetString("Ecom:Order.OrderLines.TotalPriceWithoutSymbol")</p> 503 </div> 504 <hr> 505 <button style="width: 100%;" class="btn" onclick="GoToBasket()">@Translate("basketcheckout", "Basket / Checkout")</button> 506 </div> 507 </div> 508 </div> 509 </div> 510 </div><!-- modal-content --> 511 </div><!-- modal-dialog --> 512 </div><!-- modal --> 513 514 </div> 515 516 </div> 517 <nav class="navbar navbar-default"> 518 <div class="container"> 519 <div class="navbar-header"> 520 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false" onclick="hideTop()"> 521 <span class="sr-only"></span> 522 <span class="icon-bar"></span> 523 <span class="icon-bar"></span> 524 <span class="icon-bar"></span> 525 </button> 526 </div> 527 <div class="collapse navbar-collapse" id="navbar-collapse"> 528 <button type="button" id="searchbuttonmobile" onclick="openSearchMobile()"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button> 529 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false" onclick="hideTop()"> 530 <span class="sr-only"></span> 531 <span class="closemobile">&#10005;</span> 532 </button> 533 <div class="logo" style="display: none;"> 534 <img src="/Files/Templates/Designs/RO/images/ro_logo.png" class="img-responsive" alt="ro logo"> 535 </div> 536 @GetValue("DwNavigation(topnavigation)") 537 538 @GetValue("DwNavigation(topMenulistmobile)") 539 540 <div class="language mobile text-center"> 541 @if (numLang > 1) { 542 <div class="languageDiv visible-xs" style="margin-top: 2em;display: inline-block !important; float: initial;"> 543 <select id="selectLanguageMobile" onchange="switchLanguage($(this))"> 544 @foreach (var language in GetLoop("Languages")) 545 { 546 if (language.GetBoolean("IsCurrent")) 547 { 548 <option value='@language.GetString("PageID")' selected="">@language.GetString("Name")</option> 549 } 550 else 551 { 552 <option value='@language.GetString("PageID")'>@language.GetString("Name")</option> 553 } 554 } 555 </select> 556 <i class="fa fa-caret-down" aria-hidden="true" style="position: relative; top: -21px; left: 77px; float: left"></i> 557 </div> 558 } 559 560 <div class="currencieDiv"> 561 <select id="selectCurrencie" onchange="switchCurrencie($(this))"> 562 @foreach (var curn in GetLoop("Currencies")) 563 { 564 if (curn.GetBoolean("Currency.IsCurrent")) 565 { 566 <option value='@curn.GetString("Currency.Code")' selected="">@curn.GetString("Currency.Name")</option> 567 } 568 else 569 { 570 <option value='@curn.GetString("Currency.Code")'>@curn.GetString("Currency.Name")</option> 571 } 572 } 573 </select> 574 <i class="fa fa-caret-down" aria-hidden="true"></i> 575 </div> 576 577 </div> 578 <div class="mobile-social">@RenderSnippet("SocialMedia")</div> 579 </div> 580 </div> 581 </nav> 582 583 @if (GetInteger("DwAreaFirstPageID") == GetInteger("DwPageID")) { 584 <div class="logo on-front"> 585 <a href='Default.aspx?ID=@GetInteger("DwAreaFirstPageID")'> 586 <img src="/Files/Templates/Designs/RO/images/ro_logo.png" class="img-responsive" alt="ro logo"> 587 </a> 588 </div> 589 } 590 591 @if (GetInteger("DwAreaFirstPageID") != GetInteger("DwPageID")) { 592 <div class="logo"> 593 <a href='Default.aspx?ID=@GetInteger("DwAreaFirstPageID")'> 594 <img src="/Files/Templates/Designs/RO/images/ro_logo.png" class="img-responsive" alt="ro logo"> 595 </a> 596 </div> 597 } 598 599 </div> 600 </div> 601 </div> 602 </header> 603 604 <div class="main"> 605 <div class="breadcrumbs-title"> 606 <div class="container-fluid"> 607 608 <div> 609 @if (GetInteger("DwAreaFirstPageID") != GetInteger("DwPageID")) 610 { 611 var productpage = ""; 612 613 if (GetString("DWExtranetAction").Contains("productid")) 614 { 615 productpage = "true"; 616 } 617 618 <ul class="breadcrumb" id="breadcrumb"></ul> 619 620 <script> 621 $(document).ready(function () { 622 var urlNoHost = location.href.split('/').slice(3); 623 624 function capitalizeFirstLetter(string) { 625 return string.charAt(0).toUpperCase() + string.slice(1); 626 } 627 628 function noDash(string) { 629 return string.replace(/\-/g, " ").trim(); 630 } 631 632 function convertSpecialChars(name) { 633 // ae = lille rigtigt ae, &#230; = stort rigtigt AE 634 // return name.replace("ae", "æ").replace("&#230;", "æ").replace("oe", "ø").replace("&#248;", "ø").replace("aa", "Ã¥").replace("&#229;", "Ã¥"); 635 return name.replace("ae", "æ").replace("&#230;", "Æ").replace("oe", "ø").replace("&#248;", "Ø").replace("aa", "å").replace("&#229;", "Å"); 636 } 637 638 function setLiAndA(name,number) { 639 640 var host = location.protocol + '//' + location.host + '/'; 641 var url = location.href; 642 url = url.substring(0, url.indexOf(name)); 643 var link = url + name; 644 var newname = ""; 645 646 if ("@productpage" == "true" && number == urlNoHost.length - 1) 647 { 648 newname = document.getElementById('prodName').innerHTML; 649 } 650 else 651 { 652 newname = noDash(name); 653 } 654 655 if("@GetString("DwAreaName")" == "Dansk") 656 { 657 newname = convertSpecialChars(newname); 658 } 659 660 newname = capitalizeFirstLetter(newname); 661 if (newname.indexOf('?') > -1) 662 { 663 newname = newname.substring(0, newname.indexOf('?')); 664 } 665 666 $('<a />', { 667 href: link, 668 text: newname 669 }).wrap('<li />').parent().appendTo('#breadcrumb'); 670 } 671 672 for (var i in urlNoHost) { 673 if (urlNoHost[i] == 'produkter' || urlNoHost[i] == 'products') { 674 urlNoHost.splice(i, 1); 675 } 676 } 677 678 for (var i in urlNoHost) { 679 setLiAndA(urlNoHost[i],i); 680 } 681 }) 682 </script> 683 } 684 </div> 685 686 687 @if (GetInteger("DwAreaFirstPageID") != GetInteger("DwPageID")) { 688 <h1>@GetString("DwPageName")</h1> 689 } 690 </div></div> 691 692 693 @using Newtonsoft.Json; 694 @using Newtonsoft.Json.Linq; 695 @using System.Net; 696 @using System.IO; 697 @using System.Web; 698 @using System.Collections; 699 @using System.Linq; 700 701 @functions{ 702 703 public class FeedResolver 704 { 705 public Meta meta { get; set; } 706 public Pagination pagination { get; set; } 707 public List<Data> data { get; set; } 708 } 709 710 public class Data 711 { 712 public Images images { get; set; } 713 public Caption caption { get; set; } 714 public double created_time { get; set; } 715 public string id { get; set; } 716 } 717 718 public class Caption 719 { 720 public string text { get; set; } 721 } 722 723 public class Pagination 724 { 725 public string next_url { get; set; } 726 public string next_max_id { get; set; } 727 } 728 729 // Meta class 730 public class Meta 731 { 732 public string code { get; set; } 733 } 734 735 public class Images 736 { 737 public Image low_resolution { get; set; } 738 public Image thumbnail { get; set; } 739 public Image standard_resolution { get; set; } 740 public Image __original { get; set; } 741 } 742 743 public class Image 744 { 745 public string url { get; set; } 746 public string width { get; set; } 747 public string height { get; set; } 748 } 749 750 public string getListJson(string url) 751 { 752 753 HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); 754 request.Method = "GET"; 755 request.Accept = "application/json"; 756 WebResponse response = request.GetResponse(); 757 Stream stream = response.GetResponseStream(); 758 StreamReader reader = new StreamReader(stream); 759 string content = reader.ReadToEnd(); 760 reader.Close(); 761 response.Close(); 762 763 return content; 764 765 } 766 767 public JToken convertToObject(string jsonString) 768 { 769 JToken token = JObject.Parse(jsonString); 770 return token; 771 } 772 773 public static DateTime UnixTimeStampToDateTime(double unixTimeStamp) 774 { 775 // Unix timestamp is seconds past epoch 776 System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc); 777 dtDateTime = dtDateTime.AddSeconds(unixTimeStamp).ToLocalTime(); 778 return dtDateTime; 779 } 780 } 781 782 @{ 783 // Hent resultater som json 784 string ApiUrl = "https://api.instagram.com/v1/users/1966900245/media/recent/?access_token=1966900245.c9c6b68.375ea7bd65914bcfb827ad081c2b4ef2&count=33"; 785 string JsonList = getListJson(ApiUrl); 786 FeedResolver ListOfImages = Newtonsoft.Json.JsonConvert.DeserializeObject<FeedResolver>(JsonList); 787 int Increment = 0; 788 789 790 var parentPage = Dynamicweb.Content.Page.GetPageById(7004); 791 int TopPageForFeedEntries = parentPage.ID; 792 var CurrentFeedEntries = Dynamicweb.Content.Page.GetPagesByParentID(TopPageForFeedEntries, parentPage.AreaID); 793 } 794 795 @foreach (var insta in ListOfImages.data) 796 { 797 798 var CountExistingPage = CurrentFeedEntries.Where(x => 799 x != null && 800 !string.IsNullOrEmpty(x.NavigationTag) && 801 x.NavigationTag.Equals(insta.id) 802 ); 803 804 805 if (!CountExistingPage.Any() ) 806 { 807 808 try 809 { 810 var NewPage = new Dynamicweb.Content.Page(parentPage.AreaID, TopPageForFeedEntries); 811 812 NewPage.ItemType = "InstagramBillede"; 813 NewPage.MenuText = "" + insta.id; 814 NewPage.Hidden = true; 815 NewPage.NavigationTag = insta.id; 816 NewPage.Active = false; 817 NewPage.Save(); 818 819 var item = Dynamicweb.Content.Items.ItemManager.Storage.GetById(NewPage.ItemType, NewPage.ItemId); 820 item["Dato"] = UnixTimeStampToDateTime(insta.created_time); 821 item["Billede"] = insta.images.__original.url; 822 item["BilledeBredde"] = insta.images.__original.width; 823 item["BilledeH_jde"] = insta.images.__original.height; 824 item["Overskrift"] = "" + insta.id; 825 if (insta.caption != null) 826 { 827 item["Tekst"] = insta.caption.text; 828 } 829 830 item.Save(); 831 832 Increment++; 833 } 834 catch (Exception e) 835 { 836 <text>Fejl i oprettelse af side @(Increment) @e<br></text> 837 } 838 } 839 } 840 841 842 <!--@If(Global:CookieOptInLevel == "_All")--> 843 <div class="cookie" id="cookieWarningDiv"> 844 <div class="container-fluid bg-grey"> 845 <div class="row"> 846 <div class="col-xs-12" style="padding: 1.5em;"> 847 <p> 848 @Translate("cookie", "This website uses cookies to remember your preferences, statistics and direct targeting. Read more about our policy <a href='#'>here</a>") 849 <a class="cookie-close pull-right" onclick="return setOptInCookie(2);"> 850 <span style="display:block; float:left; color: #000000; cursor: pointer;">X</span> 851 </a> 852 </p> 853 </div> 854 </div> 855 </div> 856 </div> 857 <!--@EndIf--> 858 </div> 859 860 <footer> 861 <div class="container-fluid bg-grey nav-bottom"> 862 <div class="row"> 863 <div class="col-xs-12 col-sm-12 col-md-6"> 864 <div class="row"> 865 <div class="col-xs-12 col-sm-6 left-nav-part"> 866 <ul> 867 @{ 868 foreach (LoopItem item in GetLoop("Item.Area.Menupunkter")) 869 { 870 if (item.GetString("Item.Area.Menupunkter.Placering.Value") == "left") 871 { 872 if (item.GetString("Item.Area.Menupunkter.Link.Value") != "") 873 { 874 <li><a href='@item.GetString("Item.Area.Menupunkter.Link.Value")'> @item.GetString("Item.Area.Menupunkter.Overskrift.Value")</a></li> 875 } 876 } 877 } 878 } 879 </ul> 880 </div> 881 @* Is possible to set Placering.Value = center. See properties at Website setttings *@ 882 <div class="col-xs-12 col-sm-6"> 883 <ul> 884 @{ 885 foreach (LoopItem item in GetLoop("Item.Area.Menupunkter")) 886 { 887 if (item.GetString("Item.Area.Menupunkter.Placering.Value") == "right") 888 { 889 if (item.GetString("Item.Area.Menupunkter.Link.Value") != "") 890 { 891 <li><a href='@item.GetString("Item.Area.Menupunkter.Link.Value")'> @item.GetString("Item.Area.Menupunkter.Overskrift.Value")</a></li> 892 } 893 } 894 } 895 } 896 </ul> 897 </div> 898 </div> 899 </div> 900 <div class="col-xs-12 col-sm-12 col-md-6"> 901 @* 902 <div class="col-xs-12 col-sm-offset-1 col-sm-7 pull-right" id="maillistdiv"> 903 <p id="maillisttext">Mail list</p> 904 <table id="maillisttable"> 905 <tr> 906 <td style="width: 100%;"><input type="text" name="maillist" value=""></td> 907 <td><button class="btn" name="maillistsubmit" type="submit">@Translate("submit", "Submit")</button></td> 908 </tr> 909 </table> 910 </div> 911 *@ 912 913 @{ var translateTing = @Translate("submit", "Tilmeld"); 914 var newsLetterPlaceholder = @Translate("newsletter-placeholder", "Indtast e-mail adresse"); 915 } 916 917 @if(GetString("LongLang")=="en-GB") { 918 @RenderParagraphContent(1297) 919 } else { 920 @RenderParagraphContent(1296) 921 } 922 923 @* 924 <!-- Begin MailChimp Signup Form --> 925 <!--<link href="//cdn-images.mailchimp.com/embedcode/slim-10_7.css" rel="stylesheet" type="text/css"> --> 926 927 <div id="mc_embed_signup"> 928 <form action="https://rocopenhagen.us16.list-manage.com/subscribe/post?u=4dd87e9d150463df79cfbb660&amp;id=@mailchimpID" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate=""> 929 <div id="mc_embed_signup_scroll"> 930 <label for="mce-EMAIL" style="font-weight: normal;">@Translate("newsletter", "Tilmeld nyhedsbrev")</label><br> 931 932 <div class="input-append"> 933 <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="@newsLetterPlaceholder" required="" style="border: none; padding: 0.4em 0.6em;width:50%;"> 934 <input type="submit" value="@translateTing" name="subscribe" id="mc-embedded-subscribe" class="button" style="margin-left: -10px;background-color: #000;border-radius: 0 !important;color: #fff !important;text-decoration: none;border: none;padding: 0.4em 0.6em;"> 935 </div> 936 937 <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> 938 <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_4dd87e9d150463df79cfbb660_@mailchimpID" tabindex="-1" value=""></div> 939 <div class="clear"></div> 940 </div> 941 </form> 942 </div><!--End mc_embed_signup--> 943 *@ 944 </div> 945 </div> 946 947 <div class="row cards"> 948 <div class="col-xs-12 connect">@RenderSnippet("SocialMedia")</div> 949 <div class="col-xs-12"> 950 951 @if(@GetGlobalValue("Global:Area.ID").ToString()=="1"){ 952 <img src="/Files/Templates/Designs/RO/images/dankort.png" width="51" height="32" alt="Dankort"> 953 <img src="/Files/Templates/Designs/RO/images/visa.png" width="51" height="32" alt="Visa"> 954 <img src="/Files/Templates/Designs/RO/images/mastercard.png" width="51" height="32" alt="Mastercard"> 955 <img src="/Files/Templates/Designs/RO/images/jcb.png" width="51" height="32" alt="JCB"> 956 <img src="/Files/Templates/Designs/RO/images/maestro.png" width="52" height="32" alt="Maestro"> 957 <img src="/Files/Templates/Designs/RO/images/mobilepay.png" width="51" height="32" alt="MobilePay"> 958 }else{ 959 <img src="/Files/Templates/Designs/RO/images/visa.png" width="51" height="32" alt="Visa"> 960 <img src="/Files/Templates/Designs/RO/images/mastercard.png" width="51" height="32" alt="Mastercard"> 961 <img src="/Files/Templates/Designs/RO/images/jcb.png" width="51" height="32" alt="JCB"> 962 <img src="/Files/Templates/Designs/RO/images/maestro.png" width="52" height="32" alt="Maestro"> 963 } 964 </div> 965 </div> 966 </div> 967 968 969 <div class="container-fluid bg-grey information"> 970 <div class="row"> 971 <div class="col-xs-12 content">@GetString("Item.Area.Information")</div> 972 </div> 973 </div> 974 </footer> 975 976 @SnippetStart("SocialMedia") 977 978 @if (GetValue("Item.Area.Facebook") != "") 979 { 980 <a href='@GetString("Item.Area.Facebook")' target="_blank" class="nounderline"> 981 <div class="fa fa-facebook fa-3" aria-hidden="true"></div> 982 </a> 983 } 984 @if (GetValue("Item.Area.Pinterest") != "") 985 { 986 <a href='@GetString("Item.Area.Pinterest")' target="_blank" class="nounderline"> 987 <div class="fa fa-pinterest" aria-hidden="true"></div> 988 </a> 989 } 990 @if (GetValue("Item.Area.LinkedIn") != "") 991 { 992 <a href='@GetString("Item.Area.LinkedIn")' target="_blank" class="nounderline"> 993 <div class="fa fa-linkedin" aria-hidden="true"></div> 994 </a> 995 } 996 @if (GetValue("Item.Area.Instagram") != "") 997 { 998 <a href='@GetString("Item.Area.Instagram")' target="_blank" class="nounderline"> 999 <div class="fa fa-instagram" aria-hidden="true"></div> 1000 </a> 1001 } 1002 @SnippetEnd("SocialMedia") 1003 1004 1005 @*<script src="/Files/Templates/Designs/RO/js/bootstrap.min.js"></script> 1006 <script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script> 1007 <script src="https://unpkg.com/packery@2/dist/packery.pkgd.min.js"></script> 1008 <script src="https://use.fontawesome.com/a5f6115c09.js"></script>*@ 1009 <script src="/Files/Templates/Designs/RO/js/bundle.js@(assetVersion)"></script> 1010 1011 <script> 1012 var $container = $('.grid').imagesLoaded(function () { 1013 // init Packery after all images have loaded 1014 $container.packery({ 1015 itemSelector: 'div[class*="col-"', 1016 percentPosition: true 1017 }); 1018 }); 1019 1020 function hideTop() { 1021 var top = document.getElementById('top'); 1022 1023 if (top.style.display == "none") { 1024 top.style.display = "block"; 1025 } 1026 else { 1027 top.style.display = "none"; 1028 } 1029 } 1030 1031 function openSearchMobile() { 1032 var searchbar = document.getElementById('searchbarmobile'); 1033 var navbar = document.getElementById('navbar-collapse'); 1034 var overlay = document.getElementById('overlay'); 1035 1036 if (searchbar.style.display == "none") { 1037 searchbar.style.display = "block"; 1038 setTimeout(function () { 1039 searchbar.style.opacity = 1; 1040 }, 0); 1041 overlay.style.display = "block"; 1042 } 1043 else { 1044 searchbar.style.display = "none"; 1045 navbar.style.top = "0%"; 1046 overlay.style.display = "none"; 1047 } 1048 } 1049 1050 function closeOverlay() { 1051 var searchbar = document.getElementById('searchbarmobile'); 1052 var navbar = document.getElementById('navbar-collapse'); 1053 var overlay = document.getElementById('overlay'); 1054 1055 searchbar.style.display = "none"; 1056 searchbar.style.opacity = 0; 1057 overlay.style.display = "none"; 1058 } 1059 1060 function setOptInCookie(optInLevel) { 1061 var xmlhttp; 1062 if (window.XMLHttpRequest) { 1063 xmlhttp = new XMLHttpRequest(); 1064 } 1065 else { 1066 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 1067 } 1068 xmlhttp.onreadystatechange = function () { 1069 if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 1070 var div = document.getElementById("cookieWarningDiv"); 1071 div.parentNode.removeChild(div); 1072 return false; 1073 } 1074 } 1075 xmlhttp.open("GET", "/admin/public/CookieOptInLevelConfig.aspx?cmd=SetCookieOptInLevel&OptInLevel=" + optInLevel, true); 1076 xmlhttp.send(); 1077 return false; 1078 } 1079 1080 var searchbutton = document.getElementById('searchbuttontrigger'); 1081 var searchbar = document.getElementById('search'); 1082 var textsearch = document.getElementById('textsearch'); 1083 var topContainer = document.getElementById('top'); 1084 var check = 0; 1085 1086 function triggerSearch() { 1087 1088 if (searchbar.style.display == "none") { 1089 searchbar.style.display = "block"; 1090 setTimeout(function () { 1091 searchbar.style.opacity = 1; 1092 searchbar.style.transition = "all 0.5s"; 1093 searchbutton.style.transition = "all 0.5s" 1094 }, 0); 1095 searchbutton.style.display = "none"; 1096 check = 1; 1097 topContainer.classList.add("active"); 1098 } 1099 } 1100 1101 $(document).click(function (e) { 1102 if (check == 0 && e.target != textsearch) { 1103 topContainer.classList.remove("active"); 1104 searchbar.style.display = "none"; 1105 setTimeout(function () { 1106 searchbutton.style.opacity = 1; 1107 searchbutton.style.transition = "all 0.5s"; 1108 searchbar.style.transition = "all 0.5s" 1109 }, 0); 1110 searchbutton.style.display = "inline-block"; 1111 1112 } 1113 else { 1114 check = 0; 1115 } 1116 }); 1117 1118 function submitSearch() { 1119 document.EcomSearch.submit(); 1120 } 1121 1122 function submitSearchMobile() { 1123 document.EcomSearchMobile.submit(); 1124 } 1125 1126 function switchLanguage(caller) { 1127 var selectLang = document.getElementById($(caller).attr('id')); 1128 var ID = selectLang.options[selectLang.selectedIndex].value; 1129 1130 // empty the cart before we go to new language layer 1131 var url = '<!--@Global:Pageview.Url.Raw.JSEncoded()-->'; 1132 // $.post(url, { 1133 // 'CartCmd': 'emptycart' 1134 // }) 1135 // .done(function () { 1136 // 1137 // }) 1138 1139 alturl = "/Default.aspx?ID=" + ID; 1140 @if (!string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.GetString("GroupID"))){ 1141 <text>alturl = alturl + "&GroupID=@Dynamicweb.Context.Current.Request.GetString("GroupID")";</text> 1142 } 1143 @if (!string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.GetString("ProductId"))){ 1144 <text>alturl = alturl + "&ProductID=@Dynamicweb.Context.Current.Request.GetString("ProductID")";</text> 1145 } 1146 1147 window.location.href = alturl; 1148 } 1149 1150 function switchCurrencie(caller) { 1151 var selectCurn = document.getElementById($(caller).attr('id')); 1152 var CC = selectCurn.options[selectCurn.selectedIndex].value; 1153 alturl="@GetGlobalValue("Global:Pageview.Url.Raw")"; 1154 if(CC=="DKK"){ 1155 // alturl = alturl + "&CountryCode=DK&CurrencyCode=DKK"; 1156 alturl = alturl + "&CurrencyCode=DKK"; 1157 }else if(CC=="GBP"){ 1158 // alturl = alturl + "&CountryCode=GB&CurrencyCode=GBP"; 1159 alturl = alturl + "&CurrencyCode=GBP"; 1160 }else{ 1161 // alturl = alturl + "&CountryCode=DE&CurrencyCode=EUR"; 1162 alturl = alturl + "&CurrencyCode=EUR"; 1163 } 1164 window.location.href = alturl; 1165 } 1166 1167 1168 function GoToBasket() { 1169 var url = document.getElementsByName("DwAreaCartPageID")[0].value; 1170 window.location.href = "/Default.aspx?ID=" + url; 1171 } 1172 </script> 1173 <!--@Snippet(AdditionalJavascript)--> 1174 1175 1176 1177 1178 </body> 1179 </html> 1180 1181