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

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