From 64d73bbedbbec7556f8f34e072a0a656b8736108 Mon Sep 17 00:00:00 2001 From: Robert Lange <robert.lange@uni-leipzig.de> Date: Tue, 3 Mar 2020 11:08:11 +0100 Subject: [PATCH] refs #15440 [fid] add matomo opt-out iframe * use fid-matomo url * customize font and colors --- themes/fid/templates/fid/user/matomo.phtml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 themes/fid/templates/fid/user/matomo.phtml diff --git a/themes/fid/templates/fid/user/matomo.phtml b/themes/fid/templates/fid/user/matomo.phtml new file mode 100644 index 00000000000..038c715f252 --- /dev/null +++ b/themes/fid/templates/fid/user/matomo.phtml @@ -0,0 +1,15 @@ +<?php $optOutUrl = "https://fid-matomo.ub.uni-leipzig.de/index.php?module=CoreAdminHome&action=optOut" + . "&backgroundColor=$backgroundColor" + . "&fontColor=$fontColor" + . "&fontSize=$fontSize" + . "&fontFamily=$fontFamily" + . "&language=$language" + . "&SiteId=1" +?> + +<iframe + id="matomo" name="matomo" + src="<?=$optOutUrl?>" + frameborder="0" + scrolling="no"> +</iframe> \ No newline at end of file -- GitLab