From a60944e07d77bcc020bf33934055702dae89b875 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Nov 2008 05:28:20 +0000 Subject: Tags are now off in their own module, hooray! --- core/config/config.php | 1 + core/libraries/Theme.php | 5 +++- modules/tags/helpers/tags.php | 29 +++++++++++++++++++ modules/tags/views/tag_cloud.html.php | 44 +++++++++++++++++++++++++++++ themes/default/views/sidebar.html.php | 52 ----------------------------------- 5 files changed, 78 insertions(+), 53 deletions(-) create mode 100644 modules/tags/helpers/tags.php create mode 100644 modules/tags/views/tag_cloud.html.php diff --git a/core/config/config.php b/core/config/config.php index 06c5c8f0..71bd5823 100644 --- a/core/config/config.php +++ b/core/config/config.php @@ -123,6 +123,7 @@ $config['modules'] = array MODPATH . 'forge', MODPATH . 'carousel', + MODPATH . 'tags', THEMEPATH . 'default', ); diff --git a/core/libraries/Theme.php b/core/libraries/Theme.php index 04032b20..59bf5896 100644 --- a/core/libraries/Theme.php +++ b/core/libraries/Theme.php @@ -40,7 +40,10 @@ class Theme_Core { public function blocks() { /** @todo: this needs to be made data-driven */ - $blocks = array('carousel' => carousel::block($this)); + $blocks = array( + 'carousel' => carousel::block($this), + 'tags' => tags::block($this), + ); return $blocks; } } diff --git a/modules/tags/helpers/tags.php b/modules/tags/helpers/tags.php new file mode 100644 index 00000000..ca4f7e35 --- /dev/null +++ b/modules/tags/helpers/tags.php @@ -0,0 +1,29 @@ +id = "gTags"; + $block->title = _("Tags"); + $block->content = new View("tag_cloud.html"); + return $block; + } +} \ No newline at end of file diff --git a/modules/tags/views/tag_cloud.html.php b/modules/tags/views/tag_cloud.html.php new file mode 100644 index 00000000..4e5a93ac --- /dev/null +++ b/modules/tags/views/tag_cloud.html.php @@ -0,0 +1,44 @@ + + + +
+ + + +
diff --git a/themes/default/views/sidebar.html.php b/themes/default/views/sidebar.html.php index ab49a7bb..2c4f34ae 100644 --- a/themes/default/views/sidebar.html.php +++ b/themes/default/views/sidebar.html.php @@ -4,58 +4,6 @@ -
-
-

Tags

  - ? - [-] -
- - - -
- - - -
-
-

Item Info

-- cgit v1.2.3