summaryrefslogtreecommitdiff
path: root/core/helpers/core_menu.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-05 18:12:33 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-05 18:12:33 +0000
commit63ca443649094a14a286cf6924ca211bc1b5753c (patch)
treedc65b7fd080cd23fd6812389f25fe5176114fa67 /core/helpers/core_menu.php
parent79dda6a0c28010279952e2e4b45540b0aff63e69 (diff)
Add full size image display. Changes the core menu now checks that the
user has authotization before displaying the view fullsize icon. It probably needs a better icon, (but u make do with what u have or don't have :-) )
Diffstat (limited to 'core/helpers/core_menu.php')
-rw-r--r--core/helpers/core_menu.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/helpers/core_menu.php b/core/helpers/core_menu.php
index 1564e4d4..247fd215 100644
--- a/core/helpers/core_menu.php
+++ b/core/helpers/core_menu.php
@@ -87,12 +87,15 @@ class core_menu_Core {
}
static function photo($menu, $theme) {
- $menu
- ->append(Menu::factory("link")
+ if (access::can("view_full", $theme->item())) {
+ $menu
+ ->append(Menu::factory("link")
->id("fullsize")
->label(t("View full size"))
->url("#")
- ->css_id("gFullsizeLink"))
+ ->css_id("gFullsizeLink"));
+ }
+ $menu
->append(Menu::factory("link")
->id("album")
->label(t("Return to album"))