protected function _renderScript($script, $link, $attribs = array())
    {
        $attribs = AnHelperArray::toString($attribs);

        if (!$link) {
            $html  = '<script type="text/javascript" '.$attribs.'>'."\n";
            $html .= trim($script);
            $html .= '</script>'."\n";
        } else {
            $html = '<script type="text/javascript" src="'.$script.'" '.$attribs.'></script>'."\n";
        }

        return $html;
    }
protected function _renderScript($script, $link, $attribs = array())
    {
        $attribs = AnHelperArray::toString($attribs);

        if (!$link) {
            $html  = '<script type="text/javascript" '.$attribs.'>'."\n";
            $html .= trim($script);
            $html .= '</script>'."\n";
        } else {
            $html = '<script type="text/javascript" src="'.$script.'" '.$attribs.'></script>'."\n";
        }

        return $html;
    }
protected function _renderScript ( $ script , $ link , $ attribs = array ( ) ) { $ attribs = AnHelperArray :: toString ( $ attribs ) ; if ( ! $ link ) { $ html = '<script type="text/javascript" ' . $ attribs . '>' . "\n" ; $ html .= trim ( $ script ) ; $ html .= '</script>' . "\n" ; } else { $ html = '<script type="text/javascript" src="' . $ script . '" ' . $ attribs . '></script>' . "\n" ; } return $ html ; }
Render script information

@param string	The script information
@param boolean	True, if the script information is a URL.
@param array		Associative array of attributes
@return string
Render script information