Beispiel #1
0
?>

                        <?php 
echo app\views\widget\Listx::widget(['title' => 'bài viết mới hơn', 'data' => $model->relanew(Yii::$app->request->get('id'), 10, 0)]);
?>

                        

                    </div>
                     
                  
                    
                </div>


                <?php 
echo $this->render('_widget/_bigads');
?>
                <?php 
echo app\views\widget\Small2::widget(['title' => 'Tin Nổi Bật', 'data' => $model->popularfromType(Yii::$app->request->get('id'), 10, 0)]);
?>

                <?php 
echo $this->render('_widget/_smallads');
?>
                
                <?php 
echo $this->render('_widget/_fb');
?>

                <!-- /Main Content -->
Beispiel #2
0
                        
                        <?php 
$maxpage = app\models\News::find()->where(['type_id' => Yii::$app->request->get('id')])->count() / 20;
echo app\views\widget\Paging::widget(['maxpage' => $maxpage]);
?>
                    	
                    </div>
                    <!-- /Popular News -->
               
                </div>



                    <?php 
echo $this->render('_widget/_bigads');
?>
                    <?php 
echo app\views\widget\Small2::widget(['title' => 'Popular', 'data' => $popular]);
?>


                    <?php 
echo $this->render('_widget/_category');
?>
                    <?php 
echo $this->render('_widget/_fb');
?>
                    <?php 
echo $this->render('_widget/_smallads');
?>
                <!-- /Main Content -->
Beispiel #3
0
<div class="main-content">
                    
                    <!-- Popular News -->
                    <div class="column-two-third">

                        <?php 
echo app\views\widget\Listx::widget(['title' => 'Tin mới nhất', 'data' => $nnews]);
?>

                        <?php 
$maxpage = News::find(['id'])->count() / 20;
echo app\views\widget\Paging::widget(['maxpage' => $maxpage]);
?>
                        
                    </div>               
                    
                </div>
                <?php 
echo $this->render('_widget/_bigads');
?>
                <?php 
echo app\views\widget\Small2::widget(['title' => 'Tin Nổi Bật', 'data' => $news->popular(10, 0)]);
?>
                <?php 
echo $this->render('_widget/_fb');
?>
                <?php 
echo $this->render('_widget/_smallads');
?>
                <?php 
echo $this->render('_widget/_video');