Hi everyone,
This is my first post =] . I’ve created an extension and I would like to it be too useful for everyone as it was for me.
Recently I found an extension on a repository and it was the OrbitSlider, however, did not worked to me. So I decided to create my own extension, inspired in the originial site’s extensions. I gave the name NewOrbitSlider.
Well, below is an example of how to use it:
$this->widget('application.extensions.NewOrbitSlider.NewOrbitSlider',
array(
'images'=>array(
array(
'img'=> dirname(Yii::app()->getBaseUrl()).'/images/1.jpg',
'url'=>'url1',
'caption'=> 'text example 1',
),
array(
'img'=> dirname(Yii::app()->getBaseUrl()).'/images/2.jpg',
'url'=>'url2',
'caption'=> 'text example 2',
),
array(
'img'=> dirname(Yii::app()->getBaseUrl()).'/images/3.jpg',
'url'=>'url3',
'caption'=> 'text example 3',
),
),
'slider_options'=>array(
'width'=>'350',
'height'=>'100',
'animation'=>'horizontal-slide',
'bullets'=>true,
),
)
);
Attached is the extension for download.
Hope that helps =].
Best Regards
Jader Bittencourt