From 625d0785572af319b22a523550145b4dacbd6100 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 4 Jan 2009 07:40:37 +0000 Subject: Extend Theme_View to look in modules for photo and album menus. Move "view comments" link to the comment menu helper. --- modules/comment/helpers/comment_menu.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/comment/helpers/comment_menu.php') diff --git a/modules/comment/helpers/comment_menu.php b/modules/comment/helpers/comment_menu.php index 2cc6d789..6b17f57f 100644 --- a/modules/comment/helpers/comment_menu.php +++ b/modules/comment/helpers/comment_menu.php @@ -25,4 +25,13 @@ class comment_menu_Core { ->label(_("Comments")) ->url("#")); } + + public static function photo($menu, $theme) { + $menu + ->append(Menu::factory("link") + ->id("comments") + ->label(_("View comments on this item")) + ->url("#comments") + ->css_id("gCommentsLink")); + } } -- cgit v1.2.3