18 lines
450 B
PHP
18 lines
450 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Piwik Plugin
|
||
|
*
|
||
|
* @author Michael Fürmann <michael@spicyweb.de>
|
||
|
* @version 1.0.0
|
||
|
*/
|
||
|
|
||
|
function piwik($options = array()) {
|
||
|
if(!c::get('spicy.piwik.active', true) || !c::get('spicy.piwik.url') || !c::get('spicy.piwik.id'))
|
||
|
return;
|
||
|
$options['url'] = c::get('spicy.piwik.url');
|
||
|
$options['id'] = c::get('spicy.piwik.id');
|
||
|
// Return template HTML
|
||
|
return tpl::load(__DIR__ . DS . 'template.php', $options);
|
||
|
}
|
||
|
?>
|