Error executing template "Designs/Rapido/Paragraph/ParagraphContainer.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_760fdd7772234328b785dcef460f461e.Execute() in D:\dynamicweb.net\Solutions\lope.LIVE\Files\Templates\Designs\Rapido\Paragraph\ParagraphContainer.cshtml:line 279
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 3 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 4 @using Dynamicweb.Frontend 5 6 @helper RenderContent(ItemViewModel item, bool isCarousel = false) 7 { 8 string cardClass = item.GetBoolean("ShowAsCard") ? "paragraph-card" : "grid__cell"; 9 cardClass = Pageview.Device.ToString() != "Tablet" ? cardClass : "grid__cell"; 10 11 string contentPosition = item.GetList("ContentPositions").SelectedValue; 12 13 switch (contentPosition) { 14 case "title-top": 15 <div class="@cardClass"> 16 @RenderHeading(item) 17 @RenderImage(item, isCarousel) 18 @RenderText(item) 19 @RenderModule(item) 20 </div> 21 @RenderButton(item) 22 break; 23 case "image-left": 24 <div class="grid"> 25 <div class="grid__col-3"> 26 @RenderImage(item, isCarousel) 27 </div> 28 <div class="grid__col-9"> 29 @RenderHeading(item) 30 @RenderText(item) 31 @RenderModule(item) 32 @RenderButton(item) 33 </div> 34 </div> 35 break; 36 case "image-right": 37 <div class="grid"> 38 <div class="grid__col-9"> 39 @RenderHeading(item) 40 @RenderText(item) 41 @RenderModule(item) 42 @RenderButton(item) 43 </div> 44 <div class="grid__col-3"> 45 @RenderImage(item, isCarousel) 46 </div> 47 </div> 48 break; 49 case "all-centered": 50 <div class="u-ta-center @cardClass"> 51 @RenderImage(item, isCarousel) 52 @RenderHeading(item) 53 @RenderText(item) 54 @RenderModule(item) 55 </div> 56 @RenderButton(item) 57 break; 58 case "middle-center": 59 case "middle-left": 60 <div class="u-middle @(contentPosition == "middle-center" ? "u-ta-center" : "")"> 61 <div class="@cardClass"> 62 @RenderImage(item, isCarousel) 63 @RenderHeading(item) 64 @RenderText(item) 65 @RenderModule(item) 66 </div> 67 @RenderButton(item) 68 </div> 69 break; 70 //for "image-top" and "image-centered" 71 default: 72 <div class="@cardClass"> 73 @RenderImage(item, isCarousel) 74 @RenderHeading(item) 75 @RenderText(item) 76 @RenderModule(item) 77 </div> 78 @RenderButton(item) 79 break; 80 } 81 } 82 83 @helper RenderHeading(ItemViewModel item) 84 { 85 if (item.GetBoolean("ShowTitle") != false && !string.IsNullOrEmpty(item.GetString("Title"))) 86 { 87 string headerMargin = item.GetString("Text") != "" && item.GetString("Image") != "" ? "u-margin-bottom" : ""; 88 headerMargin = Model.GetModuleOutput() == "" ? headerMargin : "u-margin-bottom"; 89 string url = item.GetString("Link"); 90 91 if (!String.IsNullOrEmpty(url)) 92 { 93 <a href="@url"> 94 <h2 class="u-no-margin @headerMargin">@item.GetString("Title")</h2> 95 </a> 96 } 97 else 98 { 99 <h2 class="u-no-margin @headerMargin">@item.GetString("Title")</h2> 100 } 101 } 102 } 103 104 @helper RenderButton(ItemViewModel item) 105 { 106 string url = item.GetString("Link"); 107 string linkText = item.GetString("LinkText"); 108 string secondaryUrl = item.GetString("SecondaryLink"); 109 string secondaryLinkText = item.GetString("SecondaryLinkText"); 110 string footerCssClass = ""; 111 string cardFooterClass = item.GetBoolean("ShowAsCard") ? "paragraph-card-footer" : "grid__cell-footer"; 112 cardFooterClass = Pageview.Device.ToString() != "Tablet" ? cardFooterClass : ""; 113 114 if (item.GetList("ContentPositions").SelectedValue == "all-centered" || item.GetList("ContentPositions").SelectedValue == "middle-center") { 115 footerCssClass = "grid--justify-center"; 116 } 117 118 if ((!string.IsNullOrEmpty(url) && !string.IsNullOrEmpty(linkText)) || (!string.IsNullOrEmpty(secondaryUrl) && !string.IsNullOrEmpty(secondaryLinkText))) 119 { 120 <div class="grid__cell @footerCssClass @cardFooterClass"> 121 <div class="u-margin-top u-margin-bottom"> 122 123 @if (!string.IsNullOrEmpty(url) && !string.IsNullOrEmpty(linkText)) 124 { 125 string buttonStyle = !String.IsNullOrEmpty(item.GetList("ButtonDesign").SelectedValue) ? item.GetList("ButtonDesign").SelectedValue : "primary"; 126 if (url.Contains("http")) 127 { 128 <a href="@url" class="btn btn--@buttonStyle dw-mod" target="_blank">@linkText</a> 129 } 130 else if (url.Contains("/")) 131 { 132 <a href="@url" class="btn btn--@buttonStyle dw-mod" download>@linkText</a> 133 } 134 else 135 { 136 <a href="@url" class="btn btn--@buttonStyle dw-mod">@linkText</a> 137 } 138 } 139 140 @if (!string.IsNullOrEmpty(secondaryUrl) && !string.IsNullOrEmpty(secondaryLinkText)) 141 { 142 string secondaryButtonStyle = !String.IsNullOrEmpty(item.GetList("SecondaryButtonDesign").SelectedValue) ? item.GetList("SecondaryButtonDesign").SelectedValue : "primary"; 143 if (secondaryUrl.Contains("http")) 144 { 145 <a href="@secondaryUrl" class="btn btn--@secondaryButtonStyle dw-mod" target="_blank">@secondaryLinkText</a> 146 } 147 else if (secondaryUrl.Contains("/")) 148 { 149 <a href="@secondaryUrl" class="btn btn--@secondaryButtonStyle dw-mod" download>@secondaryLinkText</a> 150 } 151 else 152 { 153 <a href="@secondaryUrl" class="btn btn--@secondaryButtonStyle dw-mod">@secondaryLinkText</a> 154 } 155 } 156 </div> 157 </div> 158 } else { 159 <div class="grid__cell-footer @footerCssClass @cardFooterClass"></div> 160 } 161 } 162 163 @helper RenderText(ItemViewModel item) 164 { 165 if (!string.IsNullOrWhiteSpace(item.GetString("Text"))) 166 { 167 @item.GetString("Text") 168 } 169 } 170 171 @helper RenderModule(ItemViewModel item) 172 { 173 @Model.GetModuleOutput(); 174 } 175 176 @helper RenderImage(ItemViewModel item, bool isCarousel) 177 { 178 if (!string.IsNullOrEmpty(item.GetString("Image")) && item.GetList("ImageStyle").SelectedValue != "background") 179 { 180 string url = item.GetString("Link"); 181 182 <div class="u-margin-bottom"> 183 @if (!String.IsNullOrEmpty(url)) 184 { 185 <a href="@url"> 186 @RenderImageElement(item, isCarousel) 187 </a> 188 } 189 else 190 { 191 @RenderImageElement(item, isCarousel) 192 } 193 </div> 194 } 195 } 196 197 @helper RenderImageElement(ItemViewModel item, bool isCarousel) 198 { 199 string image = item.GetFile("Image") != null ? item.GetFile("Image").PathUrlEncoded : ""; 200 string imageFilterColor = item.GetList("ColorForTheFilter").SelectedValue != null ? item.GetList("ColorForTheFilter").SelectedValue : "none"; 201 string imageFilterPrimary = item.GetList("ImageFilterPrimary").SelectedValue != null ? item.GetList("ImageFilterPrimary").SelectedValue : "none"; 202 string imageFilterSecondary = item.GetList("ImageFilterSecondary").SelectedValue != null ? item.GetList("ImageFilterSecondary").SelectedValue : "none"; 203 string imageFilterBall = item.GetList("ImageStyle").SelectedValue == "ball" ? "image-filter--ball" : ""; 204 string altText = item.GetString("Title"); 205 string imgCssClass = ""; 206 string imgCrop = !string.IsNullOrEmpty(item.GetList("ImageCrop").SelectedValue) ? item.GetList("ImageCrop").SelectedValue : "5"; 207 bool fillCanvas = item.GetBoolean("FillCanvas") != null ? item.GetBoolean("FillCanvas") : true; 208 string fillCanvasString = fillCanvas == true ? "&amp;FillCanvas=true" : ""; 209 string imageBoxWidth = "480"; 210 int imageWidth = Int32.Parse(item.GetList("Width").SelectedValue) < 8 ? 496 : 992; 211 int imageHeight = Int32.Parse(item.GetList("Width").SelectedValue) < 8 ? 380 : 760; 212 string placeHolderImage = "/Files/Images/placeholder.gif"; 213 string colorOnHover = item.GetBoolean("ColorOnHover") ? "image-color-hover" : ""; 214 215 if (imageFilterPrimary == "colorize") { 216 imageFilterPrimary = imageFilterColor; 217 } 218 219 if (item.GetList("ContentPositions").SelectedValue == "image-centered" || item.GetList("ContentPositions").SelectedValue == "all-centered" || item.GetList("ContentPositions").SelectedValue == "middle-center") 220 { 221 imgCssClass = "grid__cell-img--centered"; 222 } 223 224 <div class="image image-filter image-filter--@imageFilterPrimary @imageFilterBall @colorOnHover dw-mod js-main-image-filter"> 225 <div class="image-filter image-filter--@imageFilterSecondary @imageFilterBall dw-mod"> 226 @if (item.GetList("ImageStyle").SelectedValue == "ball") 227 { 228 imgCssClass += " grid__cell-img--ball"; 229 if (!isCarousel) 230 { 231 <img class="grid__cell-img @imgCssClass b-lazy" src="@placeHolderImage" data-src="/Admin/Public/GetImage.ashx?width=@imageBoxWidth&amp;height=@imageBoxWidth&amp;crop=@imgCrop&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image=@image" alt="@altText"> 232 } 233 else 234 { 235 <img class="grid__cell-img @imgCssClass" src="/Admin/Public/GetImage.ashx?width=@imageBoxWidth&amp;height=@imageBoxWidth&amp;crop=@imgCrop&amp;Compression=75&amp;DoNotUpscale=true&amp;image=@image" alt="@altText"> 236 } 237 } 238 else 239 { 240 if (!image.Contains(".mp4")) { 241 string largeImage = "/Admin/Public/GetImage.ashx?width=" + imageWidth + "&amp;height=" + imageHeight + "&amp;crop=" + imgCrop + "&amp;Compression=75" + fillCanvasString + "&amp;DoNotUpscale=true&amp;image=" + image; 242 string smallImage = "/Admin/Public/GetImage.ashx?width=" + imageWidth + "&amp;height=" + imageHeight + "&amp;crop=" + imgCrop + "&amp;Compression=75" + fillCanvasString+ "&amp;DoNotUpscale=true&amp;image=" + image; 243 244 if (!isCarousel) 245 { 246 <img class="@imgCssClass b-lazy" src="@placeHolderImage" data-src="@largeImage" data-src-small="@smallImage" alt="@altText"> 247 } 248 else 249 { 250 <img class="@imgCssClass" src="@largeImage" alt="@altText"> 251 } 252 } 253 else 254 { 255 <div class="video"> 256 <video width="320" height="240" autoplay muted loop> 257 <source src="@image" type="video/mp4"> 258 Your browser does not support the video tag. 259 </video> 260 </div> 261 } 262 } 263 </div> 264 </div> 265 } 266 267 @{ 268 string fontColor = !string.IsNullOrEmpty(Model.Item.GetList("FontColor").SelectedValue) ? "u-" + Model.Item.GetList("FontColor").SelectedValue : ""; 269 string backgroundColor = !string.IsNullOrEmpty(Model.Item.GetList("BackgroundColor").SelectedValue) ? "u-" + Model.Item.GetList("BackgroundColor").SelectedValue + "--bg" : ""; 270 string paragraphContainerClasses = ""; 271 string containerClasses = string.IsNullOrEmpty(Model.Item.GetList("Width").SelectedValue) ? "center-container dw-mod" : ""; 272 string gridClasses = "grid"; 273 string spacingSize = Model.Item.GetList("Spacing") != null && Model.Item.GetList("Spacing").SelectedValue != "" ? Model.Item.GetList("Spacing").SelectedValue : "lg"; 274 275 string placeHolderImage = "/Files/Images/placeholder.gif"; 276 277 int columnCount = 0; 278 int paragraphCount = 0; 279 int totalParagraphs = Model.Item.GetItems("Paragraph").Count; 280 int totalSlides = 1; 281 282 if (Model.Item.GetList("Width").SelectedValue == "center") 283 { 284 containerClasses = fontColor + " " + backgroundColor + " center-container"; 285 containerClasses += " paragraph-container"; 286 } 287 288 if (Model.Item.GetList("Width").SelectedValue == "full") 289 { 290 containerClasses = fontColor + " " + backgroundColor; 291 } 292 293 if (Model.Item.GetList("Width").SelectedValue == "combi") 294 { 295 paragraphContainerClasses = @fontColor + " " + @backgroundColor; 296 containerClasses = "center-container paragraph-container"; 297 } 298 299 if (spacingSize == "none") 300 { 301 containerClasses += " paragraph-container--spacing-none"; 302 } 303 304 string containerBackgroundImage = ""; 305 string containerBackgroundImageSmall = ""; 306 string containerBackgroundImageFilterColor = Model.Item.GetList("ColorForTheFilter").SelectedValue != null ? Model.Item.GetList("ColorForTheFilter").SelectedValue : "none"; 307 string containerBackgroundImageFilterPrimary = Model.Item.GetList("ImageFilterPrimary").SelectedValue != null ? Model.Item.GetList("ImageFilterPrimary").SelectedValue : "none"; 308 string containerBackgroundImageFilterSecondary = Model.Item.GetList("ImageFilterSecondary").SelectedValue != null ? Model.Item.GetList("ImageFilterSecondary").SelectedValue : "none"; 309 310 if (containerBackgroundImageFilterPrimary == "colorize") 311 { 312 containerBackgroundImageFilterPrimary = containerBackgroundImageFilterColor; 313 } 314 315 if (Model.Item.GetFile("BackgroundImage") != null) 316 { 317 containerBackgroundImage = "Admin/Public/GetImage.ashx?width=2500&amp;height=1100&amp;crop=0&amp;Compression=85&amp;DoNotUpscale=true&amp;image=" + Model.Item.GetFile("BackgroundImage").PathUrlEncoded; 318 containerBackgroundImageSmall = "Admin/Public/GetImage.ashx?width=1000&amp;height=850&amp;crop=0&amp;&amp;FillCanvas=TrueCompression=85&amp;DoNotUpscale=true&amp;image=" + Model.Item.GetFile("BackgroundImage").PathUrlEncoded; 319 } 320 else if (string.IsNullOrEmpty(Model.Item.GetList("BackgroundColor").SelectedValue)) 321 { 322 backgroundColor = "u-color-light--bg"; 323 gridClasses += " "; 324 } 325 326 if (Model.Item.GetBoolean("SeperationLineAfter") && Model.Item.GetList("Width").SelectedValue != "center") 327 { 328 paragraphContainerClasses += " multiple-paragraphs-container--seperation-line-after"; 329 } 330 else if (Model.Item.GetBoolean("SeperationLineAfter")) 331 { 332 containerClasses += " multiple-paragraphs-container--seperation-line-after"; 333 } 334 335 // add custom height to the carousel 336 int customSliderHeight = Model.Item.GetInt32("CustomSliderHeight"); 337 int customMobileSliderHeight = Model.Item.GetInt32("CustomMobileSliderHeight"); 338 string heightCss = "height:"; 339 340 if (customSliderHeight != 0 && Pageview.Device.ToString() != "Mobile") 341 { 342 heightCss += customSliderHeight.ToString() + "px;"; 343 } 344 else if (customMobileSliderHeight != 0) { 345 heightCss += customMobileSliderHeight.ToString() + "px;"; 346 } 347 else 348 { 349 heightCss = String.Empty; 350 gridClasses += !string.IsNullOrEmpty(Model.Item.GetList("Height").SelectedValue) ? " paragraph-container--height-" + Model.Item.GetList("Height").SelectedValue : ""; 351 } 352 353 354 var isVisibleForMobile = false; 355 foreach (var paragraph in Model.Item.GetItems("Paragraph")) 356 { 357 if (paragraph.GetList("WidthMobile").SelectedValue != "hide") 358 { 359 isVisibleForMobile = true; 360 break; 361 } 362 } 363 if (Model.Item.GetItems("Paragraph").Count == 0) 364 { 365 isVisibleForMobile = true; 366 } 367 gridClasses += !isVisibleForMobile ? " u-hidden-xs u-hidden-xxs" : ""; 368 369 bool makeCentered = Model.Item.GetString("MakeParagraphsCenterAligned") != null ? Model.Item.GetBoolean("MakeParagraphsCenterAligned") : false; 370 gridClasses += makeCentered ? " grid--justify-center" : ""; 371 372 string containerId = "Paragraph_" + Model.ID; 373 string carouselContainerClass = ""; 374 string carouselSlideClass = ""; 375 376 //Set as carousel 377 if (Model.Item.GetBoolean("EnableCarousel")) 378 { 379 containerClasses += " carousel js-carousel-container carousel__paragraph-container dw-mod"; 380 carouselContainerClass += "carousel__container dw-mod"; 381 carouselSlideClass += "carousel__slide dw-mod"; 382 containerId = "Carousel_" + Model.ID; 383 } 384 385 int sliderCount = 0; 386 387 } 388 389 <div class="grid__col-md-12 grid__col--bleed"> 390 <section class="paragraph-container--full-width multiple-paragraphs-container @paragraphContainerClasses multiple-paragraphs-container--spacing-@spacingSize dw-mod"> 391 @if (Model.Item.GetFile("BackgroundImage") != null) 392 { 393 <div class="background-image image-filter image-filter--@containerBackgroundImageFilterPrimary dw-mod"> 394 <div class="background-image__wrapper image-filter image-filter--@containerBackgroundImageFilterSecondary dw-mod"> 395 <img class="background-image__cover dw-mod b-lazy" src="@placeHolderImage" data-src="@containerBackgroundImage" data-src-small="@containerBackgroundImageSmall"> 396 </div> 397 </div> 398 } 399 400 <div class="@containerClasses dw-mod" id="@containerId" > 401 <div class="@carouselContainerClass"> 402 <div class="@carouselSlideClass"> 403 <div class="@gridClasses dw-mod"> 404 @foreach (var paragraph in Model.Item.GetItems("Paragraph")) 405 { 406 int columnWidth = Pageview.Device.ToString() != "Mobile" ? Int32.Parse(paragraph.GetList("Width").SelectedValue) : 12; 407 408 if (columnCount < 12) 409 { 410 columnCount += columnWidth; 411 } 412 else 413 { 414 columnCount = columnWidth; 415 } 416 417 string columnCssClasses = "grid__col-sm-" + columnWidth + (paragraph.GetList("WidthMobile").SelectedValue != "hide" ? " grid__col-xs-" + paragraph.GetList("WidthMobile").SelectedValue : " u-hidden-xs u-hidden-xxs"); 418 string backgroundImage = ""; 419 string backgroundImageSmall = ""; 420 string imageStyle = paragraph.GetList("ImageStyle").SelectedValue; 421 string backgroundImageFilterColor = paragraph.GetList("ColorForTheFilter").SelectedValue != null ? paragraph.GetList("ColorForTheFilter").SelectedValue : "none"; 422 string backgroundImageFilterPrimary = paragraph.GetList("ImageFilterPrimary").SelectedValue != null ? paragraph.GetList("ImageFilterPrimary").SelectedValue : "none"; 423 string backgroundImageFilterSecondary = paragraph.GetList("ImageFilterSecondary").SelectedValue != null ? paragraph.GetList("ImageFilterSecondary").SelectedValue : "none"; 424 425 if (imageStyle == "background" && paragraph.GetFile("Image") != null) 426 { 427 columnCssClasses += " grid__col--bg"; 428 string cropMode = paragraph.GetList("ImageCrop").SelectedValue != null ? paragraph.GetList("ImageCrop").SelectedValue : "0"; 429 backgroundImage = "/Admin/Public/GetImage.ashx?width=2500&amp;height=1100&amp;crop=" + cropMode + "&amp;Compression=85&amp;DoNotUpscale=true&amp;image=" + paragraph.GetFile("Image").PathUrlEncoded; 430 backgroundImageSmall = "/Admin/Public/GetImage.ashx?width=1000&amp;height=850&amp;crop=" + cropMode + "&amp;Compression=85&amp;DoNotUpscale=true&amp;image=" + paragraph.GetFile("Image").PathUrlEncoded; 431 } 432 433 if (backgroundImageFilterPrimary == "colorize") 434 { 435 backgroundImageFilterPrimary = backgroundImageFilterColor; 436 } 437 438 string paragraphContainerPadding = paragraph.GetBoolean("HidePadding") ? "paragraph-container--no-padding" : ""; 439 440 <div class="@columnCssClasses paragraph-container @paragraphContainerPadding dw-mod" style="@heightCss"> 441 @if (imageStyle == "background" && paragraph.GetFile("Image") != null) 442 { 443 <div class="background-image image-filter image-filter--@backgroundImageFilterPrimary dw-mod"> 444 <div class="background-image__wrapper image-filter image-filter--@backgroundImageFilterSecondary dw-mod"> 445 @if (!backgroundImage.Contains(".mp4")) 446 { 447 <img class="background-image__cover dw-mod b-lazy" style="@heightCss" src="@placeHolderImage" data-src="@backgroundImage" data-src-small="@backgroundImageSmall"> 448 } 449 else 450 { 451 <video width="320" height="240" class="background-image__cover dw-mod" autoplay muted loop> 452 <source src="@paragraph.GetFile("Image")" type="video/mp4"> 453 Your browser does not support the video tag. 454 </video> 455 } 456 </div> 457 </div> 458 } 459 @if (Model.Item.GetBoolean("EnableCarousel") && Pageview.Device.ToString() == "Mobile") 460 { 461 <div class="carousel-rte-mobile"> 462 @RenderContent(paragraph, Model.Item.GetBoolean("EnableCarousel")) 463 </div> 464 } 465 else 466 { 467 @RenderContent(paragraph, Model.Item.GetBoolean("EnableCarousel")) 468 } 469 </div> 470 471 paragraphCount++; 472 if (paragraphCount != totalParagraphs) 473 { 474 string breakMarkup = string.Empty; 475 if (columnCount == 12) 476 { 477 breakMarkup = "</div></div><div class=\"" + carouselSlideClass + "\"><div class=\"" + gridClasses + "\">"; 478 totalSlides++; 479 } 480 @breakMarkup 481 } 482 } 483 </div> 484 </div> 485 </div> 486 487 @* disable carousel arrows *@ 488 489 @if (Model.Item.GetBoolean("EnableCarousel") && totalSlides > 1) 490 { 491 // carousel arrows 492 @*<div class="js-carousel-data" data-carousel-slide-time="@Model.Item.GetString("SlideTime")" data-slides-in-view="1"> 493 <div class="carousel-prev-btn dw-mod" onclick="Carousel.GetPreviousSlide('@containerId')"></div> 494 <div class="carousel-next-btn dw-mod" onclick="Carousel.GetNextSlide('@containerId')"></div> 495 </div>*@ 496 497 <div class="carousel-indicator-container-@containerId js-carousel-data" data-carousel-slide-time="@Model.Item.GetString("SlideTime")" data-slides-in-view="1" data-direction="horizontal"> 498 @foreach (var item in Model.Item.GetItems("Paragraph")) 499 { 500 if (sliderCount == 0) 501 { 502 <div class="carousel-bullet-@containerId active" onclick="Carousel.GoToSlide('@containerId','@sliderCount'); handleCarouselIndicators('@containerId');"></div> 503 sliderCount++; 504 } 505 else 506 { 507 <div class="carousel-bullet-@containerId" onclick="Carousel.GoToSlide('@containerId','@sliderCount'); handleCarouselIndicators('@containerId');"></div> 508 sliderCount++; 509 } 510 } 511 </div> 512 513 } 514 515 </div> 516 </section> 517 </div>