diff options
Diffstat (limited to 'modules/gallery')
| -rw-r--r-- | modules/gallery/helpers/gallery_menu.php | 3 | ||||
| -rw-r--r-- | modules/gallery/libraries/Theme_View.php | 10 | 
2 files changed, 10 insertions, 3 deletions
| diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php index a25832fe..1f1e1ce2 100644 --- a/modules/gallery/helpers/gallery_menu.php +++ b/modules/gallery/helpers/gallery_menu.php @@ -94,6 +94,9 @@ class gallery_menu_Core {    static function tag($menu, $theme) {    } +  static function thumb($menu, $theme, $item) { +  } +    static function photo($menu, $theme) {      if (access::can("view_full", $theme->item())) {        $menu->append(Menu::factory("link") diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php index 1746f1d2..167f8a8d 100644 --- a/modules/gallery/libraries/Theme_View.php +++ b/modules/gallery/libraries/Theme_View.php @@ -122,16 +122,20 @@ class Theme_View_Core extends View {      $this->_menu("photo");    } -  private function _menu($type) { +  public function thumb_menu($item) { +    $this->_menu("thumb", $item); +  } + +  private function _menu($type, $item=null) {      $menu = Menu::factory("root"); -    call_user_func_array(array("gallery_menu", $type), array(&$menu, $this)); +    call_user_func_array(array("gallery_menu", $type), array(&$menu, $this, $item));      foreach (module::active() as $module) {        if ($module->name == "gallery") {          continue;        }        $class = "{$module->name}_menu";        if (method_exists($class, $type)) { -        call_user_func_array(array($class, $type), array(&$menu, $this)); +        call_user_func_array(array($class, $type), array(&$menu, $this, $item));        }      } | 
