summaryrefslogtreecommitdiff
path: root/modules/exif/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-11 17:42:05 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-11 17:42:05 +0000
commit37a1cca520536ba52b14069b1efb4871d47e44de (patch)
treeff3c4d1bba5c51cd2eb46f2b8c7ba3ac1146deca /modules/exif/controllers
parentd739d1ea46c1b8452469cef26f3cbd4ddbdc3c38 (diff)
Well, exif dialog displays and will show the summary information.
However, The text needs to be scaled or the size of the box needs to be managed such that there is nowrapping. The columns need to be styled for odd and even. And I can't get tabbing to work. If you click on details tab nothing happens and i don't know what I've done wrong. Addition input is appreciated.
Diffstat (limited to 'modules/exif/controllers')
-rw-r--r--modules/exif/controllers/exif.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/exif/controllers/exif.php b/modules/exif/controllers/exif.php
new file mode 100644
index 00000000..ca2e4cab
--- /dev/null
+++ b/modules/exif/controllers/exif.php
@@ -0,0 +1,33 @@
+<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2008 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 Exif_Controller extends Controller {
+ /**
+ * Display the Exif data an existing comment.
+ */
+ public function show($item_id) {
+ $item = ORM::factory("item", $item_id);
+ access::required("view", $item);
+
+ $view = new View("exif_dialog.html");
+ $view->details = array("summary" => exif::get($item), "detail" => exif::get($item, false));
+
+ print $view;
+ }
+}