case 'script':
if (!$allowCmsOverride || !$cms->addScript($snippet['script'], $this->_name)) {
- $html .= sprintf("<script type=\"text/javascript\">\n%s\n</script>\n", $snippet['script']);
+ $html .= sprintf("<script type=\"text/javascript\">\n// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3\n%s\n// @license-end\n</script>\n", $snippet['script']);
}
break;
$js = "(function(vars) {
if (window.CRM) CRM.$.extend(true, CRM, vars); else window.CRM = vars;
})($settingsData)";
- $html .= sprintf("<script type=\"text/javascript\">\n%s\n</script>\n", $js);
+ $html .= sprintf("<script type=\"text/javascript\">\n// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3\n%s\n// @license-end\n</script>\n", $js);
break;
default:
break;
case 'script-code':
- printf("<script type=\"text/javascript\">\n%s\n</script>", $pageAsset['code']);
+ printf("<script type=\"text/javascript\">\n// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3\n%s\n// @license-end\n</script>", $pageAsset['code']);
break;
case 'style-url':