diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 05:35:47 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 05:35:47 +0000 |
commit | 8e880b4c4124db457244b5a75975c4f6e4531378 (patch) | |
tree | 0c2689b1dc84bce8c9ef76bc963fc00ca9fcaf41 /modules/info | |
parent | 3c65b68e1c958190ea6c4ca995019109a6a55865 (diff) |
Item Info block is now off into the info module. Yay!
Diffstat (limited to 'modules/info')
-rw-r--r-- | modules/info/helpers/info.php | 29 | ||||
-rw-r--r-- | modules/info/views/info_block.html.php | 28 |
2 files changed, 57 insertions, 0 deletions
diff --git a/modules/info/helpers/info.php b/modules/info/helpers/info.php new file mode 100644 index 00000000..75ec03d6 --- /dev/null +++ b/modules/info/helpers/info.php @@ -0,0 +1,29 @@ +<?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 Info_Core { + public static function block($theme) { + $block = new Block(); + $block->id = "gMetadata"; + $block->title = _("Item Info"); + $block->content = new View("info_block.html"); + return $block; + } +}
\ No newline at end of file diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php new file mode 100644 index 00000000..eac76b40 --- /dev/null +++ b/modules/info/views/info_block.html.php @@ -0,0 +1,28 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<table class="gMetadata"> + <tbody> + <tr> + <th>Title:</th> + <td>Christmas 2007</td> + </tr> + <tr> + <th>Taken:</th> + <td>January 21, 2008</td> + </tr> + <tr> + <th>Uploaded:</th> + <td>January 27, 2008</td> + </tr> + <tr> + <th>Owner:</th> + <td><a href="#">username</a></td> + </tr> + <tr> + <td colspan="2" class="toggle"> + <a href="#">more \/</a> + </td> + </tr> + </tbody> +</table> + + |