From 8e880b4c4124db457244b5a75975c4f6e4531378 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Nov 2008 05:35:47 +0000 Subject: Item Info block is now off into the info module. Yay! --- core/config/config.php | 3 ++- core/libraries/Theme.php | 1 + modules/info/helpers/info.php | 29 +++++++++++++++++++++++++++++ modules/info/views/info_block.html.php | 28 ++++++++++++++++++++++++++++ themes/default/views/sidebar.html.php | 32 -------------------------------- 5 files changed, 60 insertions(+), 33 deletions(-) create mode 100644 modules/info/helpers/info.php create mode 100644 modules/info/views/info_block.html.php 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 @@ +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 @@ + + + + + + + + + + + + + + + + + + + + + + + +
Title:Christmas 2007
Taken:January 21, 2008
Uploaded:January 27, 2008
Owner:username
+ more \/ +
+ + 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 @@ -4,38 +4,6 @@ -
-
-

Item Info

- [-] -
- - - - - - - - - - - - - - - - - - - - - - - -
-

Location

-- cgit v1.2.3