Back to PhocacartRenderFront class

Method renderHotIcon

public static
renderHotIcon
(mixed $sales, mixed $size = 1)

Method renderHotIcon - Source code

public static function renderHotIcon($sales, $size = 1)
{
    $app = Factory::getApplication();
    $params = $app->getParams();
    $hot = $params->get('display_hot', 0);
    $o = '';
    if ($hot == 0) {
        $o .= '';
    } else {
        if ($sales > $hot || $sales == $hot) {
            $o .= '<div class="ph-corner-icon-wrapper  ph-corner-icon' . $size . '-wrapper"><div class="ph-corner-icon ph-corner-icon' . $size . ' ph-corner-icon-hot">' . Text::_('COM_PHOCACART_HOT') . '</div></div>';
        }
    }
    return $o;
}