public function img($email = '', $alt = '', array $attr = [])
    {
        if (empty($email)) {
            $email = $this->_options['email'];
        }

        $img = '<img src="'.$this->src($email, $attr).'"';

        if (!empty($alt)) {
            $img .= ' alt="'.$alt.'"';
        }

        if (isset($attr['width'])) {
            $img .= ' width="'.$attr['width'].'"';
        }

        if (isset($attr['height'])) {
            $img .= ' height="'.$attr['height'].'"';
        }

        return $img.'>';
    }
public function img($email = '', $alt = '', array $attr = [])
    {
        if (empty($email)) {
            $email = $this->_options['email'];
        }

        $img = '<img src="'.$this->src($email, $attr).'"';

        if (!empty($alt)) {
            $img .= ' alt="'.$alt.'"';
        }

        if (isset($attr['width'])) {
            $img .= ' width="'.$attr['width'].'"';
        }

        if (isset($attr['height'])) {
            $img .= ' height="'.$attr['height'].'"';
        }

        return $img.'>';
    }
public function img ( $ email = '' , $ alt = '' , array $ attr = [ ] ) { if ( empty ( $ email ) ) { $ email = $ this -> _options [ 'email' ] ; } $ img = '<img src="' . $ this -> src ( $ email , $ attr ) . '"' ; if ( ! empty ( $ alt ) ) { $ img .= ' alt="' . $ alt . '"' ; } if ( isset ( $ attr [ 'width' ] ) ) { $ img .= ' width="' . $ attr [ 'width' ] . '"' ; } if ( isset ( $ attr [ 'height' ] ) ) { $ img .= ' height="' . $ attr [ 'height' ] . '"' ; } return $ img . '>' ; }
Generates and returns the HTML image.

@param string $email - The email to use
@param string $alt   - The alternative text for the image tag
@param array  $attr  - Extra attributes to set for the image request

@return string
Generates and returns the HTML image .