Back to PhocacartRenderFront class

Method setActiveLayoutType

public static
setActiveLayoutType
(mixed $layoutType)

Method setActiveLayoutType - Source code

public static function setActiveLayoutType($layoutType)
{
    $activeLT[0] = $activeLT[1] = $activeLT[2] = '';
    switch ($layoutType) {
        case 'grid':
            $activeLT[0] = 'active';
            break;
        case 'gridlist':
            $activeLT[1] = 'active';
            break;
        case 'list':
            $activeLT[2] = 'active';
            break;
    }
    return $activeLT;
}