template == 'question' && qa_opt(qa_code_prettify_admin::PLUGIN_ENABLED)) {
$selected_theme = qa_opt(qa_code_prettify_admin::CODE_THEME);
if (!$selected_theme ) {
$selected_theme = "github.css" ;
}
$root_theme_url = qa_opt('site_url').'qa-plugin/'.AMI_CODE_PRETTYFY_DIR_NAME.'/assets/css/' ;
$theme_url = $root_theme_url . $selected_theme ;
$this->output('');
$this->output('');
}
}
function head_script()
{
if ($this->template == 'question' && qa_opt(qa_code_prettify_admin::PLUGIN_ENABLED)) {
$js_url = qa_opt('site_url').'qa-plugin/'.AMI_CODE_PRETTYFY_DIR_NAME.'/assets/js/prettify.js' ;
if (!isset($this->content['script']['prettyfy_script'])) {
$this->content['script']['prettyfy_script'] = '' ;
}
}
qa_html_theme_base::head_script();
}
function body_script()
{
qa_html_theme_base::body_script();
if ($this->template == 'question' && qa_opt(qa_code_prettify_admin::PLUGIN_ENABLED)) {
$this->output(
''
);
}
}
}
/*
Omit PHP closing tag to help avoid accidental output
*/