public function getImageWidth($type, $size)
	{
		if (empty($this->$type))
		{
			return null;
		}
		$method = $this->getImageConfig($type, $size, 'method');

		// Width varies for images that are 'portrait', 'auto', 'fit', 'crop'
		if (in_array($method, array('portrait', 'auto', 'fit', 'crop')))
		{
			list($width) = $this->getImageDimensions($type, $size);
			return $width;
		}
		return $this->getImageConfig($type, $size, 'width');
	}
public function getImageWidth($type, $size)
	{
		if (empty($this->$type))
		{
			return null;
		}
		$method = $this->getImageConfig($type, $size, 'method');

		// Width varies for images that are 'portrait', 'auto', 'fit', 'crop'
		if (in_array($method, array('portrait', 'auto', 'fit', 'crop')))
		{
			list($width) = $this->getImageDimensions($type, $size);
			return $width;
		}
		return $this->getImageConfig($type, $size, 'width');
	}
public function getImageWidth ( $ type , $ size ) { if ( empty ( $ this -> $ type ) ) { return null ; } $ method = $ this -> getImageConfig ( $ type , $ size , 'method' ) ; // Width varies for images that are 'portrait', 'auto', 'fit', 'crop' if ( in_array ( $ method , array ( 'portrait' , 'auto' , 'fit' , 'crop' ) ) ) { list ( $ width ) = $ this -> getImageDimensions ( $ type , $ size ) ; return $ width ; } return $ this -> getImageConfig ( $ type , $ size , 'width' ) ; }
Returns the value for use in the width attribute of an img tag for the given image type and size

@param $type
@param $size
@return null|string
Returns the value for use in the width attribute of an img tag for the given image type and size