Back to PhocaDownloadRenderFront class

Method displayHotIcon

public static
displayHotIcon
(mixed $hits, mixed $requiredHits = 0)

Method displayHotIcon - Source code

public static function displayHotIcon($hits, $requiredHits = 0)
{
    if ($requiredHits == 0) {
        return '';
    }
    if ($requiredHits <= $hits) {
        //return ' '. JHtml::_('image', 'media/com_phocadownload/images/icon-hot.png', JText::_('COM_PHOCADOWNLOAD_HOT'));
        return ' <span class="label label-important label-danger badge bg-danger">' . Text::_('COM_PHOCADOWNLOAD_LABEL_TXT_HOT') . '</span>';
    } else {
        return '';
    }
}