mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Add Theme::module() and module::get()
This commit is contained in:
@@ -48,6 +48,11 @@ class Theme_Core {
|
||||
return $this->pagination->render();
|
||||
}
|
||||
|
||||
public function module($module_name) {
|
||||
$module = module::get($module_name);
|
||||
return $module->loaded ? $module : null;
|
||||
}
|
||||
|
||||
public function in_place_edit() {
|
||||
return new View("in_place_edit.html");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user