readed == 0) {print '';} switch ($notification->type) { case Notifications::typePointConfirmed: print strftime('%d %b %H:%M', $notification->date).' — Ваша точка "'.$notification->RefPoint->name.'" прошла модерацию.'; break; case Notifications::typePointDeleted: print strftime('%d %b %H:%M', $notification->date).' — Ваша точка "'.$notification->RefPoint->name.'" ОТКЛОНЕНА модератором.'; break; case Notifications::typeNewCommentPoint: $comment = $notification->RefComment; $point = Point::model()->getByPK($comment->parentId); print strftime('%d %b %H:%M', $notification->date).' — Новый комментарий к точке "'.$point->name.'".'; break; case Notifications::typeNewCommentArticle: $comment = $notification->RefComment; $article = Article::model()->getByPK($comment->parentId); print strftime('%d %b %H:%M', $notification->date).' — Новый комментарий к статье "'.$article->title.'".'; break; case Notifications::typeReply: $comment = $notification->RefComment; print strftime('%d %b %H:%M', $notification->date).' — '.$comment->RefUser->nick.' ответил(-а) на ваш комментарий.'; break; default: break; } if ($notification->readed == 0) {print '';}