function theme_biblio_openurl in Bibliography Module 7
Same name and namespace in other branches
- 5 biblio.module \theme_biblio_openurl()
- 6.2 includes/biblio_theme.inc \theme_biblio_openurl()
- 6 biblio_theme.inc \theme_biblio_openurl()
- 7.2 includes/biblio.theme.inc \theme_biblio_openurl()
Parameters
$openURL:
4 theme calls to theme_biblio_openurl()
- biblio_entry in includes/
biblio.pages.inc - biblio_handler_citation::render in views/
biblio_handler_citation.inc - Render the field.
- theme_biblio_entry in includes/
biblio_theme.inc - theme_biblio_long in includes/
biblio_theme.inc - Theme function for biblio_long.
File
- includes/
biblio_theme.inc, line 15
Code
function theme_biblio_openurl($variables) {
$open_url = $variables['openURL'];
$openurl_image = variable_get('biblio_openurlimage', '');
if ($openurl_image != '') {
return '<div class="biblio-openurl-image"><a href="' . $open_url . '" target="_blank"><img border="0" src="' . $openurl_image . '"/></a></div>';
}
else {
return '<div class="biblio-openurl-text"><a href="' . $open_url . '" target="_blank">' . t('Find It Via OpenURL!') . '</a></div>';
}
}