From fd3e21e2fda37b65b393e26d0e07f94847efb284 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Nov 2008 05:41:19 +0000 Subject: Move Google Maps block off into its own gmaps module. --- core/config/config.php | 1 + core/libraries/Theme.php | 1 + modules/gmaps/helpers/gmaps.php | 29 +++++++++++++++++++++++++++++ modules/gmaps/views/gmaps_block.html.php | 6 ++++++ themes/default/views/sidebar.html.php | 11 ----------- 5 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 modules/gmaps/helpers/gmaps.php create mode 100644 modules/gmaps/views/gmaps_block.html.php diff --git a/core/config/config.php b/core/config/config.php index 3f0f24d3..13652434 100644 --- a/core/config/config.php +++ b/core/config/config.php @@ -126,6 +126,7 @@ $config['modules'] = array MODPATH . 'tags', MODPATH . 'user', MODPATH . 'info', + MODPATH . 'gmaps', THEMEPATH . 'default', ); diff --git a/core/libraries/Theme.php b/core/libraries/Theme.php index bee2512f..101cbb42 100644 --- a/core/libraries/Theme.php +++ b/core/libraries/Theme.php @@ -44,6 +44,7 @@ class Theme_Core { 'carousel' => carousel::block($this), 'tags' => tags::block($this), 'info' => info::block($this), + 'gmaps' => gmaps::block($this), ); return $blocks; } diff --git a/modules/gmaps/helpers/gmaps.php b/modules/gmaps/helpers/gmaps.php new file mode 100644 index 00000000..3257e760 --- /dev/null +++ b/modules/gmaps/helpers/gmaps.php @@ -0,0 +1,29 @@ +id = "gMaps"; + $block->title = _("Location"); + $block->content = new View("gmaps_block.html"); + return $block; + } +} \ No newline at end of file diff --git a/modules/gmaps/views/gmaps_block.html.php b/modules/gmaps/views/gmaps_block.html.php new file mode 100644 index 00000000..8c5db146 --- /dev/null +++ b/modules/gmaps/views/gmaps_block.html.php @@ -0,0 +1,6 @@ + + +
+ + + diff --git a/themes/default/views/sidebar.html.php b/themes/default/views/sidebar.html.php index 472f9870..991c919f 100644 --- a/themes/default/views/sidebar.html.php +++ b/themes/default/views/sidebar.html.php @@ -3,15 +3,4 @@ blocks() as $block): ?> - -
-
-

Location

- [-] -
- -
- View Larger Map -
- -- cgit v1.2.3