Revision 71667d19
Added by Andreas Kohlbecker almost 13 years ago
modules/cdm_dataportal/theme/cdm_dataportal.taxon.theme | ||
---|---|---|
369 | 369 |
*/ |
370 | 370 |
function theme_cdm_taxon_list_thumbnails($taxon){ |
371 | 371 |
|
372 |
$gallery_name = $taxon->uuid; |
|
373 |
|
|
374 |
$showCaption = variable_get('cdm_dataportal_findtaxa_show_thumbnail_captions', 1); |
|
375 | 372 |
|
376 | 373 |
$gallery_settings = getGallerySettings(CDM_DATAPORTAL_SEARCH_GALLERY_NAME); |
377 |
$showCaption = $gallery_settings['cdm_dataportal_show_thumbnail_captions']; |
|
374 |
$showCaption = $gallery_settings['cdm_dataportal_show_thumbnail_captions']; |
|
375 |
|
|
378 | 376 |
if($showCaption){ |
379 |
//$captionElements = array('title', '#uri'=>t('open Image')); |
|
380 | 377 |
$captionElements = array('title', 'rights'); |
381 | 378 |
} |
379 |
|
|
380 |
$gallery_name = $taxon->uuid; |
|
381 |
|
|
382 | 382 |
$mediaQueryParameters = array("type"=>"ImageFile"); |
383 | 383 |
$galleryLinkUri = path_to_taxon($taxon->uuid).'/images'; |
384 |
|
|
385 |
// cdm_dataportal_show_media = ???? TODO |
|
384 | 386 |
$selectShowMedia = variable_get('cdm_dataportal_show_media', 0); |
385 | 387 |
if ($selectShowMedia == 0){ |
386 | 388 |
$mediaList = cdm_ws_get(CDM_WS_PORTAL_TAXON_MEDIA, array($taxon->uuid), queryString( $mediaQueryParameters )); |
387 | 389 |
}else{ |
388 | 390 |
$mediaList = cdm_ws_get(CDM_WS_PORTAL_TAXON_SUBTREE_MEDIA, array($taxon->uuid), queryString( $mediaQueryParameters )); |
389 | 391 |
} |
390 |
//$mediaList = cdm_ws_get(CDM_WS_PORTAL_TAXONOMY_MEDIA, array(variable_get('cdm_taxonomictree_uuid', false), $taxon ->rank, $taxon->uuid )); |
|
392 |
|
|
391 | 393 |
$out .= theme('cdm_media_gallerie', $mediaList, $gallery_name , |
392 |
$gallery_settings['cdm_dataportal_media_maxextend'], |
|
393 |
$gallery_settings['cdm_dataportal_media_cols'], |
|
394 |
$gallery_settings['cdm_dataportal_media_maxRows'], |
|
395 |
$captionElements, 'LIGHTBOX', null, $galleryLinkUri); |
|
394 |
$gallery_settings['cdm_dataportal_media_maxextend'],
|
|
395 |
$gallery_settings['cdm_dataportal_media_cols'],
|
|
396 |
$gallery_settings['cdm_dataportal_media_maxRows'],
|
|
397 |
$captionElements, 'LIGHTBOX', null, $galleryLinkUri);
|
|
396 | 398 |
|
397 | 399 |
return $out; |
398 | 400 |
} |
Also available in: Unified diff
fixing #2493 (CICHORIEAE: Links of thumbnails in search results not working properly)