From 5721bb146a4c78b34f6fc814c500803cdb306b07 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Mon, 18 Apr 2011 13:53:14 -0700 Subject: [PATCH] Add a 'closed' class to questions that have been closed --- plugins/QnA/QnAPlugin.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/QnA/QnAPlugin.php b/plugins/QnA/QnAPlugin.php index 6841ec9873..ad0541a71c 100644 --- a/plugins/QnA/QnAPlugin.php +++ b/plugins/QnA/QnAPlugin.php @@ -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,