public function getSmallThumb()
{
$img = $this->getMainPicPath();
if (file_exists(dirname(F::basePath()) . $img)) {
$img_thumb = F::baseUrl() . ImageHelper::thumb(50, 50, $img, array('method' => 'resize'));
$img_thumb_now = CHtml::image($img_thumb, $this->title);
return CHtml::link($img_thumb_now, array('/item/view', 'id' => $this->item_id), array('title' => $this->title));
} else {
return CHtml::link(CHtml::image($this->getHolderJs('50', '50')), $this->getUrl(), array('title' => $this->title));
}
}