From c873d12df5b604790604fc3e06966371a6881c88 Mon Sep 17 00:00:00 2001 From: rWatcher Date: Thu, 18 Mar 2010 16:53:49 -0400 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 abe4d358..f5078b7c 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() ?>