summaryrefslogtreecommitdiff
path: root/modules/comment/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-04 07:40:37 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-04 07:40:37 +0000
commit625d0785572af319b22a523550145b4dacbd6100 (patch)
tree6c833de5c9129e0728c170887bc1e66830b25262 /modules/comment/helpers
parent9ff452d82a0cdfa88cac320f317cbc72140019e9 (diff)
Extend Theme_View to look in modules for photo and album menus. Move
"view comments" link to the comment menu helper.
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r--modules/comment/helpers/comment_menu.php9
1 files changed, 9 insertions, 0 deletions
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"));
+ }
}