code/extensions/ExtendedImage.php
public function getBase64Tag() {
                if($this->owner->exists()) {
                        $url = $this->owner->getBase64Source();
                        $title = ($this->owner->Title) ? $this->owner->Title : $this->owner->Filename;
                        if($this->owner->Title) {
                                $title = Convert::raw2att($this->owner->Title);
                        } else {
                                if(preg_match("/([^\/]*)\.[a-zA-Z0-9]{1,6}$/", $title, $matches)) $title = Convert::raw2att($matches[1]);
                        }
                        return "<img src=\"$url\" alt=\"$title\" />";
                }
        }
public function getBase64Tag() {
                if($this->owner->exists()) {
                        $url = $this->owner->getBase64Source();
                        $title = ($this->owner->Title) ? $this->owner->Title : $this->owner->Filename;
                        if($this->owner->Title) {
                                $title = Convert::raw2att($this->owner->Title);
                        } else {
                                if(preg_match("/([^\/]*)\.[a-zA-Z0-9]{1,6}$/", $title, $matches)) $title = Convert::raw2att($matches[1]);
                        }
                        return "<img src=\"$url\" alt=\"$title\" />";
                }
        }
public function getBase64Tag ( ) { if ( $ this -> owner -> exists ( ) ) { $ url = $ this -> owner -> getBase64Source ( ) ; $ title = ( $ this -> owner -> Title ) ? $ this -> owner -> Title : $ this -> owner -> Filename ; if ( $ this -> owner -> Title ) { $ title = Convert :: raw2att ( $ this -> owner -> Title ) ; } else { if ( preg_match ( "/([^\/]*)\.[a-zA-Z0-9]{1,6}$/" , $ title , $ matches ) ) $ title = Convert :: raw2att ( $ matches [ 1 ] ) ; } return "<img src=\"$url\" alt=\"$title\" />" ; } }
Return an XHTML img tag for this Image.
@return string
Return an XHTML img tag for this Image .