diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gmaps/helpers/gmaps.php | 29 | ||||
-rw-r--r-- | modules/gmaps/views/gmaps_block.html.php | 6 |
2 files changed, 35 insertions, 0 deletions
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 @@ +<?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 Gmaps_Core { + public static function block($theme) { + $block = new Block(); + $block->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 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<iframe width="214" height="214" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&geocode=&q=mountain+view&sll=37.0625,-95.677068&sspn=50.823846,89.648437&ie=UTF8&z=12&g=mountain+view&ll=37.433704,-122.056046&output=embed&s=AARTsJoyjpSOFMFEv5XZbREeW_hGGS28pQ"></iframe> +<br /> +<small><a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=mountain+view&sll=37.0625,-95.677068&sspn=50.823846,89.648437&ie=UTF8&z=12&g=mountain+view&ll=37.433704,-122.056046&source=embed" style="color:#0000FF;text-align:left"><?= _("View Larger Map") ?></a></small> + + |