From 81c239f043c0b2b94c1e588409a53f2a5f1aee96 Mon Sep 17 00:00:00 2001 From: Nick Yeoman Date: Fri, 9 Jan 2026 12:41:55 -0800 Subject: [PATCH] added matomo --- skeleton/novaconium/App/config.php | 3 ++- src/novaconium.php | 1 + twig/foot.html.twig | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) 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