Last active
August 29, 2015 14:05
-
-
Save pupi1985/201e67d640506985b37f to your computer and use it in GitHub Desktop.
Answer to question: http://www.question2answer.org/qa/35847/show-closed-question-title-and-below-questions-description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function title() | |
{ | |
if (isset($this->content['title'])) { | |
$this->output($this->content['title']); | |
if (isset($this->content['q_view']['closed']) && !empty($this->content['q_view']['closed'])) | |
$this->output(' [' . qa_lang_html('main/closed') . ']'); | |
} | |
} | |
function q_item_title($q_item) | |
{ | |
$this->output( | |
'<div class="qa-q-item-title">', | |
'<a href="'.$q_item['url'].'">'.$q_item['title'].'</a>', | |
empty($q_item['raw']['closedbyid']) ? '' : ' [' . qa_lang_html('main/closed') . ']', | |
'</div>' | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment