 <style>
 ul.yiiPager .first, ul.yiiPager .last{display:block;}
 </style>
 <?php

 Yii::app()->setLanguage(isset(Yii::app()->session['lang']) ? Yii::app()->session['lang'] : 'ar'); 
 $lang=Yii::app()->getLanguage();
 
?>

<?php
/* @var $this SiteController */

$this->pageTitle = Yii::app()->name;
?>


<section class="all-news">
    <section class="all-news-section1">
        <div class="container">
           <div class="row">
               <div class="col-sm-offset-1 col-sm-10 col-xs-12 col-xs-offset-0">
                     <div class="page-follower">
                     
                        <h2 class="page-title"><?php echo ($lang=='en'?$category->en_title:$category->title); ?></h2> 
                        <span class="head-title"></span>
                    </div>
               </div>
           </div>
            <div class="row">
			 <div class="col-sm-offset-1 col-sm-10 col-xs-offset-0 col-xs-12 ">
                   <div class="row">
<?php

$this->widget('zii.widgets.CListView', array(
    'dataProvider' => $dataProvider,
   /* 'id' => 'articles-listview',*/
    'itemView' => '//article/_view',
    'template' => '{items}{pager}',
    
              //  'baseScriptUrl'=>'"javascript:change()"', 
    'pager' => array(
        'header' => false,
        'maxButtonCount' => '10',
        'firstPageLabel'=>'<< '.($lang=='ar'?'الاول':'First'),
        'lastPageLabel'=>' >> '.($lang=='ar'?'الاخير':'Last'),
        'prevPageLabel' => '<' ,
        'nextPageLabel' => '>',
       
        
    ),
));?>
     </div>
                </div>
            </div>

             <?php 
             
        //      $criteria=new CDbCriteria;
        //  $criteria -> order = 'id desc';

        // $pages = new CPagination(Article::model() -> count());

        // // Set Page Limit

        // $pages -> pageSize = 5;

        // // Apply page criteria to CDbCriteria

        // $pages -> applyLimit($criteria); 

        // $videos=Article::model()->findAll($criteria);
        //      //$this->widget('CLinkPager',array('pages'=>$pages, "cssFile" => false)); 
			?>
        </div>
    </section>
</section>
