src/Easy/Element/ColumnImage.php
public function render()
    {
    	if(!$this->getText())
    	{
    		$val = ($this->imgUrl) ? $this->imgUrl.$this->value : $this->value;
    	}else{
    		if(preg_match("/\{OPENBIZ_RESOURCE_URL\}/si",$this->text)){
    			$val = $this->getText();
    		}else{
    			$val = Openbizx::$app->getImageUrl()."/".$this->getText();
    		}
    	}
        if ($val == null || $val == "") {
            return "";
        }

        $style = $this->getStyle();
        $func = $this->getFunction();
        $alt = $this->getAlt();
        $title = $this->getTitle();

        if ($val)
        {
            if($height = $this->height)
            {
                $height = 'height="' . $height . '"';
            }

            if($width = $this->width)
            {
                $width = 'width="' . $width . '"';
            }

            $alt = 'alt="' . $alt . '"';
            $title = 'title="' . $title . '"';

            if ($this->link)
            {
                $link = $this->getLink();
                $target = $this->getTarget();
                $sHTML = "<a href=\"$link\" $target $func $style>" . "<img src=\"{$val}\" border=\"0\" $height $width $alt $title />" . "</a>";
            }
            else
            {
                $sHTML =  "<img $style $func border=\"0\" src=\"{$val}\" $height $width $alt $title />" ;
            }
        }
        return $sHTML;
    }
public function render()
    {
    	if(!$this->getText())
    	{
    		$val = ($this->imgUrl) ? $this->imgUrl.$this->value : $this->value;
    	}else{
    		if(preg_match("/\{OPENBIZ_RESOURCE_URL\}/si",$this->text)){
    			$val = $this->getText();
    		}else{
    			$val = Openbizx::$app->getImageUrl()."/".$this->getText();
    		}
    	}
        if ($val == null || $val == "") {
            return "";
        }

        $style = $this->getStyle();
        $func = $this->getFunction();
        $alt = $this->getAlt();
        $title = $this->getTitle();

        if ($val)
        {
            if($height = $this->height)
            {
                $height = 'height="' . $height . '"';
            }

            if($width = $this->width)
            {
                $width = 'width="' . $width . '"';
            }

            $alt = 'alt="' . $alt . '"';
            $title = 'title="' . $title . '"';

            if ($this->link)
            {
                $link = $this->getLink();
                $target = $this->getTarget();
                $sHTML = "<a href=\"$link\" $target $func $style>" . "<img src=\"{$val}\" border=\"0\" $height $width $alt $title />" . "</a>";
            }
            else
            {
                $sHTML =  "<img $style $func border=\"0\" src=\"{$val}\" $height $width $alt $title />" ;
            }
        }
        return $sHTML;
    }
Render element, according to the mode

@return string HTML text