Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:
class AddAdCode extends Control
{
function AdCode(&$Context)
{
$this->Context = &$Context;
}
function Render()
{
$this->Context->Writer->Write('whatever you want to add here');
}
}
$AdCode = $Context->ObjectFactory->NewContextObject($Context, 'AddAdCode');
$Page->AddControl('Foot_Render', $AdCode);
//OR $Page->AddControl('Page_Unload', $AdCode);
<?php
/*
Extension Name: Ad Code
Extension Url: mailto:sirnot@gmail.com
Description: Adds ad code to all pages.
Version: 1.0
Author: SirNot
Author Url: mailto:sirnot@gmail.com
*/
class AddAdCode extends Control
{
function AdCode(&$Context)
{
$this->Context = &$Context;
}
function Render()
{
$this->Context->Writer->Write('whatever you want to add here');
}
}
$AdCode = $Context->ObjectFactory->NewContextObject($Context, 'AddAdCode');
$Page->AddControl('Foot_Render', $AdCode);
//OR $Page->AddControl('Page_Unload', $AdCode);
?>
1 to 4 of 4