From a523a32e82f31c0f777690faf38c17957af72f12 Mon Sep 17 00:00:00 2001 From: rWatcher Date: Fri, 19 Mar 2010 04:53:49 +0800 Subject: [PATCH] Added a return to album link. --- modules/exif_gps/controllers/exif_gps.php | 3 +++ modules/exif_gps/views/exif_gps_map.html.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/modules/exif_gps/controllers/exif_gps.php b/modules/exif_gps/controllers/exif_gps.php index 4a14c200..262c7938 100644 --- a/modules/exif_gps/controllers/exif_gps.php +++ b/modules/exif_gps/controllers/exif_gps.php @@ -65,6 +65,9 @@ class EXIF_GPS_Controller extends Controller { if ($int_map_type == 3) $map_type = "TERRAIN"; $template->content->map_type = $map_type; + // When mapping an album, generate a "return to album" link. + if (isset($curr_album)) $template->content->return_url = url::abs_site("{$curr_album[0]->type}s/{$curr_album[0]->id}"); + // Load in module preferences. $template->content->items = $items; $template->content->google_map_key = module::get_var("exif_gps", "googlemap_api_key"); diff --git a/modules/exif_gps/views/exif_gps_map.html.php b/modules/exif_gps/views/exif_gps_map.html.php index 83e174d4..c38404a0 100644 --- a/modules/exif_gps/views/exif_gps_map.html.php +++ b/modules/exif_gps/views/exif_gps_map.html.php @@ -74,4 +74,7 @@
+ +
+ dynamic_bottom() ?>