1
0
Fork 0

[GIT] setup initial configuration

This commit is contained in:
Jannik Beyerstedt 2016-03-28 22:32:42 +02:00
commit 46b0df0faf
32 changed files with 10188 additions and 0 deletions

18
site/plugins/piwik/piwik.php Executable file
View file

@ -0,0 +1,18 @@
<?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);
}
?>