function theme_biblio_openurl in Bibliography Module 7.2
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 includes/biblio_theme.inc \theme_biblio_openurl()
Parameters
$openURL:
Return value
unknown_type
5 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.
- biblio_plugin_row_citation::render in views/
biblio_plugin_row_citation.inc - Render a row object. This usually passes through to a theme template of some form, but not always.
- theme_biblio_entry in includes/
biblio.theme.inc - theme_biblio_long in includes/
biblio.theme.inc - DEPRECIATED! this was the original output format which is not to flexable it will be removed TODO: remove this function
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 != '') {
$output .= '<div class="biblio-openurl-image"><a href="' . $open_url . '"target=_blank><img border="0" src="' . $openurl_image . '"/></a></div>';
}
else {
$output .= '<div class="biblio-openurl-text"><a href="' . $open_url . '" target=_blank>' . t('Find It Via OpenURL!') . '</a></div>';
}
return $output;
}