public static function getInfoButton($Type, $AboutInfo, $modal_config, $params) { /* * - Check for additional artist infos * - and whether the button is active */ $AdditionalInfo = null; if ($params->get('info_source', 'owndb') == 'wiki' || $params->get('info_source', 'owndb') == 'lastfm') { $AdditionalInfo = PlayJoomHelper::checkInfoAbout($Type, $AboutInfo, $params); } if ($AdditionalInfo['album'] == true || $AdditionalInfo['artist'] == true || $AdditionalInfo['genre'] == true) { return '<a href="index.php?option=com_playjoom&view=infoabout&layout=default&tmpl=component&infoabout&type=' . $Type . '&album=' . base64_encode($AdditionalInfo['album']) . '&artist=' . base64_encode($AdditionalInfo['artist']) . '&genre=' . base64_encode($AdditionalInfo['genre']) . '&source=' . $AdditionalInfo['source'] . '" class="modal" rel="' . $modal_config . '"> <img src="' . JURI::base(true) . '/components/com_playjoom/images/icons/information.png" class="info_icon" alt="Info about" title="' . JText::_('COM_PLAYJOOM_ABLUM_MOREINFO_ABOUT_' . $Type) . '"> </a>'; } else { return null; } }