get('user') . ' ' . $this->t($activity->get('action')) . ' ' . $activity->get('target')); // if the comment has file context lines or attachments, show them. $comment = $event->getParam('comment'); $context = $comment ? $comment->getFileContext() : array('content' => null); $attachments = $event->getParam('attachments'); if (is_array($context['content'])) { echo "\n\n> " . $this->wordWrap(implode("\n> ", $context['content']), 900); } echo "\n\n" . trim($this->wordWrap($activity->get('description'), 900)); echo "\n\n" . $activity->getUrl($this->plugin('qualifiedUrl')); if ($attachments && count($attachments) > 0) { echo "\n\n{$this->te('Attachments')}:\n"; foreach($attachments as $attachment) { echo "\t" . $attachment->get('name') . " (" . $this->fileSize($attachment->get('size')) . ") " . $this->qualifiedUrl('attachments', array('attachment'=>$attachment->getId())); } } ?>