Back to PhocacartManufacturer class

Method getManufacturerRendered

public static
getManufacturerRendered
(mixed $id, mixed $title, mixed $alias, mixed $manufacturerAlias, mixed $type = 1, mixed $catId = 0, mixed $catAlias = '')

Method getManufacturerRendered - Source code

public static function getManufacturerRendered($id, $title, $alias, $manufacturerAlias, $type = 1, $catId = 0, $catAlias = '')
{
    if ($type == 1 && (int) $id > 0 && $title != '') {
        $link = PhocacartRoute::getItemsRoute();
        $link = $link . PhocacartRoute::getItemsRouteSuffix($manufacturerAlias, $id, $alias);
        return '<a href="' . Route::_($link) . '" >' . $title . '</a>';
    } else {
        return $title;
    }
}