summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/config/config.php3
-rw-r--r--core/libraries/Theme.php1
-rw-r--r--modules/info/helpers/info.php29
-rw-r--r--modules/info/views/info_block.html.php28
-rw-r--r--themes/default/views/sidebar.html.php32
5 files changed, 60 insertions, 33 deletions
diff --git a/core/config/config.php b/core/config/config.php
index 2627a6f4..3f0f24d3 100644
--- a/core/config/config.php
+++ b/core/config/config.php
@@ -125,6 +125,7 @@ $config['modules'] = array
MODPATH . 'carousel',
MODPATH . 'tags',
MODPATH . 'user',
-
+ MODPATH . 'info',
+
THEMEPATH . 'default',
);
diff --git a/core/libraries/Theme.php b/core/libraries/Theme.php
index 59bf5896..bee2512f 100644
--- a/core/libraries/Theme.php
+++ b/core/libraries/Theme.php
@@ -43,6 +43,7 @@ class Theme_Core {
$blocks = array(
'carousel' => carousel::block($this),
'tags' => tags::block($this),
+ 'info' => info::block($this),
);
return $blocks;
}
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>
+
+
diff --git a/themes/default/views/sidebar.html.php b/themes/default/views/sidebar.html.php
index 2c4f34ae..472f9870 100644
--- a/themes/default/views/sidebar.html.php
+++ b/themes/default/views/sidebar.html.php
@@ -6,38 +6,6 @@
<div class="gBlock">
<div class="gBlockHeader">
- <h2>Item Info</h2>
- <a href="#" class="minimize">[-]</a>
- </div>
- <table class="gMetadata gBlockContent">
- <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>
- </div>
-
- <div class="gBlock">
- <div class="gBlockHeader">
<h2>Location</h2>
<a href="#" class="minimize">[-]</a>
</div>