Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:
if ( strstr(strtolower($Context->BodyAttributes), 'onload=') ) {
$Context->BodyAttributes = str_replace('onload="', 'onload="BaseUrl=\''. $Context->Configuration['BASE_URL']
. '\';DefaultFormat=\''. $Default
. '\';InstalledFormats=Array('. $FormattersCSV
. ');MenuTitle=\''. htmlentities($Context->GetDefinition('CommentLinks_Copy')) .'\';HideMenus();', $Context->BodyAttributes);
} else {
$Context->BodyAttributes .= ' onload="BaseUrl=\''. $Context->Configuration['BASE_URL']
. '\';DiscussionName=\''. htmlentities($Discussion->Name)
. '\';DefaultFormat=\''. $Default
. '\';InstalledFormats=Array('. $FormattersCSV
. ');MenuTitle=\''. $Context->GetDefinition('CommentLinks_Copy') .'\';HideMenus();" ';
} $Head->AddString('<script type="text/javascript"><!--//--><![CDATA[//><!--
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != "function") {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
CommentLinks.Init = function() {
BaseUrl = \''. $Context->Configuration['BASE_URL'] .'\';
DefaultFormat = \''. $Default .'\';
DiscussionName = document.getElementsByTagName("title")[0].innerHTML.replace(/^.* - /, \'\');
InstalledFormats = Array('. $FormattersCSV .');
MenuTitle= \''. htmlentities($Context->GetDefinition('CommentLinks_Copy')) . '\';
HideMenus();
}
AddLoadEvent(CommentLinks.Init); //--><!]]></script>');
CommentLinks.Init = function() {
BaseUrl = \''. $Context->Configuration['BASE_URL'] .'\';
DefaultFormat = \''. $Default .'\';
DiscussionName = document.getElementsByTagName("title")[0].innerHTML.replace(/^.* - /, \'\');
InstalledFormats = Array('. $FormattersCSV .');
MenuTitle= \''. htmlentities($Context->GetDefinition('CommentLinks_Copy')) . '\';
HideMenus();
}
AddLoadEvent(CommentLinks.Init); //--><!]]></script>');
1 to 22 of 22