[GIT] setup initial configuration
This commit is contained in:
commit
46b0df0faf
32 changed files with 10188 additions and 0 deletions
18
site/plugins/piwik/piwik.php
Executable file
18
site/plugins/piwik/piwik.php
Executable 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);
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue