Added a return to album link.
This commit is contained in:
parent
f93a9fc102
commit
a523a32e82
@ -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");
|
||||
|
@ -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() ?>
|
||||
|
Reference in New Issue
Block a user