__('Comments Admin', __FILE__), 'version' => 103, 'summary' => __('Provides an administrative interface for working with comments', __FILE__), 'permanent' => false, 'requires' => 'FieldtypeComments', ); } public function init() { parent::init(); } protected function ___renderItem(Comment $comment, $n) { $statuses = array( Comment::statusApproved => $this->_x('Approved', 'comment-status'), Comment::statusPending => $this->_x('Pending', 'comment-status'), Comment::statusSpam => $this->_x('Spam', 'comment-status'), ); $statusName = ''; $statusOut = ""; $headLabel = $statusName; $num = $n+1; $liID = "CommentsAdminItem{$comment->id}"; if($comment->status == Comment::statusApproved) $liClass = "InputfieldStateCollapsed"; else if($comment->status == Comment::statusSpam) $liClass = "InputfieldStateCollapsed CommentsAdminItemSpam ui-state-error"; else $liClass = ''; if($comment->status == Comment::statusSpam) $note = $this->_("Spam is automatically deleted after the amount of time specified in the field configuration."); else if($comment->status == Comment::statusPending) $note = $this->_("This item is awaiting approval or deletion."); else $note = ''; if($note) $note = "\n\t\t\t
$note
"; $out = "\n\t" . $this->_('There are currently no items to display.') . "
"; $out = "\n