diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2011-07-23 17:00:15 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2011-07-23 17:00:15 +0000 |
| commit | 4fdb50685b9d805cbb4ba1eb3287e4d8191b7838 (patch) | |
| tree | 675d848f80d3d43d14d391fee1fff493f34da1a2 /modules/downloadfullsize/helpers/downloadfullsize_theme.php | |
| parent | 399a4bcbed842240d8768f9a86afce26c5b03888 (diff) | |
Added a new module for downloading a full sized image.
Diffstat (limited to 'modules/downloadfullsize/helpers/downloadfullsize_theme.php')
| -rw-r--r-- | modules/downloadfullsize/helpers/downloadfullsize_theme.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/downloadfullsize/helpers/downloadfullsize_theme.php b/modules/downloadfullsize/helpers/downloadfullsize_theme.php new file mode 100644 index 00000000..547d3549 --- /dev/null +++ b/modules/downloadfullsize/helpers/downloadfullsize_theme.php @@ -0,0 +1,26 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2011 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class downloadfullsize_theme { + static function head($theme) { + if ($theme->item && access::can("view_full", $theme->item)) { + return $theme->css("downloadfullsize_menu.css"); + } + } +} |
