public function getUrl($image, $imageQuery = NULL)
    {
        // Experimental support for absolute picture url when is relative generator url set
        if($imageQuery && Strings::startsWith($imageQuery, '//'))
        {
            $imageQuery = Strings::substring($imageQuery, 2);
            $imageUrl   = $this->getPictureGeneratorUrl($image, $imageQuery);

            if($this->isUrlRelative)
            {
                if($this->websiteUrl)
                {
                    return $this->websiteUrl . $imageUrl;
                }
                else
                {
                    return '//' . $_SERVER['SERVER_ADDR'] . $imageUrl;
                }
            }
            else
            {
                return $imageUrl;
            }
        }

        return $this->getPictureGeneratorUrl($image, $imageQuery);
    }
public function getUrl($image, $imageQuery = NULL)
    {
        // Experimental support for absolute picture url when is relative generator url set
        if($imageQuery && Strings::startsWith($imageQuery, '//'))
        {
            $imageQuery = Strings::substring($imageQuery, 2);
            $imageUrl   = $this->getPictureGeneratorUrl($image, $imageQuery);

            if($this->isUrlRelative)
            {
                if($this->websiteUrl)
                {
                    return $this->websiteUrl . $imageUrl;
                }
                else
                {
                    return '//' . $_SERVER['SERVER_ADDR'] . $imageUrl;
                }
            }
            else
            {
                return $imageUrl;
            }
        }

        return $this->getPictureGeneratorUrl($image, $imageQuery);
    }
public function getUrl ( $ image , $ imageQuery = NULL ) { // Experimental support for absolute picture url when is relative generator url set if ( $ imageQuery && Strings :: startsWith ( $ imageQuery , '//' ) ) { $ imageQuery = Strings :: substring ( $ imageQuery , 2 ) ; $ imageUrl = $ this -> getPictureGeneratorUrl ( $ image , $ imageQuery ) ; if ( $ this -> isUrlRelative ) { if ( $ this -> websiteUrl ) { return $ this -> websiteUrl . $ imageUrl ; } else { return '//' . $ _SERVER [ 'SERVER_ADDR' ] . $ imageUrl ; } } else { return $ imageUrl ; } } return $ this -> getPictureGeneratorUrl ( $ image , $ imageQuery ) ; }
Get url to image with specified image query string
Supports absolute picture url when is relative generator url set
@param $image
@param null $imageQuery
@return null|string
Get url to image with specified image query string Supports absolute picture url when is relative generator url set