Commits

Anonymous committed 92383f0 Draft

Fixed missing closed <div> tag if $this->displayPrevAndNext = false;

Comments (0)

Files changed (1)

widgets/TbCarousel.php

         echo CHtml::openTag('div', $this->htmlOptions);
         echo '<div class="carousel-inner">';
         $this->renderItems($this->items);
+        echo '</div>';
 
         if ($this->displayPrevAndNext) {
             echo '<a class="carousel-control left" href="#' . $id . '" data-slide="prev">' . $this->prevLabel . '</a>';
             echo '<a class="carousel-control right" href="#' . $id . '" data-slide="next">' . $this->nextLabel . '</a>';
         }
-        echo '</div></div>';
+        echo "</div>";
 
         /** @var CClientScript $cs */
         $cs = Yii::app()->getClientScript();