<div class="user-status busy pull-left"> <?php if (!empty($item["content_avatar"])) { $img = Yii::app()->BaseUrl . "/uploads/avatars/user/" . $item["content_avatar"]; } else { $img = Yii::app()->theme->baseUrl . "/img/profile_mask2.png"; } ?> <img class="media-object img-circle pull-left" src="<?php echo $img; ?> " alt="user#1" width="40"> </div> <div class="media-body"> <h5 class="media-heading"><?php echo WFunction::limit_chars(strip_tags($item["content"]), 50); ?> </h5> <small class="text-muted" style="font-size: 11px;"><?php echo date('H:i d/m/Y', strtotime($item["content_created_date"])); ?> </small><br/> <small class="text-muted" style="font-size: 11px;">Chủ đề: <?php echo ucfirst($item["title"]); ?> </small> </div> </div> </a> <?php }