diff --git a/skeleton/novaconium/App/config.php b/skeleton/novaconium/App/config.php index 36dde83..cc04b81 100644 --- a/skeleton/novaconium/App/config.php +++ b/skeleton/novaconium/App/config.php @@ -10,6 +10,7 @@ $config = [ 'base_url' => 'http://localhost:8000', 'secure_key' => '', //64 alphanumeric characters 'logfile' => '/logs/novaconium.log', - 'loglevel' => 'ERROR', // 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'NONE' + 'loglevel' => 'ERROR', // 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'NONE', + 'matomo' => '1', 'fonts' => 'https://fonts.googleapis.com/css2?family=VT323:wght@400&family=Fira+Code:wght@400;500&display=swap&family=Material+Icons:wght@400;500&display=swap' ]; diff --git a/src/novaconium.php b/src/novaconium.php index 4a12c7a..96d8519 100644 --- a/src/novaconium.php +++ b/src/novaconium.php @@ -17,6 +17,7 @@ $log = new Logger(\BASEPATH . $config['logfile'], $config['loglevel']); // --- Twig Data Array --- $data = []; $data['fonts'] = $config['fonts'] ?? []; +$data['matomo'] = $config['matomo'] ?? 0; // --- Session --- use Novaconium\Session; diff --git a/twig/foot.html.twig b/twig/foot.html.twig index 89386ef..8eb18ec 100644 --- a/twig/foot.html.twig +++ b/twig/foot.html.twig @@ -9,3 +9,20 @@ {% if editor == 'ace' %} {% include '@novaconium/javascript/ace.html.twig' %} {% endif %} + +{% if matomo > 0 %} + + + +{% endif %} \ No newline at end of file