Commits

Christoffer Niska committed d7f2643

Fix missing close tags in TbCarousel (fixes #141)

  • Participants
  • Parent commits 7ee543e

Comments (0)

Files changed (1)

File widgets/TbCarousel.php

 		echo CHtml::openTag('div', $this->htmlOptions);
 		echo '<div class="carousel-inner">';
 		$this->renderItems($this->items);
+		echo '</div>';
 
 		if ($this->displayPrevAndNext)
 		{
-			echo '</div>';
 			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>';
 		}
 
+		echo '</div>';
+
 		/** @var CClientScript $cs */
 		$cs = Yii::app()->getClientScript();
 		$options = !empty($this->options) ? CJavaScript::encode($this->options) : '';