diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-05 18:12:33 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-05 18:12:33 +0000 |
commit | 63ca443649094a14a286cf6924ca211bc1b5753c (patch) | |
tree | dc65b7fd080cd23fd6812389f25fe5176114fa67 /core/helpers/core_theme.php | |
parent | 79dda6a0c28010279952e2e4b45540b0aff63e69 (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_theme.php')
-rw-r--r-- | core/helpers/core_theme.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/helpers/core_theme.php b/core/helpers/core_theme.php index 57664b48..2ac7d327 100644 --- a/core/helpers/core_theme.php +++ b/core/helpers/core_theme.php @@ -29,6 +29,16 @@ class core_theme_Core { url::file("core/css/quick.css") . "\" />"; $buf .= html::script("core/js/quick.js"); } + if ($theme->page_type == "photo" && access::can("view_full", $theme->item())) { + $buf .= "<script type=\"text/javascript\" >" . + " var fullsize_detail = { " . + " close: \"" . url::file("core/images/ico-close.png") . "\", " . + " url: \"" . $theme->item()->file_url() . "\", " . + " width: " . $theme->item()->width . ", " . + " height: " . $theme->item()->height . "};" . + "</script>"; + $buf .= html::script("core/js/fullsize.js"); + } return $buf; } |