|
|
@ -61,7 +61,6 @@ class Carousel extends Widget |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public $items = []; |
|
|
|
public $items = []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Initializes the widget. |
|
|
|
* Initializes the widget. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -98,6 +97,7 @@ class Carousel extends Widget |
|
|
|
} |
|
|
|
} |
|
|
|
$indicators[] = Html::tag('li', '', $options); |
|
|
|
$indicators[] = Html::tag('li', '', $options); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Html::tag('ol', implode("\n", $indicators), ['class' => 'carousel-indicators']); |
|
|
|
return Html::tag('ol', implode("\n", $indicators), ['class' => 'carousel-indicators']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -111,6 +111,7 @@ class Carousel extends Widget |
|
|
|
for ($i = 0, $count = count($this->items); $i < $count; $i++) { |
|
|
|
for ($i = 0, $count = count($this->items); $i < $count; $i++) { |
|
|
|
$items[] = $this->renderItem($this->items[$i], $i); |
|
|
|
$items[] = $this->renderItem($this->items[$i], $i); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Html::tag('div', implode("\n", $items), ['class' => 'carousel-inner']); |
|
|
|
return Html::tag('div', implode("\n", $items), ['class' => 'carousel-inner']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|