public function render($smiley, $isXhtml = true) {
        if (!$this->hasSmiley($smiley)) {
            return null;
        }

        $path = sprintf('%s%s.%s',
            $this->getConfig('path'),
            $this->_smilies[$smiley],
            $this->getConfig('extension'));

        if ($isXhtml) {
            $tpl = '<img class="decoda-emoticon" src="%s" alt="" />';
        } else {
            $tpl = '<img class="decoda-emoticon" src="%s" alt="">';
        }

        return sprintf($tpl, $path);
    }
public function render($smiley, $isXhtml = true) {
        if (!$this->hasSmiley($smiley)) {
            return null;
        }

        $path = sprintf('%s%s.%s',
            $this->getConfig('path'),
            $this->_smilies[$smiley],
            $this->getConfig('extension'));

        if ($isXhtml) {
            $tpl = '<img class="decoda-emoticon" src="%s" alt="" />';
        } else {
            $tpl = '<img class="decoda-emoticon" src="%s" alt="">';
        }

        return sprintf($tpl, $path);
    }
public function render ( $ smiley , $ isXhtml = true ) { if ( ! $ this -> hasSmiley ( $ smiley ) ) { return null ; } $ path = sprintf ( '%s%s.%s' , $ this -> getConfig ( 'path' ) , $ this -> _smilies [ $ smiley ] , $ this -> getConfig ( 'extension' ) ) ; if ( $ isXhtml ) { $ tpl = '<img class="decoda-emoticon" src="%s" alt="" />' ; } else { $ tpl = '<img class="decoda-emoticon" src="%s" alt="">' ; } return sprintf ( $ tpl , $ path ) ; }
Convert a smiley to an HTML representation.

@param string $smiley
@param bool $isXhtml
@return string
Convert a smiley to an HTML representation .