1
0

Added a return to album link.

This commit is contained in:
rWatcher 2010-03-19 04:53:49 +08:00 committed by Tim Almdal
parent f93a9fc102
commit a523a32e82
2 changed files with 6 additions and 0 deletions

View File

@ -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");

View File

@ -74,4 +74,7 @@
</div>
<br />
<div id="map_canvas" style="width:600px; height:480px;"></div>
<? if ($return_url != ""): ?>
<br /><a href="<?=$return_url; ?>"><?=t("Return to album"); ?></a>
<? endif ?>
<?= $theme->dynamic_bottom() ?>