Commit 9468580a by Crisu83

Fix missing close tags in TbCarousel (fixes #141)

parent da78e227
...@@ -80,15 +80,16 @@ class TbCarousel extends CWidget ...@@ -80,15 +80,16 @@ class TbCarousel extends CWidget
echo CHtml::openTag('div', $this->htmlOptions); echo CHtml::openTag('div', $this->htmlOptions);
echo '<div class="carousel-inner">'; echo '<div class="carousel-inner">';
$this->renderItems($this->items); $this->renderItems($this->items);
echo '</div>';
if ($this->displayPrevAndNext) if ($this->displayPrevAndNext)
{ {
echo '</div>';
echo '<a class="carousel-control left" href="#'.$id.'" data-slide="prev">'.$this->prevLabel.'</a>'; 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 '<a class="carousel-control right" href="#'.$id.'" data-slide="next">'.$this->nextLabel.'</a>';
echo '</div>';
} }
echo '</div>';
/** @var CClientScript $cs */ /** @var CClientScript $cs */
$cs = Yii::app()->getClientScript(); $cs = Yii::app()->getClientScript();
$options = !empty($this->options) ? CJavaScript::encode($this->options) : ''; $options = !empty($this->options) ? CJavaScript::encode($this->options) : '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment