diff options
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; } |