function getJSLink() { $built = array(); $me =& CopixHTMLHeader::_getInstance(); foreach ($me->_JSLink as $src => $params) { //the extra params we may found in there. $more = ''; foreach ($params as $param_name => $param_value) { $more .= $param_name . '="' . $param_value . '" '; } $built[] = '<script type="text/javascript" src="' . $src . '" ' . $more . '></script>'; } return implode("\n\r", $built); }