Try this.
Create a custom plugin with only layer.php file. Plugin will have these files:
- qa-plugin.php
- my-layer.php
The qa-plugin.php should look like this:
<?php
if(!defined('QA_VERSION'))
{
header('Location: ../../');
exit;
}
// layer
qa_register_plugin_layer('my-layer.php', 'my layer');
The my-layer.php file should look like this:
<?php
class qa_html_theme_layer extends qa_html_theme_base
{
public function title() |
|
{ |
|
$q_view = @$this->content['q_view']; |
|
// link title where appropriate |
|
$url = isset($q_view['url']) ? $q_view['url'] : false; |
|
if (isset($this->content['title'])) {
if($this->template == 'question' ) {
$this->output($this->content['title']);
} else {
$this->output( |
|
$url ? '<a href="' . $url . '">' : '', |
|
$this->content['title'], |
|
$url ? '</a>' : '' |
|
); | } |
|
|
|
} |
|
|
|
// add closed note in title |
|
if (!empty($q_view['closed']['state'])) |
|
$this->output(' [' . $q_view['closed']['state'] . ']'); |
|
} |
}
This will be a custom plugin that will do your plan.
Let me know if it works.