diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-06-27 16:27:06 -0700 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-27 16:29:09 -0700 | 
| commit | aad0dd357f44c75703e4d6368a1869a83e7ee8a2 (patch) | |
| tree | 6982f067d8d50d12456db1f3ec93f18e411df4d8 /modules/gallery/libraries/Theme_View.php | |
| parent | 2fbc03437ac6f861f597778964cf01737968bb94 (diff) | |
Create a new thumb_menu() and convert Digibug over to use it.
1) Eliminate digibug_album.html
2) Get rid of the $(document).ready() in digibug.js and rename popUp() to
   digibug_popup() then just make direct calls to digibug_popup() in the
   menu urls.
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
| -rw-r--r-- | modules/gallery/libraries/Theme_View.php | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php index 7b2ca840..4612a74b 100644 --- a/modules/gallery/libraries/Theme_View.php +++ b/modules/gallery/libraries/Theme_View.php @@ -121,16 +121,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));        }      }  | 
