Revision 3e2af8c2
Added by Andreas Kohlbecker almost 7 years ago
modules/cdm_dataportal/theme/cdm_dataportal.page.theme | ||
---|---|---|
625 | 625 |
|
626 | 626 |
$out .= '<div class="media cdm_media_viewer_image">'; |
627 | 627 |
|
628 |
$out .= theme('cdm_back_to_image_gallery_button', array()); |
|
628 |
if(preg_match('/cdm_dataportal\/taxon\//', $_SERVER['HTTP_REFERER']) ){ |
|
629 |
$out .= '<div id="backToGalleryButton">' . l(t('Back to Images'), $_SESSION['cdm']['last_gallery']) . '</div>'; |
|
630 |
} |
|
629 | 631 |
$out .= '<div class="viewer">'; |
630 | 632 |
$out .= cdm_openlayers_image($media->representations[$active_representation_index]->parts[$active_part_index], $imageMaxExtend); |
631 | 633 |
$out .= '</div>'; |
Also available in: Unified diff
fix #6817 'Back to Image' only shown when the HTTP referrer is a cdm_dataportal taxon page