public function getImageUrl()
    {
        $baseUrl = $this->getBaseImageUrl();
        if ($baseUrl) {
            $dimensions = $this->getImageDimensions();
            $imageData = $this->getImageData();
            $width = Kwf_Media_Image::getResponsiveWidthStep($dimensions['width'],
                    Kwf_Media_Image::getResponsiveWidthSteps($dimensions, $imageData['file']));
            $ret = str_replace('{width}', $width, $baseUrl);
            $ev = new Kwf_Component_Event_CreateMediaUrl($this->getData()->componentClass, $this->getData(), $ret);
            Kwf_Events_Dispatcher::fireEvent($ev);
            return $ev->url;
        }
        return null;
    }
public function getImageUrl()
    {
        $baseUrl = $this->getBaseImageUrl();
        if ($baseUrl) {
            $dimensions = $this->getImageDimensions();
            $imageData = $this->getImageData();
            $width = Kwf_Media_Image::getResponsiveWidthStep($dimensions['width'],
                    Kwf_Media_Image::getResponsiveWidthSteps($dimensions, $imageData['file']));
            $ret = str_replace('{width}', $width, $baseUrl);
            $ev = new Kwf_Component_Event_CreateMediaUrl($this->getData()->componentClass, $this->getData(), $ret);
            Kwf_Events_Dispatcher::fireEvent($ev);
            return $ev->url;
        }
        return null;
    }
public function getImageUrl ( ) { $ baseUrl = $ this -> getBaseImageUrl ( ) ; if ( $ baseUrl ) { $ dimensions = $ this -> getImageDimensions ( ) ; $ imageData = $ this -> getImageData ( ) ; $ width = Kwf_Media_Image :: getResponsiveWidthStep ( $ dimensions [ 'width' ] , Kwf_Media_Image :: getResponsiveWidthSteps ( $ dimensions , $ imageData [ 'file' ] ) ) ; $ ret = str_replace ( '{width}' , $ width , $ baseUrl ) ; $ ev = new Kwf_Component_Event_CreateMediaUrl ( $ this -> getData ( ) -> componentClass , $ this -> getData ( ) , $ ret ) ; Kwf_Events_Dispatcher :: fireEvent ( $ ev ) ; return $ ev -> url ; } return null ; }
This function is used by Kwc_Basic_ImageEnlarge_EnlargeTag_ImagePage_Component
to get the url to show the image from parent with dimension defined through
this component.
This function is used by Kwc_Basic_ImageEnlarge_EnlargeTag_ImagePage_Component to get the url to show the image from parent with dimension defined through this component .