Error compiling template "Designs/Dwsimple/Paragraph/Paragraph.cshtml"
Line 28: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 35: 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 17 public class RazorEngine_de704448db414609b91f9a9d586e7588 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 18 19 #line hidden 20 21 #line 9 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 22 23 private int columnsWritten { get; set; } 24 private int columns { get; set; } 25 26 public void init() 27 { 28 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 29 columns = GetInteger("Item.Width"); 30 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + GetInteger("Item.Width"); 31 } 32 33 public void Fluid() 34 { 35 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 36 columns = 12; 37 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + 12; 38 } 39 40 public string ColumnClass() 41 { 42 if (GetString("Item.WidthMobile") == "hide"){ 43 return "col-md-" + GetString("Item.Width") + " hidden-xs"; 44 } else { 45 return "col-md-" + GetString("Item.Width") + " col-xs-" + GetString("Item.WidthMobile"); 46 } 47 } 48 49 public string NewRow() 50 { 51 if (columns + columnsWritten > 12) 52 { 53 System.Web.HttpContext.Current.Items["currentColumns"] = columns; 54 return "</div><div class=\"row\">"; 55 } 56 else 57 { 58 return string.Empty; 59 } 60 61 } 62 63 #line default 64 #line hidden 65 66 67 #line 131 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 68 public RazorEngine.Templating.TemplateWriter RenderHeading() 69 { 70 #line default 71 #line hidden 72 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 73 74 #line 132 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 75 76 if (GetBoolean("Item.ShowTitle") != false) 77 { 78 if (!string.IsNullOrEmpty(GetString("Item.Title"))) 79 { 80 81 82 #line default 83 #line hidden 84 WriteLiteralTo(__razor_helper_writer, " <h1"); 85 86 WriteLiteralTo(__razor_helper_writer, " class=\"dw-section-title\""); 87 88 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>\r\n"); 89 90 WriteLiteralTo(__razor_helper_writer, " "); 91 92 93 #line 139 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 94 WriteTo(__razor_helper_writer, GetString("Item.Title")); 95 96 97 #line default 98 #line hidden 99 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n </h1>\r\n"); 100 101 102 #line 142 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 103 } 104 } 105 106 107 #line default 108 #line hidden 109 }); 110 111 #line 144 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 112 } 113 #line default 114 #line hidden 115 116 117 #line 146 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 118 public RazorEngine.Templating.TemplateWriter RenderButton() 119 { 120 #line default 121 #line hidden 122 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 123 124 #line 147 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 125 126 var Url = GetString("Item.Link"); 127 128 if (!string.IsNullOrEmpty(Url) && !string.IsNullOrEmpty(GetString("Item.LinkText"))) 129 { 130 if (Url.Contains("http")) 131 { 132 133 134 #line default 135 #line hidden 136 WriteLiteralTo(__razor_helper_writer, " "); 137 138 WriteLiteralTo(__razor_helper_writer, "\r\n <p"); 139 140 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 141 142 WriteLiteralTo(__razor_helper_writer, " style=\"margin-bottom: 30px !important\""); 143 144 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 145 146 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 3836), Tuple.Create("\"", 3866) 147 148 #line 156 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 149 , Tuple.Create(Tuple.Create("", 3843), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 150 151 #line default 152 #line hidden 153 , 3843), false) 154 ); 155 156 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 157 158 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-dw-primary pull-right\""); 159 160 WriteLiteralTo(__razor_helper_writer, ">"); 161 162 163 #line 156 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 164 WriteTo(__razor_helper_writer, GetString("Item.LinkText")); 165 166 167 #line default 168 #line hidden 169 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </p>\r\n "); 170 171 WriteLiteralTo(__razor_helper_writer, "\r\n"); 172 173 174 #line 159 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 175 } 176 else if (Url.Contains("/")) 177 { 178 179 180 #line default 181 #line hidden 182 WriteLiteralTo(__razor_helper_writer, " "); 183 184 WriteLiteralTo(__razor_helper_writer, "\r\n <p"); 185 186 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 187 188 WriteLiteralTo(__razor_helper_writer, " style=\"margin-bottom: 30px !important\""); 189 190 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 191 192 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 4166), Tuple.Create("\"", 4196) 193 194 #line 164 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 195 , Tuple.Create(Tuple.Create("", 4173), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 196 197 #line default 198 #line hidden 199 , 4173), false) 200 ); 201 202 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-dw-primary pull-right\""); 203 204 WriteLiteralTo(__razor_helper_writer, " download>"); 205 206 207 #line 164 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 208 WriteTo(__razor_helper_writer, GetString("Item.LinkText")); 209 210 211 #line default 212 #line hidden 213 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </p>\r\n "); 214 215 WriteLiteralTo(__razor_helper_writer, "\r\n"); 216 217 218 #line 167 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 219 } 220 else 221 { 222 223 224 #line default 225 #line hidden 226 WriteLiteralTo(__razor_helper_writer, " "); 227 228 WriteLiteralTo(__razor_helper_writer, "\r\n <p"); 229 230 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 231 232 WriteLiteralTo(__razor_helper_writer, " style=\"margin-bottom: 30px !important\""); 233 234 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 235 236 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 4466), Tuple.Create("\"", 4496) 237 238 #line 172 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 239 , Tuple.Create(Tuple.Create("", 4473), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 240 241 #line default 242 #line hidden 243 , 4473), false) 244 ); 245 246 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-dw-primary pull-right\""); 247 248 WriteLiteralTo(__razor_helper_writer, ">"); 249 250 251 #line 172 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 252 WriteTo(__razor_helper_writer, GetString("Item.LinkText")); 253 254 255 #line default 256 #line hidden 257 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </p>\r\n "); 258 259 WriteLiteralTo(__razor_helper_writer, "\r\n"); 260 261 262 #line 175 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 263 } 264 } 265 266 267 #line default 268 #line hidden 269 }); 270 271 #line 177 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 272 } 273 #line default 274 #line hidden 275 276 277 #line 179 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 278 public RazorEngine.Templating.TemplateWriter RenderSubHeading() 279 { 280 #line default 281 #line hidden 282 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 283 284 #line 180 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 285 286 if (!string.IsNullOrEmpty(GetString("Item.Subtitle"))) 287 { 288 289 290 #line default 291 #line hidden 292 WriteLiteralTo(__razor_helper_writer, " <h2>\r\n"); 293 294 WriteLiteralTo(__razor_helper_writer, " "); 295 296 297 #line 184 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 298 WriteTo(__razor_helper_writer, GetString("Item.Subtitle")); 299 300 301 #line default 302 #line hidden 303 WriteLiteralTo(__razor_helper_writer, "\r\n </h2>\r\n"); 304 305 306 #line 186 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 307 } 308 309 310 #line default 311 #line hidden 312 }); 313 314 #line 187 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 315 } 316 #line default 317 #line hidden 318 319 320 #line 189 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 321 public RazorEngine.Templating.TemplateWriter RenderText() 322 { 323 #line default 324 #line hidden 325 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 326 327 #line 190 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 328 329 if (!string.IsNullOrWhiteSpace(GetString("Item.Text"))) 330 { 331 332 333 #line default 334 #line hidden 335 WriteLiteralTo(__razor_helper_writer, " <div"); 336 337 WriteLiteralTo(__razor_helper_writer, " class=\"figure\""); 338 339 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 340 341 WriteLiteralTo(__razor_helper_writer, " "); 342 343 344 #line 194 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 345 WriteTo(__razor_helper_writer, GetString("Item.Text")); 346 347 348 #line default 349 #line hidden 350 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 351 352 353 #line 196 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 354 } 355 356 357 #line default 358 #line hidden 359 }); 360 361 #line 197 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 362 } 363 #line default 364 #line hidden 365 366 367 #line 199 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 368 public RazorEngine.Templating.TemplateWriter RenderModule() 369 { 370 #line default 371 #line hidden 372 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 373 374 #line 200 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 375 376 377 378 #line default 379 #line hidden 380 381 #line 201 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 382 WriteTo(__razor_helper_writer, GetString("ParagraphModule")); 383 384 385 #line default 386 #line hidden 387 388 #line 201 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 389 390 391 392 #line default 393 #line hidden 394 }); 395 396 #line 202 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 397 } 398 #line default 399 #line hidden 400 401 402 #line 204 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 403 public RazorEngine.Templating.TemplateWriter RenderImage() 404 { 405 #line default 406 #line hidden 407 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 408 409 #line 205 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 410 411 if (!string.IsNullOrEmpty(GetString("Item.Image"))) 412 { 413 var image = System.Web.HttpContext.Current.Server.UrlEncode(GetString("Item.Image")); 414 415 416 417 #line default 418 #line hidden 419 WriteLiteralTo(__razor_helper_writer, "\t\t<!-- Choosing the smallest possible width that will work with responsive sizes " + 420 "-->\r\n"); 421 422 423 #line 211 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 424 string optimizedwidth = "1280"; 425 426 switch (GetString("Item.Width")) 427 { 428 case "12": 429 optimizedwidth = "1280"; 430 break; 431 case "9": 432 optimizedwidth = "960"; 433 break; 434 case "6": 435 optimizedwidth = "722"; 436 break; 437 case "3": 438 optimizedwidth = "722"; 439 break; 440 case "8": 441 optimizedwidth = "960"; 442 break; 443 case "4": 444 optimizedwidth = "722"; 445 break; 446 } 447 448 string optimizedheight = ((Convert.ToInt32(optimizedwidth) / 16) * 9).ToString(); 449 450 if (GetString("Item.ImageStyle") == "ball") 451 { 452 optimizedwidth = "500"; 453 optimizedheight = "500"; 454 } 455 456 string altText = GetString("Item.Title"); 457 458 if (string.IsNullOrEmpty(GetString("Item.Link"))) 459 { 460 461 462 463 #line default 464 #line hidden 465 WriteLiteralTo(__razor_helper_writer, " <div"); 466 467 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive dw-std-image\""); 468 469 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 470 471 WriteLiteralTo(__razor_helper_writer, " class=\"content-image img-responsive\""); 472 473 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 6296), Tuple.Create("\"", 6310) 474 475 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 476 , Tuple.Create(Tuple.Create("", 6302), Tuple.Create<System.Object, System.Int32>(altText 477 478 #line default 479 #line hidden 480 , 6302), false) 481 ); 482 483 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 6311), Tuple.Create("\"", 6334) 484 485 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 486 , Tuple.Create(Tuple.Create("", 6319), Tuple.Create<System.Object, System.Int32>(optimizedwidth 487 488 #line default 489 #line hidden 490 , 6319), false) 491 ); 492 493 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 6335), Tuple.Create("\"", 6360) 494 495 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 496 , Tuple.Create(Tuple.Create("", 6344), Tuple.Create<System.Object, System.Int32>(optimizedheight 497 498 #line default 499 #line hidden 500 , 6344), false) 501 ); 502 503 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 6361), Tuple.Create("\"", 6389) 504 505 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 506 , Tuple.Create(Tuple.Create("", 6369), Tuple.Create<System.Object, System.Int32>(GetImageBorderCss() 507 508 #line default 509 #line hidden 510 , 6369), false) 511 ); 512 513 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 6390), Tuple.Create("\"", 6520) 514 , Tuple.Create(Tuple.Create("", 6396), Tuple.Create("/Admin/Public/GetImage.ashx?width=", 6396), true) 515 516 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 517 , Tuple.Create(Tuple.Create("", 6430), Tuple.Create<System.Object, System.Int32>(optimizedwidth 518 519 #line default 520 #line hidden 521 , 6430), false) 522 , Tuple.Create(Tuple.Create("", 6445), Tuple.Create("&amp;height=", 6445), true) 523 524 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 525 , Tuple.Create(Tuple.Create("", 6457), Tuple.Create<System.Object, System.Int32>(optimizedheight 526 527 #line default 528 #line hidden 529 , 6457), false) 530 , Tuple.Create(Tuple.Create("", 6473), Tuple.Create("&amp;crop=7&amp;Compression=75&amp;image=", 6473), true) 531 532 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 533 , Tuple.Create(Tuple.Create("", 6514), Tuple.Create<System.Object, System.Int32>(image 534 535 #line default 536 #line hidden 537 , 6514), false) 538 ); 539 540 WriteLiteralTo(__razor_helper_writer, " />\r\n </div>\r\n"); 541 542 543 #line 251 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 544 } 545 else 546 { 547 548 549 #line default 550 #line hidden 551 WriteLiteralTo(__razor_helper_writer, " <div"); 552 553 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive dw-std-image\""); 554 555 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 556 557 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6643), Tuple.Create("\"", 6673) 558 559 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 560 , Tuple.Create(Tuple.Create("", 6650), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 561 562 #line default 563 #line hidden 564 , 6650), false) 565 ); 566 567 WriteLiteralTo(__razor_helper_writer, " target=\"_parent\""); 568 569 WriteLiteralTo(__razor_helper_writer, "><img"); 570 571 WriteLiteralTo(__razor_helper_writer, " class=\"content-image img-responsive\""); 572 573 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 6733), Tuple.Create("\"", 6747) 574 575 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 576 , Tuple.Create(Tuple.Create("", 6739), Tuple.Create<System.Object, System.Int32>(altText 577 578 #line default 579 #line hidden 580 , 6739), false) 581 ); 582 583 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 6748), Tuple.Create("\"", 6771) 584 585 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 586 , Tuple.Create(Tuple.Create("", 6756), Tuple.Create<System.Object, System.Int32>(optimizedwidth 587 588 #line default 589 #line hidden 590 , 6756), false) 591 ); 592 593 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 6772), Tuple.Create("\"", 6797) 594 595 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 596 , Tuple.Create(Tuple.Create("", 6781), Tuple.Create<System.Object, System.Int32>(optimizedheight 597 598 #line default 599 #line hidden 600 , 6781), false) 601 ); 602 603 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 6798), Tuple.Create("\"", 6826) 604 605 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 606 , Tuple.Create(Tuple.Create("", 6806), Tuple.Create<System.Object, System.Int32>(GetImageBorderCss() 607 608 #line default 609 #line hidden 610 , 6806), false) 611 ); 612 613 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 6827), Tuple.Create("\"", 6929) 614 , Tuple.Create(Tuple.Create("", 6833), Tuple.Create("/Admin/Public/GetImage.ashx?width=", 6833), true) 615 616 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 617 , Tuple.Create(Tuple.Create("", 6867), Tuple.Create<System.Object, System.Int32>(optimizedwidth 618 619 #line default 620 #line hidden 621 , 6867), false) 622 , Tuple.Create(Tuple.Create("", 6882), Tuple.Create("&amp;crop=7&amp;Compression=75&amp;image=", 6882), true) 623 624 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 625 , Tuple.Create(Tuple.Create("", 6923), Tuple.Create<System.Object, System.Int32>(image 626 627 #line default 628 #line hidden 629 , 6923), false) 630 ); 631 632 WriteLiteralTo(__razor_helper_writer, " /></a>\r\n </div>\r\n"); 633 634 635 #line 257 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 636 } 637 } 638 639 640 #line default 641 #line hidden 642 }); 643 644 #line 259 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 645 } 646 #line default 647 #line hidden 648 649 650 #line 261 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 651 652 private string GetImageBorderCss() 653 { 654 if (GetString("Item.ImageStyle") == "cover") 655 { 656 return "padding: 8px"; 657 } 658 else if (GetString("Item.ImageStyle") == "cover-border") 659 { 660 return "padding: 4px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 661 } 662 else if (GetString("Item.ImageStyle") == "frame") 663 { 664 return "padding: 6px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 665 } 666 else if (GetString("Item.ImageStyle") == "rounded") 667 { 668 return "border-radius: 8px !important"; 669 } 670 else if (GetString("Item.ImageStyle") == "ball") 671 { 672 return "border-radius: 1000px !important"; 673 } 674 else if (GetString("Item.ImageStyle") == "shadow") 675 { 676 return "box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2)"; 677 } 678 else 679 { 680 return string.Empty; 681 } 682 } 683 684 #line default 685 #line hidden 686 687 688 public RazorEngine_de704448db414609b91f9a9d586e7588() { 689 } 690 691 public override void Execute() { 692 693 #line 5 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 694 695 init(); 696 697 698 #line default 699 #line hidden 700 WriteLiteral("\r\n\r\n"); 701 702 WriteLiteral("\r\n"); 703 704 705 #line 51 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 706 Write(NewRow()); 707 708 709 #line default 710 #line hidden 711 WriteLiteral("\r\n\r\n<div"); 712 713 WriteAttribute("class", Tuple.Create(" class=\"", 1404), Tuple.Create("\"", 1442) 714 715 #line 53 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 716 , Tuple.Create(Tuple.Create("", 1412), Tuple.Create<System.Object, System.Int32>(ColumnClass() 717 718 #line default 719 #line hidden 720 , 1412), false) 721 , Tuple.Create(Tuple.Create(" ", 1426), Tuple.Create("contain-wrapper", 1427), true) 722 ); 723 724 WriteLiteral(">\r\n\r\n"); 725 726 727 #line 55 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 728 729 730 #line default 731 #line hidden 732 733 #line 55 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 734 if (GetString("Item.Order") == "title-first" || GetString("Item.Order") == "") 735 { 736 737 738 #line default 739 #line hidden 740 741 #line 57 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 742 Write(RenderHeading()); 743 744 745 #line default 746 #line hidden 747 748 #line 57 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 749 750 751 752 #line default 753 #line hidden 754 755 #line 58 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 756 Write(RenderImage()); 757 758 759 #line default 760 #line hidden 761 762 #line 58 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 763 764 765 766 #line default 767 #line hidden 768 769 #line 59 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 770 Write(RenderSubHeading()); 771 772 773 #line default 774 #line hidden 775 776 #line 59 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 777 778 779 780 #line default 781 #line hidden 782 783 #line 60 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 784 Write(RenderText()); 785 786 787 #line default 788 #line hidden 789 790 #line 60 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 791 792 793 794 #line default 795 #line hidden 796 797 #line 61 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 798 Write(RenderModule()); 799 800 801 #line default 802 #line hidden 803 804 #line 61 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 805 806 807 808 #line default 809 #line hidden 810 811 #line 62 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 812 Write(RenderButton()); 813 814 815 #line default 816 #line hidden 817 818 #line 62 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 819 820 } 821 822 823 #line default 824 #line hidden 825 WriteLiteral("\r\n"); 826 827 828 #line 65 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 829 830 831 #line default 832 #line hidden 833 834 #line 65 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 835 if (GetString("Item.Order") == "image-first") 836 { 837 838 839 #line default 840 #line hidden 841 WriteLiteral(" <p>&nbsp;</p>\r\n"); 842 843 844 #line 68 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 845 846 847 #line default 848 #line hidden 849 850 #line 68 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 851 Write(RenderImage()); 852 853 854 #line default 855 #line hidden 856 857 #line 68 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 858 859 860 861 #line default 862 #line hidden 863 864 #line 69 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 865 Write(RenderHeading()); 866 867 868 #line default 869 #line hidden 870 871 #line 69 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 872 873 874 875 #line default 876 #line hidden 877 878 #line 70 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 879 Write(RenderSubHeading()); 880 881 882 #line default 883 #line hidden 884 885 #line 70 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 886 887 888 889 #line default 890 #line hidden 891 892 #line 71 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 893 Write(RenderText()); 894 895 896 #line default 897 #line hidden 898 899 #line 71 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 900 901 902 903 #line default 904 #line hidden 905 906 #line 72 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 907 Write(RenderModule()); 908 909 910 #line default 911 #line hidden 912 913 #line 72 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 914 915 916 917 #line default 918 #line hidden 919 920 #line 73 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 921 Write(RenderButton()); 922 923 924 #line default 925 #line hidden 926 927 #line 73 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 928 929 } 930 931 932 #line default 933 #line hidden 934 WriteLiteral("\r\n"); 935 936 937 #line 76 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 938 939 940 #line default 941 #line hidden 942 943 #line 76 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 944 if (GetString("Item.Order") == "title-sub-first") 945 { 946 947 948 #line default 949 #line hidden 950 951 #line 78 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 952 Write(RenderHeading()); 953 954 955 #line default 956 #line hidden 957 958 #line 78 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 959 960 961 962 #line default 963 #line hidden 964 965 #line 79 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 966 Write(RenderSubHeading()); 967 968 969 #line default 970 #line hidden 971 972 #line 79 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 973 974 975 976 #line default 977 #line hidden 978 979 #line 80 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 980 Write(RenderImage()); 981 982 983 #line default 984 #line hidden 985 986 #line 80 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 987 988 989 990 #line default 991 #line hidden 992 993 #line 81 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 994 Write(RenderText()); 995 996 997 #line default 998 #line hidden 999 1000 #line 81 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1001 1002 1003 1004 #line default 1005 #line hidden 1006 1007 #line 82 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1008 Write(RenderModule()); 1009 1010 1011 #line default 1012 #line hidden 1013 1014 #line 82 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1015 1016 1017 1018 #line default 1019 #line hidden 1020 1021 #line 83 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1022 Write(RenderButton()); 1023 1024 1025 #line default 1026 #line hidden 1027 1028 #line 83 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1029 1030 } 1031 1032 1033 #line default 1034 #line hidden 1035 WriteLiteral("\r\n"); 1036 1037 1038 #line 86 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1039 1040 1041 #line default 1042 #line hidden 1043 1044 #line 86 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1045 if (GetString("Item.Order") == "icon-xs") 1046 { 1047 1048 1049 #line default 1050 #line hidden 1051 WriteLiteral(" <div"); 1052 1053 WriteLiteral(" class=\"col-md-2\""); 1054 1055 WriteLiteral(">\r\n"); 1056 1057 WriteLiteral(" "); 1058 1059 1060 #line 89 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1061 Write(RenderImage()); 1062 1063 1064 #line default 1065 #line hidden 1066 WriteLiteral("\r\n </div>\r\n"); 1067 1068 WriteLiteral(" <div"); 1069 1070 WriteLiteral(" class=\"col-md-10\""); 1071 1072 WriteLiteral(">\r\n"); 1073 1074 WriteLiteral(" "); 1075 1076 1077 #line 92 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1078 Write(RenderHeading()); 1079 1080 1081 #line default 1082 #line hidden 1083 WriteLiteral("\r\n"); 1084 1085 WriteLiteral(" "); 1086 1087 1088 #line 93 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1089 Write(RenderSubHeading()); 1090 1091 1092 #line default 1093 #line hidden 1094 WriteLiteral("\r\n"); 1095 1096 WriteLiteral(" "); 1097 1098 1099 #line 94 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1100 Write(RenderText()); 1101 1102 1103 #line default 1104 #line hidden 1105 WriteLiteral("\r\n"); 1106 1107 WriteLiteral(" "); 1108 1109 1110 #line 95 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1111 Write(RenderModule()); 1112 1113 1114 #line default 1115 #line hidden 1116 WriteLiteral("\r\n"); 1117 1118 WriteLiteral(" "); 1119 1120 1121 #line 96 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1122 Write(RenderButton()); 1123 1124 1125 #line default 1126 #line hidden 1127 WriteLiteral("\r\n </div>\r\n"); 1128 1129 1130 #line 98 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1131 } 1132 1133 1134 #line default 1135 #line hidden 1136 WriteLiteral("\r\n"); 1137 1138 1139 #line 100 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1140 1141 1142 #line default 1143 #line hidden 1144 1145 #line 100 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1146 if (GetString("Item.Order") == "icon-sm") 1147 { 1148 1149 1150 #line default 1151 #line hidden 1152 WriteLiteral(" <div"); 1153 1154 WriteLiteral(" class=\"col-md-3\""); 1155 1156 WriteLiteral(">\r\n"); 1157 1158 WriteLiteral(" "); 1159 1160 1161 #line 103 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1162 Write(RenderImage()); 1163 1164 1165 #line default 1166 #line hidden 1167 WriteLiteral("\r\n </div>\r\n"); 1168 1169 WriteLiteral(" <div"); 1170 1171 WriteLiteral(" class=\"col-md-9\""); 1172 1173 WriteLiteral(">\r\n"); 1174 1175 WriteLiteral(" "); 1176 1177 1178 #line 106 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1179 Write(RenderHeading()); 1180 1181 1182 #line default 1183 #line hidden 1184 WriteLiteral("\r\n"); 1185 1186 WriteLiteral(" "); 1187 1188 1189 #line 107 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1190 Write(RenderSubHeading()); 1191 1192 1193 #line default 1194 #line hidden 1195 WriteLiteral("\r\n"); 1196 1197 WriteLiteral(" "); 1198 1199 1200 #line 108 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1201 Write(RenderText()); 1202 1203 1204 #line default 1205 #line hidden 1206 WriteLiteral("\r\n"); 1207 1208 WriteLiteral(" "); 1209 1210 1211 #line 109 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1212 Write(RenderModule()); 1213 1214 1215 #line default 1216 #line hidden 1217 WriteLiteral("\r\n"); 1218 1219 WriteLiteral(" "); 1220 1221 1222 #line 110 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1223 Write(RenderButton()); 1224 1225 1226 #line default 1227 #line hidden 1228 WriteLiteral("\r\n </div>\r\n"); 1229 1230 1231 #line 112 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1232 } 1233 1234 1235 #line default 1236 #line hidden 1237 WriteLiteral("\r\n"); 1238 1239 1240 #line 114 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1241 1242 1243 #line default 1244 #line hidden 1245 1246 #line 114 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1247 if (GetString("Item.Order") == "icon-md") 1248 { 1249 1250 1251 #line default 1252 #line hidden 1253 WriteLiteral(" <div"); 1254 1255 WriteLiteral(" class=\"col-md-4\""); 1256 1257 WriteLiteral(">\r\n"); 1258 1259 WriteLiteral(" "); 1260 1261 1262 #line 117 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1263 Write(RenderImage()); 1264 1265 1266 #line default 1267 #line hidden 1268 WriteLiteral("\r\n </div>\r\n"); 1269 1270 WriteLiteral(" <div"); 1271 1272 WriteLiteral(" class=\"col-md-8\""); 1273 1274 WriteLiteral(">\r\n"); 1275 1276 WriteLiteral(" "); 1277 1278 1279 #line 120 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1280 Write(RenderHeading()); 1281 1282 1283 #line default 1284 #line hidden 1285 WriteLiteral("\r\n"); 1286 1287 WriteLiteral(" "); 1288 1289 1290 #line 121 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1291 Write(RenderSubHeading()); 1292 1293 1294 #line default 1295 #line hidden 1296 WriteLiteral("\r\n"); 1297 1298 WriteLiteral(" "); 1299 1300 1301 #line 122 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1302 Write(RenderText()); 1303 1304 1305 #line default 1306 #line hidden 1307 WriteLiteral("\r\n"); 1308 1309 WriteLiteral(" "); 1310 1311 1312 #line 123 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1313 Write(RenderModule()); 1314 1315 1316 #line default 1317 #line hidden 1318 WriteLiteral("\r\n"); 1319 1320 WriteLiteral(" "); 1321 1322 1323 #line 124 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1324 Write(RenderButton()); 1325 1326 1327 #line default 1328 #line hidden 1329 WriteLiteral("\r\n </div>\r\n"); 1330 1331 1332 #line 126 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1333 } 1334 1335 1336 #line default 1337 #line hidden 1338 WriteLiteral("\r\n</div>\r\n\r\n\r\n"); 1339 1340 WriteLiteral("\r\n"); 1341 1342 WriteLiteral("\r\n"); 1343 1344 WriteLiteral("\r\n"); 1345 1346 WriteLiteral("\r\n"); 1347 1348 WriteLiteral("\r\n"); 1349 1350 WriteLiteral("\r\n"); 1351 1352 } 1353 } 1354 } 1355

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 3 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 4 5 @{ 6 init(); 7 } 8 9 @functions { 10 private int columnsWritten { get; set; } 11 private int columns { get; set; } 12 13 public void init() 14 { 15 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 16 columns = GetInteger("Item.Width"); 17 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + GetInteger("Item.Width"); 18 } 19 20 public void Fluid() 21 { 22 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 23 columns = 12; 24 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + 12; 25 } 26 27 public string ColumnClass() 28 { 29 if (GetString("Item.WidthMobile") == "hide"){ 30 return "col-md-" + GetString("Item.Width") + " hidden-xs"; 31 } else { 32 return "col-md-" + GetString("Item.Width") + " col-xs-" + GetString("Item.WidthMobile"); 33 } 34 } 35 36 public string NewRow() 37 { 38 if (columns + columnsWritten > 12) 39 { 40 System.Web.HttpContext.Current.Items["currentColumns"] = columns; 41 return "</div><div class=\"row\">"; 42 } 43 else 44 { 45 return string.Empty; 46 } 47 48 } 49 } 50 51 @NewRow() 52 53 <div class="@ColumnClass() contain-wrapper"> 54 55 @if (GetString("Item.Order") == "title-first" || GetString("Item.Order") == "") 56 { 57 @RenderHeading() 58 @RenderImage() 59 @RenderSubHeading() 60 @RenderText() 61 @RenderModule() 62 @RenderButton() 63 } 64 65 @if (GetString("Item.Order") == "image-first") 66 { 67 <p>&nbsp;</p> 68 @RenderImage() 69 @RenderHeading() 70 @RenderSubHeading() 71 @RenderText() 72 @RenderModule() 73 @RenderButton() 74 } 75 76 @if (GetString("Item.Order") == "title-sub-first") 77 { 78 @RenderHeading() 79 @RenderSubHeading() 80 @RenderImage() 81 @RenderText() 82 @RenderModule() 83 @RenderButton() 84 } 85 86 @if (GetString("Item.Order") == "icon-xs") 87 { 88 <div class="col-md-2"> 89 @RenderImage() 90 </div> 91 <div class="col-md-10"> 92 @RenderHeading() 93 @RenderSubHeading() 94 @RenderText() 95 @RenderModule() 96 @RenderButton() 97 </div> 98 } 99 100 @if (GetString("Item.Order") == "icon-sm") 101 { 102 <div class="col-md-3"> 103 @RenderImage() 104 </div> 105 <div class="col-md-9"> 106 @RenderHeading() 107 @RenderSubHeading() 108 @RenderText() 109 @RenderModule() 110 @RenderButton() 111 </div> 112 } 113 114 @if (GetString("Item.Order") == "icon-md") 115 { 116 <div class="col-md-4"> 117 @RenderImage() 118 </div> 119 <div class="col-md-8"> 120 @RenderHeading() 121 @RenderSubHeading() 122 @RenderText() 123 @RenderModule() 124 @RenderButton() 125 </div> 126 } 127 128 </div> 129 130 131 @helper RenderHeading() 132 { 133 if (GetBoolean("Item.ShowTitle") != false) 134 { 135 if (!string.IsNullOrEmpty(GetString("Item.Title"))) 136 { 137 <h1 class="dw-section-title"> 138 <span> 139 @GetString("Item.Title") 140 </span> 141 </h1> 142 } 143 } 144 } 145 146 @helper RenderButton() 147 { 148 var Url = GetString("Item.Link"); 149 150 if (!string.IsNullOrEmpty(Url) && !string.IsNullOrEmpty(GetString("Item.LinkText"))) 151 { 152 if (Url.Contains("http")) 153 { 154 <text> 155 <p class="pull-right" style="margin-bottom: 30px !important"> 156 <a href="@GetString("Item.Link")" target="_blank" class="btn btn-dw-primary pull-right">@GetString("Item.LinkText")</a> 157 </p> 158 </text> 159 } 160 else if (Url.Contains("/")) 161 { 162 <text> 163 <p class="pull-right" style="margin-bottom: 30px !important"> 164 <a href="@GetString("Item.Link")" class="btn btn-dw-primary pull-right" download>@GetString("Item.LinkText")</a> 165 </p> 166 </text> 167 } 168 else 169 { 170 <text> 171 <p class="pull-right" style="margin-bottom: 30px !important"> 172 <a href="@GetString("Item.Link")" class="btn btn-dw-primary pull-right">@GetString("Item.LinkText")</a> 173 </p> 174 </text> 175 } 176 } 177 } 178 179 @helper RenderSubHeading() 180 { 181 if (!string.IsNullOrEmpty(GetString("Item.Subtitle"))) 182 { 183 <h2> 184 @GetString("Item.Subtitle") 185 </h2> 186 } 187 } 188 189 @helper RenderText() 190 { 191 if (!string.IsNullOrWhiteSpace(GetString("Item.Text"))) 192 { 193 <div class="figure"> 194 @GetString("Item.Text") 195 </div> 196 } 197 } 198 199 @helper RenderModule() 200 { 201 @GetString("ParagraphModule") 202 } 203 204 @helper RenderImage() 205 { 206 if (!string.IsNullOrEmpty(GetString("Item.Image"))) 207 { 208 var image = System.Web.HttpContext.Current.Server.UrlEncode(GetString("Item.Image")); 209 210 <!-- Choosing the smallest possible width that will work with responsive sizes --> 211 string optimizedwidth = "1280"; 212 213 switch (GetString("Item.Width")) 214 { 215 case "12": 216 optimizedwidth = "1280"; 217 break; 218 case "9": 219 optimizedwidth = "960"; 220 break; 221 case "6": 222 optimizedwidth = "722"; 223 break; 224 case "3": 225 optimizedwidth = "722"; 226 break; 227 case "8": 228 optimizedwidth = "960"; 229 break; 230 case "4": 231 optimizedwidth = "722"; 232 break; 233 } 234 235 string optimizedheight = ((Convert.ToInt32(optimizedwidth) / 16) * 9).ToString(); 236 237 if (GetString("Item.ImageStyle") == "ball") 238 { 239 optimizedwidth = "500"; 240 optimizedheight = "500"; 241 } 242 243 string altText = GetString("Item.Title"); 244 245 if (string.IsNullOrEmpty(GetString("Item.Link"))) 246 { 247 248 <div class="img-responsive dw-std-image"> 249 <img class="content-image img-responsive" alt="@altText" width="@optimizedwidth" height="@optimizedheight" style="@GetImageBorderCss()" src="/Admin/Public/GetImage.ashx?width=@optimizedwidth&amp;height=@optimizedheight&amp;crop=7&amp;Compression=75&amp;image=@image" /> 250 </div> 251 } 252 else 253 { 254 <div class="img-responsive dw-std-image"> 255 <a href="@GetString("Item.Link")" target="_parent"><img class="content-image img-responsive" alt="@altText" width="@optimizedwidth" height="@optimizedheight" style="@GetImageBorderCss()" src="/Admin/Public/GetImage.ashx?width=@optimizedwidth&amp;crop=7&amp;Compression=75&amp;image=@image" /></a> 256 </div> 257 } 258 } 259 } 260 261 @functions { 262 private string GetImageBorderCss() 263 { 264 if (GetString("Item.ImageStyle") == "cover") 265 { 266 return "padding: 8px"; 267 } 268 else if (GetString("Item.ImageStyle") == "cover-border") 269 { 270 return "padding: 4px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 271 } 272 else if (GetString("Item.ImageStyle") == "frame") 273 { 274 return "padding: 6px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 275 } 276 else if (GetString("Item.ImageStyle") == "rounded") 277 { 278 return "border-radius: 8px !important"; 279 } 280 else if (GetString("Item.ImageStyle") == "ball") 281 { 282 return "border-radius: 1000px !important"; 283 } 284 else if (GetString("Item.ImageStyle") == "shadow") 285 { 286 return "box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2)"; 287 } 288 else 289 { 290 return string.Empty; 291 } 292 } 293 }
Error compiling template "Designs/Dwsimple/Paragraph/Paragraph.cshtml"
Line 28: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 35: 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 17 public class RazorEngine_20924690bbb74b849bef0bca24962233 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 18 19 #line hidden 20 21 #line 9 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 22 23 private int columnsWritten { get; set; } 24 private int columns { get; set; } 25 26 public void init() 27 { 28 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 29 columns = GetInteger("Item.Width"); 30 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + GetInteger("Item.Width"); 31 } 32 33 public void Fluid() 34 { 35 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 36 columns = 12; 37 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + 12; 38 } 39 40 public string ColumnClass() 41 { 42 if (GetString("Item.WidthMobile") == "hide"){ 43 return "col-md-" + GetString("Item.Width") + " hidden-xs"; 44 } else { 45 return "col-md-" + GetString("Item.Width") + " col-xs-" + GetString("Item.WidthMobile"); 46 } 47 } 48 49 public string NewRow() 50 { 51 if (columns + columnsWritten > 12) 52 { 53 System.Web.HttpContext.Current.Items["currentColumns"] = columns; 54 return "</div><div class=\"row\">"; 55 } 56 else 57 { 58 return string.Empty; 59 } 60 61 } 62 63 #line default 64 #line hidden 65 66 67 #line 131 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 68 public RazorEngine.Templating.TemplateWriter RenderHeading() 69 { 70 #line default 71 #line hidden 72 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 73 74 #line 132 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 75 76 if (GetBoolean("Item.ShowTitle") != false) 77 { 78 if (!string.IsNullOrEmpty(GetString("Item.Title"))) 79 { 80 81 82 #line default 83 #line hidden 84 WriteLiteralTo(__razor_helper_writer, " <h1"); 85 86 WriteLiteralTo(__razor_helper_writer, " class=\"dw-section-title\""); 87 88 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>\r\n"); 89 90 WriteLiteralTo(__razor_helper_writer, " "); 91 92 93 #line 139 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 94 WriteTo(__razor_helper_writer, GetString("Item.Title")); 95 96 97 #line default 98 #line hidden 99 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n </h1>\r\n"); 100 101 102 #line 142 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 103 } 104 } 105 106 107 #line default 108 #line hidden 109 }); 110 111 #line 144 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 112 } 113 #line default 114 #line hidden 115 116 117 #line 146 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 118 public RazorEngine.Templating.TemplateWriter RenderButton() 119 { 120 #line default 121 #line hidden 122 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 123 124 #line 147 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 125 126 var Url = GetString("Item.Link"); 127 128 if (!string.IsNullOrEmpty(Url) && !string.IsNullOrEmpty(GetString("Item.LinkText"))) 129 { 130 if (Url.Contains("http")) 131 { 132 133 134 #line default 135 #line hidden 136 WriteLiteralTo(__razor_helper_writer, " "); 137 138 WriteLiteralTo(__razor_helper_writer, "\r\n <p"); 139 140 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 141 142 WriteLiteralTo(__razor_helper_writer, " style=\"margin-bottom: 30px !important\""); 143 144 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 145 146 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 3836), Tuple.Create("\"", 3866) 147 148 #line 156 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 149 , Tuple.Create(Tuple.Create("", 3843), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 150 151 #line default 152 #line hidden 153 , 3843), false) 154 ); 155 156 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 157 158 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-dw-primary pull-right\""); 159 160 WriteLiteralTo(__razor_helper_writer, ">"); 161 162 163 #line 156 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 164 WriteTo(__razor_helper_writer, GetString("Item.LinkText")); 165 166 167 #line default 168 #line hidden 169 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </p>\r\n "); 170 171 WriteLiteralTo(__razor_helper_writer, "\r\n"); 172 173 174 #line 159 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 175 } 176 else if (Url.Contains("/")) 177 { 178 179 180 #line default 181 #line hidden 182 WriteLiteralTo(__razor_helper_writer, " "); 183 184 WriteLiteralTo(__razor_helper_writer, "\r\n <p"); 185 186 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 187 188 WriteLiteralTo(__razor_helper_writer, " style=\"margin-bottom: 30px !important\""); 189 190 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 191 192 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 4166), Tuple.Create("\"", 4196) 193 194 #line 164 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 195 , Tuple.Create(Tuple.Create("", 4173), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 196 197 #line default 198 #line hidden 199 , 4173), false) 200 ); 201 202 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-dw-primary pull-right\""); 203 204 WriteLiteralTo(__razor_helper_writer, " download>"); 205 206 207 #line 164 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 208 WriteTo(__razor_helper_writer, GetString("Item.LinkText")); 209 210 211 #line default 212 #line hidden 213 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </p>\r\n "); 214 215 WriteLiteralTo(__razor_helper_writer, "\r\n"); 216 217 218 #line 167 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 219 } 220 else 221 { 222 223 224 #line default 225 #line hidden 226 WriteLiteralTo(__razor_helper_writer, " "); 227 228 WriteLiteralTo(__razor_helper_writer, "\r\n <p"); 229 230 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 231 232 WriteLiteralTo(__razor_helper_writer, " style=\"margin-bottom: 30px !important\""); 233 234 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 235 236 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 4466), Tuple.Create("\"", 4496) 237 238 #line 172 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 239 , Tuple.Create(Tuple.Create("", 4473), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 240 241 #line default 242 #line hidden 243 , 4473), false) 244 ); 245 246 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-dw-primary pull-right\""); 247 248 WriteLiteralTo(__razor_helper_writer, ">"); 249 250 251 #line 172 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 252 WriteTo(__razor_helper_writer, GetString("Item.LinkText")); 253 254 255 #line default 256 #line hidden 257 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </p>\r\n "); 258 259 WriteLiteralTo(__razor_helper_writer, "\r\n"); 260 261 262 #line 175 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 263 } 264 } 265 266 267 #line default 268 #line hidden 269 }); 270 271 #line 177 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 272 } 273 #line default 274 #line hidden 275 276 277 #line 179 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 278 public RazorEngine.Templating.TemplateWriter RenderSubHeading() 279 { 280 #line default 281 #line hidden 282 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 283 284 #line 180 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 285 286 if (!string.IsNullOrEmpty(GetString("Item.Subtitle"))) 287 { 288 289 290 #line default 291 #line hidden 292 WriteLiteralTo(__razor_helper_writer, " <h2>\r\n"); 293 294 WriteLiteralTo(__razor_helper_writer, " "); 295 296 297 #line 184 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 298 WriteTo(__razor_helper_writer, GetString("Item.Subtitle")); 299 300 301 #line default 302 #line hidden 303 WriteLiteralTo(__razor_helper_writer, "\r\n </h2>\r\n"); 304 305 306 #line 186 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 307 } 308 309 310 #line default 311 #line hidden 312 }); 313 314 #line 187 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 315 } 316 #line default 317 #line hidden 318 319 320 #line 189 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 321 public RazorEngine.Templating.TemplateWriter RenderText() 322 { 323 #line default 324 #line hidden 325 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 326 327 #line 190 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 328 329 if (!string.IsNullOrWhiteSpace(GetString("Item.Text"))) 330 { 331 332 333 #line default 334 #line hidden 335 WriteLiteralTo(__razor_helper_writer, " <div"); 336 337 WriteLiteralTo(__razor_helper_writer, " class=\"figure\""); 338 339 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 340 341 WriteLiteralTo(__razor_helper_writer, " "); 342 343 344 #line 194 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 345 WriteTo(__razor_helper_writer, GetString("Item.Text")); 346 347 348 #line default 349 #line hidden 350 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 351 352 353 #line 196 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 354 } 355 356 357 #line default 358 #line hidden 359 }); 360 361 #line 197 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 362 } 363 #line default 364 #line hidden 365 366 367 #line 199 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 368 public RazorEngine.Templating.TemplateWriter RenderModule() 369 { 370 #line default 371 #line hidden 372 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 373 374 #line 200 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 375 376 377 378 #line default 379 #line hidden 380 381 #line 201 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 382 WriteTo(__razor_helper_writer, GetString("ParagraphModule")); 383 384 385 #line default 386 #line hidden 387 388 #line 201 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 389 390 391 392 #line default 393 #line hidden 394 }); 395 396 #line 202 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 397 } 398 #line default 399 #line hidden 400 401 402 #line 204 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 403 public RazorEngine.Templating.TemplateWriter RenderImage() 404 { 405 #line default 406 #line hidden 407 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 408 409 #line 205 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 410 411 if (!string.IsNullOrEmpty(GetString("Item.Image"))) 412 { 413 var image = System.Web.HttpContext.Current.Server.UrlEncode(GetString("Item.Image")); 414 415 416 417 #line default 418 #line hidden 419 WriteLiteralTo(__razor_helper_writer, "\t\t<!-- Choosing the smallest possible width that will work with responsive sizes " + 420 "-->\r\n"); 421 422 423 #line 211 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 424 string optimizedwidth = "1280"; 425 426 switch (GetString("Item.Width")) 427 { 428 case "12": 429 optimizedwidth = "1280"; 430 break; 431 case "9": 432 optimizedwidth = "960"; 433 break; 434 case "6": 435 optimizedwidth = "722"; 436 break; 437 case "3": 438 optimizedwidth = "722"; 439 break; 440 case "8": 441 optimizedwidth = "960"; 442 break; 443 case "4": 444 optimizedwidth = "722"; 445 break; 446 } 447 448 string optimizedheight = ((Convert.ToInt32(optimizedwidth) / 16) * 9).ToString(); 449 450 if (GetString("Item.ImageStyle") == "ball") 451 { 452 optimizedwidth = "500"; 453 optimizedheight = "500"; 454 } 455 456 string altText = GetString("Item.Title"); 457 458 if (string.IsNullOrEmpty(GetString("Item.Link"))) 459 { 460 461 462 463 #line default 464 #line hidden 465 WriteLiteralTo(__razor_helper_writer, " <div"); 466 467 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive dw-std-image\""); 468 469 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 470 471 WriteLiteralTo(__razor_helper_writer, " class=\"content-image img-responsive\""); 472 473 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 6296), Tuple.Create("\"", 6310) 474 475 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 476 , Tuple.Create(Tuple.Create("", 6302), Tuple.Create<System.Object, System.Int32>(altText 477 478 #line default 479 #line hidden 480 , 6302), false) 481 ); 482 483 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 6311), Tuple.Create("\"", 6334) 484 485 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 486 , Tuple.Create(Tuple.Create("", 6319), Tuple.Create<System.Object, System.Int32>(optimizedwidth 487 488 #line default 489 #line hidden 490 , 6319), false) 491 ); 492 493 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 6335), Tuple.Create("\"", 6360) 494 495 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 496 , Tuple.Create(Tuple.Create("", 6344), Tuple.Create<System.Object, System.Int32>(optimizedheight 497 498 #line default 499 #line hidden 500 , 6344), false) 501 ); 502 503 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 6361), Tuple.Create("\"", 6389) 504 505 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 506 , Tuple.Create(Tuple.Create("", 6369), Tuple.Create<System.Object, System.Int32>(GetImageBorderCss() 507 508 #line default 509 #line hidden 510 , 6369), false) 511 ); 512 513 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 6390), Tuple.Create("\"", 6520) 514 , Tuple.Create(Tuple.Create("", 6396), Tuple.Create("/Admin/Public/GetImage.ashx?width=", 6396), true) 515 516 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 517 , Tuple.Create(Tuple.Create("", 6430), Tuple.Create<System.Object, System.Int32>(optimizedwidth 518 519 #line default 520 #line hidden 521 , 6430), false) 522 , Tuple.Create(Tuple.Create("", 6445), Tuple.Create("&amp;height=", 6445), true) 523 524 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 525 , Tuple.Create(Tuple.Create("", 6457), Tuple.Create<System.Object, System.Int32>(optimizedheight 526 527 #line default 528 #line hidden 529 , 6457), false) 530 , Tuple.Create(Tuple.Create("", 6473), Tuple.Create("&amp;crop=7&amp;Compression=75&amp;image=", 6473), true) 531 532 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 533 , Tuple.Create(Tuple.Create("", 6514), Tuple.Create<System.Object, System.Int32>(image 534 535 #line default 536 #line hidden 537 , 6514), false) 538 ); 539 540 WriteLiteralTo(__razor_helper_writer, " />\r\n </div>\r\n"); 541 542 543 #line 251 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 544 } 545 else 546 { 547 548 549 #line default 550 #line hidden 551 WriteLiteralTo(__razor_helper_writer, " <div"); 552 553 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive dw-std-image\""); 554 555 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 556 557 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6643), Tuple.Create("\"", 6673) 558 559 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 560 , Tuple.Create(Tuple.Create("", 6650), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 561 562 #line default 563 #line hidden 564 , 6650), false) 565 ); 566 567 WriteLiteralTo(__razor_helper_writer, " target=\"_parent\""); 568 569 WriteLiteralTo(__razor_helper_writer, "><img"); 570 571 WriteLiteralTo(__razor_helper_writer, " class=\"content-image img-responsive\""); 572 573 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 6733), Tuple.Create("\"", 6747) 574 575 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 576 , Tuple.Create(Tuple.Create("", 6739), Tuple.Create<System.Object, System.Int32>(altText 577 578 #line default 579 #line hidden 580 , 6739), false) 581 ); 582 583 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 6748), Tuple.Create("\"", 6771) 584 585 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 586 , Tuple.Create(Tuple.Create("", 6756), Tuple.Create<System.Object, System.Int32>(optimizedwidth 587 588 #line default 589 #line hidden 590 , 6756), false) 591 ); 592 593 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 6772), Tuple.Create("\"", 6797) 594 595 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 596 , Tuple.Create(Tuple.Create("", 6781), Tuple.Create<System.Object, System.Int32>(optimizedheight 597 598 #line default 599 #line hidden 600 , 6781), false) 601 ); 602 603 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 6798), Tuple.Create("\"", 6826) 604 605 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 606 , Tuple.Create(Tuple.Create("", 6806), Tuple.Create<System.Object, System.Int32>(GetImageBorderCss() 607 608 #line default 609 #line hidden 610 , 6806), false) 611 ); 612 613 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 6827), Tuple.Create("\"", 6929) 614 , Tuple.Create(Tuple.Create("", 6833), Tuple.Create("/Admin/Public/GetImage.ashx?width=", 6833), true) 615 616 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 617 , Tuple.Create(Tuple.Create("", 6867), Tuple.Create<System.Object, System.Int32>(optimizedwidth 618 619 #line default 620 #line hidden 621 , 6867), false) 622 , Tuple.Create(Tuple.Create("", 6882), Tuple.Create("&amp;crop=7&amp;Compression=75&amp;image=", 6882), true) 623 624 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 625 , Tuple.Create(Tuple.Create("", 6923), Tuple.Create<System.Object, System.Int32>(image 626 627 #line default 628 #line hidden 629 , 6923), false) 630 ); 631 632 WriteLiteralTo(__razor_helper_writer, " /></a>\r\n </div>\r\n"); 633 634 635 #line 257 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 636 } 637 } 638 639 640 #line default 641 #line hidden 642 }); 643 644 #line 259 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 645 } 646 #line default 647 #line hidden 648 649 650 #line 261 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 651 652 private string GetImageBorderCss() 653 { 654 if (GetString("Item.ImageStyle") == "cover") 655 { 656 return "padding: 8px"; 657 } 658 else if (GetString("Item.ImageStyle") == "cover-border") 659 { 660 return "padding: 4px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 661 } 662 else if (GetString("Item.ImageStyle") == "frame") 663 { 664 return "padding: 6px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 665 } 666 else if (GetString("Item.ImageStyle") == "rounded") 667 { 668 return "border-radius: 8px !important"; 669 } 670 else if (GetString("Item.ImageStyle") == "ball") 671 { 672 return "border-radius: 1000px !important"; 673 } 674 else if (GetString("Item.ImageStyle") == "shadow") 675 { 676 return "box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2)"; 677 } 678 else 679 { 680 return string.Empty; 681 } 682 } 683 684 #line default 685 #line hidden 686 687 688 public RazorEngine_20924690bbb74b849bef0bca24962233() { 689 } 690 691 public override void Execute() { 692 693 #line 5 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 694 695 init(); 696 697 698 #line default 699 #line hidden 700 WriteLiteral("\r\n\r\n"); 701 702 WriteLiteral("\r\n"); 703 704 705 #line 51 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 706 Write(NewRow()); 707 708 709 #line default 710 #line hidden 711 WriteLiteral("\r\n\r\n<div"); 712 713 WriteAttribute("class", Tuple.Create(" class=\"", 1404), Tuple.Create("\"", 1442) 714 715 #line 53 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 716 , Tuple.Create(Tuple.Create("", 1412), Tuple.Create<System.Object, System.Int32>(ColumnClass() 717 718 #line default 719 #line hidden 720 , 1412), false) 721 , Tuple.Create(Tuple.Create(" ", 1426), Tuple.Create("contain-wrapper", 1427), true) 722 ); 723 724 WriteLiteral(">\r\n\r\n"); 725 726 727 #line 55 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 728 729 730 #line default 731 #line hidden 732 733 #line 55 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 734 if (GetString("Item.Order") == "title-first" || GetString("Item.Order") == "") 735 { 736 737 738 #line default 739 #line hidden 740 741 #line 57 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 742 Write(RenderHeading()); 743 744 745 #line default 746 #line hidden 747 748 #line 57 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 749 750 751 752 #line default 753 #line hidden 754 755 #line 58 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 756 Write(RenderImage()); 757 758 759 #line default 760 #line hidden 761 762 #line 58 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 763 764 765 766 #line default 767 #line hidden 768 769 #line 59 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 770 Write(RenderSubHeading()); 771 772 773 #line default 774 #line hidden 775 776 #line 59 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 777 778 779 780 #line default 781 #line hidden 782 783 #line 60 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 784 Write(RenderText()); 785 786 787 #line default 788 #line hidden 789 790 #line 60 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 791 792 793 794 #line default 795 #line hidden 796 797 #line 61 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 798 Write(RenderModule()); 799 800 801 #line default 802 #line hidden 803 804 #line 61 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 805 806 807 808 #line default 809 #line hidden 810 811 #line 62 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 812 Write(RenderButton()); 813 814 815 #line default 816 #line hidden 817 818 #line 62 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 819 820 } 821 822 823 #line default 824 #line hidden 825 WriteLiteral("\r\n"); 826 827 828 #line 65 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 829 830 831 #line default 832 #line hidden 833 834 #line 65 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 835 if (GetString("Item.Order") == "image-first") 836 { 837 838 839 #line default 840 #line hidden 841 WriteLiteral(" <p>&nbsp;</p>\r\n"); 842 843 844 #line 68 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 845 846 847 #line default 848 #line hidden 849 850 #line 68 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 851 Write(RenderImage()); 852 853 854 #line default 855 #line hidden 856 857 #line 68 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 858 859 860 861 #line default 862 #line hidden 863 864 #line 69 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 865 Write(RenderHeading()); 866 867 868 #line default 869 #line hidden 870 871 #line 69 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 872 873 874 875 #line default 876 #line hidden 877 878 #line 70 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 879 Write(RenderSubHeading()); 880 881 882 #line default 883 #line hidden 884 885 #line 70 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 886 887 888 889 #line default 890 #line hidden 891 892 #line 71 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 893 Write(RenderText()); 894 895 896 #line default 897 #line hidden 898 899 #line 71 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 900 901 902 903 #line default 904 #line hidden 905 906 #line 72 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 907 Write(RenderModule()); 908 909 910 #line default 911 #line hidden 912 913 #line 72 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 914 915 916 917 #line default 918 #line hidden 919 920 #line 73 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 921 Write(RenderButton()); 922 923 924 #line default 925 #line hidden 926 927 #line 73 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 928 929 } 930 931 932 #line default 933 #line hidden 934 WriteLiteral("\r\n"); 935 936 937 #line 76 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 938 939 940 #line default 941 #line hidden 942 943 #line 76 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 944 if (GetString("Item.Order") == "title-sub-first") 945 { 946 947 948 #line default 949 #line hidden 950 951 #line 78 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 952 Write(RenderHeading()); 953 954 955 #line default 956 #line hidden 957 958 #line 78 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 959 960 961 962 #line default 963 #line hidden 964 965 #line 79 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 966 Write(RenderSubHeading()); 967 968 969 #line default 970 #line hidden 971 972 #line 79 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 973 974 975 976 #line default 977 #line hidden 978 979 #line 80 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 980 Write(RenderImage()); 981 982 983 #line default 984 #line hidden 985 986 #line 80 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 987 988 989 990 #line default 991 #line hidden 992 993 #line 81 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 994 Write(RenderText()); 995 996 997 #line default 998 #line hidden 999 1000 #line 81 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1001 1002 1003 1004 #line default 1005 #line hidden 1006 1007 #line 82 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1008 Write(RenderModule()); 1009 1010 1011 #line default 1012 #line hidden 1013 1014 #line 82 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1015 1016 1017 1018 #line default 1019 #line hidden 1020 1021 #line 83 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1022 Write(RenderButton()); 1023 1024 1025 #line default 1026 #line hidden 1027 1028 #line 83 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1029 1030 } 1031 1032 1033 #line default 1034 #line hidden 1035 WriteLiteral("\r\n"); 1036 1037 1038 #line 86 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1039 1040 1041 #line default 1042 #line hidden 1043 1044 #line 86 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1045 if (GetString("Item.Order") == "icon-xs") 1046 { 1047 1048 1049 #line default 1050 #line hidden 1051 WriteLiteral(" <div"); 1052 1053 WriteLiteral(" class=\"col-md-2\""); 1054 1055 WriteLiteral(">\r\n"); 1056 1057 WriteLiteral(" "); 1058 1059 1060 #line 89 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1061 Write(RenderImage()); 1062 1063 1064 #line default 1065 #line hidden 1066 WriteLiteral("\r\n </div>\r\n"); 1067 1068 WriteLiteral(" <div"); 1069 1070 WriteLiteral(" class=\"col-md-10\""); 1071 1072 WriteLiteral(">\r\n"); 1073 1074 WriteLiteral(" "); 1075 1076 1077 #line 92 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1078 Write(RenderHeading()); 1079 1080 1081 #line default 1082 #line hidden 1083 WriteLiteral("\r\n"); 1084 1085 WriteLiteral(" "); 1086 1087 1088 #line 93 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1089 Write(RenderSubHeading()); 1090 1091 1092 #line default 1093 #line hidden 1094 WriteLiteral("\r\n"); 1095 1096 WriteLiteral(" "); 1097 1098 1099 #line 94 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1100 Write(RenderText()); 1101 1102 1103 #line default 1104 #line hidden 1105 WriteLiteral("\r\n"); 1106 1107 WriteLiteral(" "); 1108 1109 1110 #line 95 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1111 Write(RenderModule()); 1112 1113 1114 #line default 1115 #line hidden 1116 WriteLiteral("\r\n"); 1117 1118 WriteLiteral(" "); 1119 1120 1121 #line 96 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1122 Write(RenderButton()); 1123 1124 1125 #line default 1126 #line hidden 1127 WriteLiteral("\r\n </div>\r\n"); 1128 1129 1130 #line 98 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1131 } 1132 1133 1134 #line default 1135 #line hidden 1136 WriteLiteral("\r\n"); 1137 1138 1139 #line 100 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1140 1141 1142 #line default 1143 #line hidden 1144 1145 #line 100 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1146 if (GetString("Item.Order") == "icon-sm") 1147 { 1148 1149 1150 #line default 1151 #line hidden 1152 WriteLiteral(" <div"); 1153 1154 WriteLiteral(" class=\"col-md-3\""); 1155 1156 WriteLiteral(">\r\n"); 1157 1158 WriteLiteral(" "); 1159 1160 1161 #line 103 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1162 Write(RenderImage()); 1163 1164 1165 #line default 1166 #line hidden 1167 WriteLiteral("\r\n </div>\r\n"); 1168 1169 WriteLiteral(" <div"); 1170 1171 WriteLiteral(" class=\"col-md-9\""); 1172 1173 WriteLiteral(">\r\n"); 1174 1175 WriteLiteral(" "); 1176 1177 1178 #line 106 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1179 Write(RenderHeading()); 1180 1181 1182 #line default 1183 #line hidden 1184 WriteLiteral("\r\n"); 1185 1186 WriteLiteral(" "); 1187 1188 1189 #line 107 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1190 Write(RenderSubHeading()); 1191 1192 1193 #line default 1194 #line hidden 1195 WriteLiteral("\r\n"); 1196 1197 WriteLiteral(" "); 1198 1199 1200 #line 108 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1201 Write(RenderText()); 1202 1203 1204 #line default 1205 #line hidden 1206 WriteLiteral("\r\n"); 1207 1208 WriteLiteral(" "); 1209 1210 1211 #line 109 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1212 Write(RenderModule()); 1213 1214 1215 #line default 1216 #line hidden 1217 WriteLiteral("\r\n"); 1218 1219 WriteLiteral(" "); 1220 1221 1222 #line 110 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1223 Write(RenderButton()); 1224 1225 1226 #line default 1227 #line hidden 1228 WriteLiteral("\r\n </div>\r\n"); 1229 1230 1231 #line 112 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1232 } 1233 1234 1235 #line default 1236 #line hidden 1237 WriteLiteral("\r\n"); 1238 1239 1240 #line 114 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1241 1242 1243 #line default 1244 #line hidden 1245 1246 #line 114 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1247 if (GetString("Item.Order") == "icon-md") 1248 { 1249 1250 1251 #line default 1252 #line hidden 1253 WriteLiteral(" <div"); 1254 1255 WriteLiteral(" class=\"col-md-4\""); 1256 1257 WriteLiteral(">\r\n"); 1258 1259 WriteLiteral(" "); 1260 1261 1262 #line 117 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1263 Write(RenderImage()); 1264 1265 1266 #line default 1267 #line hidden 1268 WriteLiteral("\r\n </div>\r\n"); 1269 1270 WriteLiteral(" <div"); 1271 1272 WriteLiteral(" class=\"col-md-8\""); 1273 1274 WriteLiteral(">\r\n"); 1275 1276 WriteLiteral(" "); 1277 1278 1279 #line 120 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1280 Write(RenderHeading()); 1281 1282 1283 #line default 1284 #line hidden 1285 WriteLiteral("\r\n"); 1286 1287 WriteLiteral(" "); 1288 1289 1290 #line 121 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1291 Write(RenderSubHeading()); 1292 1293 1294 #line default 1295 #line hidden 1296 WriteLiteral("\r\n"); 1297 1298 WriteLiteral(" "); 1299 1300 1301 #line 122 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1302 Write(RenderText()); 1303 1304 1305 #line default 1306 #line hidden 1307 WriteLiteral("\r\n"); 1308 1309 WriteLiteral(" "); 1310 1311 1312 #line 123 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1313 Write(RenderModule()); 1314 1315 1316 #line default 1317 #line hidden 1318 WriteLiteral("\r\n"); 1319 1320 WriteLiteral(" "); 1321 1322 1323 #line 124 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1324 Write(RenderButton()); 1325 1326 1327 #line default 1328 #line hidden 1329 WriteLiteral("\r\n </div>\r\n"); 1330 1331 1332 #line 126 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1333 } 1334 1335 1336 #line default 1337 #line hidden 1338 WriteLiteral("\r\n</div>\r\n\r\n\r\n"); 1339 1340 WriteLiteral("\r\n"); 1341 1342 WriteLiteral("\r\n"); 1343 1344 WriteLiteral("\r\n"); 1345 1346 WriteLiteral("\r\n"); 1347 1348 WriteLiteral("\r\n"); 1349 1350 WriteLiteral("\r\n"); 1351 1352 } 1353 } 1354 } 1355

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 3 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 4 5 @{ 6 init(); 7 } 8 9 @functions { 10 private int columnsWritten { get; set; } 11 private int columns { get; set; } 12 13 public void init() 14 { 15 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 16 columns = GetInteger("Item.Width"); 17 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + GetInteger("Item.Width"); 18 } 19 20 public void Fluid() 21 { 22 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 23 columns = 12; 24 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + 12; 25 } 26 27 public string ColumnClass() 28 { 29 if (GetString("Item.WidthMobile") == "hide"){ 30 return "col-md-" + GetString("Item.Width") + " hidden-xs"; 31 } else { 32 return "col-md-" + GetString("Item.Width") + " col-xs-" + GetString("Item.WidthMobile"); 33 } 34 } 35 36 public string NewRow() 37 { 38 if (columns + columnsWritten > 12) 39 { 40 System.Web.HttpContext.Current.Items["currentColumns"] = columns; 41 return "</div><div class=\"row\">"; 42 } 43 else 44 { 45 return string.Empty; 46 } 47 48 } 49 } 50 51 @NewRow() 52 53 <div class="@ColumnClass() contain-wrapper"> 54 55 @if (GetString("Item.Order") == "title-first" || GetString("Item.Order") == "") 56 { 57 @RenderHeading() 58 @RenderImage() 59 @RenderSubHeading() 60 @RenderText() 61 @RenderModule() 62 @RenderButton() 63 } 64 65 @if (GetString("Item.Order") == "image-first") 66 { 67 <p>&nbsp;</p> 68 @RenderImage() 69 @RenderHeading() 70 @RenderSubHeading() 71 @RenderText() 72 @RenderModule() 73 @RenderButton() 74 } 75 76 @if (GetString("Item.Order") == "title-sub-first") 77 { 78 @RenderHeading() 79 @RenderSubHeading() 80 @RenderImage() 81 @RenderText() 82 @RenderModule() 83 @RenderButton() 84 } 85 86 @if (GetString("Item.Order") == "icon-xs") 87 { 88 <div class="col-md-2"> 89 @RenderImage() 90 </div> 91 <div class="col-md-10"> 92 @RenderHeading() 93 @RenderSubHeading() 94 @RenderText() 95 @RenderModule() 96 @RenderButton() 97 </div> 98 } 99 100 @if (GetString("Item.Order") == "icon-sm") 101 { 102 <div class="col-md-3"> 103 @RenderImage() 104 </div> 105 <div class="col-md-9"> 106 @RenderHeading() 107 @RenderSubHeading() 108 @RenderText() 109 @RenderModule() 110 @RenderButton() 111 </div> 112 } 113 114 @if (GetString("Item.Order") == "icon-md") 115 { 116 <div class="col-md-4"> 117 @RenderImage() 118 </div> 119 <div class="col-md-8"> 120 @RenderHeading() 121 @RenderSubHeading() 122 @RenderText() 123 @RenderModule() 124 @RenderButton() 125 </div> 126 } 127 128 </div> 129 130 131 @helper RenderHeading() 132 { 133 if (GetBoolean("Item.ShowTitle") != false) 134 { 135 if (!string.IsNullOrEmpty(GetString("Item.Title"))) 136 { 137 <h1 class="dw-section-title"> 138 <span> 139 @GetString("Item.Title") 140 </span> 141 </h1> 142 } 143 } 144 } 145 146 @helper RenderButton() 147 { 148 var Url = GetString("Item.Link"); 149 150 if (!string.IsNullOrEmpty(Url) && !string.IsNullOrEmpty(GetString("Item.LinkText"))) 151 { 152 if (Url.Contains("http")) 153 { 154 <text> 155 <p class="pull-right" style="margin-bottom: 30px !important"> 156 <a href="@GetString("Item.Link")" target="_blank" class="btn btn-dw-primary pull-right">@GetString("Item.LinkText")</a> 157 </p> 158 </text> 159 } 160 else if (Url.Contains("/")) 161 { 162 <text> 163 <p class="pull-right" style="margin-bottom: 30px !important"> 164 <a href="@GetString("Item.Link")" class="btn btn-dw-primary pull-right" download>@GetString("Item.LinkText")</a> 165 </p> 166 </text> 167 } 168 else 169 { 170 <text> 171 <p class="pull-right" style="margin-bottom: 30px !important"> 172 <a href="@GetString("Item.Link")" class="btn btn-dw-primary pull-right">@GetString("Item.LinkText")</a> 173 </p> 174 </text> 175 } 176 } 177 } 178 179 @helper RenderSubHeading() 180 { 181 if (!string.IsNullOrEmpty(GetString("Item.Subtitle"))) 182 { 183 <h2> 184 @GetString("Item.Subtitle") 185 </h2> 186 } 187 } 188 189 @helper RenderText() 190 { 191 if (!string.IsNullOrWhiteSpace(GetString("Item.Text"))) 192 { 193 <div class="figure"> 194 @GetString("Item.Text") 195 </div> 196 } 197 } 198 199 @helper RenderModule() 200 { 201 @GetString("ParagraphModule") 202 } 203 204 @helper RenderImage() 205 { 206 if (!string.IsNullOrEmpty(GetString("Item.Image"))) 207 { 208 var image = System.Web.HttpContext.Current.Server.UrlEncode(GetString("Item.Image")); 209 210 <!-- Choosing the smallest possible width that will work with responsive sizes --> 211 string optimizedwidth = "1280"; 212 213 switch (GetString("Item.Width")) 214 { 215 case "12": 216 optimizedwidth = "1280"; 217 break; 218 case "9": 219 optimizedwidth = "960"; 220 break; 221 case "6": 222 optimizedwidth = "722"; 223 break; 224 case "3": 225 optimizedwidth = "722"; 226 break; 227 case "8": 228 optimizedwidth = "960"; 229 break; 230 case "4": 231 optimizedwidth = "722"; 232 break; 233 } 234 235 string optimizedheight = ((Convert.ToInt32(optimizedwidth) / 16) * 9).ToString(); 236 237 if (GetString("Item.ImageStyle") == "ball") 238 { 239 optimizedwidth = "500"; 240 optimizedheight = "500"; 241 } 242 243 string altText = GetString("Item.Title"); 244 245 if (string.IsNullOrEmpty(GetString("Item.Link"))) 246 { 247 248 <div class="img-responsive dw-std-image"> 249 <img class="content-image img-responsive" alt="@altText" width="@optimizedwidth" height="@optimizedheight" style="@GetImageBorderCss()" src="/Admin/Public/GetImage.ashx?width=@optimizedwidth&amp;height=@optimizedheight&amp;crop=7&amp;Compression=75&amp;image=@image" /> 250 </div> 251 } 252 else 253 { 254 <div class="img-responsive dw-std-image"> 255 <a href="@GetString("Item.Link")" target="_parent"><img class="content-image img-responsive" alt="@altText" width="@optimizedwidth" height="@optimizedheight" style="@GetImageBorderCss()" src="/Admin/Public/GetImage.ashx?width=@optimizedwidth&amp;crop=7&amp;Compression=75&amp;image=@image" /></a> 256 </div> 257 } 258 } 259 } 260 261 @functions { 262 private string GetImageBorderCss() 263 { 264 if (GetString("Item.ImageStyle") == "cover") 265 { 266 return "padding: 8px"; 267 } 268 else if (GetString("Item.ImageStyle") == "cover-border") 269 { 270 return "padding: 4px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 271 } 272 else if (GetString("Item.ImageStyle") == "frame") 273 { 274 return "padding: 6px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 275 } 276 else if (GetString("Item.ImageStyle") == "rounded") 277 { 278 return "border-radius: 8px !important"; 279 } 280 else if (GetString("Item.ImageStyle") == "ball") 281 { 282 return "border-radius: 1000px !important"; 283 } 284 else if (GetString("Item.ImageStyle") == "shadow") 285 { 286 return "box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2)"; 287 } 288 else 289 { 290 return string.Empty; 291 } 292 } 293 }
Error compiling template "Designs/Dwsimple/Paragraph/Paragraph.cshtml"
Line 28: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 35: 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 17 public class RazorEngine_7fa785ddf14c403c865cd8a25ffbd53f : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 18 19 #line hidden 20 21 #line 9 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 22 23 private int columnsWritten { get; set; } 24 private int columns { get; set; } 25 26 public void init() 27 { 28 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 29 columns = GetInteger("Item.Width"); 30 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + GetInteger("Item.Width"); 31 } 32 33 public void Fluid() 34 { 35 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 36 columns = 12; 37 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + 12; 38 } 39 40 public string ColumnClass() 41 { 42 if (GetString("Item.WidthMobile") == "hide"){ 43 return "col-md-" + GetString("Item.Width") + " hidden-xs"; 44 } else { 45 return "col-md-" + GetString("Item.Width") + " col-xs-" + GetString("Item.WidthMobile"); 46 } 47 } 48 49 public string NewRow() 50 { 51 if (columns + columnsWritten > 12) 52 { 53 System.Web.HttpContext.Current.Items["currentColumns"] = columns; 54 return "</div><div class=\"row\">"; 55 } 56 else 57 { 58 return string.Empty; 59 } 60 61 } 62 63 #line default 64 #line hidden 65 66 67 #line 131 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 68 public RazorEngine.Templating.TemplateWriter RenderHeading() 69 { 70 #line default 71 #line hidden 72 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 73 74 #line 132 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 75 76 if (GetBoolean("Item.ShowTitle") != false) 77 { 78 if (!string.IsNullOrEmpty(GetString("Item.Title"))) 79 { 80 81 82 #line default 83 #line hidden 84 WriteLiteralTo(__razor_helper_writer, " <h1"); 85 86 WriteLiteralTo(__razor_helper_writer, " class=\"dw-section-title\""); 87 88 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>\r\n"); 89 90 WriteLiteralTo(__razor_helper_writer, " "); 91 92 93 #line 139 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 94 WriteTo(__razor_helper_writer, GetString("Item.Title")); 95 96 97 #line default 98 #line hidden 99 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n </h1>\r\n"); 100 101 102 #line 142 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 103 } 104 } 105 106 107 #line default 108 #line hidden 109 }); 110 111 #line 144 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 112 } 113 #line default 114 #line hidden 115 116 117 #line 146 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 118 public RazorEngine.Templating.TemplateWriter RenderButton() 119 { 120 #line default 121 #line hidden 122 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 123 124 #line 147 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 125 126 var Url = GetString("Item.Link"); 127 128 if (!string.IsNullOrEmpty(Url) && !string.IsNullOrEmpty(GetString("Item.LinkText"))) 129 { 130 if (Url.Contains("http")) 131 { 132 133 134 #line default 135 #line hidden 136 WriteLiteralTo(__razor_helper_writer, " "); 137 138 WriteLiteralTo(__razor_helper_writer, "\r\n <p"); 139 140 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 141 142 WriteLiteralTo(__razor_helper_writer, " style=\"margin-bottom: 30px !important\""); 143 144 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 145 146 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 3836), Tuple.Create("\"", 3866) 147 148 #line 156 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 149 , Tuple.Create(Tuple.Create("", 3843), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 150 151 #line default 152 #line hidden 153 , 3843), false) 154 ); 155 156 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 157 158 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-dw-primary pull-right\""); 159 160 WriteLiteralTo(__razor_helper_writer, ">"); 161 162 163 #line 156 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 164 WriteTo(__razor_helper_writer, GetString("Item.LinkText")); 165 166 167 #line default 168 #line hidden 169 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </p>\r\n "); 170 171 WriteLiteralTo(__razor_helper_writer, "\r\n"); 172 173 174 #line 159 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 175 } 176 else if (Url.Contains("/")) 177 { 178 179 180 #line default 181 #line hidden 182 WriteLiteralTo(__razor_helper_writer, " "); 183 184 WriteLiteralTo(__razor_helper_writer, "\r\n <p"); 185 186 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 187 188 WriteLiteralTo(__razor_helper_writer, " style=\"margin-bottom: 30px !important\""); 189 190 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 191 192 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 4166), Tuple.Create("\"", 4196) 193 194 #line 164 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 195 , Tuple.Create(Tuple.Create("", 4173), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 196 197 #line default 198 #line hidden 199 , 4173), false) 200 ); 201 202 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-dw-primary pull-right\""); 203 204 WriteLiteralTo(__razor_helper_writer, " download>"); 205 206 207 #line 164 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 208 WriteTo(__razor_helper_writer, GetString("Item.LinkText")); 209 210 211 #line default 212 #line hidden 213 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </p>\r\n "); 214 215 WriteLiteralTo(__razor_helper_writer, "\r\n"); 216 217 218 #line 167 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 219 } 220 else 221 { 222 223 224 #line default 225 #line hidden 226 WriteLiteralTo(__razor_helper_writer, " "); 227 228 WriteLiteralTo(__razor_helper_writer, "\r\n <p"); 229 230 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 231 232 WriteLiteralTo(__razor_helper_writer, " style=\"margin-bottom: 30px !important\""); 233 234 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 235 236 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 4466), Tuple.Create("\"", 4496) 237 238 #line 172 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 239 , Tuple.Create(Tuple.Create("", 4473), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 240 241 #line default 242 #line hidden 243 , 4473), false) 244 ); 245 246 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-dw-primary pull-right\""); 247 248 WriteLiteralTo(__razor_helper_writer, ">"); 249 250 251 #line 172 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 252 WriteTo(__razor_helper_writer, GetString("Item.LinkText")); 253 254 255 #line default 256 #line hidden 257 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </p>\r\n "); 258 259 WriteLiteralTo(__razor_helper_writer, "\r\n"); 260 261 262 #line 175 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 263 } 264 } 265 266 267 #line default 268 #line hidden 269 }); 270 271 #line 177 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 272 } 273 #line default 274 #line hidden 275 276 277 #line 179 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 278 public RazorEngine.Templating.TemplateWriter RenderSubHeading() 279 { 280 #line default 281 #line hidden 282 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 283 284 #line 180 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 285 286 if (!string.IsNullOrEmpty(GetString("Item.Subtitle"))) 287 { 288 289 290 #line default 291 #line hidden 292 WriteLiteralTo(__razor_helper_writer, " <h2>\r\n"); 293 294 WriteLiteralTo(__razor_helper_writer, " "); 295 296 297 #line 184 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 298 WriteTo(__razor_helper_writer, GetString("Item.Subtitle")); 299 300 301 #line default 302 #line hidden 303 WriteLiteralTo(__razor_helper_writer, "\r\n </h2>\r\n"); 304 305 306 #line 186 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 307 } 308 309 310 #line default 311 #line hidden 312 }); 313 314 #line 187 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 315 } 316 #line default 317 #line hidden 318 319 320 #line 189 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 321 public RazorEngine.Templating.TemplateWriter RenderText() 322 { 323 #line default 324 #line hidden 325 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 326 327 #line 190 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 328 329 if (!string.IsNullOrWhiteSpace(GetString("Item.Text"))) 330 { 331 332 333 #line default 334 #line hidden 335 WriteLiteralTo(__razor_helper_writer, " <div"); 336 337 WriteLiteralTo(__razor_helper_writer, " class=\"figure\""); 338 339 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 340 341 WriteLiteralTo(__razor_helper_writer, " "); 342 343 344 #line 194 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 345 WriteTo(__razor_helper_writer, GetString("Item.Text")); 346 347 348 #line default 349 #line hidden 350 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 351 352 353 #line 196 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 354 } 355 356 357 #line default 358 #line hidden 359 }); 360 361 #line 197 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 362 } 363 #line default 364 #line hidden 365 366 367 #line 199 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 368 public RazorEngine.Templating.TemplateWriter RenderModule() 369 { 370 #line default 371 #line hidden 372 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 373 374 #line 200 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 375 376 377 378 #line default 379 #line hidden 380 381 #line 201 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 382 WriteTo(__razor_helper_writer, GetString("ParagraphModule")); 383 384 385 #line default 386 #line hidden 387 388 #line 201 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 389 390 391 392 #line default 393 #line hidden 394 }); 395 396 #line 202 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 397 } 398 #line default 399 #line hidden 400 401 402 #line 204 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 403 public RazorEngine.Templating.TemplateWriter RenderImage() 404 { 405 #line default 406 #line hidden 407 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 408 409 #line 205 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 410 411 if (!string.IsNullOrEmpty(GetString("Item.Image"))) 412 { 413 var image = System.Web.HttpContext.Current.Server.UrlEncode(GetString("Item.Image")); 414 415 416 417 #line default 418 #line hidden 419 WriteLiteralTo(__razor_helper_writer, "\t\t<!-- Choosing the smallest possible width that will work with responsive sizes " + 420 "-->\r\n"); 421 422 423 #line 211 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 424 string optimizedwidth = "1280"; 425 426 switch (GetString("Item.Width")) 427 { 428 case "12": 429 optimizedwidth = "1280"; 430 break; 431 case "9": 432 optimizedwidth = "960"; 433 break; 434 case "6": 435 optimizedwidth = "722"; 436 break; 437 case "3": 438 optimizedwidth = "722"; 439 break; 440 case "8": 441 optimizedwidth = "960"; 442 break; 443 case "4": 444 optimizedwidth = "722"; 445 break; 446 } 447 448 string optimizedheight = ((Convert.ToInt32(optimizedwidth) / 16) * 9).ToString(); 449 450 if (GetString("Item.ImageStyle") == "ball") 451 { 452 optimizedwidth = "500"; 453 optimizedheight = "500"; 454 } 455 456 string altText = GetString("Item.Title"); 457 458 if (string.IsNullOrEmpty(GetString("Item.Link"))) 459 { 460 461 462 463 #line default 464 #line hidden 465 WriteLiteralTo(__razor_helper_writer, " <div"); 466 467 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive dw-std-image\""); 468 469 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 470 471 WriteLiteralTo(__razor_helper_writer, " class=\"content-image img-responsive\""); 472 473 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 6296), Tuple.Create("\"", 6310) 474 475 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 476 , Tuple.Create(Tuple.Create("", 6302), Tuple.Create<System.Object, System.Int32>(altText 477 478 #line default 479 #line hidden 480 , 6302), false) 481 ); 482 483 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 6311), Tuple.Create("\"", 6334) 484 485 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 486 , Tuple.Create(Tuple.Create("", 6319), Tuple.Create<System.Object, System.Int32>(optimizedwidth 487 488 #line default 489 #line hidden 490 , 6319), false) 491 ); 492 493 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 6335), Tuple.Create("\"", 6360) 494 495 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 496 , Tuple.Create(Tuple.Create("", 6344), Tuple.Create<System.Object, System.Int32>(optimizedheight 497 498 #line default 499 #line hidden 500 , 6344), false) 501 ); 502 503 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 6361), Tuple.Create("\"", 6389) 504 505 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 506 , Tuple.Create(Tuple.Create("", 6369), Tuple.Create<System.Object, System.Int32>(GetImageBorderCss() 507 508 #line default 509 #line hidden 510 , 6369), false) 511 ); 512 513 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 6390), Tuple.Create("\"", 6520) 514 , Tuple.Create(Tuple.Create("", 6396), Tuple.Create("/Admin/Public/GetImage.ashx?width=", 6396), true) 515 516 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 517 , Tuple.Create(Tuple.Create("", 6430), Tuple.Create<System.Object, System.Int32>(optimizedwidth 518 519 #line default 520 #line hidden 521 , 6430), false) 522 , Tuple.Create(Tuple.Create("", 6445), Tuple.Create("&amp;height=", 6445), true) 523 524 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 525 , Tuple.Create(Tuple.Create("", 6457), Tuple.Create<System.Object, System.Int32>(optimizedheight 526 527 #line default 528 #line hidden 529 , 6457), false) 530 , Tuple.Create(Tuple.Create("", 6473), Tuple.Create("&amp;crop=7&amp;Compression=75&amp;image=", 6473), true) 531 532 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 533 , Tuple.Create(Tuple.Create("", 6514), Tuple.Create<System.Object, System.Int32>(image 534 535 #line default 536 #line hidden 537 , 6514), false) 538 ); 539 540 WriteLiteralTo(__razor_helper_writer, " />\r\n </div>\r\n"); 541 542 543 #line 251 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 544 } 545 else 546 { 547 548 549 #line default 550 #line hidden 551 WriteLiteralTo(__razor_helper_writer, " <div"); 552 553 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive dw-std-image\""); 554 555 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 556 557 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6643), Tuple.Create("\"", 6673) 558 559 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 560 , Tuple.Create(Tuple.Create("", 6650), Tuple.Create<System.Object, System.Int32>(GetString("Item.Link") 561 562 #line default 563 #line hidden 564 , 6650), false) 565 ); 566 567 WriteLiteralTo(__razor_helper_writer, " target=\"_parent\""); 568 569 WriteLiteralTo(__razor_helper_writer, "><img"); 570 571 WriteLiteralTo(__razor_helper_writer, " class=\"content-image img-responsive\""); 572 573 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 6733), Tuple.Create("\"", 6747) 574 575 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 576 , Tuple.Create(Tuple.Create("", 6739), Tuple.Create<System.Object, System.Int32>(altText 577 578 #line default 579 #line hidden 580 , 6739), false) 581 ); 582 583 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 6748), Tuple.Create("\"", 6771) 584 585 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 586 , Tuple.Create(Tuple.Create("", 6756), Tuple.Create<System.Object, System.Int32>(optimizedwidth 587 588 #line default 589 #line hidden 590 , 6756), false) 591 ); 592 593 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 6772), Tuple.Create("\"", 6797) 594 595 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 596 , Tuple.Create(Tuple.Create("", 6781), Tuple.Create<System.Object, System.Int32>(optimizedheight 597 598 #line default 599 #line hidden 600 , 6781), false) 601 ); 602 603 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 6798), Tuple.Create("\"", 6826) 604 605 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 606 , Tuple.Create(Tuple.Create("", 6806), Tuple.Create<System.Object, System.Int32>(GetImageBorderCss() 607 608 #line default 609 #line hidden 610 , 6806), false) 611 ); 612 613 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 6827), Tuple.Create("\"", 6929) 614 , Tuple.Create(Tuple.Create("", 6833), Tuple.Create("/Admin/Public/GetImage.ashx?width=", 6833), true) 615 616 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 617 , Tuple.Create(Tuple.Create("", 6867), Tuple.Create<System.Object, System.Int32>(optimizedwidth 618 619 #line default 620 #line hidden 621 , 6867), false) 622 , Tuple.Create(Tuple.Create("", 6882), Tuple.Create("&amp;crop=7&amp;Compression=75&amp;image=", 6882), true) 623 624 #line 255 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 625 , Tuple.Create(Tuple.Create("", 6923), Tuple.Create<System.Object, System.Int32>(image 626 627 #line default 628 #line hidden 629 , 6923), false) 630 ); 631 632 WriteLiteralTo(__razor_helper_writer, " /></a>\r\n </div>\r\n"); 633 634 635 #line 257 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 636 } 637 } 638 639 640 #line default 641 #line hidden 642 }); 643 644 #line 259 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 645 } 646 #line default 647 #line hidden 648 649 650 #line 261 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 651 652 private string GetImageBorderCss() 653 { 654 if (GetString("Item.ImageStyle") == "cover") 655 { 656 return "padding: 8px"; 657 } 658 else if (GetString("Item.ImageStyle") == "cover-border") 659 { 660 return "padding: 4px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 661 } 662 else if (GetString("Item.ImageStyle") == "frame") 663 { 664 return "padding: 6px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 665 } 666 else if (GetString("Item.ImageStyle") == "rounded") 667 { 668 return "border-radius: 8px !important"; 669 } 670 else if (GetString("Item.ImageStyle") == "ball") 671 { 672 return "border-radius: 1000px !important"; 673 } 674 else if (GetString("Item.ImageStyle") == "shadow") 675 { 676 return "box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2)"; 677 } 678 else 679 { 680 return string.Empty; 681 } 682 } 683 684 #line default 685 #line hidden 686 687 688 public RazorEngine_7fa785ddf14c403c865cd8a25ffbd53f() { 689 } 690 691 public override void Execute() { 692 693 #line 5 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 694 695 init(); 696 697 698 #line default 699 #line hidden 700 WriteLiteral("\r\n\r\n"); 701 702 WriteLiteral("\r\n"); 703 704 705 #line 51 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 706 Write(NewRow()); 707 708 709 #line default 710 #line hidden 711 WriteLiteral("\r\n\r\n<div"); 712 713 WriteAttribute("class", Tuple.Create(" class=\"", 1404), Tuple.Create("\"", 1442) 714 715 #line 53 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 716 , Tuple.Create(Tuple.Create("", 1412), Tuple.Create<System.Object, System.Int32>(ColumnClass() 717 718 #line default 719 #line hidden 720 , 1412), false) 721 , Tuple.Create(Tuple.Create(" ", 1426), Tuple.Create("contain-wrapper", 1427), true) 722 ); 723 724 WriteLiteral(">\r\n\r\n"); 725 726 727 #line 55 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 728 729 730 #line default 731 #line hidden 732 733 #line 55 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 734 if (GetString("Item.Order") == "title-first" || GetString("Item.Order") == "") 735 { 736 737 738 #line default 739 #line hidden 740 741 #line 57 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 742 Write(RenderHeading()); 743 744 745 #line default 746 #line hidden 747 748 #line 57 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 749 750 751 752 #line default 753 #line hidden 754 755 #line 58 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 756 Write(RenderImage()); 757 758 759 #line default 760 #line hidden 761 762 #line 58 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 763 764 765 766 #line default 767 #line hidden 768 769 #line 59 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 770 Write(RenderSubHeading()); 771 772 773 #line default 774 #line hidden 775 776 #line 59 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 777 778 779 780 #line default 781 #line hidden 782 783 #line 60 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 784 Write(RenderText()); 785 786 787 #line default 788 #line hidden 789 790 #line 60 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 791 792 793 794 #line default 795 #line hidden 796 797 #line 61 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 798 Write(RenderModule()); 799 800 801 #line default 802 #line hidden 803 804 #line 61 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 805 806 807 808 #line default 809 #line hidden 810 811 #line 62 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 812 Write(RenderButton()); 813 814 815 #line default 816 #line hidden 817 818 #line 62 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 819 820 } 821 822 823 #line default 824 #line hidden 825 WriteLiteral("\r\n"); 826 827 828 #line 65 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 829 830 831 #line default 832 #line hidden 833 834 #line 65 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 835 if (GetString("Item.Order") == "image-first") 836 { 837 838 839 #line default 840 #line hidden 841 WriteLiteral(" <p>&nbsp;</p>\r\n"); 842 843 844 #line 68 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 845 846 847 #line default 848 #line hidden 849 850 #line 68 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 851 Write(RenderImage()); 852 853 854 #line default 855 #line hidden 856 857 #line 68 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 858 859 860 861 #line default 862 #line hidden 863 864 #line 69 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 865 Write(RenderHeading()); 866 867 868 #line default 869 #line hidden 870 871 #line 69 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 872 873 874 875 #line default 876 #line hidden 877 878 #line 70 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 879 Write(RenderSubHeading()); 880 881 882 #line default 883 #line hidden 884 885 #line 70 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 886 887 888 889 #line default 890 #line hidden 891 892 #line 71 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 893 Write(RenderText()); 894 895 896 #line default 897 #line hidden 898 899 #line 71 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 900 901 902 903 #line default 904 #line hidden 905 906 #line 72 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 907 Write(RenderModule()); 908 909 910 #line default 911 #line hidden 912 913 #line 72 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 914 915 916 917 #line default 918 #line hidden 919 920 #line 73 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 921 Write(RenderButton()); 922 923 924 #line default 925 #line hidden 926 927 #line 73 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 928 929 } 930 931 932 #line default 933 #line hidden 934 WriteLiteral("\r\n"); 935 936 937 #line 76 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 938 939 940 #line default 941 #line hidden 942 943 #line 76 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 944 if (GetString("Item.Order") == "title-sub-first") 945 { 946 947 948 #line default 949 #line hidden 950 951 #line 78 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 952 Write(RenderHeading()); 953 954 955 #line default 956 #line hidden 957 958 #line 78 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 959 960 961 962 #line default 963 #line hidden 964 965 #line 79 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 966 Write(RenderSubHeading()); 967 968 969 #line default 970 #line hidden 971 972 #line 79 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 973 974 975 976 #line default 977 #line hidden 978 979 #line 80 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 980 Write(RenderImage()); 981 982 983 #line default 984 #line hidden 985 986 #line 80 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 987 988 989 990 #line default 991 #line hidden 992 993 #line 81 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 994 Write(RenderText()); 995 996 997 #line default 998 #line hidden 999 1000 #line 81 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1001 1002 1003 1004 #line default 1005 #line hidden 1006 1007 #line 82 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1008 Write(RenderModule()); 1009 1010 1011 #line default 1012 #line hidden 1013 1014 #line 82 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1015 1016 1017 1018 #line default 1019 #line hidden 1020 1021 #line 83 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1022 Write(RenderButton()); 1023 1024 1025 #line default 1026 #line hidden 1027 1028 #line 83 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1029 1030 } 1031 1032 1033 #line default 1034 #line hidden 1035 WriteLiteral("\r\n"); 1036 1037 1038 #line 86 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1039 1040 1041 #line default 1042 #line hidden 1043 1044 #line 86 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1045 if (GetString("Item.Order") == "icon-xs") 1046 { 1047 1048 1049 #line default 1050 #line hidden 1051 WriteLiteral(" <div"); 1052 1053 WriteLiteral(" class=\"col-md-2\""); 1054 1055 WriteLiteral(">\r\n"); 1056 1057 WriteLiteral(" "); 1058 1059 1060 #line 89 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1061 Write(RenderImage()); 1062 1063 1064 #line default 1065 #line hidden 1066 WriteLiteral("\r\n </div>\r\n"); 1067 1068 WriteLiteral(" <div"); 1069 1070 WriteLiteral(" class=\"col-md-10\""); 1071 1072 WriteLiteral(">\r\n"); 1073 1074 WriteLiteral(" "); 1075 1076 1077 #line 92 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1078 Write(RenderHeading()); 1079 1080 1081 #line default 1082 #line hidden 1083 WriteLiteral("\r\n"); 1084 1085 WriteLiteral(" "); 1086 1087 1088 #line 93 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1089 Write(RenderSubHeading()); 1090 1091 1092 #line default 1093 #line hidden 1094 WriteLiteral("\r\n"); 1095 1096 WriteLiteral(" "); 1097 1098 1099 #line 94 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1100 Write(RenderText()); 1101 1102 1103 #line default 1104 #line hidden 1105 WriteLiteral("\r\n"); 1106 1107 WriteLiteral(" "); 1108 1109 1110 #line 95 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1111 Write(RenderModule()); 1112 1113 1114 #line default 1115 #line hidden 1116 WriteLiteral("\r\n"); 1117 1118 WriteLiteral(" "); 1119 1120 1121 #line 96 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1122 Write(RenderButton()); 1123 1124 1125 #line default 1126 #line hidden 1127 WriteLiteral("\r\n </div>\r\n"); 1128 1129 1130 #line 98 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1131 } 1132 1133 1134 #line default 1135 #line hidden 1136 WriteLiteral("\r\n"); 1137 1138 1139 #line 100 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1140 1141 1142 #line default 1143 #line hidden 1144 1145 #line 100 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1146 if (GetString("Item.Order") == "icon-sm") 1147 { 1148 1149 1150 #line default 1151 #line hidden 1152 WriteLiteral(" <div"); 1153 1154 WriteLiteral(" class=\"col-md-3\""); 1155 1156 WriteLiteral(">\r\n"); 1157 1158 WriteLiteral(" "); 1159 1160 1161 #line 103 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1162 Write(RenderImage()); 1163 1164 1165 #line default 1166 #line hidden 1167 WriteLiteral("\r\n </div>\r\n"); 1168 1169 WriteLiteral(" <div"); 1170 1171 WriteLiteral(" class=\"col-md-9\""); 1172 1173 WriteLiteral(">\r\n"); 1174 1175 WriteLiteral(" "); 1176 1177 1178 #line 106 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1179 Write(RenderHeading()); 1180 1181 1182 #line default 1183 #line hidden 1184 WriteLiteral("\r\n"); 1185 1186 WriteLiteral(" "); 1187 1188 1189 #line 107 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1190 Write(RenderSubHeading()); 1191 1192 1193 #line default 1194 #line hidden 1195 WriteLiteral("\r\n"); 1196 1197 WriteLiteral(" "); 1198 1199 1200 #line 108 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1201 Write(RenderText()); 1202 1203 1204 #line default 1205 #line hidden 1206 WriteLiteral("\r\n"); 1207 1208 WriteLiteral(" "); 1209 1210 1211 #line 109 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1212 Write(RenderModule()); 1213 1214 1215 #line default 1216 #line hidden 1217 WriteLiteral("\r\n"); 1218 1219 WriteLiteral(" "); 1220 1221 1222 #line 110 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1223 Write(RenderButton()); 1224 1225 1226 #line default 1227 #line hidden 1228 WriteLiteral("\r\n </div>\r\n"); 1229 1230 1231 #line 112 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1232 } 1233 1234 1235 #line default 1236 #line hidden 1237 WriteLiteral("\r\n"); 1238 1239 1240 #line 114 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1241 1242 1243 #line default 1244 #line hidden 1245 1246 #line 114 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1247 if (GetString("Item.Order") == "icon-md") 1248 { 1249 1250 1251 #line default 1252 #line hidden 1253 WriteLiteral(" <div"); 1254 1255 WriteLiteral(" class=\"col-md-4\""); 1256 1257 WriteLiteral(">\r\n"); 1258 1259 WriteLiteral(" "); 1260 1261 1262 #line 117 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1263 Write(RenderImage()); 1264 1265 1266 #line default 1267 #line hidden 1268 WriteLiteral("\r\n </div>\r\n"); 1269 1270 WriteLiteral(" <div"); 1271 1272 WriteLiteral(" class=\"col-md-8\""); 1273 1274 WriteLiteral(">\r\n"); 1275 1276 WriteLiteral(" "); 1277 1278 1279 #line 120 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1280 Write(RenderHeading()); 1281 1282 1283 #line default 1284 #line hidden 1285 WriteLiteral("\r\n"); 1286 1287 WriteLiteral(" "); 1288 1289 1290 #line 121 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1291 Write(RenderSubHeading()); 1292 1293 1294 #line default 1295 #line hidden 1296 WriteLiteral("\r\n"); 1297 1298 WriteLiteral(" "); 1299 1300 1301 #line 122 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1302 Write(RenderText()); 1303 1304 1305 #line default 1306 #line hidden 1307 WriteLiteral("\r\n"); 1308 1309 WriteLiteral(" "); 1310 1311 1312 #line 123 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1313 Write(RenderModule()); 1314 1315 1316 #line default 1317 #line hidden 1318 WriteLiteral("\r\n"); 1319 1320 WriteLiteral(" "); 1321 1322 1323 #line 124 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1324 Write(RenderButton()); 1325 1326 1327 #line default 1328 #line hidden 1329 WriteLiteral("\r\n </div>\r\n"); 1330 1331 1332 #line 126 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Paragraph.cshtml" 1333 } 1334 1335 1336 #line default 1337 #line hidden 1338 WriteLiteral("\r\n</div>\r\n\r\n\r\n"); 1339 1340 WriteLiteral("\r\n"); 1341 1342 WriteLiteral("\r\n"); 1343 1344 WriteLiteral("\r\n"); 1345 1346 WriteLiteral("\r\n"); 1347 1348 WriteLiteral("\r\n"); 1349 1350 WriteLiteral("\r\n"); 1351 1352 } 1353 } 1354 } 1355

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 3 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 4 5 @{ 6 init(); 7 } 8 9 @functions { 10 private int columnsWritten { get; set; } 11 private int columns { get; set; } 12 13 public void init() 14 { 15 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 16 columns = GetInteger("Item.Width"); 17 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + GetInteger("Item.Width"); 18 } 19 20 public void Fluid() 21 { 22 columnsWritten = Dynamicweb.Input.FormatInteger(System.Web.HttpContext.Current.Items["currentColumns"]); 23 columns = 12; 24 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + 12; 25 } 26 27 public string ColumnClass() 28 { 29 if (GetString("Item.WidthMobile") == "hide"){ 30 return "col-md-" + GetString("Item.Width") + " hidden-xs"; 31 } else { 32 return "col-md-" + GetString("Item.Width") + " col-xs-" + GetString("Item.WidthMobile"); 33 } 34 } 35 36 public string NewRow() 37 { 38 if (columns + columnsWritten > 12) 39 { 40 System.Web.HttpContext.Current.Items["currentColumns"] = columns; 41 return "</div><div class=\"row\">"; 42 } 43 else 44 { 45 return string.Empty; 46 } 47 48 } 49 } 50 51 @NewRow() 52 53 <div class="@ColumnClass() contain-wrapper"> 54 55 @if (GetString("Item.Order") == "title-first" || GetString("Item.Order") == "") 56 { 57 @RenderHeading() 58 @RenderImage() 59 @RenderSubHeading() 60 @RenderText() 61 @RenderModule() 62 @RenderButton() 63 } 64 65 @if (GetString("Item.Order") == "image-first") 66 { 67 <p>&nbsp;</p> 68 @RenderImage() 69 @RenderHeading() 70 @RenderSubHeading() 71 @RenderText() 72 @RenderModule() 73 @RenderButton() 74 } 75 76 @if (GetString("Item.Order") == "title-sub-first") 77 { 78 @RenderHeading() 79 @RenderSubHeading() 80 @RenderImage() 81 @RenderText() 82 @RenderModule() 83 @RenderButton() 84 } 85 86 @if (GetString("Item.Order") == "icon-xs") 87 { 88 <div class="col-md-2"> 89 @RenderImage() 90 </div> 91 <div class="col-md-10"> 92 @RenderHeading() 93 @RenderSubHeading() 94 @RenderText() 95 @RenderModule() 96 @RenderButton() 97 </div> 98 } 99 100 @if (GetString("Item.Order") == "icon-sm") 101 { 102 <div class="col-md-3"> 103 @RenderImage() 104 </div> 105 <div class="col-md-9"> 106 @RenderHeading() 107 @RenderSubHeading() 108 @RenderText() 109 @RenderModule() 110 @RenderButton() 111 </div> 112 } 113 114 @if (GetString("Item.Order") == "icon-md") 115 { 116 <div class="col-md-4"> 117 @RenderImage() 118 </div> 119 <div class="col-md-8"> 120 @RenderHeading() 121 @RenderSubHeading() 122 @RenderText() 123 @RenderModule() 124 @RenderButton() 125 </div> 126 } 127 128 </div> 129 130 131 @helper RenderHeading() 132 { 133 if (GetBoolean("Item.ShowTitle") != false) 134 { 135 if (!string.IsNullOrEmpty(GetString("Item.Title"))) 136 { 137 <h1 class="dw-section-title"> 138 <span> 139 @GetString("Item.Title") 140 </span> 141 </h1> 142 } 143 } 144 } 145 146 @helper RenderButton() 147 { 148 var Url = GetString("Item.Link"); 149 150 if (!string.IsNullOrEmpty(Url) && !string.IsNullOrEmpty(GetString("Item.LinkText"))) 151 { 152 if (Url.Contains("http")) 153 { 154 <text> 155 <p class="pull-right" style="margin-bottom: 30px !important"> 156 <a href="@GetString("Item.Link")" target="_blank" class="btn btn-dw-primary pull-right">@GetString("Item.LinkText")</a> 157 </p> 158 </text> 159 } 160 else if (Url.Contains("/")) 161 { 162 <text> 163 <p class="pull-right" style="margin-bottom: 30px !important"> 164 <a href="@GetString("Item.Link")" class="btn btn-dw-primary pull-right" download>@GetString("Item.LinkText")</a> 165 </p> 166 </text> 167 } 168 else 169 { 170 <text> 171 <p class="pull-right" style="margin-bottom: 30px !important"> 172 <a href="@GetString("Item.Link")" class="btn btn-dw-primary pull-right">@GetString("Item.LinkText")</a> 173 </p> 174 </text> 175 } 176 } 177 } 178 179 @helper RenderSubHeading() 180 { 181 if (!string.IsNullOrEmpty(GetString("Item.Subtitle"))) 182 { 183 <h2> 184 @GetString("Item.Subtitle") 185 </h2> 186 } 187 } 188 189 @helper RenderText() 190 { 191 if (!string.IsNullOrWhiteSpace(GetString("Item.Text"))) 192 { 193 <div class="figure"> 194 @GetString("Item.Text") 195 </div> 196 } 197 } 198 199 @helper RenderModule() 200 { 201 @GetString("ParagraphModule") 202 } 203 204 @helper RenderImage() 205 { 206 if (!string.IsNullOrEmpty(GetString("Item.Image"))) 207 { 208 var image = System.Web.HttpContext.Current.Server.UrlEncode(GetString("Item.Image")); 209 210 <!-- Choosing the smallest possible width that will work with responsive sizes --> 211 string optimizedwidth = "1280"; 212 213 switch (GetString("Item.Width")) 214 { 215 case "12": 216 optimizedwidth = "1280"; 217 break; 218 case "9": 219 optimizedwidth = "960"; 220 break; 221 case "6": 222 optimizedwidth = "722"; 223 break; 224 case "3": 225 optimizedwidth = "722"; 226 break; 227 case "8": 228 optimizedwidth = "960"; 229 break; 230 case "4": 231 optimizedwidth = "722"; 232 break; 233 } 234 235 string optimizedheight = ((Convert.ToInt32(optimizedwidth) / 16) * 9).ToString(); 236 237 if (GetString("Item.ImageStyle") == "ball") 238 { 239 optimizedwidth = "500"; 240 optimizedheight = "500"; 241 } 242 243 string altText = GetString("Item.Title"); 244 245 if (string.IsNullOrEmpty(GetString("Item.Link"))) 246 { 247 248 <div class="img-responsive dw-std-image"> 249 <img class="content-image img-responsive" alt="@altText" width="@optimizedwidth" height="@optimizedheight" style="@GetImageBorderCss()" src="/Admin/Public/GetImage.ashx?width=@optimizedwidth&amp;height=@optimizedheight&amp;crop=7&amp;Compression=75&amp;image=@image" /> 250 </div> 251 } 252 else 253 { 254 <div class="img-responsive dw-std-image"> 255 <a href="@GetString("Item.Link")" target="_parent"><img class="content-image img-responsive" alt="@altText" width="@optimizedwidth" height="@optimizedheight" style="@GetImageBorderCss()" src="/Admin/Public/GetImage.ashx?width=@optimizedwidth&amp;crop=7&amp;Compression=75&amp;image=@image" /></a> 256 </div> 257 } 258 } 259 } 260 261 @functions { 262 private string GetImageBorderCss() 263 { 264 if (GetString("Item.ImageStyle") == "cover") 265 { 266 return "padding: 8px"; 267 } 268 else if (GetString("Item.ImageStyle") == "cover-border") 269 { 270 return "padding: 4px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 271 } 272 else if (GetString("Item.ImageStyle") == "frame") 273 { 274 return "padding: 6px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 275 } 276 else if (GetString("Item.ImageStyle") == "rounded") 277 { 278 return "border-radius: 8px !important"; 279 } 280 else if (GetString("Item.ImageStyle") == "ball") 281 { 282 return "border-radius: 1000px !important"; 283 } 284 else if (GetString("Item.ImageStyle") == "shadow") 285 { 286 return "box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2)"; 287 } 288 else 289 { 290 return string.Empty; 291 } 292 } 293 }
box