<div class="wrap-block">
<div class="block">
<div class="block__item"></div>
<div class="block__item"></div>
<div class="block__item"></div>
<div class="block__item"></div>
<div class="block__item"></div>
<div class="block__item"></div>
</div>
<span class="block__button">Next</span>
</div>
.wrap-block {
width:754px;
margin:0 auto;
position:relative;
}
<a href="#" id-page="first-panel3" class="last-post-title">...text</a>
$('.last-posts_list a').click(function () {
var page = "#"+$(this).attr("id-page");
$(page).addClass("active");
return false;
});
$this->widget('zii.widgets.CListView', array(
'id' => 'ajaxitem',
'dataProvider' => $dataProvider,
'itemView' => 'application.views.front._item',
'ajaxUpdate' => false,
'emptyText' => '<div class="main-content">Товаров не добавлено</div>',
'template' => '{items}{pager}',
'itemsTagName' => 'ul id="og-grid"',
'htmlOptions' => array('class'=> 'ajaxitem'),
'itemsCssClass' => 'ajaxitem og-grid',
'pager' => array(
'class' => 'ext.infiniteScroll.IasPager',
'rowSelector' => 'li',
'listViewId' => 'ajaxitem',
'header' => '',
'loaderText' => '<div style=" clear: both;"><img src="../images/admin/loader.gif" width="46" height="46"/></div>',
'options' => array('history' => false, 'triggerPageTreshold' => 666, 'trigger' => '',
'onRenderComplete' => new CJavaScriptExpression('function () {
$.getScript("/js/grid.js", function(){
Grid.addItems(???????????);
Grid.init();
});
}'),
),
),
));
$this->widget('zii.widgets.CListView', array(
......
pager' => array(
.....
'onRenderComplete' => new CJavaScriptExpression('function () {
$("a[rel=gallery]").fancybox();
}'
)));