mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-02 17:59:16 -04:00
Give the theme a chance to handle theme function callbacks as well.
This commit is contained in:
@@ -265,6 +265,13 @@ class Theme_View_Core extends Gallery_View {
|
||||
}
|
||||
}
|
||||
|
||||
$helper_class = theme::$site_theme_name . "_theme";
|
||||
if (method_exists($helper_class, $function)) {
|
||||
$blocks[] = call_user_func_array(
|
||||
array($helper_class, $function),
|
||||
array_merge(array($this), $args));
|
||||
}
|
||||
|
||||
if ($function == "head") {
|
||||
array_unshift($blocks, $this->combine_files($this->css, "css"));
|
||||
array_unshift($blocks, $this->combine_files($this->scripts, "javascript"));
|
||||
|
||||
Reference in New Issue
Block a user