private function getItemWidthNumber($width)
    {
        switch ($width) {
            case 'one-sixth':
                $itemWidth = 2;
                break;
            case 'five-sixths':
                $itemWidth = 10;
                break;
            case 'one-quarter':
                $itemWidth = 3;
                break;
            case 'three-quarters':
                $itemWidth = 9;
                break;
            case 'one-third':
                $itemWidth = 4;
                break;
            case 'two-thirds':
                $itemWidth = 8;
                break;
            case 'half':
                $itemWidth = 6;
                break;
            case 'full':
                $itemWidth = 12;
                break;
            default:
                $itemWidth = 12;
        }

        return $itemWidth;
    }
private function getItemWidthNumber($width)
    {
        switch ($width) {
            case 'one-sixth':
                $itemWidth = 2;
                break;
            case 'five-sixths':
                $itemWidth = 10;
                break;
            case 'one-quarter':
                $itemWidth = 3;
                break;
            case 'three-quarters':
                $itemWidth = 9;
                break;
            case 'one-third':
                $itemWidth = 4;
                break;
            case 'two-thirds':
                $itemWidth = 8;
                break;
            case 'half':
                $itemWidth = 6;
                break;
            case 'full':
                $itemWidth = 12;
                break;
            default:
                $itemWidth = 12;
        }

        return $itemWidth;
    }
private function getItemWidthNumber ( $ width ) { switch ( $ width ) { case 'one-sixth' : $ itemWidth = 2 ; break ; case 'five-sixths' : $ itemWidth = 10 ; break ; case 'one-quarter' : $ itemWidth = 3 ; break ; case 'three-quarters' : $ itemWidth = 9 ; break ; case 'one-third' : $ itemWidth = 4 ; break ; case 'two-thirds' : $ itemWidth = 8 ; break ; case 'half' : $ itemWidth = 6 ; break ; case 'full' : $ itemWidth = 12 ; break ; default : $ itemWidth = 12 ; } return $ itemWidth ; }
Get item width number.

@param string $width

@return int
Get item width number .