Commit 0aad2f25 by pupi1985 Committed by Scott

Added an initialization function for layers

parent 871bc11c
......@@ -371,6 +371,7 @@
// Load the appropriate theme class and output the page
$themeclass=qa_load_theme_class(qa_get_site_theme(), (substr($qa_template, 0, 7)=='custom-') ? 'custom' : $qa_template, $qa_content, qa_request());
$themeclass->initialize();
header('Content-type: '.$qa_content['content_type']);
......
......@@ -187,6 +187,11 @@ class qa_html_theme_base
}
}
/**
* Pre-output initialization. Immediately called after loading of the module. Content and template variables are
* already setup at this point. Useful to perform layer initialization in the earliest and safest stage possible
*/
public function initialize() { }
public function finish()
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment