Back to PhocacartRenderFront class

Method getLabel

public static
getLabel
(mixed $date, mixed $sales, mixed $featured)

Method getLabel - Source code

public static function getLabel($date, $sales, $featured)
{
    $label = array();
    $new = $hot = $feat = '';
    $c = 1;
    $label['new'] = self::renderNewIcon($date, $c);
    if ($label['new'] != '') {
        $c++;
    }
    $label['hot'] = self::renderHotIcon($sales, $c);
    if ($label['hot'] != '') {
        $c++;
    }
    $label['feat'] = self::renderFeaturedIcon($featured, $c);
    $label['cssthumbnail'] = '';
    $label['cssthumbnail2'] = 'img-thumbnail';
    if ($c > 1) {
        $label['cssthumbnail'] = 'b-thumbnail';
        $label['cssthumbnail2'] = '';
    }
    return $label;
}