public function render($src, $class = '', $id = '', array $attrs = array())
    {
        $attrs['class'] = false;

        $attrs = array_merge(array('fullUrl' => true), $attrs);

        $attrs['id'] = $id;

        $attrs = $this->_normalizeClassAttr($attrs, $this->_jbSrt('image'));
        if ($class !== '') {
            $attrs = $this->_normalizeClassAttr($attrs, $class);
        }

        $attrs['class'] = Str::clean($attrs['class']);

        $isFull = $attrs['fullUrl'];
        unset($attrs['fullUrl']);

        $src = FS::clean($src, '/');
        $attrs['src'] = ($isFull) ? Url::root() . '/' . $src : $src;

        return '<img ' . $this->buildAttrs($attrs) . ' />';
    }
public function render($src, $class = '', $id = '', array $attrs = array())
    {
        $attrs['class'] = false;

        $attrs = array_merge(array('fullUrl' => true), $attrs);

        $attrs['id'] = $id;

        $attrs = $this->_normalizeClassAttr($attrs, $this->_jbSrt('image'));
        if ($class !== '') {
            $attrs = $this->_normalizeClassAttr($attrs, $class);
        }

        $attrs['class'] = Str::clean($attrs['class']);

        $isFull = $attrs['fullUrl'];
        unset($attrs['fullUrl']);

        $src = FS::clean($src, '/');
        $attrs['src'] = ($isFull) ? Url::root() . '/' . $src : $src;

        return '<img ' . $this->buildAttrs($attrs) . ' />';
    }
public function render ( $ src , $ class = '' , $ id = '' , array $ attrs = array ( ) ) { $ attrs [ 'class' ] = false ; $ attrs = array_merge ( array ( 'fullUrl' => true ) , $ attrs ) ; $ attrs [ 'id' ] = $ id ; $ attrs = $ this -> _normalizeClassAttr ( $ attrs , $ this -> _jbSrt ( 'image' ) ) ; if ( $ class !== '' ) { $ attrs = $ this -> _normalizeClassAttr ( $ attrs , $ class ) ; } $ attrs [ 'class' ] = Str :: clean ( $ attrs [ 'class' ] ) ; $ isFull = $ attrs [ 'fullUrl' ] ; unset ( $ attrs [ 'fullUrl' ] ) ; $ src = FS :: clean ( $ src , '/' ) ; $ attrs [ 'src' ] = ( $ isFull ) ? Url :: root ( ) . '/' . $ src : $ src ; return '<img ' . $ this -> buildAttrs ( $ attrs ) . ' />' ; }
Create img tag.

@param string $src
@param string|array $class
@param string $id
@param array $attrs
@return string
Create img tag .