Yii Masonry Style v1.0 [color="#8b0000"]beta[/color] [ Yii Extension ]
[b]
[/b]Hello guys,
[size=“2”]Yii Masonry Style it’s new [/size][size=“2”]extension[/size][size=“2”] for yii to view posts or photos like [/size][size=“2”]pinterest… [/size][size=“2”]It’s my first extension for yii so please try it and give me your feedback.[/size]
Features
- infinity scrolling.
- Default theme.
Usage
[font="Verdana, Arial, Helvetica, sans-serif"][size="2"]Just copy this code for your index page.[/size][/font]
$this->widget('zii.widgets.CListView', array(
'id' => 'postsIndex',
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
'itemsCssClass'=>'yiiMasonry-200', // Optional: Just theme, to use this theme you have to keep rowSelector => '.view', change this line if you have custom theme.
'template' => '{items} {pager}',
'pager' => array(
'class' => 'ext.yiiMasonry.yiiMasonry',
'rowSelector'=>'.view', // row class
'listViewId' => 'postsIndex', // Container id
'header' => '',)
));
Ex: Websites used Yii Masonry Style
[size="3"]Download[/size]
https://github.com/abudayah/yiiMasonry
[color="#008000"]Please report issues and give me feedback[/color]
[color="#333333"][font="Helvetica, arial, freesans, clean, sans-serif"][size="4"]4116