summaryrefslogtreecommitdiff
path: root/core/libraries/Theme_View.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries/Theme_View.php')
-rw-r--r--core/libraries/Theme_View.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php
index 37629f3d..8031b9af 100644
--- a/core/libraries/Theme_View.php
+++ b/core/libraries/Theme_View.php
@@ -79,6 +79,16 @@ class Theme_View_Core extends View {
$menu = new Menu(true);
core_menu::album($menu, $this);
+ foreach (module::installed() as $module) {
+ if ($module->name == "core") {
+ continue;
+ }
+ $class = "{$module->name}_menu";
+ if (method_exists($class, "album")) {
+ call_user_func_array(array($class, "album"), array(&$menu, $this));
+ }
+ }
+
print $menu;
}
@@ -86,6 +96,16 @@ class Theme_View_Core extends View {
$menu = new Menu(true);
core_menu::photo($menu, $this);
+ foreach (module::installed() as $module) {
+ if ($module->name == "core") {
+ continue;
+ }
+ $class = "{$module->name}_menu";
+ if (method_exists($class, "photo")) {
+ call_user_func_array(array($class, "photo"), array(&$menu, $this));
+ }
+ }
+
print $menu;
}