Christopher Vollick wrote:
It is generally recommended to try adding features using a plugin (http://laconi.ca/trac/wiki/Plugins).
You could use the EndShowFooter event to put it somewhere near the end.

With a plugin, anyone could choose to use SnapShot or not on their instance, and it's much easier to maintain.
For this kind of code, I'd do a quick function in config.php, like this:

function SnapshotsJs($action)
{
   $action->element('script', array('type' => 'text/javascript',
                                    'src' => 
'http://shots.snap.com/ss/12546654f406afd5a0883732fd38/snap_shots.js'),
                    ' ');
}

Event::addHandler('EndShowFooter', 'SnapshotsJs');


Good luck,

-Evan

--
Evan Prodromou
CEO, Control Yourself, Inc.
[email protected] - http://identi.ca/evan - +1-514-554-3826

_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to