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; if ($comment) { $point = Point::model()->getByPK($comment->parentId); print strftime('%d %b %H:%M', $notification->date).' — Новый комментарий к точке "'.$point->name.'".'; } break; case Notifications::typeNewCommentArticle: $comment = $notification->RefComment; if ($comment) { $article = Article::model()->getByPK($comment->parentId); print strftime('%d %b %H:%M', $notification->date).' — Новый комментарий к статье "'.$article->title.'".'; } break; case Notifications::typeReply: $comment = $notification->RefComment; if ($comment) { print strftime('%d %b %H:%M', $notification->date).' — '.$comment->RefUser->nick.' ответил(-а) на ваш комментарий.'; } break; case Notifications::typePointLike: print strftime('%d %b %H:%M', $notification->date).' — '.$notification->RefFromUser->nick.' нравится ваша точка '.$notification->RefPoint->name.'.'; break; case Notifications::typePointFav: print strftime('%d %b %H:%M', $notification->date).' — '.$notification->RefFromUser->nick.' добавил(-а) вашу точку '.$notification->RefPoint->name.' в избранное.'; break; default: break; } if ($notification->readed == 0) {print '';}