</li> <?php } ?> <?php endforeach; ?> </ol> </div> <!-- บทความ --> <font id="font-22"><i class="fa fa-newspaper-o"></i> บทความใหม่</font> <a href="<?php echo Yii::app()->createUrl('frontend/article') ?>"> <div class="btn btn-default pull-right">ทั้งหมด</div></a> <hr/> <div class="row"> <?php $article_model = new Backend_article(); $article = $article_model->Get_article_limit("6"); $a = 0; foreach ($article as $art): $a++; if (!empty($art['images'])) { $img_art = "uploads/article/" . $art['images']; } else { $img_art = "images/No_image_available.jpg"; } $link = Yii::app()->createUrl('frontend/article/view/id/' . $config->url_encode($art['id'])); ?> <div class="col-sm-6 col-md-4"> <div class="thumbnail"> <img src="<?php echo Yii::app()->baseUrl; ?>/<?php echo $img_art; ?>" class="img-responsive article-img"/> <div class="caption"id="article-box"> <p><?php echo $art['title']; ?></p>