Skip to content

Instantly share code, notes, and snippets.

@pupi1985
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pupi1985/201e67d640506985b37f to your computer and use it in GitHub Desktop.
Save pupi1985/201e67d640506985b37f to your computer and use it in GitHub Desktop.
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