Add a 'closed' class to questions that have been closed

This commit is contained in:
Zach Copley 2011-04-18 13:53:14 -07:00
parent 68f6076831
commit 5721bb146a

View File

@ -299,6 +299,13 @@ class QnAPlugin extends MicroAppPlugin
if ($nli->notice->scope != 0 && $nli->notice->scope != 1) {
$class .= ' limited-scope';
}
$question = QnA_Question::staticGet('uri', $nli->notice->uri);
if (!empty($question->closed)) {
$class .= ' closed';
}
$nli->out->elementStart(
'li', array(
'class' => $class,