Click pentru a vizualiza in browser
Error compiling template "/Designs/TTonlineNew/EmailMarketing/Paragraph/EmailMarketingParagraph.cshtml"
Line 190: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 196: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 197: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)

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 using System.Linq; 15 16 #line 4 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 17 using Dynamicweb.Rendering; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_7f0176c21c9548a6828e0394bf6d01f7 : RazorTemplateBase<RazorTemplateModel<Template>> { 24 25 #line hidden 26 27 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 28 public RazorEngine.Templating.TemplateWriter CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 29 #line default 30 #line hidden 31 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 32 33 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 34 35 string rect = style, 36 anchor = style; 37 38 if(string.IsNullOrEmpty(style)){ 39 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 40 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 41 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 42 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 43 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 44 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 45 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 46 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 47 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 48 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 49 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 50 51 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 52 } 53 54 55 56 57 #line default 58 #line hidden 59 WriteLiteralTo(__razor_helper_writer, " <a"); 60 61 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 62 63 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 64 65 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2246), Tuple.Create("\"", 2258) 66 67 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 68 , Tuple.Create(Tuple.Create("", 2253), Tuple.Create<System.Object, System.Int32>(link 69 70 #line default 71 #line hidden 72 , 2253), false) 73 ); 74 75 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2259), Tuple.Create("\"", 2274) 76 77 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 78 , Tuple.Create(Tuple.Create("", 2267), Tuple.Create<System.Object, System.Int32>(anchor 79 80 #line default 81 #line hidden 82 , 2267), false) 83 ); 84 85 WriteLiteralTo(__razor_helper_writer, ">"); 86 87 88 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 89 WriteTo(__razor_helper_writer, text); 90 91 92 #line default 93 #line hidden 94 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 95 96 97 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 98 99 100 101 #line default 102 #line hidden 103 }); 104 105 #line 28 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 106 } 107 #line default 108 #line hidden 109 110 111 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 112 113 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 114 { 115 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 116 string currDevice = currentPageview.Device.ToString(), 117 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 118 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 119 widthString = "", 120 heightString = "", 121 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 122 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 123 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 124 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 125 getImageHeight = imageHeight != 0 ? imageHeight : 0; 126 127 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 128 { 129 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 130 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 131 } 132 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 133 { 134 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 135 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 136 } 137 138 if (getImageWidth != 0) 139 { 140 widthString = "&amp;Width=" + getImageWidth; 141 } 142 if (getImageHeight != 0) 143 { 144 heightString = "&amp;Height=" + getImageHeight; 145 } 146 147 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 148 return output; 149 } 150 151 #line default 152 #line hidden 153 154 155 public RazorEngine_7f0176c21c9548a6828e0394bf6d01f7() { 156 } 157 158 public override void Execute() { 159 WriteLiteral("\r\n"); 160 161 162 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 163 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 164 165 #line default 166 #line hidden 167 WriteLiteral("\r\n"); 168 169 170 #line 70 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 171 172 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 173 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 174 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 175 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 176 string titleOrder = GetString("Item.TitleOrder"); 177 string image = GetString("Item.Image"); 178 string imageTitle = GetString("Item.ImageTitle"); 179 string text = GetString("Item.Text"); 180 string imageAlignment = GetString("Item.Order"); 181 string backgroundColor = GetString("Item.Background"); 182 string link = GetString("Item.Link"); 183 string linkText = GetString("Item.LinkText"); 184 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 185 string imageAnchorEnd = link != "" ? "</a>" : ""; 186 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 187 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 188 int width = GetInteger("Item.Width"); 189 string col = width == 50 ? "324" : "600"; 190 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 191 192 if (GetBoolean("ParagraphContainerIsFirst")) 193 { 194 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 195 } 196 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 197 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 198 System.Web.HttpContext.Current.Items["currentColumns"] = width; 199 } 200 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 201 { 202 {"background", "#fcae16"}, 203 {"color", "#ffffff"}, 204 {"font-size", "12px"}, 205 {"font-style", "normal"}, 206 {"text-align", "left"}, 207 {"padding", "5px 20px"} 208 }; 209 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 210 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 211 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 212 string endHeading = "</"+titleHeading+">"; 213 214 215 #line default 216 #line hidden 217 WriteLiteral("\r\n\r\n\r\n<table"); 218 219 WriteLiteral(" class=\"responsive-table clearLeft\""); 220 221 WriteLiteral(" border=\"0\""); 222 223 WriteLiteral(" cellspacing=\"0\""); 224 225 WriteLiteral(" cellpadding=\"0\""); 226 227 WriteLiteral(" width=\"600\""); 228 229 WriteLiteral("> \r\n <tr>\r\n <td"); 230 231 WriteLiteral(" height=\"10\""); 232 233 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #f1f2f2;\""); 234 235 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td"); 236 237 WriteLiteral(" border=\"0\""); 238 239 WriteLiteral(" cellspacing=\"0\""); 240 241 WriteLiteral(" cellpadding=\"0\""); 242 243 WriteAttribute("width", Tuple.Create(" width=\"", 7907), Tuple.Create("\"", 7919) 244 245 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 246 , Tuple.Create(Tuple.Create("", 7915), Tuple.Create<System.Object, System.Int32>(col 247 248 #line default 249 #line hidden 250 , 7915), false) 251 ); 252 253 WriteAttribute("style", Tuple.Create(" style=\"", 7920), Tuple.Create("\"", 7958) 254 , Tuple.Create(Tuple.Create("", 7928), Tuple.Create("background:", 7928), true) 255 , Tuple.Create(Tuple.Create(" ", 7939), Tuple.Create("#fff;", 7940), true) 256 257 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 258 , Tuple.Create(Tuple.Create(" ", 7945), Tuple.Create<System.Object, System.Int32>(fontFamily 259 260 #line default 261 #line hidden 262 , 7946), false) 263 , Tuple.Create(Tuple.Create(" ", 7957), Tuple.Create("", 7957), true) 264 ); 265 266 WriteLiteral(" class=\"responsive-table\""); 267 268 WriteLiteral(">\r\n <table"); 269 270 WriteLiteral(" border=\"0\""); 271 272 WriteLiteral(" cellspacing=\"0\""); 273 274 WriteLiteral(" cellpadding=\"0\""); 275 276 WriteAttribute("width", Tuple.Create(" width=\"", 8044), Tuple.Create("\"", 8056) 277 278 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 279 , Tuple.Create(Tuple.Create("", 8052), Tuple.Create<System.Object, System.Int32>(col 280 281 #line default 282 #line hidden 283 , 8052), false) 284 ); 285 286 WriteAttribute("style", Tuple.Create(" style=\"", 8057), Tuple.Create("\"", 8077) 287 288 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 289 , Tuple.Create(Tuple.Create(" ", 8065), Tuple.Create<System.Object, System.Int32>(fontFamily 290 291 #line default 292 #line hidden 293 , 8066), false) 294 ); 295 296 WriteLiteral(" class=\"responsive-table\""); 297 298 WriteLiteral(" >\r\n \t\r\n"); 299 300 301 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 302 303 304 #line default 305 #line hidden 306 307 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 308 if(subtitle != ""){ 309 310 311 #line default 312 #line hidden 313 WriteLiteral(" <tr>\r\n <td"); 314 315 WriteLiteral(" class=\"cell-padding\""); 316 317 WriteAttribute("align", Tuple.Create(" align=\"", 8194), Tuple.Create("\"", 8217) 318 319 #line 125 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 320 , Tuple.Create(Tuple.Create("", 8202), Tuple.Create<System.Object, System.Int32>(titleAlignment 321 322 #line default 323 #line hidden 324 , 8202), false) 325 ); 326 327 WriteLiteral(" valign=\"top\""); 328 329 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 330 331 WriteLiteral(">\r\n <"); 332 333 334 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 335 Write(titleHeading); 336 337 338 #line default 339 #line hidden 340 WriteLiteral(" style=\""); 341 342 343 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 344 Write(fontFamily); 345 346 347 #line default 348 #line hidden 349 WriteLiteral(" font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; \">"); 350 351 352 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 353 Write(subtitle); 354 355 356 #line default 357 #line hidden 358 WriteLiteral(" "); 359 360 361 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 362 Write(endHeading); 363 364 365 #line default 366 #line hidden 367 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 368 369 370 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 371 } 372 373 374 #line default 375 #line hidden 376 WriteLiteral(" "); 377 378 379 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 380 if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 381 382 383 #line default 384 #line hidden 385 WriteLiteral(" <tr>\r\n <td"); 386 387 WriteLiteral(" class=\"cell-padding\""); 388 389 WriteAttribute("align", Tuple.Create(" align=\"", 8608), Tuple.Create("\"", 8631) 390 391 #line 132 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 392 , Tuple.Create(Tuple.Create("", 8616), Tuple.Create<System.Object, System.Int32>(titleAlignment 393 394 #line default 395 #line hidden 396 , 8616), false) 397 ); 398 399 WriteLiteral(" valign=\"top\""); 400 401 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 402 403 WriteLiteral(">\r\n <"); 404 405 406 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 407 Write(titleHeading); 408 409 410 #line default 411 #line hidden 412 WriteLiteral(" style=\"font-size: 22px; padding:0; margin:0; "); 413 414 415 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 416 Write(fontFamily); 417 418 419 #line default 420 #line hidden 421 WriteLiteral(" color:#fcae16;\">"); 422 423 424 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 425 Write(title); 426 427 428 #line default 429 #line hidden 430 WriteLiteral(" "); 431 432 433 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 434 Write(endHeading); 435 436 437 #line default 438 #line hidden 439 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 440 441 442 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 443 } 444 445 446 #line default 447 #line hidden 448 WriteLiteral(" "); 449 450 451 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 452 if(image != "" && imageAlignment == "image-top"){ 453 imageTitle = imageTitle != "" ? imageTitle : title; 454 455 456 #line default 457 #line hidden 458 WriteLiteral(" <tr>\r\n <td"); 459 460 WriteLiteral(" class=\"cell-padding\""); 461 462 WriteLiteral(" align=\"center\""); 463 464 WriteLiteral(" valign=\"top\""); 465 466 WriteLiteral(" style=\"text-align: center;\""); 467 468 WriteLiteral(">\r\n"); 469 470 WriteLiteral(" "); 471 472 473 #line 141 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 474 Write(imageAnchorStart); 475 476 477 #line default 478 #line hidden 479 WriteLiteral("\r\n"); 480 481 482 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 483 484 485 #line default 486 #line hidden 487 488 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 489 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 490 491 492 #line default 493 #line hidden 494 WriteLiteral(" <img"); 495 496 WriteLiteral(" class=\"img-max\""); 497 498 WriteAttribute("src", Tuple.Create(" src=\"", 9245), Tuple.Create("\"", 9275) 499 500 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 501 , Tuple.Create(Tuple.Create("", 9251), Tuple.Create<System.Object, System.Int32>(GetImage(image, 700, 0) 502 503 #line default 504 #line hidden 505 , 9251), false) 506 ); 507 508 WriteAttribute("alt", Tuple.Create(" alt=\"", 9276), Tuple.Create("\"", 9293) 509 510 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 511 , Tuple.Create(Tuple.Create("", 9282), Tuple.Create<System.Object, System.Int32>(imageTitle 512 513 #line default 514 #line hidden 515 , 9282), false) 516 ); 517 518 WriteAttribute("title", Tuple.Create(" title=\"", 9294), Tuple.Create("\"", 9313) 519 520 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 521 , Tuple.Create(Tuple.Create("", 9302), Tuple.Create<System.Object, System.Int32>(imageTitle 522 523 #line default 524 #line hidden 525 , 9302), false) 526 ); 527 528 WriteLiteral(" style=\"display: block; margin: 0 auto; width: 100%;\""); 529 530 WriteLiteral(" />\r\n"); 531 532 533 #line 144 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 534 } 535 536 537 #line default 538 #line hidden 539 WriteLiteral(" "); 540 541 542 #line 145 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 543 Write(imageAnchorEnd); 544 545 546 #line default 547 #line hidden 548 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 549 550 551 #line 148 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 552 553 } 554 555 556 #line default 557 #line hidden 558 WriteLiteral("\r\n"); 559 560 561 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 562 563 564 #line default 565 #line hidden 566 567 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 568 if(text != "" || imageAlignment != "image-top"){ 569 570 571 #line default 572 #line hidden 573 WriteLiteral(" <tr>\r\n <td"); 574 575 WriteLiteral(" width=\"10\""); 576 577 WriteLiteral(" height=\"20\""); 578 579 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #fff;\""); 580 581 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 582 583 WriteLiteral(" <tr>\r\n <td"); 584 585 WriteLiteral(" class=\"cell-padding\""); 586 587 WriteLiteral(" align=\"left\""); 588 589 WriteLiteral(" valign=\"top\""); 590 591 WriteLiteral(" style=\"text-align: center; background: #fff;\""); 592 593 WriteLiteral(">\r\n <table"); 594 595 WriteLiteral(" class=\"imageAside\""); 596 597 WriteLiteral(" border=\"0\""); 598 599 WriteLiteral(" cellspacing=\"0\""); 600 601 WriteLiteral(" cellpadding=\"0\""); 602 603 WriteLiteral(" width=\"100%\""); 604 605 WriteAttribute("style", Tuple.Create(" style=\"", 9906), Tuple.Create("\"", 9926) 606 607 #line 157 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 608 , Tuple.Create(Tuple.Create("", 9914), Tuple.Create<System.Object, System.Int32>(fontFamily 609 610 #line default 611 #line hidden 612 , 9914), false) 613 , Tuple.Create(Tuple.Create(" ", 9925), Tuple.Create("", 9925), true) 614 ); 615 616 WriteLiteral(">\r\n <tr>\r\n"); 617 618 619 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 620 621 622 #line default 623 #line hidden 624 625 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 626 if(image != "" && imageAlignment == "image-left-column"){ 627 imageTitle = imageTitle != "" ? imageTitle : title; 628 629 630 #line default 631 #line hidden 632 WriteLiteral(" <td"); 633 634 WriteLiteral(" align=\"left\""); 635 636 WriteLiteral(" valign=\"top\""); 637 638 WriteLiteral(" style=\"padding: 10px; \""); 639 640 WriteLiteral("> \r\n \r\n"); 641 642 WriteLiteral(" "); 643 644 645 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 646 Write(imageAnchorStart); 647 648 649 #line default 650 #line hidden 651 WriteLiteral("\r\n"); 652 653 654 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 655 656 657 #line default 658 #line hidden 659 660 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 661 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 662 663 664 #line default 665 #line hidden 666 WriteLiteral(" <img"); 667 668 WriteLiteral(" class=\"img-max\""); 669 670 WriteAttribute("src", Tuple.Create(" src=\"", 10391), Tuple.Create("\"", 10421) 671 672 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 673 , Tuple.Create(Tuple.Create("", 10397), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 674 675 #line default 676 #line hidden 677 , 10397), false) 678 ); 679 680 WriteAttribute("alt", Tuple.Create(" alt=\"", 10422), Tuple.Create("\"", 10439) 681 682 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 683 , Tuple.Create(Tuple.Create("", 10428), Tuple.Create<System.Object, System.Int32>(imageTitle 684 685 #line default 686 #line hidden 687 , 10428), false) 688 ); 689 690 WriteAttribute("title", Tuple.Create(" title=\"", 10440), Tuple.Create("\"", 10459) 691 692 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 693 , Tuple.Create(Tuple.Create("", 10448), Tuple.Create<System.Object, System.Int32>(imageTitle 694 695 #line default 696 #line hidden 697 , 10448), false) 698 ); 699 700 WriteLiteral("/>\r\n"); 701 702 703 #line 166 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 704 } 705 706 707 #line default 708 #line hidden 709 WriteLiteral(" "); 710 711 712 #line 167 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 713 Write(imageAnchorEnd); 714 715 716 #line default 717 #line hidden 718 WriteLiteral("\r\n </td>\r\n"); 719 720 WriteLiteral(" <td"); 721 722 WriteLiteral(" width=\"10\""); 723 724 WriteLiteral(" height=\"30\""); 725 726 WriteLiteral(">&nbsp;</td>\r\n"); 727 728 729 #line 170 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 730 } 731 732 733 #line default 734 #line hidden 735 WriteLiteral(" "); 736 737 738 #line 171 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 739 if(text != ""){ 740 741 742 #line default 743 #line hidden 744 WriteLiteral(" <td"); 745 746 WriteAttribute("align", Tuple.Create(" align=\"", 10697), Tuple.Create("\"", 10720) 747 748 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 749 , Tuple.Create(Tuple.Create("", 10705), Tuple.Create<System.Object, System.Int32>(titleAlignment 750 751 #line default 752 #line hidden 753 , 10705), false) 754 ); 755 756 WriteLiteral(" valign=\"top\""); 757 758 WriteAttribute("style", Tuple.Create(" style=\"", 10734), Tuple.Create("\"", 10847) 759 , Tuple.Create(Tuple.Create("", 10742), Tuple.Create("text-align:", 10742), true) 760 , Tuple.Create(Tuple.Create(" ", 10753), Tuple.Create("left;", 10754), true) 761 , Tuple.Create(Tuple.Create(" ", 10759), Tuple.Create("font-size:", 10760), true) 762 , Tuple.Create(Tuple.Create(" ", 10770), Tuple.Create("14px;", 10771), true) 763 , Tuple.Create(Tuple.Create(" ", 10776), Tuple.Create("line-height:", 10777), true) 764 , Tuple.Create(Tuple.Create(" ", 10789), Tuple.Create("20px;", 10790), true) 765 766 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 767 , Tuple.Create(Tuple.Create(" ", 10795), Tuple.Create<System.Object, System.Int32>(fontFamily 768 769 #line default 770 #line hidden 771 , 10796), false) 772 , Tuple.Create(Tuple.Create(" ", 10807), Tuple.Create("background:", 10808), true) 773 , Tuple.Create(Tuple.Create(" ", 10819), Tuple.Create("#fff;", 10820), true) 774 , Tuple.Create(Tuple.Create(" ", 10825), Tuple.Create("padding:", 10826), true) 775 , Tuple.Create(Tuple.Create(" ", 10834), Tuple.Create("0", 10835), true) 776 , Tuple.Create(Tuple.Create(" ", 10836), Tuple.Create("30px", 10837), true) 777 , Tuple.Create(Tuple.Create(" ", 10841), Tuple.Create("20px;", 10842), true) 778 ); 779 780 WriteLiteral(">\r\n"); 781 782 783 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 784 785 786 #line default 787 #line hidden 788 789 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 790 if( title != "" && titleOrder == "title-with-text" ){ 791 792 793 #line default 794 #line hidden 795 WriteLiteral(" \t\t <div><"); 796 797 798 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 799 Write(titleHeading); 800 801 802 #line default 803 #line hidden 804 WriteLiteral(" align=\""); 805 806 807 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 808 Write(titleAlignment); 809 810 811 #line default 812 #line hidden 813 WriteLiteral("\" style=\"font-size: 22px; margin:0; padding:0; "); 814 815 816 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 817 Write(fontFamily); 818 819 820 #line default 821 #line hidden 822 WriteLiteral(" color:#333333;\">"); 823 824 825 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 826 Write(title); 827 828 829 #line default 830 #line hidden 831 WriteLiteral(" "); 832 833 834 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 835 Write(endHeading); 836 837 838 #line default 839 #line hidden 840 WriteLiteral(" </div>\r\n"); 841 842 WriteLiteral(" <br/>\r\n"); 843 844 845 #line 176 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 846 } 847 848 849 #line default 850 #line hidden 851 WriteLiteral(" "); 852 853 854 #line 177 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 855 Write(text); 856 857 858 #line default 859 #line hidden 860 WriteLiteral("\r\n"); 861 862 863 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 864 865 866 #line default 867 #line hidden 868 869 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 870 if(link != "" && linkText != "" && showButton){ 871 872 873 #line default 874 #line hidden 875 WriteLiteral(" \t\t<table"); 876 877 WriteLiteral(" border=\"0\""); 878 879 WriteLiteral(" cellspacing=\"0\""); 880 881 WriteLiteral(" cellpadding=\"0\""); 882 883 WriteLiteral(" width=\"100%\""); 884 885 WriteLiteral(">\r\n \t\t\t\t\t\t <tr>\r\n <td>\r\n \t\t\t\t\t\t\t\t " + 886 " <table"); 887 888 WriteLiteral(" align=\"right\""); 889 890 WriteLiteral(" border=\"0\""); 891 892 WriteLiteral(" cellspacing=\"0\""); 893 894 WriteLiteral(" cellpadding=\"0\""); 895 896 WriteLiteral(" style=\"margin-top: 20px;\""); 897 898 WriteLiteral(">\r\n <tr>\r\n <td>\r\n" + 899 ""); 900 901 WriteLiteral(" \t\t\t\t\t\t\t\t\t\t "); 902 903 904 #line 185 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 905 Write(CreateButton(link, linkText, null, dict_buttonBlue)); 906 907 908 #line default 909 #line hidden 910 WriteLiteral("\r\n \t\t\t\t\t\t\t\t\t </td>\r\n </tr>\r\n " + 911 " </table>\r\n \t\t\t\t\t\t\t </td>\r\n " + 912 " </tr>\r\n </table>\r\n"); 913 914 915 #line 192 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 916 } 917 918 919 #line default 920 #line hidden 921 WriteLiteral(" </td>\r\n"); 922 923 924 #line 194 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 925 } 926 927 928 #line default 929 #line hidden 930 WriteLiteral(" "); 931 932 933 #line 195 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 934 if(image != "" && imageAlignment == "image-right-column"){ 935 imageTitle = imageTitle != "" ? imageTitle : title; 936 937 938 #line default 939 #line hidden 940 WriteLiteral(" <td"); 941 942 WriteLiteral(" width=\"10\""); 943 944 WriteLiteral(" height=\"10\""); 945 946 WriteLiteral(">&nbsp;</td>\r\n"); 947 948 WriteLiteral(" <td"); 949 950 WriteLiteral(" align=\"right\""); 951 952 WriteLiteral(" valign=\"top\""); 953 954 WriteLiteral("> \r\n"); 955 956 WriteLiteral(" "); 957 958 959 #line 199 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 960 Write(imageAnchorStart); 961 962 963 #line default 964 #line hidden 965 WriteLiteral("\r\n"); 966 967 968 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 969 970 971 #line default 972 #line hidden 973 974 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 975 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 976 977 978 #line default 979 #line hidden 980 WriteLiteral(" \t<img"); 981 982 WriteLiteral(" class=\"img-max\""); 983 984 WriteAttribute("src", Tuple.Create(" src=\"", 12426), Tuple.Create("\"", 12456) 985 986 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 987 , Tuple.Create(Tuple.Create("", 12432), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 988 989 #line default 990 #line hidden 991 , 12432), false) 992 ); 993 994 WriteAttribute("alt", Tuple.Create(" alt=\"", 12457), Tuple.Create("\"", 12474) 995 996 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 997 , Tuple.Create(Tuple.Create("", 12463), Tuple.Create<System.Object, System.Int32>(imageTitle 998 999 #line default 1000 #line hidden 1001 , 12463), false) 1002 ); 1003 1004 WriteAttribute("title", Tuple.Create(" title=\"", 12475), Tuple.Create("\"", 12494) 1005 1006 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1007 , Tuple.Create(Tuple.Create("", 12483), Tuple.Create<System.Object, System.Int32>(imageTitle 1008 1009 #line default 1010 #line hidden 1011 , 12483), false) 1012 ); 1013 1014 WriteLiteral(" />\r\n"); 1015 1016 1017 #line 202 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1018 } 1019 1020 1021 #line default 1022 #line hidden 1023 WriteLiteral(" \t\t "); 1024 1025 1026 #line 203 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1027 Write(imageAnchorEnd); 1028 1029 1030 #line default 1031 #line hidden 1032 WriteLiteral("\r\n </td>\r\n"); 1033 1034 1035 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1036 } 1037 1038 1039 #line default 1040 #line hidden 1041 WriteLiteral(" </tr>\r\n </table>\r\n </td>\r\n </tr>" + 1042 "\r\n"); 1043 1044 WriteLiteral(" <tr>\r\n <td"); 1045 1046 WriteLiteral(" width=\"10\""); 1047 1048 WriteLiteral(" height=\"10\""); 1049 1050 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 1051 1052 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 1053 1054 1055 #line 213 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1056 } 1057 1058 1059 #line default 1060 #line hidden 1061 WriteLiteral(" \t\t <tr>\r\n <td>\r\n"); 1062 1063 WriteLiteral(" "); 1064 1065 1066 #line 216 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1067 Write(GetValue("ParagraphModule")); 1068 1069 1070 #line default 1071 #line hidden 1072 WriteLiteral(" \r\n </td> \r\n </tr> \r\n </table>\r\n </td>\r\n </tr> \r\n</ta" + 1073 "ble>\r\n\r\n"); 1074 1075 } 1076 } 1077 } 1078

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 4 @using Dynamicweb.Rendering; 5 @helper CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 6 string rect = style, 7 anchor = style; 8 9 if(string.IsNullOrEmpty(style)){ 10 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 11 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 12 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 13 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 14 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 15 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 16 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 17 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 18 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 19 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 20 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 21 22 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 23 } 24 25 26 <a class="mobile-button" target="_blank" href="@link" style="@anchor">@text</a> 27 28 } 29 @*Include("../emailMarketingGetImage.cshtml")*@ 30 @{ string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); }@functions{ 31 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 32 { 33 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 34 string currDevice = currentPageview.Device.ToString(), 35 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 36 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 37 widthString = "", 38 heightString = "", 39 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 40 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 41 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 42 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 43 getImageHeight = imageHeight != 0 ? imageHeight : 0; 44 45 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 46 { 47 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 48 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 49 } 50 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 51 { 52 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 53 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 54 } 55 56 if (getImageWidth != 0) 57 { 58 widthString = "&amp;Width=" + getImageWidth; 59 } 60 if (getImageHeight != 0) 61 { 62 heightString = "&amp;Height=" + getImageHeight; 63 } 64 65 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 66 return output; 67 } 68 } 69 70 @{ 71 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 72 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 73 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 74 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 75 string titleOrder = GetString("Item.TitleOrder"); 76 string image = GetString("Item.Image"); 77 string imageTitle = GetString("Item.ImageTitle"); 78 string text = GetString("Item.Text"); 79 string imageAlignment = GetString("Item.Order"); 80 string backgroundColor = GetString("Item.Background"); 81 string link = GetString("Item.Link"); 82 string linkText = GetString("Item.LinkText"); 83 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 84 string imageAnchorEnd = link != "" ? "</a>" : ""; 85 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 86 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 87 int width = GetInteger("Item.Width"); 88 string col = width == 50 ? "324" : "600"; 89 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 90 91 if (GetBoolean("ParagraphContainerIsFirst")) 92 { 93 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 94 } 95 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 96 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 97 System.Web.HttpContext.Current.Items["currentColumns"] = width; 98 } 99 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 100 { 101 {"background", "#fcae16"}, 102 {"color", "#ffffff"}, 103 {"font-size", "12px"}, 104 {"font-style", "normal"}, 105 {"text-align", "left"}, 106 {"padding", "5px 20px"} 107 }; 108 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 109 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 110 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 111 string endHeading = "</"+titleHeading+">"; 112 } 113 114 115 <table class="responsive-table clearLeft" border="0" cellspacing="0" cellpadding="0" width="600"> 116 <tr> 117 <td height="10" style="font-size: 0; line-height: 1; background: #f1f2f2;">&nbsp;</td> 118 </tr> 119 <tr> 120 <td border="0" cellspacing="0" cellpadding="0" width="@col" style="background: #fff; @fontFamily " class="responsive-table"> 121 <table border="0" cellspacing="0" cellpadding="0" width="@col" style=" @fontFamily" class="responsive-table" > 122 123 @if(subtitle != ""){ 124 <tr> 125 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 126 <@titleHeading style="@fontFamily font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; ">@subtitle @endHeading 127 </td> 128 </tr> 129 } 130 @if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 131 <tr> 132 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 133 <@titleHeading style="font-size: 22px; padding:0; margin:0; @fontFamily color:#fcae16;">@title @endHeading 134 </td> 135 </tr> 136 } 137 @if(image != "" && imageAlignment == "image-top"){ 138 imageTitle = imageTitle != "" ? imageTitle : title; 139 <tr> 140 <td class="cell-padding" align="center" valign="top" style="text-align: center;"> 141 @imageAnchorStart 142 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 143 <img class="img-max" src="@GetImage(image, 700, 0)" alt="@imageTitle" title="@imageTitle" style="display: block; margin: 0 auto; width: 100%;" /> 144 } 145 @imageAnchorEnd 146 </td> 147 </tr> 148 149 } 150 151 @if(text != "" || imageAlignment != "image-top"){ 152 <tr> 153 <td width="10" height="20" style="font-size: 0; line-height: 1; background: #fff;">&nbsp;</td> 154 </tr> 155 <tr> 156 <td class="cell-padding" align="left" valign="top" style="text-align: center; background: #fff;"> 157 <table class="imageAside" border="0" cellspacing="0" cellpadding="0" width="100%" style="@fontFamily "> 158 <tr> 159 @if(image != "" && imageAlignment == "image-left-column"){ 160 imageTitle = imageTitle != "" ? imageTitle : title; 161 <td align="left" valign="top" style="padding: 10px; "> 162 163 @imageAnchorStart 164 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 165 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle"/> 166 } 167 @imageAnchorEnd 168 </td> 169 <td width="10" height="30">&nbsp;</td> 170 } 171 @if(text != ""){ 172 <td align="@titleAlignment" valign="top" style="text-align: left; font-size: 14px; line-height: 20px; @fontFamily background: #fff; padding: 0 30px 20px;"> 173 @if( title != "" && titleOrder == "title-with-text" ){ 174 <div><@titleHeading align="@titleAlignment" style="font-size: 22px; margin:0; padding:0; @fontFamily color:#333333;">@title @endHeading </div> 175 <br/> 176 } 177 @text 178 @if(link != "" && linkText != "" && showButton){ 179 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 180 <tr> 181 <td> 182 <table align="right" border="0" cellspacing="0" cellpadding="0" style="margin-top: 20px;"> 183 <tr> 184 <td> 185 @CreateButton(link, linkText, null, dict_buttonBlue) 186 </td> 187 </tr> 188 </table> 189 </td> 190 </tr> 191 </table> 192 } 193 </td> 194 } 195 @if(image != "" && imageAlignment == "image-right-column"){ 196 imageTitle = imageTitle != "" ? imageTitle : title; 197 <td width="10" height="10">&nbsp;</td> 198 <td align="right" valign="top"> 199 @imageAnchorStart 200 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 201 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle" /> 202 } 203 @imageAnchorEnd 204 </td> 205 } 206 </tr> 207 </table> 208 </td> 209 </tr> 210 <tr> 211 <td width="10" height="10" style="font-size: 0; line-height: 1;">&nbsp;</td> 212 </tr> 213 } 214 <tr> 215 <td> 216 @GetValue("ParagraphModule") 217 </td> 218 </tr> 219 </table> 220 </td> 221 </tr> 222 </table> 223 224
Error compiling template "/Designs/TTonlineNew/EmailMarketing/Paragraph/EmailMarketingParagraph.cshtml"
Line 190: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 196: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 197: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)

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 using System.Linq; 15 16 #line 4 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 17 using Dynamicweb.Rendering; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_bd5317d0699f468db245438dd21b3f5d : RazorTemplateBase<RazorTemplateModel<Template>> { 24 25 #line hidden 26 27 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 28 public RazorEngine.Templating.TemplateWriter CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 29 #line default 30 #line hidden 31 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 32 33 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 34 35 string rect = style, 36 anchor = style; 37 38 if(string.IsNullOrEmpty(style)){ 39 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 40 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 41 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 42 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 43 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 44 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 45 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 46 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 47 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 48 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 49 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 50 51 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 52 } 53 54 55 56 57 #line default 58 #line hidden 59 WriteLiteralTo(__razor_helper_writer, " <a"); 60 61 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 62 63 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 64 65 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2246), Tuple.Create("\"", 2258) 66 67 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 68 , Tuple.Create(Tuple.Create("", 2253), Tuple.Create<System.Object, System.Int32>(link 69 70 #line default 71 #line hidden 72 , 2253), false) 73 ); 74 75 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2259), Tuple.Create("\"", 2274) 76 77 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 78 , Tuple.Create(Tuple.Create("", 2267), Tuple.Create<System.Object, System.Int32>(anchor 79 80 #line default 81 #line hidden 82 , 2267), false) 83 ); 84 85 WriteLiteralTo(__razor_helper_writer, ">"); 86 87 88 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 89 WriteTo(__razor_helper_writer, text); 90 91 92 #line default 93 #line hidden 94 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 95 96 97 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 98 99 100 101 #line default 102 #line hidden 103 }); 104 105 #line 28 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 106 } 107 #line default 108 #line hidden 109 110 111 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 112 113 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 114 { 115 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 116 string currDevice = currentPageview.Device.ToString(), 117 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 118 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 119 widthString = "", 120 heightString = "", 121 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 122 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 123 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 124 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 125 getImageHeight = imageHeight != 0 ? imageHeight : 0; 126 127 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 128 { 129 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 130 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 131 } 132 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 133 { 134 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 135 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 136 } 137 138 if (getImageWidth != 0) 139 { 140 widthString = "&amp;Width=" + getImageWidth; 141 } 142 if (getImageHeight != 0) 143 { 144 heightString = "&amp;Height=" + getImageHeight; 145 } 146 147 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 148 return output; 149 } 150 151 #line default 152 #line hidden 153 154 155 public RazorEngine_bd5317d0699f468db245438dd21b3f5d() { 156 } 157 158 public override void Execute() { 159 WriteLiteral("\r\n"); 160 161 162 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 163 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 164 165 #line default 166 #line hidden 167 WriteLiteral("\r\n"); 168 169 170 #line 70 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 171 172 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 173 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 174 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 175 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 176 string titleOrder = GetString("Item.TitleOrder"); 177 string image = GetString("Item.Image"); 178 string imageTitle = GetString("Item.ImageTitle"); 179 string text = GetString("Item.Text"); 180 string imageAlignment = GetString("Item.Order"); 181 string backgroundColor = GetString("Item.Background"); 182 string link = GetString("Item.Link"); 183 string linkText = GetString("Item.LinkText"); 184 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 185 string imageAnchorEnd = link != "" ? "</a>" : ""; 186 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 187 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 188 int width = GetInteger("Item.Width"); 189 string col = width == 50 ? "324" : "600"; 190 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 191 192 if (GetBoolean("ParagraphContainerIsFirst")) 193 { 194 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 195 } 196 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 197 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 198 System.Web.HttpContext.Current.Items["currentColumns"] = width; 199 } 200 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 201 { 202 {"background", "#fcae16"}, 203 {"color", "#ffffff"}, 204 {"font-size", "12px"}, 205 {"font-style", "normal"}, 206 {"text-align", "left"}, 207 {"padding", "5px 20px"} 208 }; 209 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 210 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 211 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 212 string endHeading = "</"+titleHeading+">"; 213 214 215 #line default 216 #line hidden 217 WriteLiteral("\r\n\r\n\r\n<table"); 218 219 WriteLiteral(" class=\"responsive-table clearLeft\""); 220 221 WriteLiteral(" border=\"0\""); 222 223 WriteLiteral(" cellspacing=\"0\""); 224 225 WriteLiteral(" cellpadding=\"0\""); 226 227 WriteLiteral(" width=\"600\""); 228 229 WriteLiteral("> \r\n <tr>\r\n <td"); 230 231 WriteLiteral(" height=\"10\""); 232 233 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #f1f2f2;\""); 234 235 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td"); 236 237 WriteLiteral(" border=\"0\""); 238 239 WriteLiteral(" cellspacing=\"0\""); 240 241 WriteLiteral(" cellpadding=\"0\""); 242 243 WriteAttribute("width", Tuple.Create(" width=\"", 7907), Tuple.Create("\"", 7919) 244 245 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 246 , Tuple.Create(Tuple.Create("", 7915), Tuple.Create<System.Object, System.Int32>(col 247 248 #line default 249 #line hidden 250 , 7915), false) 251 ); 252 253 WriteAttribute("style", Tuple.Create(" style=\"", 7920), Tuple.Create("\"", 7958) 254 , Tuple.Create(Tuple.Create("", 7928), Tuple.Create("background:", 7928), true) 255 , Tuple.Create(Tuple.Create(" ", 7939), Tuple.Create("#fff;", 7940), true) 256 257 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 258 , Tuple.Create(Tuple.Create(" ", 7945), Tuple.Create<System.Object, System.Int32>(fontFamily 259 260 #line default 261 #line hidden 262 , 7946), false) 263 , Tuple.Create(Tuple.Create(" ", 7957), Tuple.Create("", 7957), true) 264 ); 265 266 WriteLiteral(" class=\"responsive-table\""); 267 268 WriteLiteral(">\r\n <table"); 269 270 WriteLiteral(" border=\"0\""); 271 272 WriteLiteral(" cellspacing=\"0\""); 273 274 WriteLiteral(" cellpadding=\"0\""); 275 276 WriteAttribute("width", Tuple.Create(" width=\"", 8044), Tuple.Create("\"", 8056) 277 278 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 279 , Tuple.Create(Tuple.Create("", 8052), Tuple.Create<System.Object, System.Int32>(col 280 281 #line default 282 #line hidden 283 , 8052), false) 284 ); 285 286 WriteAttribute("style", Tuple.Create(" style=\"", 8057), Tuple.Create("\"", 8077) 287 288 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 289 , Tuple.Create(Tuple.Create(" ", 8065), Tuple.Create<System.Object, System.Int32>(fontFamily 290 291 #line default 292 #line hidden 293 , 8066), false) 294 ); 295 296 WriteLiteral(" class=\"responsive-table\""); 297 298 WriteLiteral(" >\r\n \t\r\n"); 299 300 301 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 302 303 304 #line default 305 #line hidden 306 307 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 308 if(subtitle != ""){ 309 310 311 #line default 312 #line hidden 313 WriteLiteral(" <tr>\r\n <td"); 314 315 WriteLiteral(" class=\"cell-padding\""); 316 317 WriteAttribute("align", Tuple.Create(" align=\"", 8194), Tuple.Create("\"", 8217) 318 319 #line 125 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 320 , Tuple.Create(Tuple.Create("", 8202), Tuple.Create<System.Object, System.Int32>(titleAlignment 321 322 #line default 323 #line hidden 324 , 8202), false) 325 ); 326 327 WriteLiteral(" valign=\"top\""); 328 329 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 330 331 WriteLiteral(">\r\n <"); 332 333 334 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 335 Write(titleHeading); 336 337 338 #line default 339 #line hidden 340 WriteLiteral(" style=\""); 341 342 343 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 344 Write(fontFamily); 345 346 347 #line default 348 #line hidden 349 WriteLiteral(" font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; \">"); 350 351 352 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 353 Write(subtitle); 354 355 356 #line default 357 #line hidden 358 WriteLiteral(" "); 359 360 361 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 362 Write(endHeading); 363 364 365 #line default 366 #line hidden 367 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 368 369 370 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 371 } 372 373 374 #line default 375 #line hidden 376 WriteLiteral(" "); 377 378 379 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 380 if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 381 382 383 #line default 384 #line hidden 385 WriteLiteral(" <tr>\r\n <td"); 386 387 WriteLiteral(" class=\"cell-padding\""); 388 389 WriteAttribute("align", Tuple.Create(" align=\"", 8608), Tuple.Create("\"", 8631) 390 391 #line 132 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 392 , Tuple.Create(Tuple.Create("", 8616), Tuple.Create<System.Object, System.Int32>(titleAlignment 393 394 #line default 395 #line hidden 396 , 8616), false) 397 ); 398 399 WriteLiteral(" valign=\"top\""); 400 401 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 402 403 WriteLiteral(">\r\n <"); 404 405 406 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 407 Write(titleHeading); 408 409 410 #line default 411 #line hidden 412 WriteLiteral(" style=\"font-size: 22px; padding:0; margin:0; "); 413 414 415 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 416 Write(fontFamily); 417 418 419 #line default 420 #line hidden 421 WriteLiteral(" color:#fcae16;\">"); 422 423 424 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 425 Write(title); 426 427 428 #line default 429 #line hidden 430 WriteLiteral(" "); 431 432 433 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 434 Write(endHeading); 435 436 437 #line default 438 #line hidden 439 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 440 441 442 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 443 } 444 445 446 #line default 447 #line hidden 448 WriteLiteral(" "); 449 450 451 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 452 if(image != "" && imageAlignment == "image-top"){ 453 imageTitle = imageTitle != "" ? imageTitle : title; 454 455 456 #line default 457 #line hidden 458 WriteLiteral(" <tr>\r\n <td"); 459 460 WriteLiteral(" class=\"cell-padding\""); 461 462 WriteLiteral(" align=\"center\""); 463 464 WriteLiteral(" valign=\"top\""); 465 466 WriteLiteral(" style=\"text-align: center;\""); 467 468 WriteLiteral(">\r\n"); 469 470 WriteLiteral(" "); 471 472 473 #line 141 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 474 Write(imageAnchorStart); 475 476 477 #line default 478 #line hidden 479 WriteLiteral("\r\n"); 480 481 482 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 483 484 485 #line default 486 #line hidden 487 488 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 489 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 490 491 492 #line default 493 #line hidden 494 WriteLiteral(" <img"); 495 496 WriteLiteral(" class=\"img-max\""); 497 498 WriteAttribute("src", Tuple.Create(" src=\"", 9245), Tuple.Create("\"", 9275) 499 500 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 501 , Tuple.Create(Tuple.Create("", 9251), Tuple.Create<System.Object, System.Int32>(GetImage(image, 700, 0) 502 503 #line default 504 #line hidden 505 , 9251), false) 506 ); 507 508 WriteAttribute("alt", Tuple.Create(" alt=\"", 9276), Tuple.Create("\"", 9293) 509 510 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 511 , Tuple.Create(Tuple.Create("", 9282), Tuple.Create<System.Object, System.Int32>(imageTitle 512 513 #line default 514 #line hidden 515 , 9282), false) 516 ); 517 518 WriteAttribute("title", Tuple.Create(" title=\"", 9294), Tuple.Create("\"", 9313) 519 520 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 521 , Tuple.Create(Tuple.Create("", 9302), Tuple.Create<System.Object, System.Int32>(imageTitle 522 523 #line default 524 #line hidden 525 , 9302), false) 526 ); 527 528 WriteLiteral(" style=\"display: block; margin: 0 auto; width: 100%;\""); 529 530 WriteLiteral(" />\r\n"); 531 532 533 #line 144 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 534 } 535 536 537 #line default 538 #line hidden 539 WriteLiteral(" "); 540 541 542 #line 145 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 543 Write(imageAnchorEnd); 544 545 546 #line default 547 #line hidden 548 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 549 550 551 #line 148 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 552 553 } 554 555 556 #line default 557 #line hidden 558 WriteLiteral("\r\n"); 559 560 561 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 562 563 564 #line default 565 #line hidden 566 567 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 568 if(text != "" || imageAlignment != "image-top"){ 569 570 571 #line default 572 #line hidden 573 WriteLiteral(" <tr>\r\n <td"); 574 575 WriteLiteral(" width=\"10\""); 576 577 WriteLiteral(" height=\"20\""); 578 579 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #fff;\""); 580 581 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 582 583 WriteLiteral(" <tr>\r\n <td"); 584 585 WriteLiteral(" class=\"cell-padding\""); 586 587 WriteLiteral(" align=\"left\""); 588 589 WriteLiteral(" valign=\"top\""); 590 591 WriteLiteral(" style=\"text-align: center; background: #fff;\""); 592 593 WriteLiteral(">\r\n <table"); 594 595 WriteLiteral(" class=\"imageAside\""); 596 597 WriteLiteral(" border=\"0\""); 598 599 WriteLiteral(" cellspacing=\"0\""); 600 601 WriteLiteral(" cellpadding=\"0\""); 602 603 WriteLiteral(" width=\"100%\""); 604 605 WriteAttribute("style", Tuple.Create(" style=\"", 9906), Tuple.Create("\"", 9926) 606 607 #line 157 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 608 , Tuple.Create(Tuple.Create("", 9914), Tuple.Create<System.Object, System.Int32>(fontFamily 609 610 #line default 611 #line hidden 612 , 9914), false) 613 , Tuple.Create(Tuple.Create(" ", 9925), Tuple.Create("", 9925), true) 614 ); 615 616 WriteLiteral(">\r\n <tr>\r\n"); 617 618 619 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 620 621 622 #line default 623 #line hidden 624 625 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 626 if(image != "" && imageAlignment == "image-left-column"){ 627 imageTitle = imageTitle != "" ? imageTitle : title; 628 629 630 #line default 631 #line hidden 632 WriteLiteral(" <td"); 633 634 WriteLiteral(" align=\"left\""); 635 636 WriteLiteral(" valign=\"top\""); 637 638 WriteLiteral(" style=\"padding: 10px; \""); 639 640 WriteLiteral("> \r\n \r\n"); 641 642 WriteLiteral(" "); 643 644 645 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 646 Write(imageAnchorStart); 647 648 649 #line default 650 #line hidden 651 WriteLiteral("\r\n"); 652 653 654 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 655 656 657 #line default 658 #line hidden 659 660 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 661 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 662 663 664 #line default 665 #line hidden 666 WriteLiteral(" <img"); 667 668 WriteLiteral(" class=\"img-max\""); 669 670 WriteAttribute("src", Tuple.Create(" src=\"", 10391), Tuple.Create("\"", 10421) 671 672 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 673 , Tuple.Create(Tuple.Create("", 10397), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 674 675 #line default 676 #line hidden 677 , 10397), false) 678 ); 679 680 WriteAttribute("alt", Tuple.Create(" alt=\"", 10422), Tuple.Create("\"", 10439) 681 682 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 683 , Tuple.Create(Tuple.Create("", 10428), Tuple.Create<System.Object, System.Int32>(imageTitle 684 685 #line default 686 #line hidden 687 , 10428), false) 688 ); 689 690 WriteAttribute("title", Tuple.Create(" title=\"", 10440), Tuple.Create("\"", 10459) 691 692 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 693 , Tuple.Create(Tuple.Create("", 10448), Tuple.Create<System.Object, System.Int32>(imageTitle 694 695 #line default 696 #line hidden 697 , 10448), false) 698 ); 699 700 WriteLiteral("/>\r\n"); 701 702 703 #line 166 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 704 } 705 706 707 #line default 708 #line hidden 709 WriteLiteral(" "); 710 711 712 #line 167 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 713 Write(imageAnchorEnd); 714 715 716 #line default 717 #line hidden 718 WriteLiteral("\r\n </td>\r\n"); 719 720 WriteLiteral(" <td"); 721 722 WriteLiteral(" width=\"10\""); 723 724 WriteLiteral(" height=\"30\""); 725 726 WriteLiteral(">&nbsp;</td>\r\n"); 727 728 729 #line 170 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 730 } 731 732 733 #line default 734 #line hidden 735 WriteLiteral(" "); 736 737 738 #line 171 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 739 if(text != ""){ 740 741 742 #line default 743 #line hidden 744 WriteLiteral(" <td"); 745 746 WriteAttribute("align", Tuple.Create(" align=\"", 10697), Tuple.Create("\"", 10720) 747 748 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 749 , Tuple.Create(Tuple.Create("", 10705), Tuple.Create<System.Object, System.Int32>(titleAlignment 750 751 #line default 752 #line hidden 753 , 10705), false) 754 ); 755 756 WriteLiteral(" valign=\"top\""); 757 758 WriteAttribute("style", Tuple.Create(" style=\"", 10734), Tuple.Create("\"", 10847) 759 , Tuple.Create(Tuple.Create("", 10742), Tuple.Create("text-align:", 10742), true) 760 , Tuple.Create(Tuple.Create(" ", 10753), Tuple.Create("left;", 10754), true) 761 , Tuple.Create(Tuple.Create(" ", 10759), Tuple.Create("font-size:", 10760), true) 762 , Tuple.Create(Tuple.Create(" ", 10770), Tuple.Create("14px;", 10771), true) 763 , Tuple.Create(Tuple.Create(" ", 10776), Tuple.Create("line-height:", 10777), true) 764 , Tuple.Create(Tuple.Create(" ", 10789), Tuple.Create("20px;", 10790), true) 765 766 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 767 , Tuple.Create(Tuple.Create(" ", 10795), Tuple.Create<System.Object, System.Int32>(fontFamily 768 769 #line default 770 #line hidden 771 , 10796), false) 772 , Tuple.Create(Tuple.Create(" ", 10807), Tuple.Create("background:", 10808), true) 773 , Tuple.Create(Tuple.Create(" ", 10819), Tuple.Create("#fff;", 10820), true) 774 , Tuple.Create(Tuple.Create(" ", 10825), Tuple.Create("padding:", 10826), true) 775 , Tuple.Create(Tuple.Create(" ", 10834), Tuple.Create("0", 10835), true) 776 , Tuple.Create(Tuple.Create(" ", 10836), Tuple.Create("30px", 10837), true) 777 , Tuple.Create(Tuple.Create(" ", 10841), Tuple.Create("20px;", 10842), true) 778 ); 779 780 WriteLiteral(">\r\n"); 781 782 783 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 784 785 786 #line default 787 #line hidden 788 789 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 790 if( title != "" && titleOrder == "title-with-text" ){ 791 792 793 #line default 794 #line hidden 795 WriteLiteral(" \t\t <div><"); 796 797 798 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 799 Write(titleHeading); 800 801 802 #line default 803 #line hidden 804 WriteLiteral(" align=\""); 805 806 807 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 808 Write(titleAlignment); 809 810 811 #line default 812 #line hidden 813 WriteLiteral("\" style=\"font-size: 22px; margin:0; padding:0; "); 814 815 816 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 817 Write(fontFamily); 818 819 820 #line default 821 #line hidden 822 WriteLiteral(" color:#333333;\">"); 823 824 825 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 826 Write(title); 827 828 829 #line default 830 #line hidden 831 WriteLiteral(" "); 832 833 834 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 835 Write(endHeading); 836 837 838 #line default 839 #line hidden 840 WriteLiteral(" </div>\r\n"); 841 842 WriteLiteral(" <br/>\r\n"); 843 844 845 #line 176 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 846 } 847 848 849 #line default 850 #line hidden 851 WriteLiteral(" "); 852 853 854 #line 177 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 855 Write(text); 856 857 858 #line default 859 #line hidden 860 WriteLiteral("\r\n"); 861 862 863 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 864 865 866 #line default 867 #line hidden 868 869 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 870 if(link != "" && linkText != "" && showButton){ 871 872 873 #line default 874 #line hidden 875 WriteLiteral(" \t\t<table"); 876 877 WriteLiteral(" border=\"0\""); 878 879 WriteLiteral(" cellspacing=\"0\""); 880 881 WriteLiteral(" cellpadding=\"0\""); 882 883 WriteLiteral(" width=\"100%\""); 884 885 WriteLiteral(">\r\n \t\t\t\t\t\t <tr>\r\n <td>\r\n \t\t\t\t\t\t\t\t " + 886 " <table"); 887 888 WriteLiteral(" align=\"right\""); 889 890 WriteLiteral(" border=\"0\""); 891 892 WriteLiteral(" cellspacing=\"0\""); 893 894 WriteLiteral(" cellpadding=\"0\""); 895 896 WriteLiteral(" style=\"margin-top: 20px;\""); 897 898 WriteLiteral(">\r\n <tr>\r\n <td>\r\n" + 899 ""); 900 901 WriteLiteral(" \t\t\t\t\t\t\t\t\t\t "); 902 903 904 #line 185 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 905 Write(CreateButton(link, linkText, null, dict_buttonBlue)); 906 907 908 #line default 909 #line hidden 910 WriteLiteral("\r\n \t\t\t\t\t\t\t\t\t </td>\r\n </tr>\r\n " + 911 " </table>\r\n \t\t\t\t\t\t\t </td>\r\n " + 912 " </tr>\r\n </table>\r\n"); 913 914 915 #line 192 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 916 } 917 918 919 #line default 920 #line hidden 921 WriteLiteral(" </td>\r\n"); 922 923 924 #line 194 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 925 } 926 927 928 #line default 929 #line hidden 930 WriteLiteral(" "); 931 932 933 #line 195 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 934 if(image != "" && imageAlignment == "image-right-column"){ 935 imageTitle = imageTitle != "" ? imageTitle : title; 936 937 938 #line default 939 #line hidden 940 WriteLiteral(" <td"); 941 942 WriteLiteral(" width=\"10\""); 943 944 WriteLiteral(" height=\"10\""); 945 946 WriteLiteral(">&nbsp;</td>\r\n"); 947 948 WriteLiteral(" <td"); 949 950 WriteLiteral(" align=\"right\""); 951 952 WriteLiteral(" valign=\"top\""); 953 954 WriteLiteral("> \r\n"); 955 956 WriteLiteral(" "); 957 958 959 #line 199 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 960 Write(imageAnchorStart); 961 962 963 #line default 964 #line hidden 965 WriteLiteral("\r\n"); 966 967 968 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 969 970 971 #line default 972 #line hidden 973 974 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 975 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 976 977 978 #line default 979 #line hidden 980 WriteLiteral(" \t<img"); 981 982 WriteLiteral(" class=\"img-max\""); 983 984 WriteAttribute("src", Tuple.Create(" src=\"", 12426), Tuple.Create("\"", 12456) 985 986 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 987 , Tuple.Create(Tuple.Create("", 12432), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 988 989 #line default 990 #line hidden 991 , 12432), false) 992 ); 993 994 WriteAttribute("alt", Tuple.Create(" alt=\"", 12457), Tuple.Create("\"", 12474) 995 996 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 997 , Tuple.Create(Tuple.Create("", 12463), Tuple.Create<System.Object, System.Int32>(imageTitle 998 999 #line default 1000 #line hidden 1001 , 12463), false) 1002 ); 1003 1004 WriteAttribute("title", Tuple.Create(" title=\"", 12475), Tuple.Create("\"", 12494) 1005 1006 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1007 , Tuple.Create(Tuple.Create("", 12483), Tuple.Create<System.Object, System.Int32>(imageTitle 1008 1009 #line default 1010 #line hidden 1011 , 12483), false) 1012 ); 1013 1014 WriteLiteral(" />\r\n"); 1015 1016 1017 #line 202 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1018 } 1019 1020 1021 #line default 1022 #line hidden 1023 WriteLiteral(" \t\t "); 1024 1025 1026 #line 203 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1027 Write(imageAnchorEnd); 1028 1029 1030 #line default 1031 #line hidden 1032 WriteLiteral("\r\n </td>\r\n"); 1033 1034 1035 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1036 } 1037 1038 1039 #line default 1040 #line hidden 1041 WriteLiteral(" </tr>\r\n </table>\r\n </td>\r\n </tr>" + 1042 "\r\n"); 1043 1044 WriteLiteral(" <tr>\r\n <td"); 1045 1046 WriteLiteral(" width=\"10\""); 1047 1048 WriteLiteral(" height=\"10\""); 1049 1050 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 1051 1052 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 1053 1054 1055 #line 213 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1056 } 1057 1058 1059 #line default 1060 #line hidden 1061 WriteLiteral(" \t\t <tr>\r\n <td>\r\n"); 1062 1063 WriteLiteral(" "); 1064 1065 1066 #line 216 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1067 Write(GetValue("ParagraphModule")); 1068 1069 1070 #line default 1071 #line hidden 1072 WriteLiteral(" \r\n </td> \r\n </tr> \r\n </table>\r\n </td>\r\n </tr> \r\n</ta" + 1073 "ble>\r\n\r\n"); 1074 1075 } 1076 } 1077 } 1078

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 4 @using Dynamicweb.Rendering; 5 @helper CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 6 string rect = style, 7 anchor = style; 8 9 if(string.IsNullOrEmpty(style)){ 10 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 11 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 12 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 13 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 14 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 15 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 16 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 17 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 18 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 19 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 20 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 21 22 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 23 } 24 25 26 <a class="mobile-button" target="_blank" href="@link" style="@anchor">@text</a> 27 28 } 29 @*Include("../emailMarketingGetImage.cshtml")*@ 30 @{ string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); }@functions{ 31 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 32 { 33 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 34 string currDevice = currentPageview.Device.ToString(), 35 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 36 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 37 widthString = "", 38 heightString = "", 39 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 40 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 41 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 42 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 43 getImageHeight = imageHeight != 0 ? imageHeight : 0; 44 45 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 46 { 47 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 48 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 49 } 50 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 51 { 52 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 53 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 54 } 55 56 if (getImageWidth != 0) 57 { 58 widthString = "&amp;Width=" + getImageWidth; 59 } 60 if (getImageHeight != 0) 61 { 62 heightString = "&amp;Height=" + getImageHeight; 63 } 64 65 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 66 return output; 67 } 68 } 69 70 @{ 71 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 72 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 73 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 74 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 75 string titleOrder = GetString("Item.TitleOrder"); 76 string image = GetString("Item.Image"); 77 string imageTitle = GetString("Item.ImageTitle"); 78 string text = GetString("Item.Text"); 79 string imageAlignment = GetString("Item.Order"); 80 string backgroundColor = GetString("Item.Background"); 81 string link = GetString("Item.Link"); 82 string linkText = GetString("Item.LinkText"); 83 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 84 string imageAnchorEnd = link != "" ? "</a>" : ""; 85 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 86 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 87 int width = GetInteger("Item.Width"); 88 string col = width == 50 ? "324" : "600"; 89 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 90 91 if (GetBoolean("ParagraphContainerIsFirst")) 92 { 93 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 94 } 95 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 96 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 97 System.Web.HttpContext.Current.Items["currentColumns"] = width; 98 } 99 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 100 { 101 {"background", "#fcae16"}, 102 {"color", "#ffffff"}, 103 {"font-size", "12px"}, 104 {"font-style", "normal"}, 105 {"text-align", "left"}, 106 {"padding", "5px 20px"} 107 }; 108 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 109 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 110 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 111 string endHeading = "</"+titleHeading+">"; 112 } 113 114 115 <table class="responsive-table clearLeft" border="0" cellspacing="0" cellpadding="0" width="600"> 116 <tr> 117 <td height="10" style="font-size: 0; line-height: 1; background: #f1f2f2;">&nbsp;</td> 118 </tr> 119 <tr> 120 <td border="0" cellspacing="0" cellpadding="0" width="@col" style="background: #fff; @fontFamily " class="responsive-table"> 121 <table border="0" cellspacing="0" cellpadding="0" width="@col" style=" @fontFamily" class="responsive-table" > 122 123 @if(subtitle != ""){ 124 <tr> 125 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 126 <@titleHeading style="@fontFamily font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; ">@subtitle @endHeading 127 </td> 128 </tr> 129 } 130 @if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 131 <tr> 132 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 133 <@titleHeading style="font-size: 22px; padding:0; margin:0; @fontFamily color:#fcae16;">@title @endHeading 134 </td> 135 </tr> 136 } 137 @if(image != "" && imageAlignment == "image-top"){ 138 imageTitle = imageTitle != "" ? imageTitle : title; 139 <tr> 140 <td class="cell-padding" align="center" valign="top" style="text-align: center;"> 141 @imageAnchorStart 142 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 143 <img class="img-max" src="@GetImage(image, 700, 0)" alt="@imageTitle" title="@imageTitle" style="display: block; margin: 0 auto; width: 100%;" /> 144 } 145 @imageAnchorEnd 146 </td> 147 </tr> 148 149 } 150 151 @if(text != "" || imageAlignment != "image-top"){ 152 <tr> 153 <td width="10" height="20" style="font-size: 0; line-height: 1; background: #fff;">&nbsp;</td> 154 </tr> 155 <tr> 156 <td class="cell-padding" align="left" valign="top" style="text-align: center; background: #fff;"> 157 <table class="imageAside" border="0" cellspacing="0" cellpadding="0" width="100%" style="@fontFamily "> 158 <tr> 159 @if(image != "" && imageAlignment == "image-left-column"){ 160 imageTitle = imageTitle != "" ? imageTitle : title; 161 <td align="left" valign="top" style="padding: 10px; "> 162 163 @imageAnchorStart 164 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 165 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle"/> 166 } 167 @imageAnchorEnd 168 </td> 169 <td width="10" height="30">&nbsp;</td> 170 } 171 @if(text != ""){ 172 <td align="@titleAlignment" valign="top" style="text-align: left; font-size: 14px; line-height: 20px; @fontFamily background: #fff; padding: 0 30px 20px;"> 173 @if( title != "" && titleOrder == "title-with-text" ){ 174 <div><@titleHeading align="@titleAlignment" style="font-size: 22px; margin:0; padding:0; @fontFamily color:#333333;">@title @endHeading </div> 175 <br/> 176 } 177 @text 178 @if(link != "" && linkText != "" && showButton){ 179 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 180 <tr> 181 <td> 182 <table align="right" border="0" cellspacing="0" cellpadding="0" style="margin-top: 20px;"> 183 <tr> 184 <td> 185 @CreateButton(link, linkText, null, dict_buttonBlue) 186 </td> 187 </tr> 188 </table> 189 </td> 190 </tr> 191 </table> 192 } 193 </td> 194 } 195 @if(image != "" && imageAlignment == "image-right-column"){ 196 imageTitle = imageTitle != "" ? imageTitle : title; 197 <td width="10" height="10">&nbsp;</td> 198 <td align="right" valign="top"> 199 @imageAnchorStart 200 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 201 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle" /> 202 } 203 @imageAnchorEnd 204 </td> 205 } 206 </tr> 207 </table> 208 </td> 209 </tr> 210 <tr> 211 <td width="10" height="10" style="font-size: 0; line-height: 1;">&nbsp;</td> 212 </tr> 213 } 214 <tr> 215 <td> 216 @GetValue("ParagraphModule") 217 </td> 218 </tr> 219 </table> 220 </td> 221 </tr> 222 </table> 223 224
Error compiling template "/Designs/TTonlineNew/EmailMarketing/Paragraph/EmailMarketingParagraph.cshtml"
Line 190: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 196: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 197: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)

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 using System.Linq; 15 16 #line 4 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 17 using Dynamicweb.Rendering; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_26df863616144981b76c6ea9f6e675d2 : RazorTemplateBase<RazorTemplateModel<Template>> { 24 25 #line hidden 26 27 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 28 public RazorEngine.Templating.TemplateWriter CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 29 #line default 30 #line hidden 31 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 32 33 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 34 35 string rect = style, 36 anchor = style; 37 38 if(string.IsNullOrEmpty(style)){ 39 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 40 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 41 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 42 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 43 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 44 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 45 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 46 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 47 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 48 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 49 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 50 51 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 52 } 53 54 55 56 57 #line default 58 #line hidden 59 WriteLiteralTo(__razor_helper_writer, " <a"); 60 61 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 62 63 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 64 65 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2246), Tuple.Create("\"", 2258) 66 67 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 68 , Tuple.Create(Tuple.Create("", 2253), Tuple.Create<System.Object, System.Int32>(link 69 70 #line default 71 #line hidden 72 , 2253), false) 73 ); 74 75 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2259), Tuple.Create("\"", 2274) 76 77 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 78 , Tuple.Create(Tuple.Create("", 2267), Tuple.Create<System.Object, System.Int32>(anchor 79 80 #line default 81 #line hidden 82 , 2267), false) 83 ); 84 85 WriteLiteralTo(__razor_helper_writer, ">"); 86 87 88 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 89 WriteTo(__razor_helper_writer, text); 90 91 92 #line default 93 #line hidden 94 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 95 96 97 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 98 99 100 101 #line default 102 #line hidden 103 }); 104 105 #line 28 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 106 } 107 #line default 108 #line hidden 109 110 111 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 112 113 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 114 { 115 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 116 string currDevice = currentPageview.Device.ToString(), 117 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 118 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 119 widthString = "", 120 heightString = "", 121 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 122 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 123 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 124 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 125 getImageHeight = imageHeight != 0 ? imageHeight : 0; 126 127 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 128 { 129 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 130 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 131 } 132 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 133 { 134 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 135 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 136 } 137 138 if (getImageWidth != 0) 139 { 140 widthString = "&amp;Width=" + getImageWidth; 141 } 142 if (getImageHeight != 0) 143 { 144 heightString = "&amp;Height=" + getImageHeight; 145 } 146 147 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 148 return output; 149 } 150 151 #line default 152 #line hidden 153 154 155 public RazorEngine_26df863616144981b76c6ea9f6e675d2() { 156 } 157 158 public override void Execute() { 159 WriteLiteral("\r\n"); 160 161 162 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 163 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 164 165 #line default 166 #line hidden 167 WriteLiteral("\r\n"); 168 169 170 #line 70 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 171 172 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 173 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 174 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 175 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 176 string titleOrder = GetString("Item.TitleOrder"); 177 string image = GetString("Item.Image"); 178 string imageTitle = GetString("Item.ImageTitle"); 179 string text = GetString("Item.Text"); 180 string imageAlignment = GetString("Item.Order"); 181 string backgroundColor = GetString("Item.Background"); 182 string link = GetString("Item.Link"); 183 string linkText = GetString("Item.LinkText"); 184 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 185 string imageAnchorEnd = link != "" ? "</a>" : ""; 186 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 187 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 188 int width = GetInteger("Item.Width"); 189 string col = width == 50 ? "324" : "600"; 190 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 191 192 if (GetBoolean("ParagraphContainerIsFirst")) 193 { 194 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 195 } 196 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 197 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 198 System.Web.HttpContext.Current.Items["currentColumns"] = width; 199 } 200 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 201 { 202 {"background", "#fcae16"}, 203 {"color", "#ffffff"}, 204 {"font-size", "12px"}, 205 {"font-style", "normal"}, 206 {"text-align", "left"}, 207 {"padding", "5px 20px"} 208 }; 209 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 210 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 211 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 212 string endHeading = "</"+titleHeading+">"; 213 214 215 #line default 216 #line hidden 217 WriteLiteral("\r\n\r\n\r\n<table"); 218 219 WriteLiteral(" class=\"responsive-table clearLeft\""); 220 221 WriteLiteral(" border=\"0\""); 222 223 WriteLiteral(" cellspacing=\"0\""); 224 225 WriteLiteral(" cellpadding=\"0\""); 226 227 WriteLiteral(" width=\"600\""); 228 229 WriteLiteral("> \r\n <tr>\r\n <td"); 230 231 WriteLiteral(" height=\"10\""); 232 233 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #f1f2f2;\""); 234 235 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td"); 236 237 WriteLiteral(" border=\"0\""); 238 239 WriteLiteral(" cellspacing=\"0\""); 240 241 WriteLiteral(" cellpadding=\"0\""); 242 243 WriteAttribute("width", Tuple.Create(" width=\"", 7907), Tuple.Create("\"", 7919) 244 245 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 246 , Tuple.Create(Tuple.Create("", 7915), Tuple.Create<System.Object, System.Int32>(col 247 248 #line default 249 #line hidden 250 , 7915), false) 251 ); 252 253 WriteAttribute("style", Tuple.Create(" style=\"", 7920), Tuple.Create("\"", 7958) 254 , Tuple.Create(Tuple.Create("", 7928), Tuple.Create("background:", 7928), true) 255 , Tuple.Create(Tuple.Create(" ", 7939), Tuple.Create("#fff;", 7940), true) 256 257 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 258 , Tuple.Create(Tuple.Create(" ", 7945), Tuple.Create<System.Object, System.Int32>(fontFamily 259 260 #line default 261 #line hidden 262 , 7946), false) 263 , Tuple.Create(Tuple.Create(" ", 7957), Tuple.Create("", 7957), true) 264 ); 265 266 WriteLiteral(" class=\"responsive-table\""); 267 268 WriteLiteral(">\r\n <table"); 269 270 WriteLiteral(" border=\"0\""); 271 272 WriteLiteral(" cellspacing=\"0\""); 273 274 WriteLiteral(" cellpadding=\"0\""); 275 276 WriteAttribute("width", Tuple.Create(" width=\"", 8044), Tuple.Create("\"", 8056) 277 278 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 279 , Tuple.Create(Tuple.Create("", 8052), Tuple.Create<System.Object, System.Int32>(col 280 281 #line default 282 #line hidden 283 , 8052), false) 284 ); 285 286 WriteAttribute("style", Tuple.Create(" style=\"", 8057), Tuple.Create("\"", 8077) 287 288 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 289 , Tuple.Create(Tuple.Create(" ", 8065), Tuple.Create<System.Object, System.Int32>(fontFamily 290 291 #line default 292 #line hidden 293 , 8066), false) 294 ); 295 296 WriteLiteral(" class=\"responsive-table\""); 297 298 WriteLiteral(" >\r\n \t\r\n"); 299 300 301 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 302 303 304 #line default 305 #line hidden 306 307 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 308 if(subtitle != ""){ 309 310 311 #line default 312 #line hidden 313 WriteLiteral(" <tr>\r\n <td"); 314 315 WriteLiteral(" class=\"cell-padding\""); 316 317 WriteAttribute("align", Tuple.Create(" align=\"", 8194), Tuple.Create("\"", 8217) 318 319 #line 125 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 320 , Tuple.Create(Tuple.Create("", 8202), Tuple.Create<System.Object, System.Int32>(titleAlignment 321 322 #line default 323 #line hidden 324 , 8202), false) 325 ); 326 327 WriteLiteral(" valign=\"top\""); 328 329 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 330 331 WriteLiteral(">\r\n <"); 332 333 334 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 335 Write(titleHeading); 336 337 338 #line default 339 #line hidden 340 WriteLiteral(" style=\""); 341 342 343 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 344 Write(fontFamily); 345 346 347 #line default 348 #line hidden 349 WriteLiteral(" font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; \">"); 350 351 352 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 353 Write(subtitle); 354 355 356 #line default 357 #line hidden 358 WriteLiteral(" "); 359 360 361 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 362 Write(endHeading); 363 364 365 #line default 366 #line hidden 367 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 368 369 370 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 371 } 372 373 374 #line default 375 #line hidden 376 WriteLiteral(" "); 377 378 379 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 380 if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 381 382 383 #line default 384 #line hidden 385 WriteLiteral(" <tr>\r\n <td"); 386 387 WriteLiteral(" class=\"cell-padding\""); 388 389 WriteAttribute("align", Tuple.Create(" align=\"", 8608), Tuple.Create("\"", 8631) 390 391 #line 132 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 392 , Tuple.Create(Tuple.Create("", 8616), Tuple.Create<System.Object, System.Int32>(titleAlignment 393 394 #line default 395 #line hidden 396 , 8616), false) 397 ); 398 399 WriteLiteral(" valign=\"top\""); 400 401 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 402 403 WriteLiteral(">\r\n <"); 404 405 406 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 407 Write(titleHeading); 408 409 410 #line default 411 #line hidden 412 WriteLiteral(" style=\"font-size: 22px; padding:0; margin:0; "); 413 414 415 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 416 Write(fontFamily); 417 418 419 #line default 420 #line hidden 421 WriteLiteral(" color:#fcae16;\">"); 422 423 424 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 425 Write(title); 426 427 428 #line default 429 #line hidden 430 WriteLiteral(" "); 431 432 433 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 434 Write(endHeading); 435 436 437 #line default 438 #line hidden 439 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 440 441 442 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 443 } 444 445 446 #line default 447 #line hidden 448 WriteLiteral(" "); 449 450 451 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 452 if(image != "" && imageAlignment == "image-top"){ 453 imageTitle = imageTitle != "" ? imageTitle : title; 454 455 456 #line default 457 #line hidden 458 WriteLiteral(" <tr>\r\n <td"); 459 460 WriteLiteral(" class=\"cell-padding\""); 461 462 WriteLiteral(" align=\"center\""); 463 464 WriteLiteral(" valign=\"top\""); 465 466 WriteLiteral(" style=\"text-align: center;\""); 467 468 WriteLiteral(">\r\n"); 469 470 WriteLiteral(" "); 471 472 473 #line 141 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 474 Write(imageAnchorStart); 475 476 477 #line default 478 #line hidden 479 WriteLiteral("\r\n"); 480 481 482 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 483 484 485 #line default 486 #line hidden 487 488 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 489 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 490 491 492 #line default 493 #line hidden 494 WriteLiteral(" <img"); 495 496 WriteLiteral(" class=\"img-max\""); 497 498 WriteAttribute("src", Tuple.Create(" src=\"", 9245), Tuple.Create("\"", 9275) 499 500 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 501 , Tuple.Create(Tuple.Create("", 9251), Tuple.Create<System.Object, System.Int32>(GetImage(image, 700, 0) 502 503 #line default 504 #line hidden 505 , 9251), false) 506 ); 507 508 WriteAttribute("alt", Tuple.Create(" alt=\"", 9276), Tuple.Create("\"", 9293) 509 510 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 511 , Tuple.Create(Tuple.Create("", 9282), Tuple.Create<System.Object, System.Int32>(imageTitle 512 513 #line default 514 #line hidden 515 , 9282), false) 516 ); 517 518 WriteAttribute("title", Tuple.Create(" title=\"", 9294), Tuple.Create("\"", 9313) 519 520 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 521 , Tuple.Create(Tuple.Create("", 9302), Tuple.Create<System.Object, System.Int32>(imageTitle 522 523 #line default 524 #line hidden 525 , 9302), false) 526 ); 527 528 WriteLiteral(" style=\"display: block; margin: 0 auto; width: 100%;\""); 529 530 WriteLiteral(" />\r\n"); 531 532 533 #line 144 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 534 } 535 536 537 #line default 538 #line hidden 539 WriteLiteral(" "); 540 541 542 #line 145 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 543 Write(imageAnchorEnd); 544 545 546 #line default 547 #line hidden 548 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 549 550 551 #line 148 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 552 553 } 554 555 556 #line default 557 #line hidden 558 WriteLiteral("\r\n"); 559 560 561 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 562 563 564 #line default 565 #line hidden 566 567 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 568 if(text != "" || imageAlignment != "image-top"){ 569 570 571 #line default 572 #line hidden 573 WriteLiteral(" <tr>\r\n <td"); 574 575 WriteLiteral(" width=\"10\""); 576 577 WriteLiteral(" height=\"20\""); 578 579 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #fff;\""); 580 581 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 582 583 WriteLiteral(" <tr>\r\n <td"); 584 585 WriteLiteral(" class=\"cell-padding\""); 586 587 WriteLiteral(" align=\"left\""); 588 589 WriteLiteral(" valign=\"top\""); 590 591 WriteLiteral(" style=\"text-align: center; background: #fff;\""); 592 593 WriteLiteral(">\r\n <table"); 594 595 WriteLiteral(" class=\"imageAside\""); 596 597 WriteLiteral(" border=\"0\""); 598 599 WriteLiteral(" cellspacing=\"0\""); 600 601 WriteLiteral(" cellpadding=\"0\""); 602 603 WriteLiteral(" width=\"100%\""); 604 605 WriteAttribute("style", Tuple.Create(" style=\"", 9906), Tuple.Create("\"", 9926) 606 607 #line 157 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 608 , Tuple.Create(Tuple.Create("", 9914), Tuple.Create<System.Object, System.Int32>(fontFamily 609 610 #line default 611 #line hidden 612 , 9914), false) 613 , Tuple.Create(Tuple.Create(" ", 9925), Tuple.Create("", 9925), true) 614 ); 615 616 WriteLiteral(">\r\n <tr>\r\n"); 617 618 619 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 620 621 622 #line default 623 #line hidden 624 625 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 626 if(image != "" && imageAlignment == "image-left-column"){ 627 imageTitle = imageTitle != "" ? imageTitle : title; 628 629 630 #line default 631 #line hidden 632 WriteLiteral(" <td"); 633 634 WriteLiteral(" align=\"left\""); 635 636 WriteLiteral(" valign=\"top\""); 637 638 WriteLiteral(" style=\"padding: 10px; \""); 639 640 WriteLiteral("> \r\n \r\n"); 641 642 WriteLiteral(" "); 643 644 645 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 646 Write(imageAnchorStart); 647 648 649 #line default 650 #line hidden 651 WriteLiteral("\r\n"); 652 653 654 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 655 656 657 #line default 658 #line hidden 659 660 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 661 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 662 663 664 #line default 665 #line hidden 666 WriteLiteral(" <img"); 667 668 WriteLiteral(" class=\"img-max\""); 669 670 WriteAttribute("src", Tuple.Create(" src=\"", 10391), Tuple.Create("\"", 10421) 671 672 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 673 , Tuple.Create(Tuple.Create("", 10397), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 674 675 #line default 676 #line hidden 677 , 10397), false) 678 ); 679 680 WriteAttribute("alt", Tuple.Create(" alt=\"", 10422), Tuple.Create("\"", 10439) 681 682 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 683 , Tuple.Create(Tuple.Create("", 10428), Tuple.Create<System.Object, System.Int32>(imageTitle 684 685 #line default 686 #line hidden 687 , 10428), false) 688 ); 689 690 WriteAttribute("title", Tuple.Create(" title=\"", 10440), Tuple.Create("\"", 10459) 691 692 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 693 , Tuple.Create(Tuple.Create("", 10448), Tuple.Create<System.Object, System.Int32>(imageTitle 694 695 #line default 696 #line hidden 697 , 10448), false) 698 ); 699 700 WriteLiteral("/>\r\n"); 701 702 703 #line 166 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 704 } 705 706 707 #line default 708 #line hidden 709 WriteLiteral(" "); 710 711 712 #line 167 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 713 Write(imageAnchorEnd); 714 715 716 #line default 717 #line hidden 718 WriteLiteral("\r\n </td>\r\n"); 719 720 WriteLiteral(" <td"); 721 722 WriteLiteral(" width=\"10\""); 723 724 WriteLiteral(" height=\"30\""); 725 726 WriteLiteral(">&nbsp;</td>\r\n"); 727 728 729 #line 170 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 730 } 731 732 733 #line default 734 #line hidden 735 WriteLiteral(" "); 736 737 738 #line 171 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 739 if(text != ""){ 740 741 742 #line default 743 #line hidden 744 WriteLiteral(" <td"); 745 746 WriteAttribute("align", Tuple.Create(" align=\"", 10697), Tuple.Create("\"", 10720) 747 748 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 749 , Tuple.Create(Tuple.Create("", 10705), Tuple.Create<System.Object, System.Int32>(titleAlignment 750 751 #line default 752 #line hidden 753 , 10705), false) 754 ); 755 756 WriteLiteral(" valign=\"top\""); 757 758 WriteAttribute("style", Tuple.Create(" style=\"", 10734), Tuple.Create("\"", 10847) 759 , Tuple.Create(Tuple.Create("", 10742), Tuple.Create("text-align:", 10742), true) 760 , Tuple.Create(Tuple.Create(" ", 10753), Tuple.Create("left;", 10754), true) 761 , Tuple.Create(Tuple.Create(" ", 10759), Tuple.Create("font-size:", 10760), true) 762 , Tuple.Create(Tuple.Create(" ", 10770), Tuple.Create("14px;", 10771), true) 763 , Tuple.Create(Tuple.Create(" ", 10776), Tuple.Create("line-height:", 10777), true) 764 , Tuple.Create(Tuple.Create(" ", 10789), Tuple.Create("20px;", 10790), true) 765 766 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 767 , Tuple.Create(Tuple.Create(" ", 10795), Tuple.Create<System.Object, System.Int32>(fontFamily 768 769 #line default 770 #line hidden 771 , 10796), false) 772 , Tuple.Create(Tuple.Create(" ", 10807), Tuple.Create("background:", 10808), true) 773 , Tuple.Create(Tuple.Create(" ", 10819), Tuple.Create("#fff;", 10820), true) 774 , Tuple.Create(Tuple.Create(" ", 10825), Tuple.Create("padding:", 10826), true) 775 , Tuple.Create(Tuple.Create(" ", 10834), Tuple.Create("0", 10835), true) 776 , Tuple.Create(Tuple.Create(" ", 10836), Tuple.Create("30px", 10837), true) 777 , Tuple.Create(Tuple.Create(" ", 10841), Tuple.Create("20px;", 10842), true) 778 ); 779 780 WriteLiteral(">\r\n"); 781 782 783 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 784 785 786 #line default 787 #line hidden 788 789 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 790 if( title != "" && titleOrder == "title-with-text" ){ 791 792 793 #line default 794 #line hidden 795 WriteLiteral(" \t\t <div><"); 796 797 798 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 799 Write(titleHeading); 800 801 802 #line default 803 #line hidden 804 WriteLiteral(" align=\""); 805 806 807 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 808 Write(titleAlignment); 809 810 811 #line default 812 #line hidden 813 WriteLiteral("\" style=\"font-size: 22px; margin:0; padding:0; "); 814 815 816 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 817 Write(fontFamily); 818 819 820 #line default 821 #line hidden 822 WriteLiteral(" color:#333333;\">"); 823 824 825 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 826 Write(title); 827 828 829 #line default 830 #line hidden 831 WriteLiteral(" "); 832 833 834 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 835 Write(endHeading); 836 837 838 #line default 839 #line hidden 840 WriteLiteral(" </div>\r\n"); 841 842 WriteLiteral(" <br/>\r\n"); 843 844 845 #line 176 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 846 } 847 848 849 #line default 850 #line hidden 851 WriteLiteral(" "); 852 853 854 #line 177 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 855 Write(text); 856 857 858 #line default 859 #line hidden 860 WriteLiteral("\r\n"); 861 862 863 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 864 865 866 #line default 867 #line hidden 868 869 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 870 if(link != "" && linkText != "" && showButton){ 871 872 873 #line default 874 #line hidden 875 WriteLiteral(" \t\t<table"); 876 877 WriteLiteral(" border=\"0\""); 878 879 WriteLiteral(" cellspacing=\"0\""); 880 881 WriteLiteral(" cellpadding=\"0\""); 882 883 WriteLiteral(" width=\"100%\""); 884 885 WriteLiteral(">\r\n \t\t\t\t\t\t <tr>\r\n <td>\r\n \t\t\t\t\t\t\t\t " + 886 " <table"); 887 888 WriteLiteral(" align=\"right\""); 889 890 WriteLiteral(" border=\"0\""); 891 892 WriteLiteral(" cellspacing=\"0\""); 893 894 WriteLiteral(" cellpadding=\"0\""); 895 896 WriteLiteral(" style=\"margin-top: 20px;\""); 897 898 WriteLiteral(">\r\n <tr>\r\n <td>\r\n" + 899 ""); 900 901 WriteLiteral(" \t\t\t\t\t\t\t\t\t\t "); 902 903 904 #line 185 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 905 Write(CreateButton(link, linkText, null, dict_buttonBlue)); 906 907 908 #line default 909 #line hidden 910 WriteLiteral("\r\n \t\t\t\t\t\t\t\t\t </td>\r\n </tr>\r\n " + 911 " </table>\r\n \t\t\t\t\t\t\t </td>\r\n " + 912 " </tr>\r\n </table>\r\n"); 913 914 915 #line 192 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 916 } 917 918 919 #line default 920 #line hidden 921 WriteLiteral(" </td>\r\n"); 922 923 924 #line 194 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 925 } 926 927 928 #line default 929 #line hidden 930 WriteLiteral(" "); 931 932 933 #line 195 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 934 if(image != "" && imageAlignment == "image-right-column"){ 935 imageTitle = imageTitle != "" ? imageTitle : title; 936 937 938 #line default 939 #line hidden 940 WriteLiteral(" <td"); 941 942 WriteLiteral(" width=\"10\""); 943 944 WriteLiteral(" height=\"10\""); 945 946 WriteLiteral(">&nbsp;</td>\r\n"); 947 948 WriteLiteral(" <td"); 949 950 WriteLiteral(" align=\"right\""); 951 952 WriteLiteral(" valign=\"top\""); 953 954 WriteLiteral("> \r\n"); 955 956 WriteLiteral(" "); 957 958 959 #line 199 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 960 Write(imageAnchorStart); 961 962 963 #line default 964 #line hidden 965 WriteLiteral("\r\n"); 966 967 968 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 969 970 971 #line default 972 #line hidden 973 974 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 975 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 976 977 978 #line default 979 #line hidden 980 WriteLiteral(" \t<img"); 981 982 WriteLiteral(" class=\"img-max\""); 983 984 WriteAttribute("src", Tuple.Create(" src=\"", 12426), Tuple.Create("\"", 12456) 985 986 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 987 , Tuple.Create(Tuple.Create("", 12432), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 988 989 #line default 990 #line hidden 991 , 12432), false) 992 ); 993 994 WriteAttribute("alt", Tuple.Create(" alt=\"", 12457), Tuple.Create("\"", 12474) 995 996 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 997 , Tuple.Create(Tuple.Create("", 12463), Tuple.Create<System.Object, System.Int32>(imageTitle 998 999 #line default 1000 #line hidden 1001 , 12463), false) 1002 ); 1003 1004 WriteAttribute("title", Tuple.Create(" title=\"", 12475), Tuple.Create("\"", 12494) 1005 1006 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1007 , Tuple.Create(Tuple.Create("", 12483), Tuple.Create<System.Object, System.Int32>(imageTitle 1008 1009 #line default 1010 #line hidden 1011 , 12483), false) 1012 ); 1013 1014 WriteLiteral(" />\r\n"); 1015 1016 1017 #line 202 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1018 } 1019 1020 1021 #line default 1022 #line hidden 1023 WriteLiteral(" \t\t "); 1024 1025 1026 #line 203 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1027 Write(imageAnchorEnd); 1028 1029 1030 #line default 1031 #line hidden 1032 WriteLiteral("\r\n </td>\r\n"); 1033 1034 1035 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1036 } 1037 1038 1039 #line default 1040 #line hidden 1041 WriteLiteral(" </tr>\r\n </table>\r\n </td>\r\n </tr>" + 1042 "\r\n"); 1043 1044 WriteLiteral(" <tr>\r\n <td"); 1045 1046 WriteLiteral(" width=\"10\""); 1047 1048 WriteLiteral(" height=\"10\""); 1049 1050 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 1051 1052 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 1053 1054 1055 #line 213 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1056 } 1057 1058 1059 #line default 1060 #line hidden 1061 WriteLiteral(" \t\t <tr>\r\n <td>\r\n"); 1062 1063 WriteLiteral(" "); 1064 1065 1066 #line 216 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1067 Write(GetValue("ParagraphModule")); 1068 1069 1070 #line default 1071 #line hidden 1072 WriteLiteral(" \r\n </td> \r\n </tr> \r\n </table>\r\n </td>\r\n </tr> \r\n</ta" + 1073 "ble>\r\n\r\n"); 1074 1075 } 1076 } 1077 } 1078

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 4 @using Dynamicweb.Rendering; 5 @helper CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 6 string rect = style, 7 anchor = style; 8 9 if(string.IsNullOrEmpty(style)){ 10 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 11 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 12 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 13 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 14 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 15 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 16 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 17 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 18 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 19 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 20 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 21 22 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 23 } 24 25 26 <a class="mobile-button" target="_blank" href="@link" style="@anchor">@text</a> 27 28 } 29 @*Include("../emailMarketingGetImage.cshtml")*@ 30 @{ string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); }@functions{ 31 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 32 { 33 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 34 string currDevice = currentPageview.Device.ToString(), 35 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 36 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 37 widthString = "", 38 heightString = "", 39 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 40 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 41 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 42 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 43 getImageHeight = imageHeight != 0 ? imageHeight : 0; 44 45 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 46 { 47 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 48 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 49 } 50 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 51 { 52 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 53 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 54 } 55 56 if (getImageWidth != 0) 57 { 58 widthString = "&amp;Width=" + getImageWidth; 59 } 60 if (getImageHeight != 0) 61 { 62 heightString = "&amp;Height=" + getImageHeight; 63 } 64 65 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 66 return output; 67 } 68 } 69 70 @{ 71 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 72 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 73 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 74 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 75 string titleOrder = GetString("Item.TitleOrder"); 76 string image = GetString("Item.Image"); 77 string imageTitle = GetString("Item.ImageTitle"); 78 string text = GetString("Item.Text"); 79 string imageAlignment = GetString("Item.Order"); 80 string backgroundColor = GetString("Item.Background"); 81 string link = GetString("Item.Link"); 82 string linkText = GetString("Item.LinkText"); 83 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 84 string imageAnchorEnd = link != "" ? "</a>" : ""; 85 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 86 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 87 int width = GetInteger("Item.Width"); 88 string col = width == 50 ? "324" : "600"; 89 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 90 91 if (GetBoolean("ParagraphContainerIsFirst")) 92 { 93 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 94 } 95 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 96 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 97 System.Web.HttpContext.Current.Items["currentColumns"] = width; 98 } 99 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 100 { 101 {"background", "#fcae16"}, 102 {"color", "#ffffff"}, 103 {"font-size", "12px"}, 104 {"font-style", "normal"}, 105 {"text-align", "left"}, 106 {"padding", "5px 20px"} 107 }; 108 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 109 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 110 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 111 string endHeading = "</"+titleHeading+">"; 112 } 113 114 115 <table class="responsive-table clearLeft" border="0" cellspacing="0" cellpadding="0" width="600"> 116 <tr> 117 <td height="10" style="font-size: 0; line-height: 1; background: #f1f2f2;">&nbsp;</td> 118 </tr> 119 <tr> 120 <td border="0" cellspacing="0" cellpadding="0" width="@col" style="background: #fff; @fontFamily " class="responsive-table"> 121 <table border="0" cellspacing="0" cellpadding="0" width="@col" style=" @fontFamily" class="responsive-table" > 122 123 @if(subtitle != ""){ 124 <tr> 125 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 126 <@titleHeading style="@fontFamily font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; ">@subtitle @endHeading 127 </td> 128 </tr> 129 } 130 @if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 131 <tr> 132 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 133 <@titleHeading style="font-size: 22px; padding:0; margin:0; @fontFamily color:#fcae16;">@title @endHeading 134 </td> 135 </tr> 136 } 137 @if(image != "" && imageAlignment == "image-top"){ 138 imageTitle = imageTitle != "" ? imageTitle : title; 139 <tr> 140 <td class="cell-padding" align="center" valign="top" style="text-align: center;"> 141 @imageAnchorStart 142 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 143 <img class="img-max" src="@GetImage(image, 700, 0)" alt="@imageTitle" title="@imageTitle" style="display: block; margin: 0 auto; width: 100%;" /> 144 } 145 @imageAnchorEnd 146 </td> 147 </tr> 148 149 } 150 151 @if(text != "" || imageAlignment != "image-top"){ 152 <tr> 153 <td width="10" height="20" style="font-size: 0; line-height: 1; background: #fff;">&nbsp;</td> 154 </tr> 155 <tr> 156 <td class="cell-padding" align="left" valign="top" style="text-align: center; background: #fff;"> 157 <table class="imageAside" border="0" cellspacing="0" cellpadding="0" width="100%" style="@fontFamily "> 158 <tr> 159 @if(image != "" && imageAlignment == "image-left-column"){ 160 imageTitle = imageTitle != "" ? imageTitle : title; 161 <td align="left" valign="top" style="padding: 10px; "> 162 163 @imageAnchorStart 164 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 165 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle"/> 166 } 167 @imageAnchorEnd 168 </td> 169 <td width="10" height="30">&nbsp;</td> 170 } 171 @if(text != ""){ 172 <td align="@titleAlignment" valign="top" style="text-align: left; font-size: 14px; line-height: 20px; @fontFamily background: #fff; padding: 0 30px 20px;"> 173 @if( title != "" && titleOrder == "title-with-text" ){ 174 <div><@titleHeading align="@titleAlignment" style="font-size: 22px; margin:0; padding:0; @fontFamily color:#333333;">@title @endHeading </div> 175 <br/> 176 } 177 @text 178 @if(link != "" && linkText != "" && showButton){ 179 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 180 <tr> 181 <td> 182 <table align="right" border="0" cellspacing="0" cellpadding="0" style="margin-top: 20px;"> 183 <tr> 184 <td> 185 @CreateButton(link, linkText, null, dict_buttonBlue) 186 </td> 187 </tr> 188 </table> 189 </td> 190 </tr> 191 </table> 192 } 193 </td> 194 } 195 @if(image != "" && imageAlignment == "image-right-column"){ 196 imageTitle = imageTitle != "" ? imageTitle : title; 197 <td width="10" height="10">&nbsp;</td> 198 <td align="right" valign="top"> 199 @imageAnchorStart 200 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 201 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle" /> 202 } 203 @imageAnchorEnd 204 </td> 205 } 206 </tr> 207 </table> 208 </td> 209 </tr> 210 <tr> 211 <td width="10" height="10" style="font-size: 0; line-height: 1;">&nbsp;</td> 212 </tr> 213 } 214 <tr> 215 <td> 216 @GetValue("ParagraphModule") 217 </td> 218 </tr> 219 </table> 220 </td> 221 </tr> 222 </table> 223 224
Error compiling template "/Designs/TTonlineNew/EmailMarketing/Paragraph/EmailMarketingParagraph.cshtml"
Line 190: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 196: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 197: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)

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 using System.Linq; 15 16 #line 4 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 17 using Dynamicweb.Rendering; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_d01ec819788243d1964297c3bbb0e2cb : RazorTemplateBase<RazorTemplateModel<Template>> { 24 25 #line hidden 26 27 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 28 public RazorEngine.Templating.TemplateWriter CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 29 #line default 30 #line hidden 31 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 32 33 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 34 35 string rect = style, 36 anchor = style; 37 38 if(string.IsNullOrEmpty(style)){ 39 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 40 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 41 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 42 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 43 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 44 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 45 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 46 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 47 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 48 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 49 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 50 51 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 52 } 53 54 55 56 57 #line default 58 #line hidden 59 WriteLiteralTo(__razor_helper_writer, " <a"); 60 61 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 62 63 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 64 65 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2246), Tuple.Create("\"", 2258) 66 67 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 68 , Tuple.Create(Tuple.Create("", 2253), Tuple.Create<System.Object, System.Int32>(link 69 70 #line default 71 #line hidden 72 , 2253), false) 73 ); 74 75 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2259), Tuple.Create("\"", 2274) 76 77 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 78 , Tuple.Create(Tuple.Create("", 2267), Tuple.Create<System.Object, System.Int32>(anchor 79 80 #line default 81 #line hidden 82 , 2267), false) 83 ); 84 85 WriteLiteralTo(__razor_helper_writer, ">"); 86 87 88 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 89 WriteTo(__razor_helper_writer, text); 90 91 92 #line default 93 #line hidden 94 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 95 96 97 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 98 99 100 101 #line default 102 #line hidden 103 }); 104 105 #line 28 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 106 } 107 #line default 108 #line hidden 109 110 111 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 112 113 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 114 { 115 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 116 string currDevice = currentPageview.Device.ToString(), 117 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 118 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 119 widthString = "", 120 heightString = "", 121 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 122 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 123 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 124 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 125 getImageHeight = imageHeight != 0 ? imageHeight : 0; 126 127 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 128 { 129 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 130 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 131 } 132 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 133 { 134 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 135 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 136 } 137 138 if (getImageWidth != 0) 139 { 140 widthString = "&amp;Width=" + getImageWidth; 141 } 142 if (getImageHeight != 0) 143 { 144 heightString = "&amp;Height=" + getImageHeight; 145 } 146 147 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 148 return output; 149 } 150 151 #line default 152 #line hidden 153 154 155 public RazorEngine_d01ec819788243d1964297c3bbb0e2cb() { 156 } 157 158 public override void Execute() { 159 WriteLiteral("\r\n"); 160 161 162 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 163 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 164 165 #line default 166 #line hidden 167 WriteLiteral("\r\n"); 168 169 170 #line 70 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 171 172 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 173 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 174 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 175 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 176 string titleOrder = GetString("Item.TitleOrder"); 177 string image = GetString("Item.Image"); 178 string imageTitle = GetString("Item.ImageTitle"); 179 string text = GetString("Item.Text"); 180 string imageAlignment = GetString("Item.Order"); 181 string backgroundColor = GetString("Item.Background"); 182 string link = GetString("Item.Link"); 183 string linkText = GetString("Item.LinkText"); 184 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 185 string imageAnchorEnd = link != "" ? "</a>" : ""; 186 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 187 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 188 int width = GetInteger("Item.Width"); 189 string col = width == 50 ? "324" : "600"; 190 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 191 192 if (GetBoolean("ParagraphContainerIsFirst")) 193 { 194 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 195 } 196 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 197 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 198 System.Web.HttpContext.Current.Items["currentColumns"] = width; 199 } 200 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 201 { 202 {"background", "#fcae16"}, 203 {"color", "#ffffff"}, 204 {"font-size", "12px"}, 205 {"font-style", "normal"}, 206 {"text-align", "left"}, 207 {"padding", "5px 20px"} 208 }; 209 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 210 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 211 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 212 string endHeading = "</"+titleHeading+">"; 213 214 215 #line default 216 #line hidden 217 WriteLiteral("\r\n\r\n\r\n<table"); 218 219 WriteLiteral(" class=\"responsive-table clearLeft\""); 220 221 WriteLiteral(" border=\"0\""); 222 223 WriteLiteral(" cellspacing=\"0\""); 224 225 WriteLiteral(" cellpadding=\"0\""); 226 227 WriteLiteral(" width=\"600\""); 228 229 WriteLiteral("> \r\n <tr>\r\n <td"); 230 231 WriteLiteral(" height=\"10\""); 232 233 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #f1f2f2;\""); 234 235 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td"); 236 237 WriteLiteral(" border=\"0\""); 238 239 WriteLiteral(" cellspacing=\"0\""); 240 241 WriteLiteral(" cellpadding=\"0\""); 242 243 WriteAttribute("width", Tuple.Create(" width=\"", 7907), Tuple.Create("\"", 7919) 244 245 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 246 , Tuple.Create(Tuple.Create("", 7915), Tuple.Create<System.Object, System.Int32>(col 247 248 #line default 249 #line hidden 250 , 7915), false) 251 ); 252 253 WriteAttribute("style", Tuple.Create(" style=\"", 7920), Tuple.Create("\"", 7958) 254 , Tuple.Create(Tuple.Create("", 7928), Tuple.Create("background:", 7928), true) 255 , Tuple.Create(Tuple.Create(" ", 7939), Tuple.Create("#fff;", 7940), true) 256 257 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 258 , Tuple.Create(Tuple.Create(" ", 7945), Tuple.Create<System.Object, System.Int32>(fontFamily 259 260 #line default 261 #line hidden 262 , 7946), false) 263 , Tuple.Create(Tuple.Create(" ", 7957), Tuple.Create("", 7957), true) 264 ); 265 266 WriteLiteral(" class=\"responsive-table\""); 267 268 WriteLiteral(">\r\n <table"); 269 270 WriteLiteral(" border=\"0\""); 271 272 WriteLiteral(" cellspacing=\"0\""); 273 274 WriteLiteral(" cellpadding=\"0\""); 275 276 WriteAttribute("width", Tuple.Create(" width=\"", 8044), Tuple.Create("\"", 8056) 277 278 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 279 , Tuple.Create(Tuple.Create("", 8052), Tuple.Create<System.Object, System.Int32>(col 280 281 #line default 282 #line hidden 283 , 8052), false) 284 ); 285 286 WriteAttribute("style", Tuple.Create(" style=\"", 8057), Tuple.Create("\"", 8077) 287 288 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 289 , Tuple.Create(Tuple.Create(" ", 8065), Tuple.Create<System.Object, System.Int32>(fontFamily 290 291 #line default 292 #line hidden 293 , 8066), false) 294 ); 295 296 WriteLiteral(" class=\"responsive-table\""); 297 298 WriteLiteral(" >\r\n \t\r\n"); 299 300 301 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 302 303 304 #line default 305 #line hidden 306 307 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 308 if(subtitle != ""){ 309 310 311 #line default 312 #line hidden 313 WriteLiteral(" <tr>\r\n <td"); 314 315 WriteLiteral(" class=\"cell-padding\""); 316 317 WriteAttribute("align", Tuple.Create(" align=\"", 8194), Tuple.Create("\"", 8217) 318 319 #line 125 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 320 , Tuple.Create(Tuple.Create("", 8202), Tuple.Create<System.Object, System.Int32>(titleAlignment 321 322 #line default 323 #line hidden 324 , 8202), false) 325 ); 326 327 WriteLiteral(" valign=\"top\""); 328 329 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 330 331 WriteLiteral(">\r\n <"); 332 333 334 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 335 Write(titleHeading); 336 337 338 #line default 339 #line hidden 340 WriteLiteral(" style=\""); 341 342 343 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 344 Write(fontFamily); 345 346 347 #line default 348 #line hidden 349 WriteLiteral(" font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; \">"); 350 351 352 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 353 Write(subtitle); 354 355 356 #line default 357 #line hidden 358 WriteLiteral(" "); 359 360 361 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 362 Write(endHeading); 363 364 365 #line default 366 #line hidden 367 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 368 369 370 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 371 } 372 373 374 #line default 375 #line hidden 376 WriteLiteral(" "); 377 378 379 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 380 if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 381 382 383 #line default 384 #line hidden 385 WriteLiteral(" <tr>\r\n <td"); 386 387 WriteLiteral(" class=\"cell-padding\""); 388 389 WriteAttribute("align", Tuple.Create(" align=\"", 8608), Tuple.Create("\"", 8631) 390 391 #line 132 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 392 , Tuple.Create(Tuple.Create("", 8616), Tuple.Create<System.Object, System.Int32>(titleAlignment 393 394 #line default 395 #line hidden 396 , 8616), false) 397 ); 398 399 WriteLiteral(" valign=\"top\""); 400 401 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 402 403 WriteLiteral(">\r\n <"); 404 405 406 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 407 Write(titleHeading); 408 409 410 #line default 411 #line hidden 412 WriteLiteral(" style=\"font-size: 22px; padding:0; margin:0; "); 413 414 415 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 416 Write(fontFamily); 417 418 419 #line default 420 #line hidden 421 WriteLiteral(" color:#fcae16;\">"); 422 423 424 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 425 Write(title); 426 427 428 #line default 429 #line hidden 430 WriteLiteral(" "); 431 432 433 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 434 Write(endHeading); 435 436 437 #line default 438 #line hidden 439 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 440 441 442 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 443 } 444 445 446 #line default 447 #line hidden 448 WriteLiteral(" "); 449 450 451 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 452 if(image != "" && imageAlignment == "image-top"){ 453 imageTitle = imageTitle != "" ? imageTitle : title; 454 455 456 #line default 457 #line hidden 458 WriteLiteral(" <tr>\r\n <td"); 459 460 WriteLiteral(" class=\"cell-padding\""); 461 462 WriteLiteral(" align=\"center\""); 463 464 WriteLiteral(" valign=\"top\""); 465 466 WriteLiteral(" style=\"text-align: center;\""); 467 468 WriteLiteral(">\r\n"); 469 470 WriteLiteral(" "); 471 472 473 #line 141 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 474 Write(imageAnchorStart); 475 476 477 #line default 478 #line hidden 479 WriteLiteral("\r\n"); 480 481 482 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 483 484 485 #line default 486 #line hidden 487 488 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 489 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 490 491 492 #line default 493 #line hidden 494 WriteLiteral(" <img"); 495 496 WriteLiteral(" class=\"img-max\""); 497 498 WriteAttribute("src", Tuple.Create(" src=\"", 9245), Tuple.Create("\"", 9275) 499 500 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 501 , Tuple.Create(Tuple.Create("", 9251), Tuple.Create<System.Object, System.Int32>(GetImage(image, 700, 0) 502 503 #line default 504 #line hidden 505 , 9251), false) 506 ); 507 508 WriteAttribute("alt", Tuple.Create(" alt=\"", 9276), Tuple.Create("\"", 9293) 509 510 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 511 , Tuple.Create(Tuple.Create("", 9282), Tuple.Create<System.Object, System.Int32>(imageTitle 512 513 #line default 514 #line hidden 515 , 9282), false) 516 ); 517 518 WriteAttribute("title", Tuple.Create(" title=\"", 9294), Tuple.Create("\"", 9313) 519 520 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 521 , Tuple.Create(Tuple.Create("", 9302), Tuple.Create<System.Object, System.Int32>(imageTitle 522 523 #line default 524 #line hidden 525 , 9302), false) 526 ); 527 528 WriteLiteral(" style=\"display: block; margin: 0 auto; width: 100%;\""); 529 530 WriteLiteral(" />\r\n"); 531 532 533 #line 144 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 534 } 535 536 537 #line default 538 #line hidden 539 WriteLiteral(" "); 540 541 542 #line 145 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 543 Write(imageAnchorEnd); 544 545 546 #line default 547 #line hidden 548 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 549 550 551 #line 148 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 552 553 } 554 555 556 #line default 557 #line hidden 558 WriteLiteral("\r\n"); 559 560 561 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 562 563 564 #line default 565 #line hidden 566 567 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 568 if(text != "" || imageAlignment != "image-top"){ 569 570 571 #line default 572 #line hidden 573 WriteLiteral(" <tr>\r\n <td"); 574 575 WriteLiteral(" width=\"10\""); 576 577 WriteLiteral(" height=\"20\""); 578 579 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #fff;\""); 580 581 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 582 583 WriteLiteral(" <tr>\r\n <td"); 584 585 WriteLiteral(" class=\"cell-padding\""); 586 587 WriteLiteral(" align=\"left\""); 588 589 WriteLiteral(" valign=\"top\""); 590 591 WriteLiteral(" style=\"text-align: center; background: #fff;\""); 592 593 WriteLiteral(">\r\n <table"); 594 595 WriteLiteral(" class=\"imageAside\""); 596 597 WriteLiteral(" border=\"0\""); 598 599 WriteLiteral(" cellspacing=\"0\""); 600 601 WriteLiteral(" cellpadding=\"0\""); 602 603 WriteLiteral(" width=\"100%\""); 604 605 WriteAttribute("style", Tuple.Create(" style=\"", 9906), Tuple.Create("\"", 9926) 606 607 #line 157 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 608 , Tuple.Create(Tuple.Create("", 9914), Tuple.Create<System.Object, System.Int32>(fontFamily 609 610 #line default 611 #line hidden 612 , 9914), false) 613 , Tuple.Create(Tuple.Create(" ", 9925), Tuple.Create("", 9925), true) 614 ); 615 616 WriteLiteral(">\r\n <tr>\r\n"); 617 618 619 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 620 621 622 #line default 623 #line hidden 624 625 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 626 if(image != "" && imageAlignment == "image-left-column"){ 627 imageTitle = imageTitle != "" ? imageTitle : title; 628 629 630 #line default 631 #line hidden 632 WriteLiteral(" <td"); 633 634 WriteLiteral(" align=\"left\""); 635 636 WriteLiteral(" valign=\"top\""); 637 638 WriteLiteral(" style=\"padding: 10px; \""); 639 640 WriteLiteral("> \r\n \r\n"); 641 642 WriteLiteral(" "); 643 644 645 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 646 Write(imageAnchorStart); 647 648 649 #line default 650 #line hidden 651 WriteLiteral("\r\n"); 652 653 654 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 655 656 657 #line default 658 #line hidden 659 660 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 661 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 662 663 664 #line default 665 #line hidden 666 WriteLiteral(" <img"); 667 668 WriteLiteral(" class=\"img-max\""); 669 670 WriteAttribute("src", Tuple.Create(" src=\"", 10391), Tuple.Create("\"", 10421) 671 672 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 673 , Tuple.Create(Tuple.Create("", 10397), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 674 675 #line default 676 #line hidden 677 , 10397), false) 678 ); 679 680 WriteAttribute("alt", Tuple.Create(" alt=\"", 10422), Tuple.Create("\"", 10439) 681 682 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 683 , Tuple.Create(Tuple.Create("", 10428), Tuple.Create<System.Object, System.Int32>(imageTitle 684 685 #line default 686 #line hidden 687 , 10428), false) 688 ); 689 690 WriteAttribute("title", Tuple.Create(" title=\"", 10440), Tuple.Create("\"", 10459) 691 692 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 693 , Tuple.Create(Tuple.Create("", 10448), Tuple.Create<System.Object, System.Int32>(imageTitle 694 695 #line default 696 #line hidden 697 , 10448), false) 698 ); 699 700 WriteLiteral("/>\r\n"); 701 702 703 #line 166 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 704 } 705 706 707 #line default 708 #line hidden 709 WriteLiteral(" "); 710 711 712 #line 167 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 713 Write(imageAnchorEnd); 714 715 716 #line default 717 #line hidden 718 WriteLiteral("\r\n </td>\r\n"); 719 720 WriteLiteral(" <td"); 721 722 WriteLiteral(" width=\"10\""); 723 724 WriteLiteral(" height=\"30\""); 725 726 WriteLiteral(">&nbsp;</td>\r\n"); 727 728 729 #line 170 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 730 } 731 732 733 #line default 734 #line hidden 735 WriteLiteral(" "); 736 737 738 #line 171 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 739 if(text != ""){ 740 741 742 #line default 743 #line hidden 744 WriteLiteral(" <td"); 745 746 WriteAttribute("align", Tuple.Create(" align=\"", 10697), Tuple.Create("\"", 10720) 747 748 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 749 , Tuple.Create(Tuple.Create("", 10705), Tuple.Create<System.Object, System.Int32>(titleAlignment 750 751 #line default 752 #line hidden 753 , 10705), false) 754 ); 755 756 WriteLiteral(" valign=\"top\""); 757 758 WriteAttribute("style", Tuple.Create(" style=\"", 10734), Tuple.Create("\"", 10847) 759 , Tuple.Create(Tuple.Create("", 10742), Tuple.Create("text-align:", 10742), true) 760 , Tuple.Create(Tuple.Create(" ", 10753), Tuple.Create("left;", 10754), true) 761 , Tuple.Create(Tuple.Create(" ", 10759), Tuple.Create("font-size:", 10760), true) 762 , Tuple.Create(Tuple.Create(" ", 10770), Tuple.Create("14px;", 10771), true) 763 , Tuple.Create(Tuple.Create(" ", 10776), Tuple.Create("line-height:", 10777), true) 764 , Tuple.Create(Tuple.Create(" ", 10789), Tuple.Create("20px;", 10790), true) 765 766 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 767 , Tuple.Create(Tuple.Create(" ", 10795), Tuple.Create<System.Object, System.Int32>(fontFamily 768 769 #line default 770 #line hidden 771 , 10796), false) 772 , Tuple.Create(Tuple.Create(" ", 10807), Tuple.Create("background:", 10808), true) 773 , Tuple.Create(Tuple.Create(" ", 10819), Tuple.Create("#fff;", 10820), true) 774 , Tuple.Create(Tuple.Create(" ", 10825), Tuple.Create("padding:", 10826), true) 775 , Tuple.Create(Tuple.Create(" ", 10834), Tuple.Create("0", 10835), true) 776 , Tuple.Create(Tuple.Create(" ", 10836), Tuple.Create("30px", 10837), true) 777 , Tuple.Create(Tuple.Create(" ", 10841), Tuple.Create("20px;", 10842), true) 778 ); 779 780 WriteLiteral(">\r\n"); 781 782 783 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 784 785 786 #line default 787 #line hidden 788 789 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 790 if( title != "" && titleOrder == "title-with-text" ){ 791 792 793 #line default 794 #line hidden 795 WriteLiteral(" \t\t <div><"); 796 797 798 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 799 Write(titleHeading); 800 801 802 #line default 803 #line hidden 804 WriteLiteral(" align=\""); 805 806 807 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 808 Write(titleAlignment); 809 810 811 #line default 812 #line hidden 813 WriteLiteral("\" style=\"font-size: 22px; margin:0; padding:0; "); 814 815 816 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 817 Write(fontFamily); 818 819 820 #line default 821 #line hidden 822 WriteLiteral(" color:#333333;\">"); 823 824 825 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 826 Write(title); 827 828 829 #line default 830 #line hidden 831 WriteLiteral(" "); 832 833 834 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 835 Write(endHeading); 836 837 838 #line default 839 #line hidden 840 WriteLiteral(" </div>\r\n"); 841 842 WriteLiteral(" <br/>\r\n"); 843 844 845 #line 176 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 846 } 847 848 849 #line default 850 #line hidden 851 WriteLiteral(" "); 852 853 854 #line 177 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 855 Write(text); 856 857 858 #line default 859 #line hidden 860 WriteLiteral("\r\n"); 861 862 863 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 864 865 866 #line default 867 #line hidden 868 869 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 870 if(link != "" && linkText != "" && showButton){ 871 872 873 #line default 874 #line hidden 875 WriteLiteral(" \t\t<table"); 876 877 WriteLiteral(" border=\"0\""); 878 879 WriteLiteral(" cellspacing=\"0\""); 880 881 WriteLiteral(" cellpadding=\"0\""); 882 883 WriteLiteral(" width=\"100%\""); 884 885 WriteLiteral(">\r\n \t\t\t\t\t\t <tr>\r\n <td>\r\n \t\t\t\t\t\t\t\t " + 886 " <table"); 887 888 WriteLiteral(" align=\"right\""); 889 890 WriteLiteral(" border=\"0\""); 891 892 WriteLiteral(" cellspacing=\"0\""); 893 894 WriteLiteral(" cellpadding=\"0\""); 895 896 WriteLiteral(" style=\"margin-top: 20px;\""); 897 898 WriteLiteral(">\r\n <tr>\r\n <td>\r\n" + 899 ""); 900 901 WriteLiteral(" \t\t\t\t\t\t\t\t\t\t "); 902 903 904 #line 185 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 905 Write(CreateButton(link, linkText, null, dict_buttonBlue)); 906 907 908 #line default 909 #line hidden 910 WriteLiteral("\r\n \t\t\t\t\t\t\t\t\t </td>\r\n </tr>\r\n " + 911 " </table>\r\n \t\t\t\t\t\t\t </td>\r\n " + 912 " </tr>\r\n </table>\r\n"); 913 914 915 #line 192 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 916 } 917 918 919 #line default 920 #line hidden 921 WriteLiteral(" </td>\r\n"); 922 923 924 #line 194 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 925 } 926 927 928 #line default 929 #line hidden 930 WriteLiteral(" "); 931 932 933 #line 195 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 934 if(image != "" && imageAlignment == "image-right-column"){ 935 imageTitle = imageTitle != "" ? imageTitle : title; 936 937 938 #line default 939 #line hidden 940 WriteLiteral(" <td"); 941 942 WriteLiteral(" width=\"10\""); 943 944 WriteLiteral(" height=\"10\""); 945 946 WriteLiteral(">&nbsp;</td>\r\n"); 947 948 WriteLiteral(" <td"); 949 950 WriteLiteral(" align=\"right\""); 951 952 WriteLiteral(" valign=\"top\""); 953 954 WriteLiteral("> \r\n"); 955 956 WriteLiteral(" "); 957 958 959 #line 199 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 960 Write(imageAnchorStart); 961 962 963 #line default 964 #line hidden 965 WriteLiteral("\r\n"); 966 967 968 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 969 970 971 #line default 972 #line hidden 973 974 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 975 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 976 977 978 #line default 979 #line hidden 980 WriteLiteral(" \t<img"); 981 982 WriteLiteral(" class=\"img-max\""); 983 984 WriteAttribute("src", Tuple.Create(" src=\"", 12426), Tuple.Create("\"", 12456) 985 986 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 987 , Tuple.Create(Tuple.Create("", 12432), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 988 989 #line default 990 #line hidden 991 , 12432), false) 992 ); 993 994 WriteAttribute("alt", Tuple.Create(" alt=\"", 12457), Tuple.Create("\"", 12474) 995 996 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 997 , Tuple.Create(Tuple.Create("", 12463), Tuple.Create<System.Object, System.Int32>(imageTitle 998 999 #line default 1000 #line hidden 1001 , 12463), false) 1002 ); 1003 1004 WriteAttribute("title", Tuple.Create(" title=\"", 12475), Tuple.Create("\"", 12494) 1005 1006 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1007 , Tuple.Create(Tuple.Create("", 12483), Tuple.Create<System.Object, System.Int32>(imageTitle 1008 1009 #line default 1010 #line hidden 1011 , 12483), false) 1012 ); 1013 1014 WriteLiteral(" />\r\n"); 1015 1016 1017 #line 202 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1018 } 1019 1020 1021 #line default 1022 #line hidden 1023 WriteLiteral(" \t\t "); 1024 1025 1026 #line 203 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1027 Write(imageAnchorEnd); 1028 1029 1030 #line default 1031 #line hidden 1032 WriteLiteral("\r\n </td>\r\n"); 1033 1034 1035 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1036 } 1037 1038 1039 #line default 1040 #line hidden 1041 WriteLiteral(" </tr>\r\n </table>\r\n </td>\r\n </tr>" + 1042 "\r\n"); 1043 1044 WriteLiteral(" <tr>\r\n <td"); 1045 1046 WriteLiteral(" width=\"10\""); 1047 1048 WriteLiteral(" height=\"10\""); 1049 1050 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 1051 1052 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 1053 1054 1055 #line 213 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1056 } 1057 1058 1059 #line default 1060 #line hidden 1061 WriteLiteral(" \t\t <tr>\r\n <td>\r\n"); 1062 1063 WriteLiteral(" "); 1064 1065 1066 #line 216 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1067 Write(GetValue("ParagraphModule")); 1068 1069 1070 #line default 1071 #line hidden 1072 WriteLiteral(" \r\n </td> \r\n </tr> \r\n </table>\r\n </td>\r\n </tr> \r\n</ta" + 1073 "ble>\r\n\r\n"); 1074 1075 } 1076 } 1077 } 1078

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 4 @using Dynamicweb.Rendering; 5 @helper CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 6 string rect = style, 7 anchor = style; 8 9 if(string.IsNullOrEmpty(style)){ 10 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 11 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 12 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 13 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 14 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 15 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 16 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 17 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 18 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 19 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 20 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 21 22 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 23 } 24 25 26 <a class="mobile-button" target="_blank" href="@link" style="@anchor">@text</a> 27 28 } 29 @*Include("../emailMarketingGetImage.cshtml")*@ 30 @{ string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); }@functions{ 31 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 32 { 33 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 34 string currDevice = currentPageview.Device.ToString(), 35 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 36 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 37 widthString = "", 38 heightString = "", 39 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 40 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 41 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 42 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 43 getImageHeight = imageHeight != 0 ? imageHeight : 0; 44 45 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 46 { 47 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 48 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 49 } 50 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 51 { 52 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 53 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 54 } 55 56 if (getImageWidth != 0) 57 { 58 widthString = "&amp;Width=" + getImageWidth; 59 } 60 if (getImageHeight != 0) 61 { 62 heightString = "&amp;Height=" + getImageHeight; 63 } 64 65 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 66 return output; 67 } 68 } 69 70 @{ 71 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 72 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 73 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 74 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 75 string titleOrder = GetString("Item.TitleOrder"); 76 string image = GetString("Item.Image"); 77 string imageTitle = GetString("Item.ImageTitle"); 78 string text = GetString("Item.Text"); 79 string imageAlignment = GetString("Item.Order"); 80 string backgroundColor = GetString("Item.Background"); 81 string link = GetString("Item.Link"); 82 string linkText = GetString("Item.LinkText"); 83 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 84 string imageAnchorEnd = link != "" ? "</a>" : ""; 85 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 86 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 87 int width = GetInteger("Item.Width"); 88 string col = width == 50 ? "324" : "600"; 89 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 90 91 if (GetBoolean("ParagraphContainerIsFirst")) 92 { 93 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 94 } 95 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 96 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 97 System.Web.HttpContext.Current.Items["currentColumns"] = width; 98 } 99 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 100 { 101 {"background", "#fcae16"}, 102 {"color", "#ffffff"}, 103 {"font-size", "12px"}, 104 {"font-style", "normal"}, 105 {"text-align", "left"}, 106 {"padding", "5px 20px"} 107 }; 108 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 109 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 110 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 111 string endHeading = "</"+titleHeading+">"; 112 } 113 114 115 <table class="responsive-table clearLeft" border="0" cellspacing="0" cellpadding="0" width="600"> 116 <tr> 117 <td height="10" style="font-size: 0; line-height: 1; background: #f1f2f2;">&nbsp;</td> 118 </tr> 119 <tr> 120 <td border="0" cellspacing="0" cellpadding="0" width="@col" style="background: #fff; @fontFamily " class="responsive-table"> 121 <table border="0" cellspacing="0" cellpadding="0" width="@col" style=" @fontFamily" class="responsive-table" > 122 123 @if(subtitle != ""){ 124 <tr> 125 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 126 <@titleHeading style="@fontFamily font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; ">@subtitle @endHeading 127 </td> 128 </tr> 129 } 130 @if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 131 <tr> 132 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 133 <@titleHeading style="font-size: 22px; padding:0; margin:0; @fontFamily color:#fcae16;">@title @endHeading 134 </td> 135 </tr> 136 } 137 @if(image != "" && imageAlignment == "image-top"){ 138 imageTitle = imageTitle != "" ? imageTitle : title; 139 <tr> 140 <td class="cell-padding" align="center" valign="top" style="text-align: center;"> 141 @imageAnchorStart 142 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 143 <img class="img-max" src="@GetImage(image, 700, 0)" alt="@imageTitle" title="@imageTitle" style="display: block; margin: 0 auto; width: 100%;" /> 144 } 145 @imageAnchorEnd 146 </td> 147 </tr> 148 149 } 150 151 @if(text != "" || imageAlignment != "image-top"){ 152 <tr> 153 <td width="10" height="20" style="font-size: 0; line-height: 1; background: #fff;">&nbsp;</td> 154 </tr> 155 <tr> 156 <td class="cell-padding" align="left" valign="top" style="text-align: center; background: #fff;"> 157 <table class="imageAside" border="0" cellspacing="0" cellpadding="0" width="100%" style="@fontFamily "> 158 <tr> 159 @if(image != "" && imageAlignment == "image-left-column"){ 160 imageTitle = imageTitle != "" ? imageTitle : title; 161 <td align="left" valign="top" style="padding: 10px; "> 162 163 @imageAnchorStart 164 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 165 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle"/> 166 } 167 @imageAnchorEnd 168 </td> 169 <td width="10" height="30">&nbsp;</td> 170 } 171 @if(text != ""){ 172 <td align="@titleAlignment" valign="top" style="text-align: left; font-size: 14px; line-height: 20px; @fontFamily background: #fff; padding: 0 30px 20px;"> 173 @if( title != "" && titleOrder == "title-with-text" ){ 174 <div><@titleHeading align="@titleAlignment" style="font-size: 22px; margin:0; padding:0; @fontFamily color:#333333;">@title @endHeading </div> 175 <br/> 176 } 177 @text 178 @if(link != "" && linkText != "" && showButton){ 179 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 180 <tr> 181 <td> 182 <table align="right" border="0" cellspacing="0" cellpadding="0" style="margin-top: 20px;"> 183 <tr> 184 <td> 185 @CreateButton(link, linkText, null, dict_buttonBlue) 186 </td> 187 </tr> 188 </table> 189 </td> 190 </tr> 191 </table> 192 } 193 </td> 194 } 195 @if(image != "" && imageAlignment == "image-right-column"){ 196 imageTitle = imageTitle != "" ? imageTitle : title; 197 <td width="10" height="10">&nbsp;</td> 198 <td align="right" valign="top"> 199 @imageAnchorStart 200 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 201 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle" /> 202 } 203 @imageAnchorEnd 204 </td> 205 } 206 </tr> 207 </table> 208 </td> 209 </tr> 210 <tr> 211 <td width="10" height="10" style="font-size: 0; line-height: 1;">&nbsp;</td> 212 </tr> 213 } 214 <tr> 215 <td> 216 @GetValue("ParagraphModule") 217 </td> 218 </tr> 219 </table> 220 </td> 221 </tr> 222 </table> 223 224
Error compiling template "Designs/TTonlineNew/EmailMarketing/Paragraph/EmailMarketingParagraph.cshtml"
Line 190: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 196: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 197: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)

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 using System.Linq; 15 16 #line 4 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 17 using Dynamicweb.Rendering; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_1addb74006554213b1223f26b69f1759 : RazorTemplateBase<RazorTemplateModel<Template>> { 24 25 #line hidden 26 27 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 28 public RazorEngine.Templating.TemplateWriter CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 29 #line default 30 #line hidden 31 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 32 33 #line 5 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 34 35 string rect = style, 36 anchor = style; 37 38 if(string.IsNullOrEmpty(style)){ 39 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 40 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 41 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 42 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 43 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 44 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 45 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 46 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 47 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 48 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 49 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 50 51 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 52 } 53 54 55 56 57 #line default 58 #line hidden 59 WriteLiteralTo(__razor_helper_writer, " <a"); 60 61 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 62 63 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 64 65 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2246), Tuple.Create("\"", 2258) 66 67 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 68 , Tuple.Create(Tuple.Create("", 2253), Tuple.Create<System.Object, System.Int32>(link 69 70 #line default 71 #line hidden 72 , 2253), false) 73 ); 74 75 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2259), Tuple.Create("\"", 2274) 76 77 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 78 , Tuple.Create(Tuple.Create("", 2267), Tuple.Create<System.Object, System.Int32>(anchor 79 80 #line default 81 #line hidden 82 , 2267), false) 83 ); 84 85 WriteLiteralTo(__razor_helper_writer, ">"); 86 87 88 #line 26 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 89 WriteTo(__razor_helper_writer, text); 90 91 92 #line default 93 #line hidden 94 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 95 96 97 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 98 99 100 101 #line default 102 #line hidden 103 }); 104 105 #line 28 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 106 } 107 #line default 108 #line hidden 109 110 111 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 112 113 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 114 { 115 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 116 string currDevice = currentPageview.Device.ToString(), 117 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 118 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 119 widthString = "", 120 heightString = "", 121 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 122 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 123 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 124 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 125 getImageHeight = imageHeight != 0 ? imageHeight : 0; 126 127 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 128 { 129 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 130 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 131 } 132 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 133 { 134 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 135 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 136 } 137 138 if (getImageWidth != 0) 139 { 140 widthString = "&amp;Width=" + getImageWidth; 141 } 142 if (getImageHeight != 0) 143 { 144 heightString = "&amp;Height=" + getImageHeight; 145 } 146 147 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 148 return output; 149 } 150 151 #line default 152 #line hidden 153 154 155 public RazorEngine_1addb74006554213b1223f26b69f1759() { 156 } 157 158 public override void Execute() { 159 WriteLiteral("\r\n"); 160 161 162 #line 30 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 163 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 164 165 #line default 166 #line hidden 167 WriteLiteral("\r\n"); 168 169 170 #line 70 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 171 172 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 173 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 174 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 175 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 176 string titleOrder = GetString("Item.TitleOrder"); 177 string image = GetString("Item.Image"); 178 string imageTitle = GetString("Item.ImageTitle"); 179 string text = GetString("Item.Text"); 180 string imageAlignment = GetString("Item.Order"); 181 string backgroundColor = GetString("Item.Background"); 182 string link = GetString("Item.Link"); 183 string linkText = GetString("Item.LinkText"); 184 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 185 string imageAnchorEnd = link != "" ? "</a>" : ""; 186 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 187 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 188 int width = GetInteger("Item.Width"); 189 string col = width == 50 ? "324" : "600"; 190 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 191 192 if (GetBoolean("ParagraphContainerIsFirst")) 193 { 194 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 195 } 196 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 197 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 198 System.Web.HttpContext.Current.Items["currentColumns"] = width; 199 } 200 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 201 { 202 {"background", "#fcae16"}, 203 {"color", "#ffffff"}, 204 {"font-size", "12px"}, 205 {"font-style", "normal"}, 206 {"text-align", "left"}, 207 {"padding", "5px 20px"} 208 }; 209 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 210 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 211 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 212 string endHeading = "</"+titleHeading+">"; 213 214 215 #line default 216 #line hidden 217 WriteLiteral("\r\n\r\n\r\n<table"); 218 219 WriteLiteral(" class=\"responsive-table clearLeft\""); 220 221 WriteLiteral(" border=\"0\""); 222 223 WriteLiteral(" cellspacing=\"0\""); 224 225 WriteLiteral(" cellpadding=\"0\""); 226 227 WriteLiteral(" width=\"600\""); 228 229 WriteLiteral("> \r\n <tr>\r\n <td"); 230 231 WriteLiteral(" height=\"10\""); 232 233 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #f1f2f2;\""); 234 235 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td"); 236 237 WriteLiteral(" border=\"0\""); 238 239 WriteLiteral(" cellspacing=\"0\""); 240 241 WriteLiteral(" cellpadding=\"0\""); 242 243 WriteAttribute("width", Tuple.Create(" width=\"", 7907), Tuple.Create("\"", 7919) 244 245 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 246 , Tuple.Create(Tuple.Create("", 7915), Tuple.Create<System.Object, System.Int32>(col 247 248 #line default 249 #line hidden 250 , 7915), false) 251 ); 252 253 WriteAttribute("style", Tuple.Create(" style=\"", 7920), Tuple.Create("\"", 7958) 254 , Tuple.Create(Tuple.Create("", 7928), Tuple.Create("background:", 7928), true) 255 , Tuple.Create(Tuple.Create(" ", 7939), Tuple.Create("#fff;", 7940), true) 256 257 #line 120 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 258 , Tuple.Create(Tuple.Create(" ", 7945), Tuple.Create<System.Object, System.Int32>(fontFamily 259 260 #line default 261 #line hidden 262 , 7946), false) 263 , Tuple.Create(Tuple.Create(" ", 7957), Tuple.Create("", 7957), true) 264 ); 265 266 WriteLiteral(" class=\"responsive-table\""); 267 268 WriteLiteral(">\r\n <table"); 269 270 WriteLiteral(" border=\"0\""); 271 272 WriteLiteral(" cellspacing=\"0\""); 273 274 WriteLiteral(" cellpadding=\"0\""); 275 276 WriteAttribute("width", Tuple.Create(" width=\"", 8044), Tuple.Create("\"", 8056) 277 278 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 279 , Tuple.Create(Tuple.Create("", 8052), Tuple.Create<System.Object, System.Int32>(col 280 281 #line default 282 #line hidden 283 , 8052), false) 284 ); 285 286 WriteAttribute("style", Tuple.Create(" style=\"", 8057), Tuple.Create("\"", 8077) 287 288 #line 121 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 289 , Tuple.Create(Tuple.Create(" ", 8065), Tuple.Create<System.Object, System.Int32>(fontFamily 290 291 #line default 292 #line hidden 293 , 8066), false) 294 ); 295 296 WriteLiteral(" class=\"responsive-table\""); 297 298 WriteLiteral(" >\r\n \t\r\n"); 299 300 301 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 302 303 304 #line default 305 #line hidden 306 307 #line 123 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 308 if(subtitle != ""){ 309 310 311 #line default 312 #line hidden 313 WriteLiteral(" <tr>\r\n <td"); 314 315 WriteLiteral(" class=\"cell-padding\""); 316 317 WriteAttribute("align", Tuple.Create(" align=\"", 8194), Tuple.Create("\"", 8217) 318 319 #line 125 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 320 , Tuple.Create(Tuple.Create("", 8202), Tuple.Create<System.Object, System.Int32>(titleAlignment 321 322 #line default 323 #line hidden 324 , 8202), false) 325 ); 326 327 WriteLiteral(" valign=\"top\""); 328 329 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 330 331 WriteLiteral(">\r\n <"); 332 333 334 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 335 Write(titleHeading); 336 337 338 #line default 339 #line hidden 340 WriteLiteral(" style=\""); 341 342 343 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 344 Write(fontFamily); 345 346 347 #line default 348 #line hidden 349 WriteLiteral(" font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; \">"); 350 351 352 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 353 Write(subtitle); 354 355 356 #line default 357 #line hidden 358 WriteLiteral(" "); 359 360 361 #line 126 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 362 Write(endHeading); 363 364 365 #line default 366 #line hidden 367 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 368 369 370 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 371 } 372 373 374 #line default 375 #line hidden 376 WriteLiteral(" "); 377 378 379 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 380 if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 381 382 383 #line default 384 #line hidden 385 WriteLiteral(" <tr>\r\n <td"); 386 387 WriteLiteral(" class=\"cell-padding\""); 388 389 WriteAttribute("align", Tuple.Create(" align=\"", 8608), Tuple.Create("\"", 8631) 390 391 #line 132 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 392 , Tuple.Create(Tuple.Create("", 8616), Tuple.Create<System.Object, System.Int32>(titleAlignment 393 394 #line default 395 #line hidden 396 , 8616), false) 397 ); 398 399 WriteLiteral(" valign=\"top\""); 400 401 WriteLiteral(" style=\"text-align: left; padding: 10px;\""); 402 403 WriteLiteral(">\r\n <"); 404 405 406 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 407 Write(titleHeading); 408 409 410 #line default 411 #line hidden 412 WriteLiteral(" style=\"font-size: 22px; padding:0; margin:0; "); 413 414 415 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 416 Write(fontFamily); 417 418 419 #line default 420 #line hidden 421 WriteLiteral(" color:#fcae16;\">"); 422 423 424 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 425 Write(title); 426 427 428 #line default 429 #line hidden 430 WriteLiteral(" "); 431 432 433 #line 133 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 434 Write(endHeading); 435 436 437 #line default 438 #line hidden 439 WriteLiteral("\r\n </td> \r\n </tr>\r\n"); 440 441 442 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 443 } 444 445 446 #line default 447 #line hidden 448 WriteLiteral(" "); 449 450 451 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 452 if(image != "" && imageAlignment == "image-top"){ 453 imageTitle = imageTitle != "" ? imageTitle : title; 454 455 456 #line default 457 #line hidden 458 WriteLiteral(" <tr>\r\n <td"); 459 460 WriteLiteral(" class=\"cell-padding\""); 461 462 WriteLiteral(" align=\"center\""); 463 464 WriteLiteral(" valign=\"top\""); 465 466 WriteLiteral(" style=\"text-align: center;\""); 467 468 WriteLiteral(">\r\n"); 469 470 WriteLiteral(" "); 471 472 473 #line 141 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 474 Write(imageAnchorStart); 475 476 477 #line default 478 #line hidden 479 WriteLiteral("\r\n"); 480 481 482 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 483 484 485 #line default 486 #line hidden 487 488 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 489 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 490 491 492 #line default 493 #line hidden 494 WriteLiteral(" <img"); 495 496 WriteLiteral(" class=\"img-max\""); 497 498 WriteAttribute("src", Tuple.Create(" src=\"", 9245), Tuple.Create("\"", 9275) 499 500 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 501 , Tuple.Create(Tuple.Create("", 9251), Tuple.Create<System.Object, System.Int32>(GetImage(image, 700, 0) 502 503 #line default 504 #line hidden 505 , 9251), false) 506 ); 507 508 WriteAttribute("alt", Tuple.Create(" alt=\"", 9276), Tuple.Create("\"", 9293) 509 510 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 511 , Tuple.Create(Tuple.Create("", 9282), Tuple.Create<System.Object, System.Int32>(imageTitle 512 513 #line default 514 #line hidden 515 , 9282), false) 516 ); 517 518 WriteAttribute("title", Tuple.Create(" title=\"", 9294), Tuple.Create("\"", 9313) 519 520 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 521 , Tuple.Create(Tuple.Create("", 9302), Tuple.Create<System.Object, System.Int32>(imageTitle 522 523 #line default 524 #line hidden 525 , 9302), false) 526 ); 527 528 WriteLiteral(" style=\"display: block; margin: 0 auto; width: 100%;\""); 529 530 WriteLiteral(" />\r\n"); 531 532 533 #line 144 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 534 } 535 536 537 #line default 538 #line hidden 539 WriteLiteral(" "); 540 541 542 #line 145 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 543 Write(imageAnchorEnd); 544 545 546 #line default 547 #line hidden 548 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 549 550 551 #line 148 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 552 553 } 554 555 556 #line default 557 #line hidden 558 WriteLiteral("\r\n"); 559 560 561 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 562 563 564 #line default 565 #line hidden 566 567 #line 151 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 568 if(text != "" || imageAlignment != "image-top"){ 569 570 571 #line default 572 #line hidden 573 WriteLiteral(" <tr>\r\n <td"); 574 575 WriteLiteral(" width=\"10\""); 576 577 WriteLiteral(" height=\"20\""); 578 579 WriteLiteral(" style=\"font-size: 0; line-height: 1; background: #fff;\""); 580 581 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 582 583 WriteLiteral(" <tr>\r\n <td"); 584 585 WriteLiteral(" class=\"cell-padding\""); 586 587 WriteLiteral(" align=\"left\""); 588 589 WriteLiteral(" valign=\"top\""); 590 591 WriteLiteral(" style=\"text-align: center; background: #fff;\""); 592 593 WriteLiteral(">\r\n <table"); 594 595 WriteLiteral(" class=\"imageAside\""); 596 597 WriteLiteral(" border=\"0\""); 598 599 WriteLiteral(" cellspacing=\"0\""); 600 601 WriteLiteral(" cellpadding=\"0\""); 602 603 WriteLiteral(" width=\"100%\""); 604 605 WriteAttribute("style", Tuple.Create(" style=\"", 9906), Tuple.Create("\"", 9926) 606 607 #line 157 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 608 , Tuple.Create(Tuple.Create("", 9914), Tuple.Create<System.Object, System.Int32>(fontFamily 609 610 #line default 611 #line hidden 612 , 9914), false) 613 , Tuple.Create(Tuple.Create(" ", 9925), Tuple.Create("", 9925), true) 614 ); 615 616 WriteLiteral(">\r\n <tr>\r\n"); 617 618 619 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 620 621 622 #line default 623 #line hidden 624 625 #line 159 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 626 if(image != "" && imageAlignment == "image-left-column"){ 627 imageTitle = imageTitle != "" ? imageTitle : title; 628 629 630 #line default 631 #line hidden 632 WriteLiteral(" <td"); 633 634 WriteLiteral(" align=\"left\""); 635 636 WriteLiteral(" valign=\"top\""); 637 638 WriteLiteral(" style=\"padding: 10px; \""); 639 640 WriteLiteral("> \r\n \r\n"); 641 642 WriteLiteral(" "); 643 644 645 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 646 Write(imageAnchorStart); 647 648 649 #line default 650 #line hidden 651 WriteLiteral("\r\n"); 652 653 654 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 655 656 657 #line default 658 #line hidden 659 660 #line 164 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 661 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 662 663 664 #line default 665 #line hidden 666 WriteLiteral(" <img"); 667 668 WriteLiteral(" class=\"img-max\""); 669 670 WriteAttribute("src", Tuple.Create(" src=\"", 10391), Tuple.Create("\"", 10421) 671 672 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 673 , Tuple.Create(Tuple.Create("", 10397), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 674 675 #line default 676 #line hidden 677 , 10397), false) 678 ); 679 680 WriteAttribute("alt", Tuple.Create(" alt=\"", 10422), Tuple.Create("\"", 10439) 681 682 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 683 , Tuple.Create(Tuple.Create("", 10428), Tuple.Create<System.Object, System.Int32>(imageTitle 684 685 #line default 686 #line hidden 687 , 10428), false) 688 ); 689 690 WriteAttribute("title", Tuple.Create(" title=\"", 10440), Tuple.Create("\"", 10459) 691 692 #line 165 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 693 , Tuple.Create(Tuple.Create("", 10448), Tuple.Create<System.Object, System.Int32>(imageTitle 694 695 #line default 696 #line hidden 697 , 10448), false) 698 ); 699 700 WriteLiteral("/>\r\n"); 701 702 703 #line 166 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 704 } 705 706 707 #line default 708 #line hidden 709 WriteLiteral(" "); 710 711 712 #line 167 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 713 Write(imageAnchorEnd); 714 715 716 #line default 717 #line hidden 718 WriteLiteral("\r\n </td>\r\n"); 719 720 WriteLiteral(" <td"); 721 722 WriteLiteral(" width=\"10\""); 723 724 WriteLiteral(" height=\"30\""); 725 726 WriteLiteral(">&nbsp;</td>\r\n"); 727 728 729 #line 170 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 730 } 731 732 733 #line default 734 #line hidden 735 WriteLiteral(" "); 736 737 738 #line 171 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 739 if(text != ""){ 740 741 742 #line default 743 #line hidden 744 WriteLiteral(" <td"); 745 746 WriteAttribute("align", Tuple.Create(" align=\"", 10697), Tuple.Create("\"", 10720) 747 748 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 749 , Tuple.Create(Tuple.Create("", 10705), Tuple.Create<System.Object, System.Int32>(titleAlignment 750 751 #line default 752 #line hidden 753 , 10705), false) 754 ); 755 756 WriteLiteral(" valign=\"top\""); 757 758 WriteAttribute("style", Tuple.Create(" style=\"", 10734), Tuple.Create("\"", 10847) 759 , Tuple.Create(Tuple.Create("", 10742), Tuple.Create("text-align:", 10742), true) 760 , Tuple.Create(Tuple.Create(" ", 10753), Tuple.Create("left;", 10754), true) 761 , Tuple.Create(Tuple.Create(" ", 10759), Tuple.Create("font-size:", 10760), true) 762 , Tuple.Create(Tuple.Create(" ", 10770), Tuple.Create("14px;", 10771), true) 763 , Tuple.Create(Tuple.Create(" ", 10776), Tuple.Create("line-height:", 10777), true) 764 , Tuple.Create(Tuple.Create(" ", 10789), Tuple.Create("20px;", 10790), true) 765 766 #line 172 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 767 , Tuple.Create(Tuple.Create(" ", 10795), Tuple.Create<System.Object, System.Int32>(fontFamily 768 769 #line default 770 #line hidden 771 , 10796), false) 772 , Tuple.Create(Tuple.Create(" ", 10807), Tuple.Create("background:", 10808), true) 773 , Tuple.Create(Tuple.Create(" ", 10819), Tuple.Create("#fff;", 10820), true) 774 , Tuple.Create(Tuple.Create(" ", 10825), Tuple.Create("padding:", 10826), true) 775 , Tuple.Create(Tuple.Create(" ", 10834), Tuple.Create("0", 10835), true) 776 , Tuple.Create(Tuple.Create(" ", 10836), Tuple.Create("30px", 10837), true) 777 , Tuple.Create(Tuple.Create(" ", 10841), Tuple.Create("20px;", 10842), true) 778 ); 779 780 WriteLiteral(">\r\n"); 781 782 783 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 784 785 786 #line default 787 #line hidden 788 789 #line 173 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 790 if( title != "" && titleOrder == "title-with-text" ){ 791 792 793 #line default 794 #line hidden 795 WriteLiteral(" \t\t <div><"); 796 797 798 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 799 Write(titleHeading); 800 801 802 #line default 803 #line hidden 804 WriteLiteral(" align=\""); 805 806 807 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 808 Write(titleAlignment); 809 810 811 #line default 812 #line hidden 813 WriteLiteral("\" style=\"font-size: 22px; margin:0; padding:0; "); 814 815 816 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 817 Write(fontFamily); 818 819 820 #line default 821 #line hidden 822 WriteLiteral(" color:#333333;\">"); 823 824 825 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 826 Write(title); 827 828 829 #line default 830 #line hidden 831 WriteLiteral(" "); 832 833 834 #line 174 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 835 Write(endHeading); 836 837 838 #line default 839 #line hidden 840 WriteLiteral(" </div>\r\n"); 841 842 WriteLiteral(" <br/>\r\n"); 843 844 845 #line 176 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 846 } 847 848 849 #line default 850 #line hidden 851 WriteLiteral(" "); 852 853 854 #line 177 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 855 Write(text); 856 857 858 #line default 859 #line hidden 860 WriteLiteral("\r\n"); 861 862 863 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 864 865 866 #line default 867 #line hidden 868 869 #line 178 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 870 if(link != "" && linkText != "" && showButton){ 871 872 873 #line default 874 #line hidden 875 WriteLiteral(" \t\t<table"); 876 877 WriteLiteral(" border=\"0\""); 878 879 WriteLiteral(" cellspacing=\"0\""); 880 881 WriteLiteral(" cellpadding=\"0\""); 882 883 WriteLiteral(" width=\"100%\""); 884 885 WriteLiteral(">\r\n \t\t\t\t\t\t <tr>\r\n <td>\r\n \t\t\t\t\t\t\t\t " + 886 " <table"); 887 888 WriteLiteral(" align=\"right\""); 889 890 WriteLiteral(" border=\"0\""); 891 892 WriteLiteral(" cellspacing=\"0\""); 893 894 WriteLiteral(" cellpadding=\"0\""); 895 896 WriteLiteral(" style=\"margin-top: 20px;\""); 897 898 WriteLiteral(">\r\n <tr>\r\n <td>\r\n" + 899 ""); 900 901 WriteLiteral(" \t\t\t\t\t\t\t\t\t\t "); 902 903 904 #line 185 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 905 Write(CreateButton(link, linkText, null, dict_buttonBlue)); 906 907 908 #line default 909 #line hidden 910 WriteLiteral("\r\n \t\t\t\t\t\t\t\t\t </td>\r\n </tr>\r\n " + 911 " </table>\r\n \t\t\t\t\t\t\t </td>\r\n " + 912 " </tr>\r\n </table>\r\n"); 913 914 915 #line 192 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 916 } 917 918 919 #line default 920 #line hidden 921 WriteLiteral(" </td>\r\n"); 922 923 924 #line 194 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 925 } 926 927 928 #line default 929 #line hidden 930 WriteLiteral(" "); 931 932 933 #line 195 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 934 if(image != "" && imageAlignment == "image-right-column"){ 935 imageTitle = imageTitle != "" ? imageTitle : title; 936 937 938 #line default 939 #line hidden 940 WriteLiteral(" <td"); 941 942 WriteLiteral(" width=\"10\""); 943 944 WriteLiteral(" height=\"10\""); 945 946 WriteLiteral(">&nbsp;</td>\r\n"); 947 948 WriteLiteral(" <td"); 949 950 WriteLiteral(" align=\"right\""); 951 952 WriteLiteral(" valign=\"top\""); 953 954 WriteLiteral("> \r\n"); 955 956 WriteLiteral(" "); 957 958 959 #line 199 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 960 Write(imageAnchorStart); 961 962 963 #line default 964 #line hidden 965 WriteLiteral("\r\n"); 966 967 968 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 969 970 971 #line default 972 #line hidden 973 974 #line 200 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 975 if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 976 977 978 #line default 979 #line hidden 980 WriteLiteral(" \t<img"); 981 982 WriteLiteral(" class=\"img-max\""); 983 984 WriteAttribute("src", Tuple.Create(" src=\"", 12426), Tuple.Create("\"", 12456) 985 986 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 987 , Tuple.Create(Tuple.Create("", 12432), Tuple.Create<System.Object, System.Int32>(GetImage(image, 250, 0) 988 989 #line default 990 #line hidden 991 , 12432), false) 992 ); 993 994 WriteAttribute("alt", Tuple.Create(" alt=\"", 12457), Tuple.Create("\"", 12474) 995 996 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 997 , Tuple.Create(Tuple.Create("", 12463), Tuple.Create<System.Object, System.Int32>(imageTitle 998 999 #line default 1000 #line hidden 1001 , 12463), false) 1002 ); 1003 1004 WriteAttribute("title", Tuple.Create(" title=\"", 12475), Tuple.Create("\"", 12494) 1005 1006 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1007 , Tuple.Create(Tuple.Create("", 12483), Tuple.Create<System.Object, System.Int32>(imageTitle 1008 1009 #line default 1010 #line hidden 1011 , 12483), false) 1012 ); 1013 1014 WriteLiteral(" />\r\n"); 1015 1016 1017 #line 202 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1018 } 1019 1020 1021 #line default 1022 #line hidden 1023 WriteLiteral(" \t\t "); 1024 1025 1026 #line 203 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1027 Write(imageAnchorEnd); 1028 1029 1030 #line default 1031 #line hidden 1032 WriteLiteral("\r\n </td>\r\n"); 1033 1034 1035 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1036 } 1037 1038 1039 #line default 1040 #line hidden 1041 WriteLiteral(" </tr>\r\n </table>\r\n </td>\r\n </tr>" + 1042 "\r\n"); 1043 1044 WriteLiteral(" <tr>\r\n <td"); 1045 1046 WriteLiteral(" width=\"10\""); 1047 1048 WriteLiteral(" height=\"10\""); 1049 1050 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 1051 1052 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 1053 1054 1055 #line 213 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1056 } 1057 1058 1059 #line default 1060 #line hidden 1061 WriteLiteral(" \t\t <tr>\r\n <td>\r\n"); 1062 1063 WriteLiteral(" "); 1064 1065 1066 #line 216 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingParagraph.cshtml" 1067 Write(GetValue("ParagraphModule")); 1068 1069 1070 #line default 1071 #line hidden 1072 WriteLiteral(" \r\n </td> \r\n </tr> \r\n </table>\r\n </td>\r\n </tr> \r\n</ta" + 1073 "ble>\r\n\r\n"); 1074 1075 } 1076 } 1077 } 1078

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 4 @using Dynamicweb.Rendering; 5 @helper CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 6 string rect = style, 7 anchor = style; 8 9 if(string.IsNullOrEmpty(style)){ 10 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 11 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 12 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 13 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 14 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 15 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 16 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 17 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 18 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 19 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 20 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 21 22 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 23 } 24 25 26 <a class="mobile-button" target="_blank" href="@link" style="@anchor">@text</a> 27 28 } 29 @*Include("../emailMarketingGetImage.cshtml")*@ 30 @{ string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); }@functions{ 31 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignFolder") 32 { 33 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 34 string currDevice = currentPageview.Device.ToString(), 35 //alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 36 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "http://placehold.it/760x300", 37 widthString = "", 38 heightString = "", 39 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 40 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 41 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 42 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 43 getImageHeight = imageHeight != 0 ? imageHeight : 0; 44 45 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 46 { 47 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 48 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 49 } 50 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 51 { 52 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 53 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 54 } 55 56 if (getImageWidth != 0) 57 { 58 widthString = "&amp;Width=" + getImageWidth; 59 } 60 if (getImageHeight != 0) 61 { 62 heightString = "&amp;Height=" + getImageHeight; 63 } 64 65 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 66 return output; 67 } 68 } 69 70 @{ 71 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 72 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 73 string subtitle = GetBoolean("Item.ShowTitle") ? GetString("Item.Subtitle") : ""; 74 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 75 string titleOrder = GetString("Item.TitleOrder"); 76 string image = GetString("Item.Image"); 77 string imageTitle = GetString("Item.ImageTitle"); 78 string text = GetString("Item.Text"); 79 string imageAlignment = GetString("Item.Order"); 80 string backgroundColor = GetString("Item.Background"); 81 string link = GetString("Item.Link"); 82 string linkText = GetString("Item.LinkText"); 83 string imageAnchorStart = link != "" ? "<a target=\"_blank\" href=\"" + link + "\">" : ""; 84 string imageAnchorEnd = link != "" ? "</a>" : ""; 85 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 86 string fontFamily = "font-family: Arial, Tahoma, sans-serif; color:#333; font-weight:normal;"; 87 int width = GetInteger("Item.Width"); 88 string col = width == 50 ? "324" : "600"; 89 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 90 91 if (GetBoolean("ParagraphContainerIsFirst")) 92 { 93 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 94 } 95 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 96 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 97 System.Web.HttpContext.Current.Items["currentColumns"] = width; 98 } 99 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 100 { 101 {"background", "#fcae16"}, 102 {"color", "#ffffff"}, 103 {"font-size", "12px"}, 104 {"font-style", "normal"}, 105 {"text-align", "left"}, 106 {"padding", "5px 20px"} 107 }; 108 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetBoolean("ParagraphContainerIsFirst") ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='648'><tr>" : ""; 109 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 110 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 111 string endHeading = "</"+titleHeading+">"; 112 } 113 114 115 <table class="responsive-table clearLeft" border="0" cellspacing="0" cellpadding="0" width="600"> 116 <tr> 117 <td height="10" style="font-size: 0; line-height: 1; background: #f1f2f2;">&nbsp;</td> 118 </tr> 119 <tr> 120 <td border="0" cellspacing="0" cellpadding="0" width="@col" style="background: #fff; @fontFamily " class="responsive-table"> 121 <table border="0" cellspacing="0" cellpadding="0" width="@col" style=" @fontFamily" class="responsive-table" > 122 123 @if(subtitle != ""){ 124 <tr> 125 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 126 <@titleHeading style="@fontFamily font-size: 10px; font-weight: 600; padding:0; margin:0; color:#203742; ">@subtitle @endHeading 127 </td> 128 </tr> 129 } 130 @if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 131 <tr> 132 <td class="cell-padding" align="@titleAlignment" valign="top" style="text-align: left; padding: 10px;"> 133 <@titleHeading style="font-size: 22px; padding:0; margin:0; @fontFamily color:#fcae16;">@title @endHeading 134 </td> 135 </tr> 136 } 137 @if(image != "" && imageAlignment == "image-top"){ 138 imageTitle = imageTitle != "" ? imageTitle : title; 139 <tr> 140 <td class="cell-padding" align="center" valign="top" style="text-align: center;"> 141 @imageAnchorStart 142 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 143 <img class="img-max" src="@GetImage(image, 700, 0)" alt="@imageTitle" title="@imageTitle" style="display: block; margin: 0 auto; width: 100%;" /> 144 } 145 @imageAnchorEnd 146 </td> 147 </tr> 148 149 } 150 151 @if(text != "" || imageAlignment != "image-top"){ 152 <tr> 153 <td width="10" height="20" style="font-size: 0; line-height: 1; background: #fff;">&nbsp;</td> 154 </tr> 155 <tr> 156 <td class="cell-padding" align="left" valign="top" style="text-align: center; background: #fff;"> 157 <table class="imageAside" border="0" cellspacing="0" cellpadding="0" width="100%" style="@fontFamily "> 158 <tr> 159 @if(image != "" && imageAlignment == "image-left-column"){ 160 imageTitle = imageTitle != "" ? imageTitle : title; 161 <td align="left" valign="top" style="padding: 10px; "> 162 163 @imageAnchorStart 164 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 165 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle"/> 166 } 167 @imageAnchorEnd 168 </td> 169 <td width="10" height="30">&nbsp;</td> 170 } 171 @if(text != ""){ 172 <td align="@titleAlignment" valign="top" style="text-align: left; font-size: 14px; line-height: 20px; @fontFamily background: #fff; padding: 0 30px 20px;"> 173 @if( title != "" && titleOrder == "title-with-text" ){ 174 <div><@titleHeading align="@titleAlignment" style="font-size: 22px; margin:0; padding:0; @fontFamily color:#333333;">@title @endHeading </div> 175 <br/> 176 } 177 @text 178 @if(link != "" && linkText != "" && showButton){ 179 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 180 <tr> 181 <td> 182 <table align="right" border="0" cellspacing="0" cellpadding="0" style="margin-top: 20px;"> 183 <tr> 184 <td> 185 @CreateButton(link, linkText, null, dict_buttonBlue) 186 </td> 187 </tr> 188 </table> 189 </td> 190 </tr> 191 </table> 192 } 193 </td> 194 } 195 @if(image != "" && imageAlignment == "image-right-column"){ 196 imageTitle = imageTitle != "" ? imageTitle : title; 197 <td width="10" height="10">&nbsp;</td> 198 <td align="right" valign="top"> 199 @imageAnchorStart 200 @if(!String.IsNullOrEmpty(GetString("Item.Image"))) { 201 <img class="img-max" src="@GetImage(image, 250, 0)" alt="@imageTitle" title="@imageTitle" /> 202 } 203 @imageAnchorEnd 204 </td> 205 } 206 </tr> 207 </table> 208 </td> 209 </tr> 210 <tr> 211 <td width="10" height="10" style="font-size: 0; line-height: 1;">&nbsp;</td> 212 </tr> 213 } 214 <tr> 215 <td> 216 @GetValue("ParagraphModule") 217 </td> 218 </tr> 219 </table> 220 </td> 221 </tr> 222 </table> 223 224
Error compiling template "/Designs/TTonlineNew/EmailMarketing/Paragraph/EmailMarketingProductList.cshtml"
Line 194: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 198: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 207: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 208: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 545: The variable 'productPrice' is assigned but its value is never used

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 using System.Linq; 15 16 #line 31 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 17 using Dynamicweb.Rendering; 18 19 #line default 20 #line hidden 21 22 #line 3 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 23 using System.Threading; 24 25 #line default 26 #line hidden 27 28 29 public class RazorEngine_162447b715fa475b92cec90f05a57b48 : RazorTemplateBase<RazorTemplateModel<Template>> { 30 31 #line hidden 32 33 #line 6 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 34 public RazorEngine.Templating.TemplateWriter CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 35 #line default 36 #line hidden 37 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 38 39 #line 6 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 40 41 string rect = style, 42 anchor = style; 43 44 if(string.IsNullOrEmpty(style)){ 45 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 46 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 47 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 48 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 49 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 50 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 51 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 52 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 53 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 54 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 55 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 56 57 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 58 } 59 60 61 62 63 #line default 64 #line hidden 65 WriteLiteralTo(__razor_helper_writer, " <a"); 66 67 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 68 69 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 70 71 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2272), Tuple.Create("\"", 2284) 72 73 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 74 , Tuple.Create(Tuple.Create("", 2279), Tuple.Create<System.Object, System.Int32>(link 75 76 #line default 77 #line hidden 78 , 2279), false) 79 ); 80 81 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2285), Tuple.Create("\"", 2300) 82 83 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 84 , Tuple.Create(Tuple.Create("", 2293), Tuple.Create<System.Object, System.Int32>(anchor 85 86 #line default 87 #line hidden 88 , 2293), false) 89 ); 90 91 WriteLiteralTo(__razor_helper_writer, ">"); 92 93 94 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 95 WriteTo(__razor_helper_writer, text); 96 97 98 #line default 99 #line hidden 100 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 101 102 103 #line 28 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 104 105 106 107 #line default 108 #line hidden 109 }); 110 111 #line 29 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 112 } 113 #line default 114 #line hidden 115 116 117 #line 32 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 118 119 public static string GetImage(string source, int widthNum = 600, int heightNum = 200, string format = "jpg", int num_compression = 100, int num_crop = 5){ 120 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 121 string alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "", 122 width = widthNum != 0 ? "&amp;Width=" + widthNum.ToString() : "", 123 height = heightNum != 0 ? "&amp;Height=" + heightNum.ToString(): ""; 124 format = format != "jpg" ? "&amp;Format=" + format : ""; 125 126 string output = "/Admin/Public/GetImage.ashx?Image=" + source + width + height + "&amp;altFmImage_path=" + alternativeImage + format + "&amp;Compression=" + num_compression + "&amp;Crop=" + num_crop; 127 return output.ToString(); 128 } 129 130 #line default 131 #line hidden 132 133 134 public RazorEngine_162447b715fa475b92cec90f05a57b48() { 135 } 136 137 public override void Execute() { 138 WriteLiteral("\r\n"); 139 140 141 #line 45 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 142 143 var culture1 = System.Globalization.CultureInfo.GetCultureInfo("ro-RO"); 144 var culture2 = System.Globalization.CultureInfo.InvariantCulture; 145 146 bool useCulture1 = string.Equals(Thread.CurrentThread.CurrentCulture.Name, "ro-RO", StringComparison.OrdinalIgnoreCase); 147 148 //Thread.CurrentThread.CurrentCulture = culture2; 149 150 Func<string, bool> isInvariant = (v) => 151 { 152 if (string.IsNullOrEmpty(v)) 153 { 154 return false; 155 } 156 157 if (v.Contains(".") && v.Contains(",")) 158 { 159 return v.IndexOf(',') < v.IndexOf('.') ? true : false; 160 } 161 else if (v.Contains(",")) 162 { 163 return false; 164 } 165 else 166 { 167 return true; 168 } 169 }; 170 171 172 #line default 173 #line hidden 174 WriteLiteral("\r\n\r\n\r\n"); 175 176 177 #line 76 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 178 179 180 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 181 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 182 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 183 string titleOrder = GetString("Item.TitleOrder"); 184 string image = GetString("Item.Image"); 185 string imageTitle = GetString("Item.ImageTitle"); 186 string text = GetString("Item.Text"); 187 string imageAlignment = GetString("Item.Order"); 188 string backgroundColor = GetString("Item.Background"); 189 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 190 string fontFamily = "font-family: 'Open Sans', Verdana, sans-serif; color:#717375; font-weight: 400;"; 191 string fontSize12 = "font-size: 12px"; 192 string fontSize16 = "font-size: 16px"; 193 string padding0 = "padding: 0"; 194 int listColumns = Dynamicweb.Input.FormatInteger(GetString("Item.NumberOfColumns")); 195 string columnWidth = listColumns == 1 ? "100%" : 96 / listColumns + "%" ; 196 int width = GetInteger("Item.Width"); 197 string col = width == 50 ? "324" : "600"; 198 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 199 200 201 List<LoopItem> items = GetLoop("Item.Items"); 202 203 if (GetInteger("ParagraphContainerSort") == 1) 204 { 205 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 206 } 207 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 208 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 209 System.Web.HttpContext.Current.Items["currentColumns"] = width; 210 } 211 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 212 { 213 {"background", "none"}, 214 {"color", "#fcae16"}, 215 {"font-size", "12px"}, 216 {"font-style", "normal"}, 217 {"text-align", "left"}, 218 {"padding", "0"} 219 }; 220 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetInteger("ParagraphContainerSort") == 1 ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='500'><tr>" : ""; 221 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 222 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 223 string endHeading = "</"+titleHeading+">"; 224 225 226 #line default 227 #line hidden 228 WriteLiteral("\r\n\r\n<table"); 229 230 WriteLiteral(" class=\'responsive-table clearLeft\'"); 231 232 WriteLiteral(" border=\'0\'"); 233 234 WriteLiteral(" cellspacing=\'0\'"); 235 236 WriteLiteral(" cellpadding=\'0\'"); 237 238 WriteLiteral(" width=\'600\'"); 239 240 WriteLiteral("> \r\n<tr>\r\n <td"); 241 242 WriteLiteral(" width=\"10\""); 243 244 WriteLiteral(" height=\"10\""); 245 246 WriteLiteral(" style=\"font-size: 0; line-height: 1; background:#f1f2f2;\""); 247 248 WriteLiteral(">&nbsp;</td>\r\n</tr>\r\n<tr>\r\n <td"); 249 250 WriteLiteral(" border=\"0\""); 251 252 WriteLiteral(" cellspacing=\"0\""); 253 254 WriteLiteral(" cellpadding=\"0\""); 255 256 WriteAttribute("width", Tuple.Create(" width=\"", 7062), Tuple.Create("\"", 7074) 257 258 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 259 , Tuple.Create(Tuple.Create("", 7070), Tuple.Create<System.Object, System.Int32>(col 260 261 #line default 262 #line hidden 263 , 7070), false) 264 ); 265 266 WriteAttribute("style", Tuple.Create(" style=\"", 7075), Tuple.Create("\"", 7143) 267 268 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 269 , Tuple.Create(Tuple.Create("", 7083), Tuple.Create<System.Object, System.Int32>(fontFamily 270 271 #line default 272 #line hidden 273 , 7083), false) 274 , Tuple.Create(Tuple.Create("", 7094), Tuple.Create(";", 7094), true) 275 , Tuple.Create(Tuple.Create(" ", 7095), Tuple.Create("background:", 7096), true) 276 , Tuple.Create(Tuple.Create(" ", 7107), Tuple.Create("#ffffff;", 7108), true) 277 , Tuple.Create(Tuple.Create(" ", 7116), Tuple.Create("border:", 7117), true) 278 , Tuple.Create(Tuple.Create(" ", 7124), Tuple.Create("1px", 7125), true) 279 , Tuple.Create(Tuple.Create(" ", 7128), Tuple.Create("solid", 7129), true) 280 , Tuple.Create(Tuple.Create(" ", 7134), Tuple.Create("#f1f2f2;", 7135), true) 281 ); 282 283 WriteLiteral(" class=\"responsive-table\""); 284 285 WriteLiteral(">\r\n \t<table"); 286 287 WriteLiteral(" border=\"0\""); 288 289 WriteLiteral(" cellspacing=\"0\""); 290 291 WriteLiteral(" cellpadding=\"0\""); 292 293 WriteAttribute("width", Tuple.Create(" width=\"", 7226), Tuple.Create("\"", 7238) 294 295 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 296 , Tuple.Create(Tuple.Create("", 7234), Tuple.Create<System.Object, System.Int32>(col 297 298 #line default 299 #line hidden 300 , 7234), false) 301 ); 302 303 WriteAttribute("style", Tuple.Create(" style=\"", 7239), Tuple.Create("\"", 7259) 304 305 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 306 , Tuple.Create(Tuple.Create("", 7247), Tuple.Create<System.Object, System.Int32>(fontFamily 307 308 #line default 309 #line hidden 310 , 7247), false) 311 , Tuple.Create(Tuple.Create("", 7258), Tuple.Create(";", 7258), true) 312 ); 313 314 WriteLiteral(" class=\"responsive-table\""); 315 316 WriteLiteral(">\r\n \t\t"); 317 318 WriteLiteral("\r\n"); 319 320 321 #line 134 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 322 323 324 #line default 325 #line hidden 326 327 #line 134 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 328 if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 329 330 331 #line default 332 #line hidden 333 WriteLiteral(" <tr>\r\n <td"); 334 335 WriteLiteral(" class=\"cell-padding\""); 336 337 WriteAttribute("align", Tuple.Create(" align=\"", 7555), Tuple.Create("\"", 7578) 338 339 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 340 , Tuple.Create(Tuple.Create("", 7563), Tuple.Create<System.Object, System.Int32>(titleAlignment 341 342 #line default 343 #line hidden 344 , 7563), false) 345 ); 346 347 WriteLiteral(" valign=\"top\""); 348 349 WriteAttribute("style", Tuple.Create(" style=\"", 7592), Tuple.Create("\"", 7652) 350 351 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 352 , Tuple.Create(Tuple.Create("", 7600), Tuple.Create<System.Object, System.Int32>(fontFamily 353 354 #line default 355 #line hidden 356 , 7600), false) 357 , Tuple.Create(Tuple.Create("", 7611), Tuple.Create(";", 7611), true) 358 , Tuple.Create(Tuple.Create(" ", 7612), Tuple.Create("background:", 7613), true) 359 , Tuple.Create(Tuple.Create(" ", 7624), Tuple.Create("#fcae16;", 7625), true) 360 , Tuple.Create(Tuple.Create(" ", 7633), Tuple.Create("padding:", 7634), true) 361 , Tuple.Create(Tuple.Create(" ", 7642), Tuple.Create("5px", 7643), true) 362 , Tuple.Create(Tuple.Create(" ", 7646), Tuple.Create("10px;", 7647), true) 363 ); 364 365 WriteLiteral(">\r\n <"); 366 367 368 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 369 Write(titleHeading); 370 371 372 #line default 373 #line hidden 374 WriteLiteral(" style=\"font-size: 16px; padding: 0; margin: 0; "); 375 376 377 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 378 Write(fontFamily); 379 380 381 #line default 382 #line hidden 383 WriteLiteral("; color: #ffffff\" class=\"outlook\">"); 384 385 386 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 387 Write(title); 388 389 390 #line default 391 #line hidden 392 WriteLiteral(" "); 393 394 395 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 396 Write(endHeading); 397 398 399 #line default 400 #line hidden 401 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 402 403 404 #line 140 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 405 } 406 407 408 #line default 409 #line hidden 410 WriteLiteral("\r\n"); 411 412 413 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 414 415 416 #line default 417 #line hidden 418 419 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 420 if(text != ""){ 421 422 423 #line default 424 #line hidden 425 WriteLiteral(" <tr>\r\n <td"); 426 427 WriteLiteral(" width=\"10\""); 428 429 WriteLiteral(" height=\"10\""); 430 431 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 432 433 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 434 435 WriteLiteral(" <tr>\r\n <td"); 436 437 WriteLiteral(" class=\"cell-padding\""); 438 439 WriteLiteral(" align=\"left\""); 440 441 WriteLiteral(" valign=\"top\""); 442 443 WriteAttribute("style", Tuple.Create(" style=\"", 8114), Tuple.Create("\"", 8170) 444 , Tuple.Create(Tuple.Create(" ", 8122), Tuple.Create("line-height:", 8123), true) 445 , Tuple.Create(Tuple.Create(" ", 8135), Tuple.Create("18px;", 8136), true) 446 , Tuple.Create(Tuple.Create(" ", 8141), Tuple.Create("font-size:", 8142), true) 447 , Tuple.Create(Tuple.Create(" ", 8152), Tuple.Create("14px;", 8153), true) 448 449 #line 147 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 450 , Tuple.Create(Tuple.Create(" ", 8158), Tuple.Create<System.Object, System.Int32>(fontFamily 451 452 #line default 453 #line hidden 454 , 8159), false) 455 ); 456 457 WriteLiteral(" class=\"outlook\""); 458 459 WriteLiteral(">\r\n"); 460 461 WriteLiteral(" "); 462 463 464 #line 148 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 465 Write(text); 466 467 468 #line default 469 #line hidden 470 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 471 472 WriteLiteral(" <tr>\r\n <td"); 473 474 WriteLiteral(" width=\"10\""); 475 476 WriteLiteral(" height=\"20\""); 477 478 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 479 480 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 481 482 483 #line 154 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 484 } 485 486 487 #line default 488 #line hidden 489 WriteLiteral(" \t\t"); 490 491 492 #line 155 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 493 if(items.Any()){ 494 495 496 #line default 497 #line hidden 498 WriteLiteral(" \t\t<tr>\r\n <td"); 499 500 WriteLiteral(" width=\"10\""); 501 502 WriteLiteral(" height=\"15\""); 503 504 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 505 506 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 507 508 WriteLiteral(" \t\t<tr>\r\n <td"); 509 510 WriteLiteral(" class=\"cell-padding\""); 511 512 WriteLiteral(" align=\"left\""); 513 514 WriteLiteral(" valign=\"top\""); 515 516 WriteLiteral(" style=\"padding: 0 15px;\""); 517 518 WriteLiteral(">\r\n <table"); 519 520 WriteLiteral(" class=\'responsive-table clearLeft\'"); 521 522 WriteLiteral(" border=\'0\'"); 523 524 WriteLiteral(" cellspacing=\'0\'"); 525 526 WriteLiteral(" cellpadding=\'0\'"); 527 528 WriteLiteral(" width=\'100%\'"); 529 530 WriteLiteral("> \r\n <tr>\r\n"); 531 532 533 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 534 535 536 #line default 537 #line hidden 538 539 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 540 int count = 1; 541 int totalItems = items.Count(); 542 foreach (LoopItem item in items){ 543 string productTitle = ""; 544 string productImage = ""; 545 string productPrice = ""; 546 string productLink = ""; 547 double priceProductDB = 0; 548 double priceProductDiscount = 0; 549 550 var product = item.GetLoop("Item.Items.Product").FirstOrDefault(); 551 if (product != null) { 552 productTitle = product.GetString("Ecom:Product.Name"); 553 productImage = product.GetString("Ecom:Product.ImageLarge.Clean"); 554 //productPrice = product.GetString("Ecom:Product.Price"); 555 productLink = product.GetString("Ecom:Product.LinkGroup.Clean"); 556 557 double cultureDBPrice = double.Parse(product.GetString("Ecom:Product.DBPrice"), isInvariant(product.GetString("Ecom:Product.DBPrice")) ? culture2 : culture1); 558 double culturePriceWithVAT = double.Parse(product.GetString("Ecom:Product.Price.PriceWithVAT"), isInvariant(product.GetString("Ecom:Product.Price.PriceWithVAT")) ? culture2 : culture1); 559 double cultureVATPercent = double.Parse(product.GetString("Ecom:Product.Price.VATPercent"), culture2); 560 561 priceProductDB = Math.Round(cultureDBPrice * (1+cultureVATPercent/100.0) ,2); 562 priceProductDiscount = Math.Round(culturePriceWithVAT,2); 563 } 564 string itemImage = item.GetString("Item.Items.Image"); 565 string itemTitle = item.GetString("Item.Items.Title"); 566 bool showPrice= item.GetBoolean("Item.Items.Show_Price"); 567 string itemLink = item.GetString("Item.Items.Link"); 568 string itemLinkText = item.GetString("Item.Items.LinkText"); 569 570 string RenderTitle = !string.IsNullOrEmpty(itemTitle) ? itemTitle : productTitle; 571 string RenderImage = !string.IsNullOrEmpty(itemImage) ? itemImage : productImage; 572 string RenderLink = !string.IsNullOrEmpty(productLink) ? productLink : itemLink; 573 //RenderLink = "http://www.brandfusion.ro/" + RenderLink; 574 //RenderImage = "http://www.brandfusion.ro" + RenderImage; 575 576 string imageAnchorStart = RenderLink != "" ? "<a target=\"_blank\" href=\"" + RenderLink + "\">" : ""; 577 string imageAnchorEnd = RenderLink != "" ? "</a>" : ""; 578 if(count != 1 && listColumns != 1) { 579 580 #line default 581 #line hidden 582 WriteLiteral(" <td"); 583 584 WriteLiteral(" width=\'2%\'"); 585 586 WriteLiteral(">&nbsp;</td> "); 587 588 589 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 590 } 591 592 593 #line default 594 #line hidden 595 WriteLiteral(" <td"); 596 597 WriteAttribute("width", Tuple.Create(" width=\'", 11946), Tuple.Create("\'", 11966) 598 599 #line 202 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 600 , Tuple.Create(Tuple.Create("", 11954), Tuple.Create<System.Object, System.Int32>(columnWidth 601 602 #line default 603 #line hidden 604 , 11954), false) 605 ); 606 607 WriteLiteral(" valign=\"top\""); 608 609 WriteLiteral(">\r\n <table"); 610 611 WriteLiteral(" class=\'responsive-table clearLeft\'"); 612 613 WriteLiteral(" border=\'0\'"); 614 615 WriteLiteral(" cellspacing=\'0\'"); 616 617 WriteLiteral(" cellpadding=\'0\'"); 618 619 WriteLiteral(" width=\'100%\'"); 620 621 WriteLiteral("> \r\n \r\n"); 622 623 624 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 625 626 627 #line default 628 #line hidden 629 630 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 631 if(!string.IsNullOrEmpty(itemImage)) { 632 633 634 #line default 635 #line hidden 636 WriteLiteral(" <tr>\r\n <td"); 637 638 WriteLiteral(" align=\"left\""); 639 640 WriteLiteral(" valign=\"top\""); 641 642 WriteLiteral(" style=\"background: #ffffff; padding-bottom: 15px;\""); 643 644 WriteLiteral(">\r\n\r\n"); 645 646 647 #line 209 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 648 649 650 #line default 651 #line hidden 652 653 #line 209 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 654 if(!string.IsNullOrEmpty(RenderImage)) { 655 656 657 #line default 658 #line hidden 659 WriteLiteral(" "); 660 661 662 #line 210 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 663 Write(imageAnchorStart); 664 665 666 #line default 667 #line hidden 668 WriteLiteral("\r\n"); 669 670 WriteLiteral(" <img"); 671 672 WriteLiteral(" class=\"img-max\""); 673 674 WriteAttribute("src", Tuple.Create(" src=\"", 12561), Tuple.Create("\"", 12597) 675 676 #line 211 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 677 , Tuple.Create(Tuple.Create("", 12567), Tuple.Create<System.Object, System.Int32>(GetImage(RenderImage, 330, 0) 678 679 #line default 680 #line hidden 681 , 12567), false) 682 ); 683 684 WriteLiteral(" /> \r\n"); 685 686 WriteLiteral(" "); 687 688 689 #line 212 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 690 Write(imageAnchorEnd); 691 692 693 #line default 694 #line hidden 695 WriteLiteral(" \r\n"); 696 697 698 #line 213 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 699 } 700 701 702 #line default 703 #line hidden 704 705 #line 218 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 706 707 708 709 #line default 710 #line hidden 711 WriteLiteral(" </td>\r\n </tr>\r\n"); 712 713 714 #line 221 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 715 } 716 717 718 #line default 719 #line hidden 720 WriteLiteral(" "); 721 722 723 #line 222 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 724 if(!string.IsNullOrEmpty(itemTitle)) { 725 726 727 #line default 728 #line hidden 729 WriteLiteral(" <tr>\r\n <td"); 730 731 WriteAttribute("style", Tuple.Create(" style=\"", 13223), Tuple.Create("\"", 13280) 732 733 #line 224 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 734 , Tuple.Create(Tuple.Create("", 13231), Tuple.Create<System.Object, System.Int32>(fontFamily 735 736 #line default 737 #line hidden 738 , 13231), false) 739 , Tuple.Create(Tuple.Create(" ", 13242), Tuple.Create("background:", 13243), true) 740 , Tuple.Create(Tuple.Create(" ", 13254), Tuple.Create("#ffffff;", 13255), true) 741 , Tuple.Create(Tuple.Create(" ", 13263), Tuple.Create("padding:", 13264), true) 742 , Tuple.Create(Tuple.Create(" ", 13272), Tuple.Create("0", 13273), true) 743 , Tuple.Create(Tuple.Create(" ", 13274), Tuple.Create("0", 13275), true) 744 , Tuple.Create(Tuple.Create(" ", 13276), Tuple.Create("5px", 13277), true) 745 ); 746 747 WriteLiteral(" align=\"left\""); 748 749 WriteLiteral(" valign=\"top\""); 750 751 WriteAttribute("width", Tuple.Create(" width=\'", 13307), Tuple.Create("\'", 13327) 752 753 #line 224 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 754 , Tuple.Create(Tuple.Create("", 13315), Tuple.Create<System.Object, System.Int32>(columnWidth 755 756 #line default 757 #line hidden 758 , 13315), false) 759 ); 760 761 WriteLiteral(">\r\n <h2"); 762 763 WriteAttribute("style", Tuple.Create(" style=\"", 13366), Tuple.Create("\"", 13514) 764 765 #line 225 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 766 , Tuple.Create(Tuple.Create(" ", 13374), Tuple.Create<System.Object, System.Int32>(fontFamily 767 768 #line default 769 #line hidden 770 , 13375), false) 771 , Tuple.Create(Tuple.Create(" ", 13386), Tuple.Create("font-weight:", 13387), true) 772 , Tuple.Create(Tuple.Create(" ", 13399), Tuple.Create("400;", 13400), true) 773 , Tuple.Create(Tuple.Create(" ", 13404), Tuple.Create("font-size:", 13405), true) 774 , Tuple.Create(Tuple.Create(" ", 13415), Tuple.Create("14px;", 13416), true) 775 , Tuple.Create(Tuple.Create(" ", 13421), Tuple.Create("display:", 13422), true) 776 , Tuple.Create(Tuple.Create(" ", 13430), Tuple.Create("block;", 13431), true) 777 , Tuple.Create(Tuple.Create(" ", 13437), Tuple.Create("overflow:", 13438), true) 778 , Tuple.Create(Tuple.Create(" ", 13447), Tuple.Create("hidden;", 13448), true) 779 , Tuple.Create(Tuple.Create(" ", 13455), Tuple.Create("margin:", 13456), true) 780 , Tuple.Create(Tuple.Create(" ", 13463), Tuple.Create("0;", 13464), true) 781 , Tuple.Create(Tuple.Create(" ", 13466), Tuple.Create("line-height:", 13467), true) 782 , Tuple.Create(Tuple.Create(" ", 13479), Tuple.Create("1.4;", 13480), true) 783 , Tuple.Create(Tuple.Create(" ", 13484), Tuple.Create("text-align:", 13485), true) 784 , Tuple.Create(Tuple.Create(" ", 13496), Tuple.Create("left;", 13497), true) 785 786 #line 225 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 787 , Tuple.Create(Tuple.Create(" ", 13502), Tuple.Create<System.Object, System.Int32>(padding0 788 789 #line default 790 #line hidden 791 , 13503), false) 792 , Tuple.Create(Tuple.Create("", 13512), Tuple.Create(";", 13512), true) 793 , Tuple.Create(Tuple.Create(" ", 13513), Tuple.Create("", 13513), true) 794 ); 795 796 WriteLiteral(" class=\"outlook\""); 797 798 WriteLiteral(">\r\n"); 799 800 WriteLiteral(" "); 801 802 803 #line 226 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 804 Write(RenderTitle); 805 806 807 #line default 808 #line hidden 809 WriteLiteral(" "); 810 811 WriteLiteral("\r\n </h2>\r\n </td>\r\n " + 812 " </tr>\r\n"); 813 814 815 #line 230 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 816 } 817 818 819 #line default 820 #line hidden 821 WriteLiteral(" "); 822 823 824 #line 231 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 825 if(showPrice){ 826 827 828 #line default 829 #line hidden 830 WriteLiteral(" <tr>\r\n <td"); 831 832 WriteAttribute("style", Tuple.Create(" style=\"", 13880), Tuple.Create("\"", 13938) 833 834 #line 233 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 835 , Tuple.Create(Tuple.Create("", 13888), Tuple.Create<System.Object, System.Int32>(fontFamily 836 837 #line default 838 #line hidden 839 , 13888), false) 840 , Tuple.Create(Tuple.Create(" ", 13899), Tuple.Create("background:", 13900), true) 841 , Tuple.Create(Tuple.Create(" ", 13911), Tuple.Create("#ffffff;", 13912), true) 842 , Tuple.Create(Tuple.Create(" ", 13920), Tuple.Create("padding:", 13921), true) 843 , Tuple.Create(Tuple.Create(" ", 13929), Tuple.Create("0", 13930), true) 844 , Tuple.Create(Tuple.Create(" ", 13931), Tuple.Create("0", 13932), true) 845 , Tuple.Create(Tuple.Create(" ", 13933), Tuple.Create("10px", 13934), true) 846 ); 847 848 WriteLiteral(" align=\"center\""); 849 850 WriteLiteral(" valign=\"top\""); 851 852 WriteAttribute("width", Tuple.Create(" width=\'", 13967), Tuple.Create("\'", 13987) 853 854 #line 233 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 855 , Tuple.Create(Tuple.Create("", 13975), Tuple.Create<System.Object, System.Int32>(columnWidth 856 857 #line default 858 #line hidden 859 , 13975), false) 860 ); 861 862 WriteLiteral(">\r\n <span"); 863 864 WriteAttribute("style", Tuple.Create(" style=\"", 14028), Tuple.Create("\"", 14081) 865 , Tuple.Create(Tuple.Create("", 14036), Tuple.Create("color:", 14036), true) 866 , Tuple.Create(Tuple.Create(" ", 14042), Tuple.Create("#d50000;", 14043), true) 867 868 #line 234 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 869 , Tuple.Create(Tuple.Create(" ", 14051), Tuple.Create<System.Object, System.Int32>(fontSize16 870 871 #line default 872 #line hidden 873 , 14052), false) 874 , Tuple.Create(Tuple.Create("", 14063), Tuple.Create(";", 14063), true) 875 , Tuple.Create(Tuple.Create(" ", 14064), Tuple.Create("font-weight:600;", 14065), true) 876 ); 877 878 WriteLiteral(" class=\"outlook\""); 879 880 WriteLiteral("> "); 881 882 883 #line 234 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 884 Write(product.GetString("Ecom:Product.ActualPrice")); 885 886 887 #line default 888 #line hidden 889 WriteLiteral(" </span>\r\n </td>\r\n </tr> " + 890 " \r\n"); 891 892 WriteLiteral(" <tr>\r\n <td"); 893 894 WriteAttribute("style", Tuple.Create(" style=\"", 14319), Tuple.Create("\"", 14378) 895 896 #line 238 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 897 , Tuple.Create(Tuple.Create("", 14327), Tuple.Create<System.Object, System.Int32>(fontFamily 898 899 #line default 900 #line hidden 901 , 14327), false) 902 , Tuple.Create(Tuple.Create(" ", 14338), Tuple.Create("background:", 14339), true) 903 , Tuple.Create(Tuple.Create(" ", 14350), Tuple.Create("#ffffff;", 14351), true) 904 , Tuple.Create(Tuple.Create(" ", 14359), Tuple.Create("padding:", 14361), true) 905 , Tuple.Create(Tuple.Create(" ", 14369), Tuple.Create("0", 14370), true) 906 , Tuple.Create(Tuple.Create(" ", 14371), Tuple.Create("0", 14372), true) 907 , Tuple.Create(Tuple.Create(" ", 14373), Tuple.Create("10px", 14374), true) 908 ); 909 910 WriteLiteral(" align=\"center\""); 911 912 WriteLiteral(" valign=\"top\""); 913 914 WriteAttribute("width", Tuple.Create(" width=\'", 14407), Tuple.Create("\'", 14427) 915 916 #line 238 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 917 , Tuple.Create(Tuple.Create("", 14415), Tuple.Create<System.Object, System.Int32>(columnWidth 918 919 #line default 920 #line hidden 921 , 14415), false) 922 ); 923 924 WriteLiteral(">\r\n <span"); 925 926 WriteAttribute("style", Tuple.Create(" style=\"", 14468), Tuple.Create("\"", 14518) 927 , Tuple.Create(Tuple.Create("", 14476), Tuple.Create("color:", 14476), true) 928 , Tuple.Create(Tuple.Create(" ", 14482), Tuple.Create("#666;", 14483), true) 929 930 #line 239 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 931 , Tuple.Create(Tuple.Create(" ", 14488), Tuple.Create<System.Object, System.Int32>(fontSize12 932 933 #line default 934 #line hidden 935 , 14489), false) 936 , Tuple.Create(Tuple.Create("", 14500), Tuple.Create(";", 14500), true) 937 , Tuple.Create(Tuple.Create(" ", 14501), Tuple.Create("font-weight:600;", 14502), true) 938 ); 939 940 WriteLiteral("> \r\n if (price" + 941 "ProductDiscount < priceProductDB) {\r\n <" + 942 "p"); 943 944 WriteAttribute("style", Tuple.Create(" style=\"", 14681), Tuple.Create("\"", 14701) 945 946 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 947 , Tuple.Create(Tuple.Create("", 14689), Tuple.Create<System.Object, System.Int32>(fontSize12 948 949 #line default 950 #line hidden 951 , 14689), false) 952 , Tuple.Create(Tuple.Create("", 14700), Tuple.Create(";", 14700), true) 953 ); 954 955 WriteLiteral(" class=\"outlook\""); 956 957 WriteLiteral(">Pret vechi: <span"); 958 959 WriteAttribute("style", Tuple.Create(" style=\"", 14736), Tuple.Create("\"", 14787) 960 , Tuple.Create(Tuple.Create("", 14744), Tuple.Create("text-decoration:", 14744), true) 961 , Tuple.Create(Tuple.Create(" ", 14760), Tuple.Create("line-through;", 14761), true) 962 963 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 964 , Tuple.Create(Tuple.Create(" ", 14774), Tuple.Create<System.Object, System.Int32>(fontSize12 965 966 #line default 967 #line hidden 968 , 14775), false) 969 , Tuple.Create(Tuple.Create("", 14786), Tuple.Create(";", 14786), true) 970 ); 971 972 WriteLiteral(">"); 973 974 975 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 976 Write(priceProductDB.ToString(isInvariant(product.GetString("Ecom:Product.ActualPrice")) ? culture2 : culture1)); 977 978 979 #line default 980 #line hidden 981 WriteLiteral(" "); 982 983 984 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 985 Write(product.GetValue("Ecom:Product.Currency.Name")); 986 987 988 #line default 989 #line hidden 990 WriteLiteral("</span></p>\t\t\t \r\n } " + 991 " \r\n </span>\r\n " + 992 " </td>\r\n </tr> \r\n"); 993 994 995 #line 246 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 996 } 997 998 999 #line default 1000 #line hidden 1001 WriteLiteral(" \r\n"); 1002 1003 1004 #line 248 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1005 1006 1007 #line default 1008 #line hidden 1009 1010 #line 248 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1011 if(!string.IsNullOrEmpty(itemLinkText)) { 1012 1013 1014 #line default 1015 #line hidden 1016 WriteLiteral(" \t\t\t\t\t\t<tr>\r\n <td"); 1017 1018 WriteLiteral(" valign=\"top\""); 1019 1020 WriteAttribute("width", Tuple.Create(" width=\'", 15352), Tuple.Create("\'", 15372) 1021 1022 #line 250 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1023 , Tuple.Create(Tuple.Create("", 15360), Tuple.Create<System.Object, System.Int32>(columnWidth 1024 1025 #line default 1026 #line hidden 1027 , 15360), false) 1028 ); 1029 1030 WriteLiteral(" style=\"background: #ffffff; padding: 0 0 10px 0;\""); 1031 1032 WriteLiteral("> \r\n " + 1033 " \t\t<table"); 1034 1035 WriteLiteral(" border=\"0\""); 1036 1037 WriteLiteral(" cellspacing=\"0\""); 1038 1039 WriteLiteral(" cellpadding=\"0\""); 1040 1041 WriteLiteral(" width=\"100%\""); 1042 1043 WriteLiteral(">\r\n <tr>\r\n <t" + 1044 "d>\r\n <table"); 1045 1046 WriteLiteral(" border=\"0\""); 1047 1048 WriteLiteral(" cellspacing=\"0\""); 1049 1050 WriteLiteral(" cellpadding=\"0\""); 1051 1052 WriteLiteral(">\r\n <tr>\r\n " + 1053 " <td>\r\n"); 1054 1055 WriteLiteral(" \t\t\t\t\t\t"); 1056 1057 1058 #line 257 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1059 Write(CreateButton(RenderLink, itemLinkText, null, dict_buttonBlue)); 1060 1061 1062 #line default 1063 #line hidden 1064 WriteLiteral(@" 1065 </td> 1066 </tr> 1067 </table> 1068 </td> 1069 </tr> 1070 </table> 1071 </td> 1072 </tr> 1073 "); 1074 1075 1076 #line 266 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1077 } 1078 1079 1080 #line default 1081 #line hidden 1082 WriteLiteral(" \t\t\t\t\t\t<tr>\r\n <td"); 1083 1084 WriteLiteral(" width=\"5\""); 1085 1086 WriteLiteral(" height=\"5\""); 1087 1088 WriteLiteral(" style=\"background: #ffffff; font-size: 0; line-height: 1;\""); 1089 1090 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n\r\n </ta" + 1091 "ble>\r\n </td> \r\n"); 1092 1093 1094 #line 273 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1095 if ((count % @listColumns) == 0) { 1096 1097 1098 #line default 1099 #line hidden 1100 WriteLiteral(" "); 1101 1102 WriteLiteral("</tr><tr>\r\n"); 1103 1104 1105 #line 275 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1106 } 1107 1108 1109 #line default 1110 #line hidden 1111 1112 #line 283 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1113 1114 count++; 1115 } 1116 1117 1118 #line default 1119 #line hidden 1120 WriteLiteral("\r\n \t\t</tr>\r\n </table>\r\n </td>\r\n " + 1121 " </tr>\r\n"); 1122 1123 1124 #line 291 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1125 1126 1127 #line default 1128 #line hidden 1129 1130 #line 293 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1131 1132 } 1133 1134 1135 #line default 1136 #line hidden 1137 WriteLiteral(" \t\t\r\n </table>\r\n </td>\r\n</tr>\t\r\n</table>\r\n"); 1138 1139 } 1140 } 1141 } 1142

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @using System.Threading; 4 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 5 @using Dynamicweb.Rendering; 6 @helper CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 7 string rect = style, 8 anchor = style; 9 10 if(string.IsNullOrEmpty(style)){ 11 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 12 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 13 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 14 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 15 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 16 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 17 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 18 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 19 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 20 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 21 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 22 23 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 24 } 25 26 27 <a class="mobile-button" target="_blank" href="@link" style="@anchor">@text</a> 28 29 } 30 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 31 @using Dynamicweb.Rendering; 32 @functions{ 33 public static string GetImage(string source, int widthNum = 600, int heightNum = 200, string format = "jpg", int num_compression = 100, int num_crop = 5){ 34 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 35 string alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "", 36 width = widthNum != 0 ? "&amp;Width=" + widthNum.ToString() : "", 37 height = heightNum != 0 ? "&amp;Height=" + heightNum.ToString(): ""; 38 format = format != "jpg" ? "&amp;Format=" + format : ""; 39 40 string output = "/Admin/Public/GetImage.ashx?Image=" + source + width + height + "&amp;altFmImage_path=" + alternativeImage + format + "&amp;Compression=" + num_compression + "&amp;Crop=" + num_crop; 41 return output.ToString(); 42 } 43 } 44 45 @{ 46 var culture1 = System.Globalization.CultureInfo.GetCultureInfo("ro-RO"); 47 var culture2 = System.Globalization.CultureInfo.InvariantCulture; 48 49 bool useCulture1 = string.Equals(Thread.CurrentThread.CurrentCulture.Name, "ro-RO", StringComparison.OrdinalIgnoreCase); 50 51 //Thread.CurrentThread.CurrentCulture = culture2; 52 53 Func<string, bool> isInvariant = (v) => 54 { 55 if (string.IsNullOrEmpty(v)) 56 { 57 return false; 58 } 59 60 if (v.Contains(".") && v.Contains(",")) 61 { 62 return v.IndexOf(',') < v.IndexOf('.') ? true : false; 63 } 64 else if (v.Contains(",")) 65 { 66 return false; 67 } 68 else 69 { 70 return true; 71 } 72 }; 73 } 74 75 76 @{ 77 78 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 79 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 80 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 81 string titleOrder = GetString("Item.TitleOrder"); 82 string image = GetString("Item.Image"); 83 string imageTitle = GetString("Item.ImageTitle"); 84 string text = GetString("Item.Text"); 85 string imageAlignment = GetString("Item.Order"); 86 string backgroundColor = GetString("Item.Background"); 87 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 88 string fontFamily = "font-family: 'Open Sans', Verdana, sans-serif; color:#717375; font-weight: 400;"; 89 string fontSize12 = "font-size: 12px"; 90 string fontSize16 = "font-size: 16px"; 91 string padding0 = "padding: 0"; 92 int listColumns = Dynamicweb.Input.FormatInteger(GetString("Item.NumberOfColumns")); 93 string columnWidth = listColumns == 1 ? "100%" : 96 / listColumns + "%" ; 94 int width = GetInteger("Item.Width"); 95 string col = width == 50 ? "324" : "600"; 96 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 97 98 99 List<LoopItem> items = GetLoop("Item.Items"); 100 101 if (GetInteger("ParagraphContainerSort") == 1) 102 { 103 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 104 } 105 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 106 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 107 System.Web.HttpContext.Current.Items["currentColumns"] = width; 108 } 109 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 110 { 111 {"background", "none"}, 112 {"color", "#fcae16"}, 113 {"font-size", "12px"}, 114 {"font-style", "normal"}, 115 {"text-align", "left"}, 116 {"padding", "0"} 117 }; 118 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetInteger("ParagraphContainerSort") == 1 ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='500'><tr>" : ""; 119 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 120 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 121 string endHeading = "</"+titleHeading+">"; 122 } 123 124 <table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='600'> 125 <tr> 126 <td width="10" height="10" style="font-size: 0; line-height: 1; background:#f1f2f2;">&nbsp;</td> 127 </tr> 128 <tr> 129 <td border="0" cellspacing="0" cellpadding="0" width="@col" style="@fontFamily; background: #ffffff; border: 1px solid #f1f2f2;" class="responsive-table"> 130 <table border="0" cellspacing="0" cellpadding="0" width="@col" style="@fontFamily;" class="responsive-table"> 131 @* <tr> 132 <td height="30" style="font-size: 0; line-height: 1;">&nbsp;</td> 133 </tr> *@ 134 @if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 135 <tr> 136 <td class="cell-padding" align="@titleAlignment" valign="top" style="@fontFamily; background: #fcae16; padding: 5px 10px;"> 137 <@titleHeading style="font-size: 16px; padding: 0; margin: 0; @fontFamily; color: #ffffff" class="outlook">@title @endHeading 138 </td> 139 </tr> 140 } 141 142 @if(text != ""){ 143 <tr> 144 <td width="10" height="10" style="font-size: 0; line-height: 1;">&nbsp;</td> 145 </tr> 146 <tr> 147 <td class="cell-padding" align="left" valign="top" style=" line-height: 18px; font-size: 14px; @fontFamily" class="outlook"> 148 @text 149 </td> 150 </tr> 151 <tr> 152 <td width="10" height="20" style="font-size: 0; line-height: 1;">&nbsp;</td> 153 </tr> 154 } 155 @if(items.Any()){ 156 <tr> 157 <td width="10" height="15" style="font-size: 0; line-height: 1;">&nbsp;</td> 158 </tr> 159 <tr> 160 <td class="cell-padding" align="left" valign="top" style="padding: 0 15px;"> 161 <table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='100%'> 162 <tr> 163 @{int count = 1; 164 int totalItems = items.Count(); 165 foreach (LoopItem item in items){ 166 string productTitle = ""; 167 string productImage = ""; 168 string productPrice = ""; 169 string productLink = ""; 170 double priceProductDB = 0; 171 double priceProductDiscount = 0; 172 173 var product = item.GetLoop("Item.Items.Product").FirstOrDefault(); 174 if (product != null) { 175 productTitle = product.GetString("Ecom:Product.Name"); 176 productImage = product.GetString("Ecom:Product.ImageLarge.Clean"); 177 //productPrice = product.GetString("Ecom:Product.Price"); 178 productLink = product.GetString("Ecom:Product.LinkGroup.Clean"); 179 180 double cultureDBPrice = double.Parse(product.GetString("Ecom:Product.DBPrice"), isInvariant(product.GetString("Ecom:Product.DBPrice")) ? culture2 : culture1); 181 double culturePriceWithVAT = double.Parse(product.GetString("Ecom:Product.Price.PriceWithVAT"), isInvariant(product.GetString("Ecom:Product.Price.PriceWithVAT")) ? culture2 : culture1); 182 double cultureVATPercent = double.Parse(product.GetString("Ecom:Product.Price.VATPercent"), culture2); 183 184 priceProductDB = Math.Round(cultureDBPrice * (1+cultureVATPercent/100.0) ,2); 185 priceProductDiscount = Math.Round(culturePriceWithVAT,2); 186 } 187 string itemImage = item.GetString("Item.Items.Image"); 188 string itemTitle = item.GetString("Item.Items.Title"); 189 bool showPrice= item.GetBoolean("Item.Items.Show_Price"); 190 string itemLink = item.GetString("Item.Items.Link"); 191 string itemLinkText = item.GetString("Item.Items.LinkText"); 192 193 string RenderTitle = !string.IsNullOrEmpty(itemTitle) ? itemTitle : productTitle; 194 string RenderImage = !string.IsNullOrEmpty(itemImage) ? itemImage : productImage; 195 string RenderLink = !string.IsNullOrEmpty(productLink) ? productLink : itemLink; 196 //RenderLink = "http://www.brandfusion.ro/" + RenderLink; 197 //RenderImage = "http://www.brandfusion.ro" + RenderImage; 198 199 string imageAnchorStart = RenderLink != "" ? "<a target=\"_blank\" href=\"" + RenderLink + "\">" : ""; 200 string imageAnchorEnd = RenderLink != "" ? "</a>" : ""; 201 if(count != 1 && listColumns != 1) { <td width='2%'>&nbsp;</td> } 202 <td width='@columnWidth' valign="top"> 203 <table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='100%'> 204 205 @if(!string.IsNullOrEmpty(itemImage)) { 206 <tr> 207 <td align="left" valign="top" style="background: #ffffff; padding-bottom: 15px;"> 208 209 @if(!string.IsNullOrEmpty(RenderImage)) { 210 @:@imageAnchorStart 211 <img class="img-max" src="@GetImage(RenderImage, 330, 0)" /> 212 @:@imageAnchorEnd 213 } 214 @* else { 215 @:@imageAnchorStart 216 <img class="img-max" src="@RenderLink" alt="@RenderTitle" /> 217 @:@imageAnchorEnd 218 } *@ 219 </td> 220 </tr> 221 } 222 @if(!string.IsNullOrEmpty(itemTitle)) { 223 <tr> 224 <td style="@fontFamily background: #ffffff; padding: 0 0 5px" align="left" valign="top" width='@columnWidth'> 225 <h2 style=" @fontFamily font-weight: 400; font-size: 14px; display: block; overflow: hidden; margin: 0; line-height: 1.4; text-align: left; @padding0; " class="outlook"> 226 @RenderTitle @* @(count % @listColumns) @totalItems *@ 227 </h2> 228 </td> 229 </tr> 230 } 231 @if(showPrice){ 232 <tr> 233 <td style="@fontFamily background: #ffffff; padding: 0 0 10px" align="center" valign="top" width='@columnWidth'> 234 <span style="color: #d50000; @fontSize16; font-weight:600;" class="outlook"> @product.GetString("Ecom:Product.ActualPrice") </span> 235 </td> 236 </tr> 237 <tr> 238 <td style="@fontFamily background: #ffffff; padding: 0 0 10px" align="center" valign="top" width='@columnWidth'> 239 <span style="color: #666; @fontSize12; font-weight:600;"> 240 if (priceProductDiscount < priceProductDB) { 241 <p style="@fontSize12;" class="outlook">Pret vechi: <span style="text-decoration: line-through; @fontSize12;">@(priceProductDB.ToString(isInvariant(product.GetString("Ecom:Product.ActualPrice")) ? culture2 : culture1)) @product.GetValue("Ecom:Product.Currency.Name")</span></p> 242 } 243 </span> 244 </td> 245 </tr> 246 } 247 248 @if(!string.IsNullOrEmpty(itemLinkText)) { 249 <tr> 250 <td valign="top" width='@columnWidth' style="background: #ffffff; padding: 0 0 10px 0;"> 251 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 252 <tr> 253 <td> 254 <table border="0" cellspacing="0" cellpadding="0"> 255 <tr> 256 <td> 257 @CreateButton(RenderLink, itemLinkText, null, dict_buttonBlue) 258 </td> 259 </tr> 260 </table> 261 </td> 262 </tr> 263 </table> 264 </td> 265 </tr> 266 } 267 <tr> 268 <td width="5" height="5" style="background: #ffffff; font-size: 0; line-height: 1;">&nbsp;</td> 269 </tr> 270 271 </table> 272 </td> 273 if ((count % @listColumns) == 0) { 274 @:</tr><tr> 275 } 276 @* if(count == totalItems){ 277 int j = listColumns - (count % listColumns); 278 279 for(var i = 0; i < j; i++) 280 { 281 <td width='@columnWidth'>&nbsp;</td> 282 } 283 } *@ 284 count++; 285 } 286 } 287 </tr> 288 </table> 289 </td> 290 </tr> 291 @* <tr> 292 <td width="10" height="30" style="font-size: 0; line-height: 1;">&nbsp;</td> 293 </tr> *@ 294 } 295 296 </table> 297 </td> 298 </tr> 299 </table> 300
Error compiling template "/Designs/TTonlineNew/EmailMarketing/Paragraph/EmailMarketingProductList.cshtml"
Line 194: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 198: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 207: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 208: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 545: The variable 'productPrice' is assigned but its value is never used

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 using System.Linq; 15 16 #line 31 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 17 using Dynamicweb.Rendering; 18 19 #line default 20 #line hidden 21 22 #line 3 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 23 using System.Threading; 24 25 #line default 26 #line hidden 27 28 29 public class RazorEngine_92673832833c4195bef5d753e9c8e177 : RazorTemplateBase<RazorTemplateModel<Template>> { 30 31 #line hidden 32 33 #line 6 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 34 public RazorEngine.Templating.TemplateWriter CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 35 #line default 36 #line hidden 37 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 38 39 #line 6 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 40 41 string rect = style, 42 anchor = style; 43 44 if(string.IsNullOrEmpty(style)){ 45 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 46 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 47 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 48 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 49 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 50 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 51 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 52 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 53 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 54 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 55 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 56 57 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 58 } 59 60 61 62 63 #line default 64 #line hidden 65 WriteLiteralTo(__razor_helper_writer, " <a"); 66 67 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 68 69 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 70 71 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2272), Tuple.Create("\"", 2284) 72 73 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 74 , Tuple.Create(Tuple.Create("", 2279), Tuple.Create<System.Object, System.Int32>(link 75 76 #line default 77 #line hidden 78 , 2279), false) 79 ); 80 81 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2285), Tuple.Create("\"", 2300) 82 83 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 84 , Tuple.Create(Tuple.Create("", 2293), Tuple.Create<System.Object, System.Int32>(anchor 85 86 #line default 87 #line hidden 88 , 2293), false) 89 ); 90 91 WriteLiteralTo(__razor_helper_writer, ">"); 92 93 94 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 95 WriteTo(__razor_helper_writer, text); 96 97 98 #line default 99 #line hidden 100 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 101 102 103 #line 28 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 104 105 106 107 #line default 108 #line hidden 109 }); 110 111 #line 29 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 112 } 113 #line default 114 #line hidden 115 116 117 #line 32 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 118 119 public static string GetImage(string source, int widthNum = 600, int heightNum = 200, string format = "jpg", int num_compression = 100, int num_crop = 5){ 120 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 121 string alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "", 122 width = widthNum != 0 ? "&amp;Width=" + widthNum.ToString() : "", 123 height = heightNum != 0 ? "&amp;Height=" + heightNum.ToString(): ""; 124 format = format != "jpg" ? "&amp;Format=" + format : ""; 125 126 string output = "/Admin/Public/GetImage.ashx?Image=" + source + width + height + "&amp;altFmImage_path=" + alternativeImage + format + "&amp;Compression=" + num_compression + "&amp;Crop=" + num_crop; 127 return output.ToString(); 128 } 129 130 #line default 131 #line hidden 132 133 134 public RazorEngine_92673832833c4195bef5d753e9c8e177() { 135 } 136 137 public override void Execute() { 138 WriteLiteral("\r\n"); 139 140 141 #line 45 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 142 143 var culture1 = System.Globalization.CultureInfo.GetCultureInfo("ro-RO"); 144 var culture2 = System.Globalization.CultureInfo.InvariantCulture; 145 146 bool useCulture1 = string.Equals(Thread.CurrentThread.CurrentCulture.Name, "ro-RO", StringComparison.OrdinalIgnoreCase); 147 148 //Thread.CurrentThread.CurrentCulture = culture2; 149 150 Func<string, bool> isInvariant = (v) => 151 { 152 if (string.IsNullOrEmpty(v)) 153 { 154 return false; 155 } 156 157 if (v.Contains(".") && v.Contains(",")) 158 { 159 return v.IndexOf(',') < v.IndexOf('.') ? true : false; 160 } 161 else if (v.Contains(",")) 162 { 163 return false; 164 } 165 else 166 { 167 return true; 168 } 169 }; 170 171 172 #line default 173 #line hidden 174 WriteLiteral("\r\n\r\n\r\n"); 175 176 177 #line 76 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 178 179 180 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 181 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 182 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 183 string titleOrder = GetString("Item.TitleOrder"); 184 string image = GetString("Item.Image"); 185 string imageTitle = GetString("Item.ImageTitle"); 186 string text = GetString("Item.Text"); 187 string imageAlignment = GetString("Item.Order"); 188 string backgroundColor = GetString("Item.Background"); 189 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 190 string fontFamily = "font-family: 'Open Sans', Verdana, sans-serif; color:#717375; font-weight: 400;"; 191 string fontSize12 = "font-size: 12px"; 192 string fontSize16 = "font-size: 16px"; 193 string padding0 = "padding: 0"; 194 int listColumns = Dynamicweb.Input.FormatInteger(GetString("Item.NumberOfColumns")); 195 string columnWidth = listColumns == 1 ? "100%" : 96 / listColumns + "%" ; 196 int width = GetInteger("Item.Width"); 197 string col = width == 50 ? "324" : "600"; 198 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 199 200 201 List<LoopItem> items = GetLoop("Item.Items"); 202 203 if (GetInteger("ParagraphContainerSort") == 1) 204 { 205 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 206 } 207 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 208 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 209 System.Web.HttpContext.Current.Items["currentColumns"] = width; 210 } 211 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 212 { 213 {"background", "none"}, 214 {"color", "#fcae16"}, 215 {"font-size", "12px"}, 216 {"font-style", "normal"}, 217 {"text-align", "left"}, 218 {"padding", "0"} 219 }; 220 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetInteger("ParagraphContainerSort") == 1 ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='500'><tr>" : ""; 221 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 222 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 223 string endHeading = "</"+titleHeading+">"; 224 225 226 #line default 227 #line hidden 228 WriteLiteral("\r\n\r\n<table"); 229 230 WriteLiteral(" class=\'responsive-table clearLeft\'"); 231 232 WriteLiteral(" border=\'0\'"); 233 234 WriteLiteral(" cellspacing=\'0\'"); 235 236 WriteLiteral(" cellpadding=\'0\'"); 237 238 WriteLiteral(" width=\'600\'"); 239 240 WriteLiteral("> \r\n<tr>\r\n <td"); 241 242 WriteLiteral(" width=\"10\""); 243 244 WriteLiteral(" height=\"10\""); 245 246 WriteLiteral(" style=\"font-size: 0; line-height: 1; background:#f1f2f2;\""); 247 248 WriteLiteral(">&nbsp;</td>\r\n</tr>\r\n<tr>\r\n <td"); 249 250 WriteLiteral(" border=\"0\""); 251 252 WriteLiteral(" cellspacing=\"0\""); 253 254 WriteLiteral(" cellpadding=\"0\""); 255 256 WriteAttribute("width", Tuple.Create(" width=\"", 7062), Tuple.Create("\"", 7074) 257 258 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 259 , Tuple.Create(Tuple.Create("", 7070), Tuple.Create<System.Object, System.Int32>(col 260 261 #line default 262 #line hidden 263 , 7070), false) 264 ); 265 266 WriteAttribute("style", Tuple.Create(" style=\"", 7075), Tuple.Create("\"", 7143) 267 268 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 269 , Tuple.Create(Tuple.Create("", 7083), Tuple.Create<System.Object, System.Int32>(fontFamily 270 271 #line default 272 #line hidden 273 , 7083), false) 274 , Tuple.Create(Tuple.Create("", 7094), Tuple.Create(";", 7094), true) 275 , Tuple.Create(Tuple.Create(" ", 7095), Tuple.Create("background:", 7096), true) 276 , Tuple.Create(Tuple.Create(" ", 7107), Tuple.Create("#ffffff;", 7108), true) 277 , Tuple.Create(Tuple.Create(" ", 7116), Tuple.Create("border:", 7117), true) 278 , Tuple.Create(Tuple.Create(" ", 7124), Tuple.Create("1px", 7125), true) 279 , Tuple.Create(Tuple.Create(" ", 7128), Tuple.Create("solid", 7129), true) 280 , Tuple.Create(Tuple.Create(" ", 7134), Tuple.Create("#f1f2f2;", 7135), true) 281 ); 282 283 WriteLiteral(" class=\"responsive-table\""); 284 285 WriteLiteral(">\r\n \t<table"); 286 287 WriteLiteral(" border=\"0\""); 288 289 WriteLiteral(" cellspacing=\"0\""); 290 291 WriteLiteral(" cellpadding=\"0\""); 292 293 WriteAttribute("width", Tuple.Create(" width=\"", 7226), Tuple.Create("\"", 7238) 294 295 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 296 , Tuple.Create(Tuple.Create("", 7234), Tuple.Create<System.Object, System.Int32>(col 297 298 #line default 299 #line hidden 300 , 7234), false) 301 ); 302 303 WriteAttribute("style", Tuple.Create(" style=\"", 7239), Tuple.Create("\"", 7259) 304 305 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 306 , Tuple.Create(Tuple.Create("", 7247), Tuple.Create<System.Object, System.Int32>(fontFamily 307 308 #line default 309 #line hidden 310 , 7247), false) 311 , Tuple.Create(Tuple.Create("", 7258), Tuple.Create(";", 7258), true) 312 ); 313 314 WriteLiteral(" class=\"responsive-table\""); 315 316 WriteLiteral(">\r\n \t\t"); 317 318 WriteLiteral("\r\n"); 319 320 321 #line 134 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 322 323 324 #line default 325 #line hidden 326 327 #line 134 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 328 if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 329 330 331 #line default 332 #line hidden 333 WriteLiteral(" <tr>\r\n <td"); 334 335 WriteLiteral(" class=\"cell-padding\""); 336 337 WriteAttribute("align", Tuple.Create(" align=\"", 7555), Tuple.Create("\"", 7578) 338 339 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 340 , Tuple.Create(Tuple.Create("", 7563), Tuple.Create<System.Object, System.Int32>(titleAlignment 341 342 #line default 343 #line hidden 344 , 7563), false) 345 ); 346 347 WriteLiteral(" valign=\"top\""); 348 349 WriteAttribute("style", Tuple.Create(" style=\"", 7592), Tuple.Create("\"", 7652) 350 351 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 352 , Tuple.Create(Tuple.Create("", 7600), Tuple.Create<System.Object, System.Int32>(fontFamily 353 354 #line default 355 #line hidden 356 , 7600), false) 357 , Tuple.Create(Tuple.Create("", 7611), Tuple.Create(";", 7611), true) 358 , Tuple.Create(Tuple.Create(" ", 7612), Tuple.Create("background:", 7613), true) 359 , Tuple.Create(Tuple.Create(" ", 7624), Tuple.Create("#fcae16;", 7625), true) 360 , Tuple.Create(Tuple.Create(" ", 7633), Tuple.Create("padding:", 7634), true) 361 , Tuple.Create(Tuple.Create(" ", 7642), Tuple.Create("5px", 7643), true) 362 , Tuple.Create(Tuple.Create(" ", 7646), Tuple.Create("10px;", 7647), true) 363 ); 364 365 WriteLiteral(">\r\n <"); 366 367 368 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 369 Write(titleHeading); 370 371 372 #line default 373 #line hidden 374 WriteLiteral(" style=\"font-size: 16px; padding: 0; margin: 0; "); 375 376 377 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 378 Write(fontFamily); 379 380 381 #line default 382 #line hidden 383 WriteLiteral("; color: #ffffff\" class=\"outlook\">"); 384 385 386 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 387 Write(title); 388 389 390 #line default 391 #line hidden 392 WriteLiteral(" "); 393 394 395 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 396 Write(endHeading); 397 398 399 #line default 400 #line hidden 401 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 402 403 404 #line 140 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 405 } 406 407 408 #line default 409 #line hidden 410 WriteLiteral("\r\n"); 411 412 413 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 414 415 416 #line default 417 #line hidden 418 419 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 420 if(text != ""){ 421 422 423 #line default 424 #line hidden 425 WriteLiteral(" <tr>\r\n <td"); 426 427 WriteLiteral(" width=\"10\""); 428 429 WriteLiteral(" height=\"10\""); 430 431 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 432 433 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 434 435 WriteLiteral(" <tr>\r\n <td"); 436 437 WriteLiteral(" class=\"cell-padding\""); 438 439 WriteLiteral(" align=\"left\""); 440 441 WriteLiteral(" valign=\"top\""); 442 443 WriteAttribute("style", Tuple.Create(" style=\"", 8114), Tuple.Create("\"", 8170) 444 , Tuple.Create(Tuple.Create(" ", 8122), Tuple.Create("line-height:", 8123), true) 445 , Tuple.Create(Tuple.Create(" ", 8135), Tuple.Create("18px;", 8136), true) 446 , Tuple.Create(Tuple.Create(" ", 8141), Tuple.Create("font-size:", 8142), true) 447 , Tuple.Create(Tuple.Create(" ", 8152), Tuple.Create("14px;", 8153), true) 448 449 #line 147 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 450 , Tuple.Create(Tuple.Create(" ", 8158), Tuple.Create<System.Object, System.Int32>(fontFamily 451 452 #line default 453 #line hidden 454 , 8159), false) 455 ); 456 457 WriteLiteral(" class=\"outlook\""); 458 459 WriteLiteral(">\r\n"); 460 461 WriteLiteral(" "); 462 463 464 #line 148 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 465 Write(text); 466 467 468 #line default 469 #line hidden 470 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 471 472 WriteLiteral(" <tr>\r\n <td"); 473 474 WriteLiteral(" width=\"10\""); 475 476 WriteLiteral(" height=\"20\""); 477 478 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 479 480 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 481 482 483 #line 154 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 484 } 485 486 487 #line default 488 #line hidden 489 WriteLiteral(" \t\t"); 490 491 492 #line 155 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 493 if(items.Any()){ 494 495 496 #line default 497 #line hidden 498 WriteLiteral(" \t\t<tr>\r\n <td"); 499 500 WriteLiteral(" width=\"10\""); 501 502 WriteLiteral(" height=\"15\""); 503 504 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 505 506 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 507 508 WriteLiteral(" \t\t<tr>\r\n <td"); 509 510 WriteLiteral(" class=\"cell-padding\""); 511 512 WriteLiteral(" align=\"left\""); 513 514 WriteLiteral(" valign=\"top\""); 515 516 WriteLiteral(" style=\"padding: 0 15px;\""); 517 518 WriteLiteral(">\r\n <table"); 519 520 WriteLiteral(" class=\'responsive-table clearLeft\'"); 521 522 WriteLiteral(" border=\'0\'"); 523 524 WriteLiteral(" cellspacing=\'0\'"); 525 526 WriteLiteral(" cellpadding=\'0\'"); 527 528 WriteLiteral(" width=\'100%\'"); 529 530 WriteLiteral("> \r\n <tr>\r\n"); 531 532 533 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 534 535 536 #line default 537 #line hidden 538 539 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 540 int count = 1; 541 int totalItems = items.Count(); 542 foreach (LoopItem item in items){ 543 string productTitle = ""; 544 string productImage = ""; 545 string productPrice = ""; 546 string productLink = ""; 547 double priceProductDB = 0; 548 double priceProductDiscount = 0; 549 550 var product = item.GetLoop("Item.Items.Product").FirstOrDefault(); 551 if (product != null) { 552 productTitle = product.GetString("Ecom:Product.Name"); 553 productImage = product.GetString("Ecom:Product.ImageLarge.Clean"); 554 //productPrice = product.GetString("Ecom:Product.Price"); 555 productLink = product.GetString("Ecom:Product.LinkGroup.Clean"); 556 557 double cultureDBPrice = double.Parse(product.GetString("Ecom:Product.DBPrice"), isInvariant(product.GetString("Ecom:Product.DBPrice")) ? culture2 : culture1); 558 double culturePriceWithVAT = double.Parse(product.GetString("Ecom:Product.Price.PriceWithVAT"), isInvariant(product.GetString("Ecom:Product.Price.PriceWithVAT")) ? culture2 : culture1); 559 double cultureVATPercent = double.Parse(product.GetString("Ecom:Product.Price.VATPercent"), culture2); 560 561 priceProductDB = Math.Round(cultureDBPrice * (1+cultureVATPercent/100.0) ,2); 562 priceProductDiscount = Math.Round(culturePriceWithVAT,2); 563 } 564 string itemImage = item.GetString("Item.Items.Image"); 565 string itemTitle = item.GetString("Item.Items.Title"); 566 bool showPrice= item.GetBoolean("Item.Items.Show_Price"); 567 string itemLink = item.GetString("Item.Items.Link"); 568 string itemLinkText = item.GetString("Item.Items.LinkText"); 569 570 string RenderTitle = !string.IsNullOrEmpty(itemTitle) ? itemTitle : productTitle; 571 string RenderImage = !string.IsNullOrEmpty(itemImage) ? itemImage : productImage; 572 string RenderLink = !string.IsNullOrEmpty(productLink) ? productLink : itemLink; 573 //RenderLink = "http://www.brandfusion.ro/" + RenderLink; 574 //RenderImage = "http://www.brandfusion.ro" + RenderImage; 575 576 string imageAnchorStart = RenderLink != "" ? "<a target=\"_blank\" href=\"" + RenderLink + "\">" : ""; 577 string imageAnchorEnd = RenderLink != "" ? "</a>" : ""; 578 if(count != 1 && listColumns != 1) { 579 580 #line default 581 #line hidden 582 WriteLiteral(" <td"); 583 584 WriteLiteral(" width=\'2%\'"); 585 586 WriteLiteral(">&nbsp;</td> "); 587 588 589 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 590 } 591 592 593 #line default 594 #line hidden 595 WriteLiteral(" <td"); 596 597 WriteAttribute("width", Tuple.Create(" width=\'", 11946), Tuple.Create("\'", 11966) 598 599 #line 202 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 600 , Tuple.Create(Tuple.Create("", 11954), Tuple.Create<System.Object, System.Int32>(columnWidth 601 602 #line default 603 #line hidden 604 , 11954), false) 605 ); 606 607 WriteLiteral(" valign=\"top\""); 608 609 WriteLiteral(">\r\n <table"); 610 611 WriteLiteral(" class=\'responsive-table clearLeft\'"); 612 613 WriteLiteral(" border=\'0\'"); 614 615 WriteLiteral(" cellspacing=\'0\'"); 616 617 WriteLiteral(" cellpadding=\'0\'"); 618 619 WriteLiteral(" width=\'100%\'"); 620 621 WriteLiteral("> \r\n \r\n"); 622 623 624 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 625 626 627 #line default 628 #line hidden 629 630 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 631 if(!string.IsNullOrEmpty(itemImage)) { 632 633 634 #line default 635 #line hidden 636 WriteLiteral(" <tr>\r\n <td"); 637 638 WriteLiteral(" align=\"left\""); 639 640 WriteLiteral(" valign=\"top\""); 641 642 WriteLiteral(" style=\"background: #ffffff; padding-bottom: 15px;\""); 643 644 WriteLiteral(">\r\n\r\n"); 645 646 647 #line 209 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 648 649 650 #line default 651 #line hidden 652 653 #line 209 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 654 if(!string.IsNullOrEmpty(RenderImage)) { 655 656 657 #line default 658 #line hidden 659 WriteLiteral(" "); 660 661 662 #line 210 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 663 Write(imageAnchorStart); 664 665 666 #line default 667 #line hidden 668 WriteLiteral("\r\n"); 669 670 WriteLiteral(" <img"); 671 672 WriteLiteral(" class=\"img-max\""); 673 674 WriteAttribute("src", Tuple.Create(" src=\"", 12561), Tuple.Create("\"", 12597) 675 676 #line 211 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 677 , Tuple.Create(Tuple.Create("", 12567), Tuple.Create<System.Object, System.Int32>(GetImage(RenderImage, 330, 0) 678 679 #line default 680 #line hidden 681 , 12567), false) 682 ); 683 684 WriteLiteral(" /> \r\n"); 685 686 WriteLiteral(" "); 687 688 689 #line 212 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 690 Write(imageAnchorEnd); 691 692 693 #line default 694 #line hidden 695 WriteLiteral(" \r\n"); 696 697 698 #line 213 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 699 } 700 701 702 #line default 703 #line hidden 704 705 #line 218 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 706 707 708 709 #line default 710 #line hidden 711 WriteLiteral(" </td>\r\n </tr>\r\n"); 712 713 714 #line 221 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 715 } 716 717 718 #line default 719 #line hidden 720 WriteLiteral(" "); 721 722 723 #line 222 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 724 if(!string.IsNullOrEmpty(itemTitle)) { 725 726 727 #line default 728 #line hidden 729 WriteLiteral(" <tr>\r\n <td"); 730 731 WriteAttribute("style", Tuple.Create(" style=\"", 13223), Tuple.Create("\"", 13280) 732 733 #line 224 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 734 , Tuple.Create(Tuple.Create("", 13231), Tuple.Create<System.Object, System.Int32>(fontFamily 735 736 #line default 737 #line hidden 738 , 13231), false) 739 , Tuple.Create(Tuple.Create(" ", 13242), Tuple.Create("background:", 13243), true) 740 , Tuple.Create(Tuple.Create(" ", 13254), Tuple.Create("#ffffff;", 13255), true) 741 , Tuple.Create(Tuple.Create(" ", 13263), Tuple.Create("padding:", 13264), true) 742 , Tuple.Create(Tuple.Create(" ", 13272), Tuple.Create("0", 13273), true) 743 , Tuple.Create(Tuple.Create(" ", 13274), Tuple.Create("0", 13275), true) 744 , Tuple.Create(Tuple.Create(" ", 13276), Tuple.Create("5px", 13277), true) 745 ); 746 747 WriteLiteral(" align=\"left\""); 748 749 WriteLiteral(" valign=\"top\""); 750 751 WriteAttribute("width", Tuple.Create(" width=\'", 13307), Tuple.Create("\'", 13327) 752 753 #line 224 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 754 , Tuple.Create(Tuple.Create("", 13315), Tuple.Create<System.Object, System.Int32>(columnWidth 755 756 #line default 757 #line hidden 758 , 13315), false) 759 ); 760 761 WriteLiteral(">\r\n <h2"); 762 763 WriteAttribute("style", Tuple.Create(" style=\"", 13366), Tuple.Create("\"", 13514) 764 765 #line 225 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 766 , Tuple.Create(Tuple.Create(" ", 13374), Tuple.Create<System.Object, System.Int32>(fontFamily 767 768 #line default 769 #line hidden 770 , 13375), false) 771 , Tuple.Create(Tuple.Create(" ", 13386), Tuple.Create("font-weight:", 13387), true) 772 , Tuple.Create(Tuple.Create(" ", 13399), Tuple.Create("400;", 13400), true) 773 , Tuple.Create(Tuple.Create(" ", 13404), Tuple.Create("font-size:", 13405), true) 774 , Tuple.Create(Tuple.Create(" ", 13415), Tuple.Create("14px;", 13416), true) 775 , Tuple.Create(Tuple.Create(" ", 13421), Tuple.Create("display:", 13422), true) 776 , Tuple.Create(Tuple.Create(" ", 13430), Tuple.Create("block;", 13431), true) 777 , Tuple.Create(Tuple.Create(" ", 13437), Tuple.Create("overflow:", 13438), true) 778 , Tuple.Create(Tuple.Create(" ", 13447), Tuple.Create("hidden;", 13448), true) 779 , Tuple.Create(Tuple.Create(" ", 13455), Tuple.Create("margin:", 13456), true) 780 , Tuple.Create(Tuple.Create(" ", 13463), Tuple.Create("0;", 13464), true) 781 , Tuple.Create(Tuple.Create(" ", 13466), Tuple.Create("line-height:", 13467), true) 782 , Tuple.Create(Tuple.Create(" ", 13479), Tuple.Create("1.4;", 13480), true) 783 , Tuple.Create(Tuple.Create(" ", 13484), Tuple.Create("text-align:", 13485), true) 784 , Tuple.Create(Tuple.Create(" ", 13496), Tuple.Create("left;", 13497), true) 785 786 #line 225 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 787 , Tuple.Create(Tuple.Create(" ", 13502), Tuple.Create<System.Object, System.Int32>(padding0 788 789 #line default 790 #line hidden 791 , 13503), false) 792 , Tuple.Create(Tuple.Create("", 13512), Tuple.Create(";", 13512), true) 793 , Tuple.Create(Tuple.Create(" ", 13513), Tuple.Create("", 13513), true) 794 ); 795 796 WriteLiteral(" class=\"outlook\""); 797 798 WriteLiteral(">\r\n"); 799 800 WriteLiteral(" "); 801 802 803 #line 226 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 804 Write(RenderTitle); 805 806 807 #line default 808 #line hidden 809 WriteLiteral(" "); 810 811 WriteLiteral("\r\n </h2>\r\n </td>\r\n " + 812 " </tr>\r\n"); 813 814 815 #line 230 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 816 } 817 818 819 #line default 820 #line hidden 821 WriteLiteral(" "); 822 823 824 #line 231 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 825 if(showPrice){ 826 827 828 #line default 829 #line hidden 830 WriteLiteral(" <tr>\r\n <td"); 831 832 WriteAttribute("style", Tuple.Create(" style=\"", 13880), Tuple.Create("\"", 13938) 833 834 #line 233 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 835 , Tuple.Create(Tuple.Create("", 13888), Tuple.Create<System.Object, System.Int32>(fontFamily 836 837 #line default 838 #line hidden 839 , 13888), false) 840 , Tuple.Create(Tuple.Create(" ", 13899), Tuple.Create("background:", 13900), true) 841 , Tuple.Create(Tuple.Create(" ", 13911), Tuple.Create("#ffffff;", 13912), true) 842 , Tuple.Create(Tuple.Create(" ", 13920), Tuple.Create("padding:", 13921), true) 843 , Tuple.Create(Tuple.Create(" ", 13929), Tuple.Create("0", 13930), true) 844 , Tuple.Create(Tuple.Create(" ", 13931), Tuple.Create("0", 13932), true) 845 , Tuple.Create(Tuple.Create(" ", 13933), Tuple.Create("10px", 13934), true) 846 ); 847 848 WriteLiteral(" align=\"center\""); 849 850 WriteLiteral(" valign=\"top\""); 851 852 WriteAttribute("width", Tuple.Create(" width=\'", 13967), Tuple.Create("\'", 13987) 853 854 #line 233 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 855 , Tuple.Create(Tuple.Create("", 13975), Tuple.Create<System.Object, System.Int32>(columnWidth 856 857 #line default 858 #line hidden 859 , 13975), false) 860 ); 861 862 WriteLiteral(">\r\n <span"); 863 864 WriteAttribute("style", Tuple.Create(" style=\"", 14028), Tuple.Create("\"", 14081) 865 , Tuple.Create(Tuple.Create("", 14036), Tuple.Create("color:", 14036), true) 866 , Tuple.Create(Tuple.Create(" ", 14042), Tuple.Create("#d50000;", 14043), true) 867 868 #line 234 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 869 , Tuple.Create(Tuple.Create(" ", 14051), Tuple.Create<System.Object, System.Int32>(fontSize16 870 871 #line default 872 #line hidden 873 , 14052), false) 874 , Tuple.Create(Tuple.Create("", 14063), Tuple.Create(";", 14063), true) 875 , Tuple.Create(Tuple.Create(" ", 14064), Tuple.Create("font-weight:600;", 14065), true) 876 ); 877 878 WriteLiteral(" class=\"outlook\""); 879 880 WriteLiteral("> "); 881 882 883 #line 234 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 884 Write(product.GetString("Ecom:Product.ActualPrice")); 885 886 887 #line default 888 #line hidden 889 WriteLiteral(" </span>\r\n </td>\r\n </tr> " + 890 " \r\n"); 891 892 WriteLiteral(" <tr>\r\n <td"); 893 894 WriteAttribute("style", Tuple.Create(" style=\"", 14319), Tuple.Create("\"", 14378) 895 896 #line 238 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 897 , Tuple.Create(Tuple.Create("", 14327), Tuple.Create<System.Object, System.Int32>(fontFamily 898 899 #line default 900 #line hidden 901 , 14327), false) 902 , Tuple.Create(Tuple.Create(" ", 14338), Tuple.Create("background:", 14339), true) 903 , Tuple.Create(Tuple.Create(" ", 14350), Tuple.Create("#ffffff;", 14351), true) 904 , Tuple.Create(Tuple.Create(" ", 14359), Tuple.Create("padding:", 14361), true) 905 , Tuple.Create(Tuple.Create(" ", 14369), Tuple.Create("0", 14370), true) 906 , Tuple.Create(Tuple.Create(" ", 14371), Tuple.Create("0", 14372), true) 907 , Tuple.Create(Tuple.Create(" ", 14373), Tuple.Create("10px", 14374), true) 908 ); 909 910 WriteLiteral(" align=\"center\""); 911 912 WriteLiteral(" valign=\"top\""); 913 914 WriteAttribute("width", Tuple.Create(" width=\'", 14407), Tuple.Create("\'", 14427) 915 916 #line 238 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 917 , Tuple.Create(Tuple.Create("", 14415), Tuple.Create<System.Object, System.Int32>(columnWidth 918 919 #line default 920 #line hidden 921 , 14415), false) 922 ); 923 924 WriteLiteral(">\r\n <span"); 925 926 WriteAttribute("style", Tuple.Create(" style=\"", 14468), Tuple.Create("\"", 14518) 927 , Tuple.Create(Tuple.Create("", 14476), Tuple.Create("color:", 14476), true) 928 , Tuple.Create(Tuple.Create(" ", 14482), Tuple.Create("#666;", 14483), true) 929 930 #line 239 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 931 , Tuple.Create(Tuple.Create(" ", 14488), Tuple.Create<System.Object, System.Int32>(fontSize12 932 933 #line default 934 #line hidden 935 , 14489), false) 936 , Tuple.Create(Tuple.Create("", 14500), Tuple.Create(";", 14500), true) 937 , Tuple.Create(Tuple.Create(" ", 14501), Tuple.Create("font-weight:600;", 14502), true) 938 ); 939 940 WriteLiteral("> \r\n if (price" + 941 "ProductDiscount < priceProductDB) {\r\n <" + 942 "p"); 943 944 WriteAttribute("style", Tuple.Create(" style=\"", 14681), Tuple.Create("\"", 14701) 945 946 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 947 , Tuple.Create(Tuple.Create("", 14689), Tuple.Create<System.Object, System.Int32>(fontSize12 948 949 #line default 950 #line hidden 951 , 14689), false) 952 , Tuple.Create(Tuple.Create("", 14700), Tuple.Create(";", 14700), true) 953 ); 954 955 WriteLiteral(" class=\"outlook\""); 956 957 WriteLiteral(">Pret vechi: <span"); 958 959 WriteAttribute("style", Tuple.Create(" style=\"", 14736), Tuple.Create("\"", 14787) 960 , Tuple.Create(Tuple.Create("", 14744), Tuple.Create("text-decoration:", 14744), true) 961 , Tuple.Create(Tuple.Create(" ", 14760), Tuple.Create("line-through;", 14761), true) 962 963 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 964 , Tuple.Create(Tuple.Create(" ", 14774), Tuple.Create<System.Object, System.Int32>(fontSize12 965 966 #line default 967 #line hidden 968 , 14775), false) 969 , Tuple.Create(Tuple.Create("", 14786), Tuple.Create(";", 14786), true) 970 ); 971 972 WriteLiteral(">"); 973 974 975 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 976 Write(priceProductDB.ToString(isInvariant(product.GetString("Ecom:Product.ActualPrice")) ? culture2 : culture1)); 977 978 979 #line default 980 #line hidden 981 WriteLiteral(" "); 982 983 984 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 985 Write(product.GetValue("Ecom:Product.Currency.Name")); 986 987 988 #line default 989 #line hidden 990 WriteLiteral("</span></p>\t\t\t \r\n } " + 991 " \r\n </span>\r\n " + 992 " </td>\r\n </tr> \r\n"); 993 994 995 #line 246 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 996 } 997 998 999 #line default 1000 #line hidden 1001 WriteLiteral(" \r\n"); 1002 1003 1004 #line 248 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1005 1006 1007 #line default 1008 #line hidden 1009 1010 #line 248 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1011 if(!string.IsNullOrEmpty(itemLinkText)) { 1012 1013 1014 #line default 1015 #line hidden 1016 WriteLiteral(" \t\t\t\t\t\t<tr>\r\n <td"); 1017 1018 WriteLiteral(" valign=\"top\""); 1019 1020 WriteAttribute("width", Tuple.Create(" width=\'", 15352), Tuple.Create("\'", 15372) 1021 1022 #line 250 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1023 , Tuple.Create(Tuple.Create("", 15360), Tuple.Create<System.Object, System.Int32>(columnWidth 1024 1025 #line default 1026 #line hidden 1027 , 15360), false) 1028 ); 1029 1030 WriteLiteral(" style=\"background: #ffffff; padding: 0 0 10px 0;\""); 1031 1032 WriteLiteral("> \r\n " + 1033 " \t\t<table"); 1034 1035 WriteLiteral(" border=\"0\""); 1036 1037 WriteLiteral(" cellspacing=\"0\""); 1038 1039 WriteLiteral(" cellpadding=\"0\""); 1040 1041 WriteLiteral(" width=\"100%\""); 1042 1043 WriteLiteral(">\r\n <tr>\r\n <t" + 1044 "d>\r\n <table"); 1045 1046 WriteLiteral(" border=\"0\""); 1047 1048 WriteLiteral(" cellspacing=\"0\""); 1049 1050 WriteLiteral(" cellpadding=\"0\""); 1051 1052 WriteLiteral(">\r\n <tr>\r\n " + 1053 " <td>\r\n"); 1054 1055 WriteLiteral(" \t\t\t\t\t\t"); 1056 1057 1058 #line 257 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1059 Write(CreateButton(RenderLink, itemLinkText, null, dict_buttonBlue)); 1060 1061 1062 #line default 1063 #line hidden 1064 WriteLiteral(@" 1065 </td> 1066 </tr> 1067 </table> 1068 </td> 1069 </tr> 1070 </table> 1071 </td> 1072 </tr> 1073 "); 1074 1075 1076 #line 266 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1077 } 1078 1079 1080 #line default 1081 #line hidden 1082 WriteLiteral(" \t\t\t\t\t\t<tr>\r\n <td"); 1083 1084 WriteLiteral(" width=\"5\""); 1085 1086 WriteLiteral(" height=\"5\""); 1087 1088 WriteLiteral(" style=\"background: #ffffff; font-size: 0; line-height: 1;\""); 1089 1090 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n\r\n </ta" + 1091 "ble>\r\n </td> \r\n"); 1092 1093 1094 #line 273 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1095 if ((count % @listColumns) == 0) { 1096 1097 1098 #line default 1099 #line hidden 1100 WriteLiteral(" "); 1101 1102 WriteLiteral("</tr><tr>\r\n"); 1103 1104 1105 #line 275 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1106 } 1107 1108 1109 #line default 1110 #line hidden 1111 1112 #line 283 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1113 1114 count++; 1115 } 1116 1117 1118 #line default 1119 #line hidden 1120 WriteLiteral("\r\n \t\t</tr>\r\n </table>\r\n </td>\r\n " + 1121 " </tr>\r\n"); 1122 1123 1124 #line 291 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1125 1126 1127 #line default 1128 #line hidden 1129 1130 #line 293 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1131 1132 } 1133 1134 1135 #line default 1136 #line hidden 1137 WriteLiteral(" \t\t\r\n </table>\r\n </td>\r\n</tr>\t\r\n</table>\r\n"); 1138 1139 } 1140 } 1141 } 1142

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @using System.Threading; 4 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 5 @using Dynamicweb.Rendering; 6 @helper CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 7 string rect = style, 8 anchor = style; 9 10 if(string.IsNullOrEmpty(style)){ 11 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 12 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 13 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 14 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 15 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 16 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 17 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 18 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 19 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 20 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 21 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 22 23 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 24 } 25 26 27 <a class="mobile-button" target="_blank" href="@link" style="@anchor">@text</a> 28 29 } 30 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 31 @using Dynamicweb.Rendering; 32 @functions{ 33 public static string GetImage(string source, int widthNum = 600, int heightNum = 200, string format = "jpg", int num_compression = 100, int num_crop = 5){ 34 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 35 string alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "", 36 width = widthNum != 0 ? "&amp;Width=" + widthNum.ToString() : "", 37 height = heightNum != 0 ? "&amp;Height=" + heightNum.ToString(): ""; 38 format = format != "jpg" ? "&amp;Format=" + format : ""; 39 40 string output = "/Admin/Public/GetImage.ashx?Image=" + source + width + height + "&amp;altFmImage_path=" + alternativeImage + format + "&amp;Compression=" + num_compression + "&amp;Crop=" + num_crop; 41 return output.ToString(); 42 } 43 } 44 45 @{ 46 var culture1 = System.Globalization.CultureInfo.GetCultureInfo("ro-RO"); 47 var culture2 = System.Globalization.CultureInfo.InvariantCulture; 48 49 bool useCulture1 = string.Equals(Thread.CurrentThread.CurrentCulture.Name, "ro-RO", StringComparison.OrdinalIgnoreCase); 50 51 //Thread.CurrentThread.CurrentCulture = culture2; 52 53 Func<string, bool> isInvariant = (v) => 54 { 55 if (string.IsNullOrEmpty(v)) 56 { 57 return false; 58 } 59 60 if (v.Contains(".") && v.Contains(",")) 61 { 62 return v.IndexOf(',') < v.IndexOf('.') ? true : false; 63 } 64 else if (v.Contains(",")) 65 { 66 return false; 67 } 68 else 69 { 70 return true; 71 } 72 }; 73 } 74 75 76 @{ 77 78 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 79 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 80 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 81 string titleOrder = GetString("Item.TitleOrder"); 82 string image = GetString("Item.Image"); 83 string imageTitle = GetString("Item.ImageTitle"); 84 string text = GetString("Item.Text"); 85 string imageAlignment = GetString("Item.Order"); 86 string backgroundColor = GetString("Item.Background"); 87 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 88 string fontFamily = "font-family: 'Open Sans', Verdana, sans-serif; color:#717375; font-weight: 400;"; 89 string fontSize12 = "font-size: 12px"; 90 string fontSize16 = "font-size: 16px"; 91 string padding0 = "padding: 0"; 92 int listColumns = Dynamicweb.Input.FormatInteger(GetString("Item.NumberOfColumns")); 93 string columnWidth = listColumns == 1 ? "100%" : 96 / listColumns + "%" ; 94 int width = GetInteger("Item.Width"); 95 string col = width == 50 ? "324" : "600"; 96 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 97 98 99 List<LoopItem> items = GetLoop("Item.Items"); 100 101 if (GetInteger("ParagraphContainerSort") == 1) 102 { 103 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 104 } 105 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 106 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 107 System.Web.HttpContext.Current.Items["currentColumns"] = width; 108 } 109 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 110 { 111 {"background", "none"}, 112 {"color", "#fcae16"}, 113 {"font-size", "12px"}, 114 {"font-style", "normal"}, 115 {"text-align", "left"}, 116 {"padding", "0"} 117 }; 118 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetInteger("ParagraphContainerSort") == 1 ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='500'><tr>" : ""; 119 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 120 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 121 string endHeading = "</"+titleHeading+">"; 122 } 123 124 <table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='600'> 125 <tr> 126 <td width="10" height="10" style="font-size: 0; line-height: 1; background:#f1f2f2;">&nbsp;</td> 127 </tr> 128 <tr> 129 <td border="0" cellspacing="0" cellpadding="0" width="@col" style="@fontFamily; background: #ffffff; border: 1px solid #f1f2f2;" class="responsive-table"> 130 <table border="0" cellspacing="0" cellpadding="0" width="@col" style="@fontFamily;" class="responsive-table"> 131 @* <tr> 132 <td height="30" style="font-size: 0; line-height: 1;">&nbsp;</td> 133 </tr> *@ 134 @if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 135 <tr> 136 <td class="cell-padding" align="@titleAlignment" valign="top" style="@fontFamily; background: #fcae16; padding: 5px 10px;"> 137 <@titleHeading style="font-size: 16px; padding: 0; margin: 0; @fontFamily; color: #ffffff" class="outlook">@title @endHeading 138 </td> 139 </tr> 140 } 141 142 @if(text != ""){ 143 <tr> 144 <td width="10" height="10" style="font-size: 0; line-height: 1;">&nbsp;</td> 145 </tr> 146 <tr> 147 <td class="cell-padding" align="left" valign="top" style=" line-height: 18px; font-size: 14px; @fontFamily" class="outlook"> 148 @text 149 </td> 150 </tr> 151 <tr> 152 <td width="10" height="20" style="font-size: 0; line-height: 1;">&nbsp;</td> 153 </tr> 154 } 155 @if(items.Any()){ 156 <tr> 157 <td width="10" height="15" style="font-size: 0; line-height: 1;">&nbsp;</td> 158 </tr> 159 <tr> 160 <td class="cell-padding" align="left" valign="top" style="padding: 0 15px;"> 161 <table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='100%'> 162 <tr> 163 @{int count = 1; 164 int totalItems = items.Count(); 165 foreach (LoopItem item in items){ 166 string productTitle = ""; 167 string productImage = ""; 168 string productPrice = ""; 169 string productLink = ""; 170 double priceProductDB = 0; 171 double priceProductDiscount = 0; 172 173 var product = item.GetLoop("Item.Items.Product").FirstOrDefault(); 174 if (product != null) { 175 productTitle = product.GetString("Ecom:Product.Name"); 176 productImage = product.GetString("Ecom:Product.ImageLarge.Clean"); 177 //productPrice = product.GetString("Ecom:Product.Price"); 178 productLink = product.GetString("Ecom:Product.LinkGroup.Clean"); 179 180 double cultureDBPrice = double.Parse(product.GetString("Ecom:Product.DBPrice"), isInvariant(product.GetString("Ecom:Product.DBPrice")) ? culture2 : culture1); 181 double culturePriceWithVAT = double.Parse(product.GetString("Ecom:Product.Price.PriceWithVAT"), isInvariant(product.GetString("Ecom:Product.Price.PriceWithVAT")) ? culture2 : culture1); 182 double cultureVATPercent = double.Parse(product.GetString("Ecom:Product.Price.VATPercent"), culture2); 183 184 priceProductDB = Math.Round(cultureDBPrice * (1+cultureVATPercent/100.0) ,2); 185 priceProductDiscount = Math.Round(culturePriceWithVAT,2); 186 } 187 string itemImage = item.GetString("Item.Items.Image"); 188 string itemTitle = item.GetString("Item.Items.Title"); 189 bool showPrice= item.GetBoolean("Item.Items.Show_Price"); 190 string itemLink = item.GetString("Item.Items.Link"); 191 string itemLinkText = item.GetString("Item.Items.LinkText"); 192 193 string RenderTitle = !string.IsNullOrEmpty(itemTitle) ? itemTitle : productTitle; 194 string RenderImage = !string.IsNullOrEmpty(itemImage) ? itemImage : productImage; 195 string RenderLink = !string.IsNullOrEmpty(productLink) ? productLink : itemLink; 196 //RenderLink = "http://www.brandfusion.ro/" + RenderLink; 197 //RenderImage = "http://www.brandfusion.ro" + RenderImage; 198 199 string imageAnchorStart = RenderLink != "" ? "<a target=\"_blank\" href=\"" + RenderLink + "\">" : ""; 200 string imageAnchorEnd = RenderLink != "" ? "</a>" : ""; 201 if(count != 1 && listColumns != 1) { <td width='2%'>&nbsp;</td> } 202 <td width='@columnWidth' valign="top"> 203 <table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='100%'> 204 205 @if(!string.IsNullOrEmpty(itemImage)) { 206 <tr> 207 <td align="left" valign="top" style="background: #ffffff; padding-bottom: 15px;"> 208 209 @if(!string.IsNullOrEmpty(RenderImage)) { 210 @:@imageAnchorStart 211 <img class="img-max" src="@GetImage(RenderImage, 330, 0)" /> 212 @:@imageAnchorEnd 213 } 214 @* else { 215 @:@imageAnchorStart 216 <img class="img-max" src="@RenderLink" alt="@RenderTitle" /> 217 @:@imageAnchorEnd 218 } *@ 219 </td> 220 </tr> 221 } 222 @if(!string.IsNullOrEmpty(itemTitle)) { 223 <tr> 224 <td style="@fontFamily background: #ffffff; padding: 0 0 5px" align="left" valign="top" width='@columnWidth'> 225 <h2 style=" @fontFamily font-weight: 400; font-size: 14px; display: block; overflow: hidden; margin: 0; line-height: 1.4; text-align: left; @padding0; " class="outlook"> 226 @RenderTitle @* @(count % @listColumns) @totalItems *@ 227 </h2> 228 </td> 229 </tr> 230 } 231 @if(showPrice){ 232 <tr> 233 <td style="@fontFamily background: #ffffff; padding: 0 0 10px" align="center" valign="top" width='@columnWidth'> 234 <span style="color: #d50000; @fontSize16; font-weight:600;" class="outlook"> @product.GetString("Ecom:Product.ActualPrice") </span> 235 </td> 236 </tr> 237 <tr> 238 <td style="@fontFamily background: #ffffff; padding: 0 0 10px" align="center" valign="top" width='@columnWidth'> 239 <span style="color: #666; @fontSize12; font-weight:600;"> 240 if (priceProductDiscount < priceProductDB) { 241 <p style="@fontSize12;" class="outlook">Pret vechi: <span style="text-decoration: line-through; @fontSize12;">@(priceProductDB.ToString(isInvariant(product.GetString("Ecom:Product.ActualPrice")) ? culture2 : culture1)) @product.GetValue("Ecom:Product.Currency.Name")</span></p> 242 } 243 </span> 244 </td> 245 </tr> 246 } 247 248 @if(!string.IsNullOrEmpty(itemLinkText)) { 249 <tr> 250 <td valign="top" width='@columnWidth' style="background: #ffffff; padding: 0 0 10px 0;"> 251 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 252 <tr> 253 <td> 254 <table border="0" cellspacing="0" cellpadding="0"> 255 <tr> 256 <td> 257 @CreateButton(RenderLink, itemLinkText, null, dict_buttonBlue) 258 </td> 259 </tr> 260 </table> 261 </td> 262 </tr> 263 </table> 264 </td> 265 </tr> 266 } 267 <tr> 268 <td width="5" height="5" style="background: #ffffff; font-size: 0; line-height: 1;">&nbsp;</td> 269 </tr> 270 271 </table> 272 </td> 273 if ((count % @listColumns) == 0) { 274 @:</tr><tr> 275 } 276 @* if(count == totalItems){ 277 int j = listColumns - (count % listColumns); 278 279 for(var i = 0; i < j; i++) 280 { 281 <td width='@columnWidth'>&nbsp;</td> 282 } 283 } *@ 284 count++; 285 } 286 } 287 </tr> 288 </table> 289 </td> 290 </tr> 291 @* <tr> 292 <td width="10" height="30" style="font-size: 0; line-height: 1;">&nbsp;</td> 293 </tr> *@ 294 } 295 296 </table> 297 </td> 298 </tr> 299 </table> 300
Error compiling template "/Designs/TTonlineNew/EmailMarketing/Paragraph/EmailMarketingProductList.cshtml"
Line 194: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 198: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 207: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 208: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 545: The variable 'productPrice' is assigned but its value is never used

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 using System.Linq; 15 16 #line 31 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 17 using Dynamicweb.Rendering; 18 19 #line default 20 #line hidden 21 22 #line 3 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 23 using System.Threading; 24 25 #line default 26 #line hidden 27 28 29 public class RazorEngine_b506430ab4774a7f9175b64014506f21 : RazorTemplateBase<RazorTemplateModel<Template>> { 30 31 #line hidden 32 33 #line 6 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 34 public RazorEngine.Templating.TemplateWriter CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 35 #line default 36 #line hidden 37 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 38 39 #line 6 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 40 41 string rect = style, 42 anchor = style; 43 44 if(string.IsNullOrEmpty(style)){ 45 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 46 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 47 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 48 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 49 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 50 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 51 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 52 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 53 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 54 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 55 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 56 57 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 58 } 59 60 61 62 63 #line default 64 #line hidden 65 WriteLiteralTo(__razor_helper_writer, " <a"); 66 67 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 68 69 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 70 71 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2272), Tuple.Create("\"", 2284) 72 73 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 74 , Tuple.Create(Tuple.Create("", 2279), Tuple.Create<System.Object, System.Int32>(link 75 76 #line default 77 #line hidden 78 , 2279), false) 79 ); 80 81 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2285), Tuple.Create("\"", 2300) 82 83 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 84 , Tuple.Create(Tuple.Create("", 2293), Tuple.Create<System.Object, System.Int32>(anchor 85 86 #line default 87 #line hidden 88 , 2293), false) 89 ); 90 91 WriteLiteralTo(__razor_helper_writer, ">"); 92 93 94 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 95 WriteTo(__razor_helper_writer, text); 96 97 98 #line default 99 #line hidden 100 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 101 102 103 #line 28 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 104 105 106 107 #line default 108 #line hidden 109 }); 110 111 #line 29 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 112 } 113 #line default 114 #line hidden 115 116 117 #line 32 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 118 119 public static string GetImage(string source, int widthNum = 600, int heightNum = 200, string format = "jpg", int num_compression = 100, int num_crop = 5){ 120 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 121 string alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "", 122 width = widthNum != 0 ? "&amp;Width=" + widthNum.ToString() : "", 123 height = heightNum != 0 ? "&amp;Height=" + heightNum.ToString(): ""; 124 format = format != "jpg" ? "&amp;Format=" + format : ""; 125 126 string output = "/Admin/Public/GetImage.ashx?Image=" + source + width + height + "&amp;altFmImage_path=" + alternativeImage + format + "&amp;Compression=" + num_compression + "&amp;Crop=" + num_crop; 127 return output.ToString(); 128 } 129 130 #line default 131 #line hidden 132 133 134 public RazorEngine_b506430ab4774a7f9175b64014506f21() { 135 } 136 137 public override void Execute() { 138 WriteLiteral("\r\n"); 139 140 141 #line 45 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 142 143 var culture1 = System.Globalization.CultureInfo.GetCultureInfo("ro-RO"); 144 var culture2 = System.Globalization.CultureInfo.InvariantCulture; 145 146 bool useCulture1 = string.Equals(Thread.CurrentThread.CurrentCulture.Name, "ro-RO", StringComparison.OrdinalIgnoreCase); 147 148 //Thread.CurrentThread.CurrentCulture = culture2; 149 150 Func<string, bool> isInvariant = (v) => 151 { 152 if (string.IsNullOrEmpty(v)) 153 { 154 return false; 155 } 156 157 if (v.Contains(".") && v.Contains(",")) 158 { 159 return v.IndexOf(',') < v.IndexOf('.') ? true : false; 160 } 161 else if (v.Contains(",")) 162 { 163 return false; 164 } 165 else 166 { 167 return true; 168 } 169 }; 170 171 172 #line default 173 #line hidden 174 WriteLiteral("\r\n\r\n\r\n"); 175 176 177 #line 76 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 178 179 180 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 181 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 182 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 183 string titleOrder = GetString("Item.TitleOrder"); 184 string image = GetString("Item.Image"); 185 string imageTitle = GetString("Item.ImageTitle"); 186 string text = GetString("Item.Text"); 187 string imageAlignment = GetString("Item.Order"); 188 string backgroundColor = GetString("Item.Background"); 189 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 190 string fontFamily = "font-family: 'Open Sans', Verdana, sans-serif; color:#717375; font-weight: 400;"; 191 string fontSize12 = "font-size: 12px"; 192 string fontSize16 = "font-size: 16px"; 193 string padding0 = "padding: 0"; 194 int listColumns = Dynamicweb.Input.FormatInteger(GetString("Item.NumberOfColumns")); 195 string columnWidth = listColumns == 1 ? "100%" : 96 / listColumns + "%" ; 196 int width = GetInteger("Item.Width"); 197 string col = width == 50 ? "324" : "600"; 198 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 199 200 201 List<LoopItem> items = GetLoop("Item.Items"); 202 203 if (GetInteger("ParagraphContainerSort") == 1) 204 { 205 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 206 } 207 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 208 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 209 System.Web.HttpContext.Current.Items["currentColumns"] = width; 210 } 211 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 212 { 213 {"background", "none"}, 214 {"color", "#fcae16"}, 215 {"font-size", "12px"}, 216 {"font-style", "normal"}, 217 {"text-align", "left"}, 218 {"padding", "0"} 219 }; 220 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetInteger("ParagraphContainerSort") == 1 ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='500'><tr>" : ""; 221 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 222 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 223 string endHeading = "</"+titleHeading+">"; 224 225 226 #line default 227 #line hidden 228 WriteLiteral("\r\n\r\n<table"); 229 230 WriteLiteral(" class=\'responsive-table clearLeft\'"); 231 232 WriteLiteral(" border=\'0\'"); 233 234 WriteLiteral(" cellspacing=\'0\'"); 235 236 WriteLiteral(" cellpadding=\'0\'"); 237 238 WriteLiteral(" width=\'600\'"); 239 240 WriteLiteral("> \r\n<tr>\r\n <td"); 241 242 WriteLiteral(" width=\"10\""); 243 244 WriteLiteral(" height=\"10\""); 245 246 WriteLiteral(" style=\"font-size: 0; line-height: 1; background:#f1f2f2;\""); 247 248 WriteLiteral(">&nbsp;</td>\r\n</tr>\r\n<tr>\r\n <td"); 249 250 WriteLiteral(" border=\"0\""); 251 252 WriteLiteral(" cellspacing=\"0\""); 253 254 WriteLiteral(" cellpadding=\"0\""); 255 256 WriteAttribute("width", Tuple.Create(" width=\"", 7062), Tuple.Create("\"", 7074) 257 258 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 259 , Tuple.Create(Tuple.Create("", 7070), Tuple.Create<System.Object, System.Int32>(col 260 261 #line default 262 #line hidden 263 , 7070), false) 264 ); 265 266 WriteAttribute("style", Tuple.Create(" style=\"", 7075), Tuple.Create("\"", 7143) 267 268 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 269 , Tuple.Create(Tuple.Create("", 7083), Tuple.Create<System.Object, System.Int32>(fontFamily 270 271 #line default 272 #line hidden 273 , 7083), false) 274 , Tuple.Create(Tuple.Create("", 7094), Tuple.Create(";", 7094), true) 275 , Tuple.Create(Tuple.Create(" ", 7095), Tuple.Create("background:", 7096), true) 276 , Tuple.Create(Tuple.Create(" ", 7107), Tuple.Create("#ffffff;", 7108), true) 277 , Tuple.Create(Tuple.Create(" ", 7116), Tuple.Create("border:", 7117), true) 278 , Tuple.Create(Tuple.Create(" ", 7124), Tuple.Create("1px", 7125), true) 279 , Tuple.Create(Tuple.Create(" ", 7128), Tuple.Create("solid", 7129), true) 280 , Tuple.Create(Tuple.Create(" ", 7134), Tuple.Create("#f1f2f2;", 7135), true) 281 ); 282 283 WriteLiteral(" class=\"responsive-table\""); 284 285 WriteLiteral(">\r\n \t<table"); 286 287 WriteLiteral(" border=\"0\""); 288 289 WriteLiteral(" cellspacing=\"0\""); 290 291 WriteLiteral(" cellpadding=\"0\""); 292 293 WriteAttribute("width", Tuple.Create(" width=\"", 7226), Tuple.Create("\"", 7238) 294 295 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 296 , Tuple.Create(Tuple.Create("", 7234), Tuple.Create<System.Object, System.Int32>(col 297 298 #line default 299 #line hidden 300 , 7234), false) 301 ); 302 303 WriteAttribute("style", Tuple.Create(" style=\"", 7239), Tuple.Create("\"", 7259) 304 305 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 306 , Tuple.Create(Tuple.Create("", 7247), Tuple.Create<System.Object, System.Int32>(fontFamily 307 308 #line default 309 #line hidden 310 , 7247), false) 311 , Tuple.Create(Tuple.Create("", 7258), Tuple.Create(";", 7258), true) 312 ); 313 314 WriteLiteral(" class=\"responsive-table\""); 315 316 WriteLiteral(">\r\n \t\t"); 317 318 WriteLiteral("\r\n"); 319 320 321 #line 134 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 322 323 324 #line default 325 #line hidden 326 327 #line 134 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 328 if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 329 330 331 #line default 332 #line hidden 333 WriteLiteral(" <tr>\r\n <td"); 334 335 WriteLiteral(" class=\"cell-padding\""); 336 337 WriteAttribute("align", Tuple.Create(" align=\"", 7555), Tuple.Create("\"", 7578) 338 339 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 340 , Tuple.Create(Tuple.Create("", 7563), Tuple.Create<System.Object, System.Int32>(titleAlignment 341 342 #line default 343 #line hidden 344 , 7563), false) 345 ); 346 347 WriteLiteral(" valign=\"top\""); 348 349 WriteAttribute("style", Tuple.Create(" style=\"", 7592), Tuple.Create("\"", 7652) 350 351 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 352 , Tuple.Create(Tuple.Create("", 7600), Tuple.Create<System.Object, System.Int32>(fontFamily 353 354 #line default 355 #line hidden 356 , 7600), false) 357 , Tuple.Create(Tuple.Create("", 7611), Tuple.Create(";", 7611), true) 358 , Tuple.Create(Tuple.Create(" ", 7612), Tuple.Create("background:", 7613), true) 359 , Tuple.Create(Tuple.Create(" ", 7624), Tuple.Create("#fcae16;", 7625), true) 360 , Tuple.Create(Tuple.Create(" ", 7633), Tuple.Create("padding:", 7634), true) 361 , Tuple.Create(Tuple.Create(" ", 7642), Tuple.Create("5px", 7643), true) 362 , Tuple.Create(Tuple.Create(" ", 7646), Tuple.Create("10px;", 7647), true) 363 ); 364 365 WriteLiteral(">\r\n <"); 366 367 368 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 369 Write(titleHeading); 370 371 372 #line default 373 #line hidden 374 WriteLiteral(" style=\"font-size: 16px; padding: 0; margin: 0; "); 375 376 377 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 378 Write(fontFamily); 379 380 381 #line default 382 #line hidden 383 WriteLiteral("; color: #ffffff\" class=\"outlook\">"); 384 385 386 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 387 Write(title); 388 389 390 #line default 391 #line hidden 392 WriteLiteral(" "); 393 394 395 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 396 Write(endHeading); 397 398 399 #line default 400 #line hidden 401 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 402 403 404 #line 140 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 405 } 406 407 408 #line default 409 #line hidden 410 WriteLiteral("\r\n"); 411 412 413 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 414 415 416 #line default 417 #line hidden 418 419 #line 142 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 420 if(text != ""){ 421 422 423 #line default 424 #line hidden 425 WriteLiteral(" <tr>\r\n <td"); 426 427 WriteLiteral(" width=\"10\""); 428 429 WriteLiteral(" height=\"10\""); 430 431 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 432 433 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 434 435 WriteLiteral(" <tr>\r\n <td"); 436 437 WriteLiteral(" class=\"cell-padding\""); 438 439 WriteLiteral(" align=\"left\""); 440 441 WriteLiteral(" valign=\"top\""); 442 443 WriteAttribute("style", Tuple.Create(" style=\"", 8114), Tuple.Create("\"", 8170) 444 , Tuple.Create(Tuple.Create(" ", 8122), Tuple.Create("line-height:", 8123), true) 445 , Tuple.Create(Tuple.Create(" ", 8135), Tuple.Create("18px;", 8136), true) 446 , Tuple.Create(Tuple.Create(" ", 8141), Tuple.Create("font-size:", 8142), true) 447 , Tuple.Create(Tuple.Create(" ", 8152), Tuple.Create("14px;", 8153), true) 448 449 #line 147 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 450 , Tuple.Create(Tuple.Create(" ", 8158), Tuple.Create<System.Object, System.Int32>(fontFamily 451 452 #line default 453 #line hidden 454 , 8159), false) 455 ); 456 457 WriteLiteral(" class=\"outlook\""); 458 459 WriteLiteral(">\r\n"); 460 461 WriteLiteral(" "); 462 463 464 #line 148 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 465 Write(text); 466 467 468 #line default 469 #line hidden 470 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 471 472 WriteLiteral(" <tr>\r\n <td"); 473 474 WriteLiteral(" width=\"10\""); 475 476 WriteLiteral(" height=\"20\""); 477 478 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 479 480 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 481 482 483 #line 154 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 484 } 485 486 487 #line default 488 #line hidden 489 WriteLiteral(" \t\t"); 490 491 492 #line 155 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 493 if(items.Any()){ 494 495 496 #line default 497 #line hidden 498 WriteLiteral(" \t\t<tr>\r\n <td"); 499 500 WriteLiteral(" width=\"10\""); 501 502 WriteLiteral(" height=\"15\""); 503 504 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 505 506 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 507 508 WriteLiteral(" \t\t<tr>\r\n <td"); 509 510 WriteLiteral(" class=\"cell-padding\""); 511 512 WriteLiteral(" align=\"left\""); 513 514 WriteLiteral(" valign=\"top\""); 515 516 WriteLiteral(" style=\"padding: 0 15px;\""); 517 518 WriteLiteral(">\r\n <table"); 519 520 WriteLiteral(" class=\'responsive-table clearLeft\'"); 521 522 WriteLiteral(" border=\'0\'"); 523 524 WriteLiteral(" cellspacing=\'0\'"); 525 526 WriteLiteral(" cellpadding=\'0\'"); 527 528 WriteLiteral(" width=\'100%\'"); 529 530 WriteLiteral("> \r\n <tr>\r\n"); 531 532 533 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 534 535 536 #line default 537 #line hidden 538 539 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 540 int count = 1; 541 int totalItems = items.Count(); 542 foreach (LoopItem item in items){ 543 string productTitle = ""; 544 string productImage = ""; 545 string productPrice = ""; 546 string productLink = ""; 547 double priceProductDB = 0; 548 double priceProductDiscount = 0; 549 550 var product = item.GetLoop("Item.Items.Product").FirstOrDefault(); 551 if (product != null) { 552 productTitle = product.GetString("Ecom:Product.Name"); 553 productImage = product.GetString("Ecom:Product.ImageLarge.Clean"); 554 //productPrice = product.GetString("Ecom:Product.Price"); 555 productLink = product.GetString("Ecom:Product.LinkGroup.Clean"); 556 557 double cultureDBPrice = double.Parse(product.GetString("Ecom:Product.DBPrice"), isInvariant(product.GetString("Ecom:Product.DBPrice")) ? culture2 : culture1); 558 double culturePriceWithVAT = double.Parse(product.GetString("Ecom:Product.Price.PriceWithVAT"), isInvariant(product.GetString("Ecom:Product.Price.PriceWithVAT")) ? culture2 : culture1); 559 double cultureVATPercent = double.Parse(product.GetString("Ecom:Product.Price.VATPercent"), culture2); 560 561 priceProductDB = Math.Round(cultureDBPrice * (1+cultureVATPercent/100.0) ,2); 562 priceProductDiscount = Math.Round(culturePriceWithVAT,2); 563 } 564 string itemImage = item.GetString("Item.Items.Image"); 565 string itemTitle = item.GetString("Item.Items.Title"); 566 bool showPrice= item.GetBoolean("Item.Items.Show_Price"); 567 string itemLink = item.GetString("Item.Items.Link"); 568 string itemLinkText = item.GetString("Item.Items.LinkText"); 569 570 string RenderTitle = !string.IsNullOrEmpty(itemTitle) ? itemTitle : productTitle; 571 string RenderImage = !string.IsNullOrEmpty(itemImage) ? itemImage : productImage; 572 string RenderLink = !string.IsNullOrEmpty(productLink) ? productLink : itemLink; 573 //RenderLink = "http://www.brandfusion.ro/" + RenderLink; 574 //RenderImage = "http://www.brandfusion.ro" + RenderImage; 575 576 string imageAnchorStart = RenderLink != "" ? "<a target=\"_blank\" href=\"" + RenderLink + "\">" : ""; 577 string imageAnchorEnd = RenderLink != "" ? "</a>" : ""; 578 if(count != 1 && listColumns != 1) { 579 580 #line default 581 #line hidden 582 WriteLiteral(" <td"); 583 584 WriteLiteral(" width=\'2%\'"); 585 586 WriteLiteral(">&nbsp;</td> "); 587 588 589 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 590 } 591 592 593 #line default 594 #line hidden 595 WriteLiteral(" <td"); 596 597 WriteAttribute("width", Tuple.Create(" width=\'", 11946), Tuple.Create("\'", 11966) 598 599 #line 202 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 600 , Tuple.Create(Tuple.Create("", 11954), Tuple.Create<System.Object, System.Int32>(columnWidth 601 602 #line default 603 #line hidden 604 , 11954), false) 605 ); 606 607 WriteLiteral(" valign=\"top\""); 608 609 WriteLiteral(">\r\n <table"); 610 611 WriteLiteral(" class=\'responsive-table clearLeft\'"); 612 613 WriteLiteral(" border=\'0\'"); 614 615 WriteLiteral(" cellspacing=\'0\'"); 616 617 WriteLiteral(" cellpadding=\'0\'"); 618 619 WriteLiteral(" width=\'100%\'"); 620 621 WriteLiteral("> \r\n \r\n"); 622 623 624 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 625 626 627 #line default 628 #line hidden 629 630 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 631 if(!string.IsNullOrEmpty(itemImage)) { 632 633 634 #line default 635 #line hidden 636 WriteLiteral(" <tr>\r\n <td"); 637 638 WriteLiteral(" align=\"left\""); 639 640 WriteLiteral(" valign=\"top\""); 641 642 WriteLiteral(" style=\"background: #ffffff; padding-bottom: 15px;\""); 643 644 WriteLiteral(">\r\n\r\n"); 645 646 647 #line 209 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 648 649 650 #line default 651 #line hidden 652 653 #line 209 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 654 if(!string.IsNullOrEmpty(RenderImage)) { 655 656 657 #line default 658 #line hidden 659 WriteLiteral(" "); 660 661 662 #line 210 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 663 Write(imageAnchorStart); 664 665 666 #line default 667 #line hidden 668 WriteLiteral("\r\n"); 669 670 WriteLiteral(" <img"); 671 672 WriteLiteral(" class=\"img-max\""); 673 674 WriteAttribute("src", Tuple.Create(" src=\"", 12561), Tuple.Create("\"", 12597) 675 676 #line 211 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 677 , Tuple.Create(Tuple.Create("", 12567), Tuple.Create<System.Object, System.Int32>(GetImage(RenderImage, 330, 0) 678 679 #line default 680 #line hidden 681 , 12567), false) 682 ); 683 684 WriteLiteral(" /> \r\n"); 685 686 WriteLiteral(" "); 687 688 689 #line 212 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 690 Write(imageAnchorEnd); 691 692 693 #line default 694 #line hidden 695 WriteLiteral(" \r\n"); 696 697 698 #line 213 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 699 } 700 701 702 #line default 703 #line hidden 704 705 #line 218 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 706 707 708 709 #line default 710 #line hidden 711 WriteLiteral(" </td>\r\n </tr>\r\n"); 712 713 714 #line 221 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 715 } 716 717 718 #line default 719 #line hidden 720 WriteLiteral(" "); 721 722 723 #line 222 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 724 if(!string.IsNullOrEmpty(itemTitle)) { 725 726 727 #line default 728 #line hidden 729 WriteLiteral(" <tr>\r\n <td"); 730 731 WriteAttribute("style", Tuple.Create(" style=\"", 13223), Tuple.Create("\"", 13280) 732 733 #line 224 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 734 , Tuple.Create(Tuple.Create("", 13231), Tuple.Create<System.Object, System.Int32>(fontFamily 735 736 #line default 737 #line hidden 738 , 13231), false) 739 , Tuple.Create(Tuple.Create(" ", 13242), Tuple.Create("background:", 13243), true) 740 , Tuple.Create(Tuple.Create(" ", 13254), Tuple.Create("#ffffff;", 13255), true) 741 , Tuple.Create(Tuple.Create(" ", 13263), Tuple.Create("padding:", 13264), true) 742 , Tuple.Create(Tuple.Create(" ", 13272), Tuple.Create("0", 13273), true) 743 , Tuple.Create(Tuple.Create(" ", 13274), Tuple.Create("0", 13275), true) 744 , Tuple.Create(Tuple.Create(" ", 13276), Tuple.Create("5px", 13277), true) 745 ); 746 747 WriteLiteral(" align=\"left\""); 748 749 WriteLiteral(" valign=\"top\""); 750 751 WriteAttribute("width", Tuple.Create(" width=\'", 13307), Tuple.Create("\'", 13327) 752 753 #line 224 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 754 , Tuple.Create(Tuple.Create("", 13315), Tuple.Create<System.Object, System.Int32>(columnWidth 755 756 #line default 757 #line hidden 758 , 13315), false) 759 ); 760 761 WriteLiteral(">\r\n <h2"); 762 763 WriteAttribute("style", Tuple.Create(" style=\"", 13366), Tuple.Create("\"", 13514) 764 765 #line 225 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 766 , Tuple.Create(Tuple.Create(" ", 13374), Tuple.Create<System.Object, System.Int32>(fontFamily 767 768 #line default 769 #line hidden 770 , 13375), false) 771 , Tuple.Create(Tuple.Create(" ", 13386), Tuple.Create("font-weight:", 13387), true) 772 , Tuple.Create(Tuple.Create(" ", 13399), Tuple.Create("400;", 13400), true) 773 , Tuple.Create(Tuple.Create(" ", 13404), Tuple.Create("font-size:", 13405), true) 774 , Tuple.Create(Tuple.Create(" ", 13415), Tuple.Create("14px;", 13416), true) 775 , Tuple.Create(Tuple.Create(" ", 13421), Tuple.Create("display:", 13422), true) 776 , Tuple.Create(Tuple.Create(" ", 13430), Tuple.Create("block;", 13431), true) 777 , Tuple.Create(Tuple.Create(" ", 13437), Tuple.Create("overflow:", 13438), true) 778 , Tuple.Create(Tuple.Create(" ", 13447), Tuple.Create("hidden;", 13448), true) 779 , Tuple.Create(Tuple.Create(" ", 13455), Tuple.Create("margin:", 13456), true) 780 , Tuple.Create(Tuple.Create(" ", 13463), Tuple.Create("0;", 13464), true) 781 , Tuple.Create(Tuple.Create(" ", 13466), Tuple.Create("line-height:", 13467), true) 782 , Tuple.Create(Tuple.Create(" ", 13479), Tuple.Create("1.4;", 13480), true) 783 , Tuple.Create(Tuple.Create(" ", 13484), Tuple.Create("text-align:", 13485), true) 784 , Tuple.Create(Tuple.Create(" ", 13496), Tuple.Create("left;", 13497), true) 785 786 #line 225 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 787 , Tuple.Create(Tuple.Create(" ", 13502), Tuple.Create<System.Object, System.Int32>(padding0 788 789 #line default 790 #line hidden 791 , 13503), false) 792 , Tuple.Create(Tuple.Create("", 13512), Tuple.Create(";", 13512), true) 793 , Tuple.Create(Tuple.Create(" ", 13513), Tuple.Create("", 13513), true) 794 ); 795 796 WriteLiteral(" class=\"outlook\""); 797 798 WriteLiteral(">\r\n"); 799 800 WriteLiteral(" "); 801 802 803 #line 226 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 804 Write(RenderTitle); 805 806 807 #line default 808 #line hidden 809 WriteLiteral(" "); 810 811 WriteLiteral("\r\n </h2>\r\n </td>\r\n " + 812 " </tr>\r\n"); 813 814 815 #line 230 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 816 } 817 818 819 #line default 820 #line hidden 821 WriteLiteral(" "); 822 823 824 #line 231 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 825 if(showPrice){ 826 827 828 #line default 829 #line hidden 830 WriteLiteral(" <tr>\r\n <td"); 831 832 WriteAttribute("style", Tuple.Create(" style=\"", 13880), Tuple.Create("\"", 13938) 833 834 #line 233 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 835 , Tuple.Create(Tuple.Create("", 13888), Tuple.Create<System.Object, System.Int32>(fontFamily 836 837 #line default 838 #line hidden 839 , 13888), false) 840 , Tuple.Create(Tuple.Create(" ", 13899), Tuple.Create("background:", 13900), true) 841 , Tuple.Create(Tuple.Create(" ", 13911), Tuple.Create("#ffffff;", 13912), true) 842 , Tuple.Create(Tuple.Create(" ", 13920), Tuple.Create("padding:", 13921), true) 843 , Tuple.Create(Tuple.Create(" ", 13929), Tuple.Create("0", 13930), true) 844 , Tuple.Create(Tuple.Create(" ", 13931), Tuple.Create("0", 13932), true) 845 , Tuple.Create(Tuple.Create(" ", 13933), Tuple.Create("10px", 13934), true) 846 ); 847 848 WriteLiteral(" align=\"center\""); 849 850 WriteLiteral(" valign=\"top\""); 851 852 WriteAttribute("width", Tuple.Create(" width=\'", 13967), Tuple.Create("\'", 13987) 853 854 #line 233 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 855 , Tuple.Create(Tuple.Create("", 13975), Tuple.Create<System.Object, System.Int32>(columnWidth 856 857 #line default 858 #line hidden 859 , 13975), false) 860 ); 861 862 WriteLiteral(">\r\n <span"); 863 864 WriteAttribute("style", Tuple.Create(" style=\"", 14028), Tuple.Create("\"", 14081) 865 , Tuple.Create(Tuple.Create("", 14036), Tuple.Create("color:", 14036), true) 866 , Tuple.Create(Tuple.Create(" ", 14042), Tuple.Create("#d50000;", 14043), true) 867 868 #line 234 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 869 , Tuple.Create(Tuple.Create(" ", 14051), Tuple.Create<System.Object, System.Int32>(fontSize16 870 871 #line default 872 #line hidden 873 , 14052), false) 874 , Tuple.Create(Tuple.Create("", 14063), Tuple.Create(";", 14063), true) 875 , Tuple.Create(Tuple.Create(" ", 14064), Tuple.Create("font-weight:600;", 14065), true) 876 ); 877 878 WriteLiteral(" class=\"outlook\""); 879 880 WriteLiteral("> "); 881 882 883 #line 234 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 884 Write(product.GetString("Ecom:Product.ActualPrice")); 885 886 887 #line default 888 #line hidden 889 WriteLiteral(" </span>\r\n </td>\r\n </tr> " + 890 " \r\n"); 891 892 WriteLiteral(" <tr>\r\n <td"); 893 894 WriteAttribute("style", Tuple.Create(" style=\"", 14319), Tuple.Create("\"", 14378) 895 896 #line 238 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 897 , Tuple.Create(Tuple.Create("", 14327), Tuple.Create<System.Object, System.Int32>(fontFamily 898 899 #line default 900 #line hidden 901 , 14327), false) 902 , Tuple.Create(Tuple.Create(" ", 14338), Tuple.Create("background:", 14339), true) 903 , Tuple.Create(Tuple.Create(" ", 14350), Tuple.Create("#ffffff;", 14351), true) 904 , Tuple.Create(Tuple.Create(" ", 14359), Tuple.Create("padding:", 14361), true) 905 , Tuple.Create(Tuple.Create(" ", 14369), Tuple.Create("0", 14370), true) 906 , Tuple.Create(Tuple.Create(" ", 14371), Tuple.Create("0", 14372), true) 907 , Tuple.Create(Tuple.Create(" ", 14373), Tuple.Create("10px", 14374), true) 908 ); 909 910 WriteLiteral(" align=\"center\""); 911 912 WriteLiteral(" valign=\"top\""); 913 914 WriteAttribute("width", Tuple.Create(" width=\'", 14407), Tuple.Create("\'", 14427) 915 916 #line 238 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 917 , Tuple.Create(Tuple.Create("", 14415), Tuple.Create<System.Object, System.Int32>(columnWidth 918 919 #line default 920 #line hidden 921 , 14415), false) 922 ); 923 924 WriteLiteral(">\r\n <span"); 925 926 WriteAttribute("style", Tuple.Create(" style=\"", 14468), Tuple.Create("\"", 14518) 927 , Tuple.Create(Tuple.Create("", 14476), Tuple.Create("color:", 14476), true) 928 , Tuple.Create(Tuple.Create(" ", 14482), Tuple.Create("#666;", 14483), true) 929 930 #line 239 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 931 , Tuple.Create(Tuple.Create(" ", 14488), Tuple.Create<System.Object, System.Int32>(fontSize12 932 933 #line default 934 #line hidden 935 , 14489), false) 936 , Tuple.Create(Tuple.Create("", 14500), Tuple.Create(";", 14500), true) 937 , Tuple.Create(Tuple.Create(" ", 14501), Tuple.Create("font-weight:600;", 14502), true) 938 ); 939 940 WriteLiteral("> \r\n if (price" + 941 "ProductDiscount < priceProductDB) {\r\n <" + 942 "p"); 943 944 WriteAttribute("style", Tuple.Create(" style=\"", 14681), Tuple.Create("\"", 14701) 945 946 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 947 , Tuple.Create(Tuple.Create("", 14689), Tuple.Create<System.Object, System.Int32>(fontSize12 948 949 #line default 950 #line hidden 951 , 14689), false) 952 , Tuple.Create(Tuple.Create("", 14700), Tuple.Create(";", 14700), true) 953 ); 954 955 WriteLiteral(" class=\"outlook\""); 956 957 WriteLiteral(">Pret vechi: <span"); 958 959 WriteAttribute("style", Tuple.Create(" style=\"", 14736), Tuple.Create("\"", 14787) 960 , Tuple.Create(Tuple.Create("", 14744), Tuple.Create("text-decoration:", 14744), true) 961 , Tuple.Create(Tuple.Create(" ", 14760), Tuple.Create("line-through;", 14761), true) 962 963 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 964 , Tuple.Create(Tuple.Create(" ", 14774), Tuple.Create<System.Object, System.Int32>(fontSize12 965 966 #line default 967 #line hidden 968 , 14775), false) 969 , Tuple.Create(Tuple.Create("", 14786), Tuple.Create(";", 14786), true) 970 ); 971 972 WriteLiteral(">"); 973 974 975 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 976 Write(priceProductDB.ToString(isInvariant(product.GetString("Ecom:Product.ActualPrice")) ? culture2 : culture1)); 977 978 979 #line default 980 #line hidden 981 WriteLiteral(" "); 982 983 984 #line 241 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 985 Write(product.GetValue("Ecom:Product.Currency.Name")); 986 987 988 #line default 989 #line hidden 990 WriteLiteral("</span></p>\t\t\t \r\n } " + 991 " \r\n </span>\r\n " + 992 " </td>\r\n </tr> \r\n"); 993 994 995 #line 246 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 996 } 997 998 999 #line default 1000 #line hidden 1001 WriteLiteral(" \r\n"); 1002 1003 1004 #line 248 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1005 1006 1007 #line default 1008 #line hidden 1009 1010 #line 248 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1011 if(!string.IsNullOrEmpty(itemLinkText)) { 1012 1013 1014 #line default 1015 #line hidden 1016 WriteLiteral(" \t\t\t\t\t\t<tr>\r\n <td"); 1017 1018 WriteLiteral(" valign=\"top\""); 1019 1020 WriteAttribute("width", Tuple.Create(" width=\'", 15352), Tuple.Create("\'", 15372) 1021 1022 #line 250 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1023 , Tuple.Create(Tuple.Create("", 15360), Tuple.Create<System.Object, System.Int32>(columnWidth 1024 1025 #line default 1026 #line hidden 1027 , 15360), false) 1028 ); 1029 1030 WriteLiteral(" style=\"background: #ffffff; padding: 0 0 10px 0;\""); 1031 1032 WriteLiteral("> \r\n " + 1033 " \t\t<table"); 1034 1035 WriteLiteral(" border=\"0\""); 1036 1037 WriteLiteral(" cellspacing=\"0\""); 1038 1039 WriteLiteral(" cellpadding=\"0\""); 1040 1041 WriteLiteral(" width=\"100%\""); 1042 1043 WriteLiteral(">\r\n <tr>\r\n <t" + 1044 "d>\r\n <table"); 1045 1046 WriteLiteral(" border=\"0\""); 1047 1048 WriteLiteral(" cellspacing=\"0\""); 1049 1050 WriteLiteral(" cellpadding=\"0\""); 1051 1052 WriteLiteral(">\r\n <tr>\r\n " + 1053 " <td>\r\n"); 1054 1055 WriteLiteral(" \t\t\t\t\t\t"); 1056 1057 1058 #line 257 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1059 Write(CreateButton(RenderLink, itemLinkText, null, dict_buttonBlue)); 1060 1061 1062 #line default 1063 #line hidden 1064 WriteLiteral(@" 1065 </td> 1066 </tr> 1067 </table> 1068 </td> 1069 </tr> 1070 </table> 1071 </td> 1072 </tr> 1073 "); 1074 1075 1076 #line 266 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1077 } 1078 1079 1080 #line default 1081 #line hidden 1082 WriteLiteral(" \t\t\t\t\t\t<tr>\r\n <td"); 1083 1084 WriteLiteral(" width=\"5\""); 1085 1086 WriteLiteral(" height=\"5\""); 1087 1088 WriteLiteral(" style=\"background: #ffffff; font-size: 0; line-height: 1;\""); 1089 1090 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n\r\n </ta" + 1091 "ble>\r\n </td> \r\n"); 1092 1093 1094 #line 273 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1095 if ((count % @listColumns) == 0) { 1096 1097 1098 #line default 1099 #line hidden 1100 WriteLiteral(" "); 1101 1102 WriteLiteral("</tr><tr>\r\n"); 1103 1104 1105 #line 275 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1106 } 1107 1108 1109 #line default 1110 #line hidden 1111 1112 #line 283 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1113 1114 count++; 1115 } 1116 1117 1118 #line default 1119 #line hidden 1120 WriteLiteral("\r\n \t\t</tr>\r\n </table>\r\n </td>\r\n " + 1121 " </tr>\r\n"); 1122 1123 1124 #line 291 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1125 1126 1127 #line default 1128 #line hidden 1129 1130 #line 293 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList.cshtml" 1131 1132 } 1133 1134 1135 #line default 1136 #line hidden 1137 WriteLiteral(" \t\t\r\n </table>\r\n </td>\r\n</tr>\t\r\n</table>\r\n"); 1138 1139 } 1140 } 1141 } 1142

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @using System.Threading; 4 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 5 @using Dynamicweb.Rendering; 6 @helper CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 7 string rect = style, 8 anchor = style; 9 10 if(string.IsNullOrEmpty(style)){ 11 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 12 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 13 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 14 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 15 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 16 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 17 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 18 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 19 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 20 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 21 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 22 23 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 24 } 25 26 27 <a class="mobile-button" target="_blank" href="@link" style="@anchor">@text</a> 28 29 } 30 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 31 @using Dynamicweb.Rendering; 32 @functions{ 33 public static string GetImage(string source, int widthNum = 600, int heightNum = 200, string format = "jpg", int num_compression = 100, int num_crop = 5){ 34 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 35 string alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "", 36 width = widthNum != 0 ? "&amp;Width=" + widthNum.ToString() : "", 37 height = heightNum != 0 ? "&amp;Height=" + heightNum.ToString(): ""; 38 format = format != "jpg" ? "&amp;Format=" + format : ""; 39 40 string output = "/Admin/Public/GetImage.ashx?Image=" + source + width + height + "&amp;altFmImage_path=" + alternativeImage + format + "&amp;Compression=" + num_compression + "&amp;Crop=" + num_crop; 41 return output.ToString(); 42 } 43 } 44 45 @{ 46 var culture1 = System.Globalization.CultureInfo.GetCultureInfo("ro-RO"); 47 var culture2 = System.Globalization.CultureInfo.InvariantCulture; 48 49 bool useCulture1 = string.Equals(Thread.CurrentThread.CurrentCulture.Name, "ro-RO", StringComparison.OrdinalIgnoreCase); 50 51 //Thread.CurrentThread.CurrentCulture = culture2; 52 53 Func<string, bool> isInvariant = (v) => 54 { 55 if (string.IsNullOrEmpty(v)) 56 { 57 return false; 58 } 59 60 if (v.Contains(".") && v.Contains(",")) 61 { 62 return v.IndexOf(',') < v.IndexOf('.') ? true : false; 63 } 64 else if (v.Contains(",")) 65 { 66 return false; 67 } 68 else 69 { 70 return true; 71 } 72 }; 73 } 74 75 76 @{ 77 78 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 79 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 80 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 81 string titleOrder = GetString("Item.TitleOrder"); 82 string image = GetString("Item.Image"); 83 string imageTitle = GetString("Item.ImageTitle"); 84 string text = GetString("Item.Text"); 85 string imageAlignment = GetString("Item.Order"); 86 string backgroundColor = GetString("Item.Background"); 87 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 88 string fontFamily = "font-family: 'Open Sans', Verdana, sans-serif; color:#717375; font-weight: 400;"; 89 string fontSize12 = "font-size: 12px"; 90 string fontSize16 = "font-size: 16px"; 91 string padding0 = "padding: 0"; 92 int listColumns = Dynamicweb.Input.FormatInteger(GetString("Item.NumberOfColumns")); 93 string columnWidth = listColumns == 1 ? "100%" : 96 / listColumns + "%" ; 94 int width = GetInteger("Item.Width"); 95 string col = width == 50 ? "324" : "600"; 96 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 97 98 99 List<LoopItem> items = GetLoop("Item.Items"); 100 101 if (GetInteger("ParagraphContainerSort") == 1) 102 { 103 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 104 } 105 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 106 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 107 System.Web.HttpContext.Current.Items["currentColumns"] = width; 108 } 109 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 110 { 111 {"background", "none"}, 112 {"color", "#fcae16"}, 113 {"font-size", "12px"}, 114 {"font-style", "normal"}, 115 {"text-align", "left"}, 116 {"padding", "0"} 117 }; 118 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetInteger("ParagraphContainerSort") == 1 ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='500'><tr>" : ""; 119 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 120 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 121 string endHeading = "</"+titleHeading+">"; 122 } 123 124 <table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='600'> 125 <tr> 126 <td width="10" height="10" style="font-size: 0; line-height: 1; background:#f1f2f2;">&nbsp;</td> 127 </tr> 128 <tr> 129 <td border="0" cellspacing="0" cellpadding="0" width="@col" style="@fontFamily; background: #ffffff; border: 1px solid #f1f2f2;" class="responsive-table"> 130 <table border="0" cellspacing="0" cellpadding="0" width="@col" style="@fontFamily;" class="responsive-table"> 131 @* <tr> 132 <td height="30" style="font-size: 0; line-height: 1;">&nbsp;</td> 133 </tr> *@ 134 @if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 135 <tr> 136 <td class="cell-padding" align="@titleAlignment" valign="top" style="@fontFamily; background: #fcae16; padding: 5px 10px;"> 137 <@titleHeading style="font-size: 16px; padding: 0; margin: 0; @fontFamily; color: #ffffff" class="outlook">@title @endHeading 138 </td> 139 </tr> 140 } 141 142 @if(text != ""){ 143 <tr> 144 <td width="10" height="10" style="font-size: 0; line-height: 1;">&nbsp;</td> 145 </tr> 146 <tr> 147 <td class="cell-padding" align="left" valign="top" style=" line-height: 18px; font-size: 14px; @fontFamily" class="outlook"> 148 @text 149 </td> 150 </tr> 151 <tr> 152 <td width="10" height="20" style="font-size: 0; line-height: 1;">&nbsp;</td> 153 </tr> 154 } 155 @if(items.Any()){ 156 <tr> 157 <td width="10" height="15" style="font-size: 0; line-height: 1;">&nbsp;</td> 158 </tr> 159 <tr> 160 <td class="cell-padding" align="left" valign="top" style="padding: 0 15px;"> 161 <table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='100%'> 162 <tr> 163 @{int count = 1; 164 int totalItems = items.Count(); 165 foreach (LoopItem item in items){ 166 string productTitle = ""; 167 string productImage = ""; 168 string productPrice = ""; 169 string productLink = ""; 170 double priceProductDB = 0; 171 double priceProductDiscount = 0; 172 173 var product = item.GetLoop("Item.Items.Product").FirstOrDefault(); 174 if (product != null) { 175 productTitle = product.GetString("Ecom:Product.Name"); 176 productImage = product.GetString("Ecom:Product.ImageLarge.Clean"); 177 //productPrice = product.GetString("Ecom:Product.Price"); 178 productLink = product.GetString("Ecom:Product.LinkGroup.Clean"); 179 180 double cultureDBPrice = double.Parse(product.GetString("Ecom:Product.DBPrice"), isInvariant(product.GetString("Ecom:Product.DBPrice")) ? culture2 : culture1); 181 double culturePriceWithVAT = double.Parse(product.GetString("Ecom:Product.Price.PriceWithVAT"), isInvariant(product.GetString("Ecom:Product.Price.PriceWithVAT")) ? culture2 : culture1); 182 double cultureVATPercent = double.Parse(product.GetString("Ecom:Product.Price.VATPercent"), culture2); 183 184 priceProductDB = Math.Round(cultureDBPrice * (1+cultureVATPercent/100.0) ,2); 185 priceProductDiscount = Math.Round(culturePriceWithVAT,2); 186 } 187 string itemImage = item.GetString("Item.Items.Image"); 188 string itemTitle = item.GetString("Item.Items.Title"); 189 bool showPrice= item.GetBoolean("Item.Items.Show_Price"); 190 string itemLink = item.GetString("Item.Items.Link"); 191 string itemLinkText = item.GetString("Item.Items.LinkText"); 192 193 string RenderTitle = !string.IsNullOrEmpty(itemTitle) ? itemTitle : productTitle; 194 string RenderImage = !string.IsNullOrEmpty(itemImage) ? itemImage : productImage; 195 string RenderLink = !string.IsNullOrEmpty(productLink) ? productLink : itemLink; 196 //RenderLink = "http://www.brandfusion.ro/" + RenderLink; 197 //RenderImage = "http://www.brandfusion.ro" + RenderImage; 198 199 string imageAnchorStart = RenderLink != "" ? "<a target=\"_blank\" href=\"" + RenderLink + "\">" : ""; 200 string imageAnchorEnd = RenderLink != "" ? "</a>" : ""; 201 if(count != 1 && listColumns != 1) { <td width='2%'>&nbsp;</td> } 202 <td width='@columnWidth' valign="top"> 203 <table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='100%'> 204 205 @if(!string.IsNullOrEmpty(itemImage)) { 206 <tr> 207 <td align="left" valign="top" style="background: #ffffff; padding-bottom: 15px;"> 208 209 @if(!string.IsNullOrEmpty(RenderImage)) { 210 @:@imageAnchorStart 211 <img class="img-max" src="@GetImage(RenderImage, 330, 0)" /> 212 @:@imageAnchorEnd 213 } 214 @* else { 215 @:@imageAnchorStart 216 <img class="img-max" src="@RenderLink" alt="@RenderTitle" /> 217 @:@imageAnchorEnd 218 } *@ 219 </td> 220 </tr> 221 } 222 @if(!string.IsNullOrEmpty(itemTitle)) { 223 <tr> 224 <td style="@fontFamily background: #ffffff; padding: 0 0 5px" align="left" valign="top" width='@columnWidth'> 225 <h2 style=" @fontFamily font-weight: 400; font-size: 14px; display: block; overflow: hidden; margin: 0; line-height: 1.4; text-align: left; @padding0; " class="outlook"> 226 @RenderTitle @* @(count % @listColumns) @totalItems *@ 227 </h2> 228 </td> 229 </tr> 230 } 231 @if(showPrice){ 232 <tr> 233 <td style="@fontFamily background: #ffffff; padding: 0 0 10px" align="center" valign="top" width='@columnWidth'> 234 <span style="color: #d50000; @fontSize16; font-weight:600;" class="outlook"> @product.GetString("Ecom:Product.ActualPrice") </span> 235 </td> 236 </tr> 237 <tr> 238 <td style="@fontFamily background: #ffffff; padding: 0 0 10px" align="center" valign="top" width='@columnWidth'> 239 <span style="color: #666; @fontSize12; font-weight:600;"> 240 if (priceProductDiscount < priceProductDB) { 241 <p style="@fontSize12;" class="outlook">Pret vechi: <span style="text-decoration: line-through; @fontSize12;">@(priceProductDB.ToString(isInvariant(product.GetString("Ecom:Product.ActualPrice")) ? culture2 : culture1)) @product.GetValue("Ecom:Product.Currency.Name")</span></p> 242 } 243 </span> 244 </td> 245 </tr> 246 } 247 248 @if(!string.IsNullOrEmpty(itemLinkText)) { 249 <tr> 250 <td valign="top" width='@columnWidth' style="background: #ffffff; padding: 0 0 10px 0;"> 251 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 252 <tr> 253 <td> 254 <table border="0" cellspacing="0" cellpadding="0"> 255 <tr> 256 <td> 257 @CreateButton(RenderLink, itemLinkText, null, dict_buttonBlue) 258 </td> 259 </tr> 260 </table> 261 </td> 262 </tr> 263 </table> 264 </td> 265 </tr> 266 } 267 <tr> 268 <td width="5" height="5" style="background: #ffffff; font-size: 0; line-height: 1;">&nbsp;</td> 269 </tr> 270 271 </table> 272 </td> 273 if ((count % @listColumns) == 0) { 274 @:</tr><tr> 275 } 276 @* if(count == totalItems){ 277 int j = listColumns - (count % listColumns); 278 279 for(var i = 0; i < j; i++) 280 { 281 <td width='@columnWidth'>&nbsp;</td> 282 } 283 } *@ 284 count++; 285 } 286 } 287 </tr> 288 </table> 289 </td> 290 </tr> 291 @* <tr> 292 <td width="10" height="30" style="font-size: 0; line-height: 1;">&nbsp;</td> 293 </tr> *@ 294 } 295 296 </table> 297 </td> 298 </tr> 299 </table> 300
Error compiling template "/Designs/TTonlineNew/EmailMarketing/Paragraph/EmailMarketingProductList_new.cshtml"
Line 194: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 198: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 207: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 208: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 538: The variable 'productPrice' is assigned but its value is never used

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 using System.Linq; 15 16 #line 31 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 17 using Dynamicweb.Rendering; 18 19 #line default 20 #line hidden 21 22 #line 3 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 23 using System.Threading; 24 25 #line default 26 #line hidden 27 28 29 public class RazorEngine_caeb752c8cd6461d89f12131cf07dada : RazorTemplateBase<RazorTemplateModel<Template>> { 30 31 #line hidden 32 33 #line 6 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 34 public RazorEngine.Templating.TemplateWriter CreateButton(string link, string text, string style = "padding: 0;line-height:40px;background:#333333;color:#ffffff;font-family:sans-serif;font-size:14px;text-align:center;text-decoration:none;", Dictionary<string, string> options = null){ 35 #line default 36 #line hidden 37 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 38 39 #line 6 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 40 41 string rect = style, 42 anchor = style; 43 44 if(string.IsNullOrEmpty(style)){ 45 string background = options != null && options.ContainsKey("background") ? options["background"].ToString() : "#fff", 46 border = options != null && options.ContainsKey("border") ? options["border"].ToString() : "none", 47 color = options != null && options.ContainsKey("color") ? options["color"].ToString() : "#ff3c14", 48 fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"].ToString() : "Helvetica, Arial, sans-serif", 49 fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"].ToString() : "14px", 50 fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"].ToString() : "normal", 51 textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"].ToString() : "left", 52 textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"].ToString() : "none", 53 whiteSpace = options != null && options.ContainsKey("white-space") ? options["white-space"].ToString() : "nowrap", 54 displayButton = options != null && options.ContainsKey("display") ? options["display"].ToString() : "block", 55 padding = options != null && options.ContainsKey("padding") ? options["padding"].ToString() : "0"; 56 57 anchor = "background:" + background + ";white-space:" + whiteSpace + ";display:" + displayButton + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";padding:" + padding + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 58 } 59 60 61 62 63 #line default 64 #line hidden 65 WriteLiteralTo(__razor_helper_writer, " <a"); 66 67 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 68 69 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 70 71 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2272), Tuple.Create("\"", 2284) 72 73 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 74 , Tuple.Create(Tuple.Create("", 2279), Tuple.Create<System.Object, System.Int32>(link 75 76 #line default 77 #line hidden 78 , 2279), false) 79 ); 80 81 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2285), Tuple.Create("\"", 2300) 82 83 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 84 , Tuple.Create(Tuple.Create("", 2293), Tuple.Create<System.Object, System.Int32>(anchor 85 86 #line default 87 #line hidden 88 , 2293), false) 89 ); 90 91 WriteLiteralTo(__razor_helper_writer, ">"); 92 93 94 #line 27 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 95 WriteTo(__razor_helper_writer, text); 96 97 98 #line default 99 #line hidden 100 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 101 102 103 #line 28 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 104 105 106 107 #line default 108 #line hidden 109 }); 110 111 #line 29 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 112 } 113 #line default 114 #line hidden 115 116 117 #line 32 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 118 119 public static string GetImage(string source, int widthNum = 600, int heightNum = 200, string format = "jpg", int num_compression = 100, int num_crop = 5){ 120 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 121 string alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "", 122 width = widthNum != 0 ? "&amp;Width=" + widthNum.ToString() : "", 123 height = heightNum != 0 ? "&amp;Height=" + heightNum.ToString(): ""; 124 format = format != "jpg" ? "&amp;Format=" + format : ""; 125 126 string output = "/Admin/Public/GetImage.ashx?Image=" + source + width + height + "&amp;altFmImage_path=" + alternativeImage + format + "&amp;Compression=" + num_compression + "&amp;Crop=" + num_crop; 127 return output.ToString(); 128 } 129 130 #line default 131 #line hidden 132 133 134 public RazorEngine_caeb752c8cd6461d89f12131cf07dada() { 135 } 136 137 public override void Execute() { 138 WriteLiteral("\r\n"); 139 140 141 #line 45 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 142 143 var culture1 = System.Globalization.CultureInfo.GetCultureInfo("ro-RO"); 144 var culture2 = System.Globalization.CultureInfo.InvariantCulture; 145 146 bool useCulture1 = string.Equals(Thread.CurrentThread.CurrentCulture.Name, "ro-RO", StringComparison.OrdinalIgnoreCase); 147 148 //Thread.CurrentThread.CurrentCulture = culture2; 149 150 Func<string, bool> isInvariant = (v) => 151 { 152 if (string.IsNullOrEmpty(v)) 153 { 154 return false; 155 } 156 157 if (v.Contains(".") && v.Contains(",")) 158 { 159 return v.IndexOf(',') < v.IndexOf('.') ? true : false; 160 } 161 else if (v.Contains(",")) 162 { 163 return false; 164 } 165 else 166 { 167 return true; 168 } 169 }; 170 171 172 #line default 173 #line hidden 174 WriteLiteral("\r\n\r\n\r\n"); 175 176 177 #line 76 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 178 179 180 bool showButton = GetBoolean("Item.ShowReadMoreButton"); 181 string title = GetBoolean("Item.ShowTitle") ? GetString("Item.Title") : ""; 182 string titleHeading = GetString("Item.HeadingType") != "" ? GetString("Item.HeadingType") : "h2"; 183 string titleOrder = GetString("Item.TitleOrder"); 184 string image = GetString("Item.Image"); 185 string imageTitle = GetString("Item.ImageTitle"); 186 string text = GetString("Item.Text"); 187 string imageAlignment = GetString("Item.Order"); 188 string backgroundColor = GetString("Item.Background"); 189 string titleAlignment = imageAlignment != "image-top" || image == "" ? "left" : "center" ; 190 string fontFamily = "font-family: 'Open Sans', Verdana, sans-serif; color:#717375; font-weight: 400;"; 191 string fontSize12 = "font-size: 12px"; 192 string fontSize16 = "font-size: 16px"; 193 string padding0 = "padding: 0"; 194 int listColumns = Dynamicweb.Input.FormatInteger(GetString("Item.NumberOfColumns")); 195 string columnWidth = listColumns == 1 ? "100%" : 96 / listColumns + "%" ; 196 int width = GetInteger("Item.Width"); 197 string col = width == 50 ? "324" : "300"; 198 bool breakBol = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 100; 199 200 201 List<LoopItem> items = GetLoop("Item.Items"); 202 203 if (GetInteger("ParagraphContainerSort") == 1) 204 { 205 System.Web.HttpContext.Current.Items["currentColumns"] = 0; 206 } 207 System.Web.HttpContext.Current.Items["currentColumns"] = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) + width; 208 if(Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) > 100) { 209 System.Web.HttpContext.Current.Items["currentColumns"] = width; 210 } 211 Dictionary<string, string> dict_buttonBlue = new Dictionary<string, string> 212 { 213 {"background", "none"}, 214 {"color", "#fcae16"}, 215 {"font-size", "12px"}, 216 {"font-style", "normal"}, 217 {"text-align", "left"}, 218 {"padding", "0"} 219 }; 220 //string tableStart = (breakBol || Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 0 || GetInteger("ParagraphContainerSort") == 1 ) ? "<tr align='center' border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='"+backgroundColor+"' style='"+fontFamily+"'><td align='center'><table class='responsive-table clearLeft' border='0' cellspacing='0' cellpadding='0' width='500'><tr>" : ""; 221 //string tableEnd = (Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]) == 50) ? "</tr><tr><td height='30'></td></tr></table></td></tr>" : ""; 222 System.Web.HttpContext.Current.Items["oldColumns"] = System.Web.HttpContext.Current.Items["currentColumns"]; 223 string endHeading = "</"+titleHeading+">"; 224 225 226 #line default 227 #line hidden 228 WriteLiteral("\r\n\r\n<table"); 229 230 WriteLiteral(" class=\'responsive-table clearLeft\'"); 231 232 WriteLiteral(" border=\'0\'"); 233 234 WriteLiteral(" cellspacing=\'0\'"); 235 236 WriteLiteral(" cellpadding=\'0\'"); 237 238 WriteLiteral(" width=\'300\'"); 239 240 WriteLiteral(" style=\"float: left;\""); 241 242 WriteLiteral("> \r\n<tr>\r\n <td"); 243 244 WriteLiteral(" width=\"10\""); 245 246 WriteLiteral(" height=\"10\""); 247 248 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 249 250 WriteLiteral(">&nbsp;</td>\r\n</tr>\r\n<tr>\r\n <td"); 251 252 WriteLiteral(" border=\"0\""); 253 254 WriteLiteral(" cellspacing=\"0\""); 255 256 WriteLiteral(" cellpadding=\"0\""); 257 258 WriteAttribute("width", Tuple.Create(" width=\"", 7063), Tuple.Create("\"", 7075) 259 260 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 261 , Tuple.Create(Tuple.Create("", 7071), Tuple.Create<System.Object, System.Int32>(col 262 263 #line default 264 #line hidden 265 , 7071), false) 266 ); 267 268 WriteAttribute("style", Tuple.Create(" style=\"", 7076), Tuple.Create("\"", 7096) 269 270 #line 129 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 271 , Tuple.Create(Tuple.Create("", 7084), Tuple.Create<System.Object, System.Int32>(fontFamily 272 273 #line default 274 #line hidden 275 , 7084), false) 276 , Tuple.Create(Tuple.Create("", 7095), Tuple.Create(";", 7095), true) 277 ); 278 279 WriteLiteral(" class=\"responsive-table\""); 280 281 WriteLiteral(">\r\n \t<table"); 282 283 WriteLiteral(" border=\"0\""); 284 285 WriteLiteral(" cellspacing=\"0\""); 286 287 WriteLiteral(" cellpadding=\"0\""); 288 289 WriteAttribute("width", Tuple.Create(" width=\"", 7179), Tuple.Create("\"", 7191) 290 291 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 292 , Tuple.Create(Tuple.Create("", 7187), Tuple.Create<System.Object, System.Int32>(col 293 294 #line default 295 #line hidden 296 , 7187), false) 297 ); 298 299 WriteAttribute("style", Tuple.Create(" style=\"", 7192), Tuple.Create("\"", 7212) 300 301 #line 130 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 302 , Tuple.Create(Tuple.Create("", 7200), Tuple.Create<System.Object, System.Int32>(fontFamily 303 304 #line default 305 #line hidden 306 , 7200), false) 307 , Tuple.Create(Tuple.Create("", 7211), Tuple.Create(";", 7211), true) 308 ); 309 310 WriteLiteral(" class=\"responsive-table\""); 311 312 WriteLiteral(">\r\n \t\t "); 313 314 WriteLiteral("\r\n"); 315 316 317 #line 134 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 318 319 320 #line default 321 #line hidden 322 323 #line 134 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 324 if(title != "" && (titleOrder == "title-first" || titleOrder == "" )){ 325 326 327 #line default 328 #line hidden 329 WriteLiteral(" <tr>\r\n <td"); 330 331 WriteLiteral(" class=\"cell-padding\""); 332 333 WriteAttribute("align", Tuple.Create(" align=\"", 7510), Tuple.Create("\"", 7533) 334 335 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 336 , Tuple.Create(Tuple.Create("", 7518), Tuple.Create<System.Object, System.Int32>(titleAlignment 337 338 #line default 339 #line hidden 340 , 7518), false) 341 ); 342 343 WriteLiteral(" valign=\"top\""); 344 345 WriteAttribute("style", Tuple.Create(" style=\"", 7547), Tuple.Create("\"", 7607) 346 347 #line 136 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 348 , Tuple.Create(Tuple.Create("", 7555), Tuple.Create<System.Object, System.Int32>(fontFamily 349 350 #line default 351 #line hidden 352 , 7555), false) 353 , Tuple.Create(Tuple.Create("", 7566), Tuple.Create(";", 7566), true) 354 , Tuple.Create(Tuple.Create(" ", 7567), Tuple.Create("background:", 7568), true) 355 , Tuple.Create(Tuple.Create(" ", 7579), Tuple.Create("#203742;", 7580), true) 356 , Tuple.Create(Tuple.Create(" ", 7588), Tuple.Create("padding:", 7589), true) 357 , Tuple.Create(Tuple.Create(" ", 7597), Tuple.Create("5px", 7598), true) 358 , Tuple.Create(Tuple.Create(" ", 7601), Tuple.Create("10px;", 7602), true) 359 ); 360 361 WriteLiteral(">\r\n <"); 362 363 364 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 365 Write(titleHeading); 366 367 368 #line default 369 #line hidden 370 WriteLiteral(" style=\"font-size: 16px; padding: 0; margin: 0; "); 371 372 373 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 374 Write(fontFamily); 375 376 377 #line default 378 #line hidden 379 WriteLiteral("; color: #ffffff\" class=\"outlook\">"); 380 381 382 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 383 Write(title); 384 385 386 #line default 387 #line hidden 388 WriteLiteral(" "); 389 390 391 #line 137 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 392 Write(endHeading); 393 394 395 #line default 396 #line hidden 397 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 398 399 WriteLiteral(" <tr>\r\n <td"); 400 401 WriteLiteral(" width=\"10\""); 402 403 WriteLiteral(" height=\"10\""); 404 405 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 406 407 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 408 409 410 #line 143 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 411 } 412 413 414 #line default 415 #line hidden 416 WriteLiteral("\r\n"); 417 418 419 #line 145 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 420 421 422 #line default 423 #line hidden 424 425 #line 145 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 426 if(text != "") { 427 428 429 #line default 430 #line hidden 431 WriteLiteral(" <tr>\r\n <td"); 432 433 WriteLiteral(" class=\"cell-padding\""); 434 435 WriteLiteral(" align=\"left\""); 436 437 WriteLiteral(" valign=\"top\""); 438 439 WriteAttribute("style", Tuple.Create(" style=\"", 8070), Tuple.Create("\"", 8126) 440 , Tuple.Create(Tuple.Create(" ", 8078), Tuple.Create("line-height:", 8079), true) 441 , Tuple.Create(Tuple.Create(" ", 8091), Tuple.Create("18px;", 8092), true) 442 , Tuple.Create(Tuple.Create(" ", 8097), Tuple.Create("font-size:", 8098), true) 443 , Tuple.Create(Tuple.Create(" ", 8108), Tuple.Create("14px;", 8109), true) 444 445 #line 147 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 446 , Tuple.Create(Tuple.Create(" ", 8114), Tuple.Create<System.Object, System.Int32>(fontFamily 447 448 #line default 449 #line hidden 450 , 8115), false) 451 ); 452 453 WriteLiteral(" class=\"outlook\""); 454 455 WriteLiteral(">\r\n"); 456 457 WriteLiteral(" "); 458 459 460 #line 148 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 461 Write(text); 462 463 464 #line default 465 #line hidden 466 WriteLiteral("\r\n </td>\r\n </tr>\r\n"); 467 468 WriteLiteral(" <tr>\r\n <td"); 469 470 WriteLiteral(" width=\"10\""); 471 472 WriteLiteral(" height=\"20\""); 473 474 WriteLiteral(" style=\"font-size: 0; line-height: 1;\""); 475 476 WriteLiteral(">&nbsp;</td>\r\n </tr>\r\n"); 477 478 479 #line 154 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 480 } 481 482 483 #line default 484 #line hidden 485 WriteLiteral(" \t\t"); 486 487 488 #line 155 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 489 if(items.Any()){ 490 491 492 #line default 493 #line hidden 494 495 #line 158 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 496 497 498 499 #line default 500 #line hidden 501 WriteLiteral(" \t\t<tr>\r\n <td"); 502 503 WriteLiteral(" class=\"cell-padding\""); 504 505 WriteLiteral(" align=\"left\""); 506 507 WriteLiteral(" valign=\"top\""); 508 509 WriteLiteral(" style=\"padding: 0 15px;\""); 510 511 WriteLiteral(">\r\n <table"); 512 513 WriteLiteral(" class=\'responsive-table clearLeft\'"); 514 515 WriteLiteral(" border=\'0\'"); 516 517 WriteLiteral(" cellspacing=\'0\'"); 518 519 WriteLiteral(" cellpadding=\'0\'"); 520 521 WriteLiteral(" width=\'100%\'"); 522 523 WriteLiteral("> \r\n <tr>\r\n"); 524 525 526 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 527 528 529 #line default 530 #line hidden 531 532 #line 163 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 533 int count = 1; 534 int totalItems = items.Count(); 535 foreach (LoopItem item in items){ 536 string productTitle = ""; 537 string productImage = ""; 538 string productPrice = ""; 539 string productLink = ""; 540 double priceProductDB = 0; 541 double priceProductDiscount = 0; 542 543 var product = item.GetLoop("Item.Items.Product").FirstOrDefault(); 544 if (product != null) { 545 productTitle = product.GetString("Ecom:Product.Name"); 546 productImage = product.GetString("Ecom:Product.ImageLarge.Clean"); 547 //productPrice = product.GetString("Ecom:Product.Price"); 548 productLink = product.GetString("Ecom:Product.LinkGroup.Clean"); 549 550 double cultureDBPrice = double.Parse(product.GetString("Ecom:Product.DBPrice"), isInvariant(product.GetString("Ecom:Product.DBPrice")) ? culture2 : culture1); 551 double culturePriceWithVAT = double.Parse(product.GetString("Ecom:Product.Price.PriceWithVAT"), isInvariant(product.GetString("Ecom:Product.Price.PriceWithVAT")) ? culture2 : culture1); 552 double cultureVATPercent = double.Parse(product.GetString("Ecom:Product.Price.VATPercent"), culture2); 553 554 priceProductDB = Math.Round(cultureDBPrice * (1+cultureVATPercent/100.0) ,2); 555 priceProductDiscount = Math.Round(culturePriceWithVAT,2); 556 } 557 string itemImage = item.GetString("Item.Items.Image"); 558 string itemTitle = item.GetString("Item.Items.Title"); 559 bool showPrice= item.GetBoolean("Item.Items.Show_Price"); 560 string itemLink = item.GetString("Item.Items.Link"); 561 string itemLinkText = item.GetString("Item.Items.LinkText"); 562 563 string RenderTitle = !string.IsNullOrEmpty(itemTitle) ? itemTitle : productTitle; 564 string RenderImage = !string.IsNullOrEmpty(itemImage) ? itemImage : productImage; 565 string RenderLink = !string.IsNullOrEmpty(productLink) ? productLink : itemLink; 566 //RenderLink = "http://www.brandfusion.ro/" + RenderLink; 567 //RenderImage = "http://www.brandfusion.ro" + RenderImage; 568 569 string imageAnchorStart = RenderLink != "" ? "<a target=\"_blank\" href=\"" + RenderLink + "\">" : ""; 570 string imageAnchorEnd = RenderLink != "" ? "</a>" : ""; 571 if(count != 1 && listColumns != 1) { 572 573 #line default 574 #line hidden 575 WriteLiteral(" <td"); 576 577 WriteLiteral(" width=\'2%\'"); 578 579 WriteLiteral(">&nbsp;</td> "); 580 581 582 #line 201 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 583 } 584 585 586 #line default 587 #line hidden 588 WriteLiteral(" <td"); 589 590 WriteAttribute("width", Tuple.Create(" width=\'", 11909), Tuple.Create("\'", 11929) 591 592 #line 202 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 593 , Tuple.Create(Tuple.Create("", 11917), Tuple.Create<System.Object, System.Int32>(columnWidth 594 595 #line default 596 #line hidden 597 , 11917), false) 598 ); 599 600 WriteLiteral(" valign=\"top\""); 601 602 WriteLiteral(">\r\n <table"); 603 604 WriteLiteral(" class=\'responsive-table clearLeft\'"); 605 606 WriteLiteral(" border=\'0\'"); 607 608 WriteLiteral(" cellspacing=\'0\'"); 609 610 WriteLiteral(" cellpadding=\'0\'"); 611 612 WriteLiteral(" width=\'100%\'"); 613 614 WriteLiteral("> \r\n \r\n"); 615 616 617 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 618 619 620 #line default 621 #line hidden 622 623 #line 205 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 624 if(!string.IsNullOrEmpty(itemImage)) { 625 626 627 #line default 628 #line hidden 629 WriteLiteral(" <tr>\r\n <td"); 630 631 WriteLiteral(" align=\"left\""); 632 633 WriteLiteral(" valign=\"top\""); 634 635 WriteLiteral(" style=\"padding-bottom: 5px;\""); 636 637 WriteLiteral(">\r\n\r\n"); 638 639 640 #line 209 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 641 642 643 #line default 644 #line hidden 645 646 #line 209 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 647 if(!string.IsNullOrEmpty(RenderImage)) { 648 649 650 #line default 651 #line hidden 652 WriteLiteral(" "); 653 654 655 #line 210 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 656 Write(imageAnchorStart); 657 658 659 #line default 660 #line hidden 661 WriteLiteral("\r\n"); 662 663 WriteLiteral(" <img"); 664 665 WriteLiteral(" class=\"img-max\""); 666 667 WriteAttribute("src", Tuple.Create(" src=\"", 12502), Tuple.Create("\"", 12538) 668 669 #line 211 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 670 , Tuple.Create(Tuple.Create("", 12508), Tuple.Create<System.Object, System.Int32>(GetImage(RenderImage, 330, 0) 671 672 #line default 673 #line hidden 674 , 12508), false) 675 ); 676 677 WriteLiteral(" style=\"width: 130px; border: 1px solid #ddd;\""); 678 679 WriteLiteral(" /> \r\n"); 680 681 WriteLiteral(" "); 682 683 684 #line 212 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml" 685 Write(imageAnchorEnd); 686 687 688 #line default 689 #line hidden 690 WriteLiteral(" \r\n"); 691 692 693 #line 213 "Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\EmailMarketing\Paragraph\EmailMarketingProductList_new.cshtml"