mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 19:38:49 +00:00
more Matomo / Piwik, and regen piwik translation base
This commit is contained in:
parent
bd4c9f4bb6
commit
56c218a337
2 changed files with 30 additions and 30 deletions
|
@ -91,10 +91,10 @@ function piwik_analytics($a,&$b) {
|
|||
*/
|
||||
if ($optout) {
|
||||
$b .= "<div id='piwik-optout-link'>";
|
||||
$b .= L10n::t("This website is tracked using the <a href='http://www.piwik.org'>Piwik</a> analytics tool.");
|
||||
$b .= L10n::t("This website is tracked using the <a href='http://www.matomo.org'>Matomo</a> analytics tool.");
|
||||
$b .= " ";
|
||||
$the_url = "http://".$baseurl ."index.php?module=CoreAdminHome&action=optOut";
|
||||
$b .= L10n::t("If you do not want that your visits are logged in this way you <a href='%s'>can set a cookie to prevent Piwik from tracking further visits of the site</a> (opt-out).", $the_url);
|
||||
$b .= L10n::t("If you do not want that your visits are logged in this way you <a href='%s'>can set a cookie to prevent Matomo / Piwik from tracking further visits of the site</a> (opt-out).", $the_url);
|
||||
$b .= "</div>";
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ function piwik_addon_admin (&$a, &$o) {
|
|||
$t = Renderer::getMarkupTemplate( "admin.tpl", "addon/piwik/" );
|
||||
$o = Renderer::replaceMacros( $t, [
|
||||
'$submit' => L10n::t('Save Settings'),
|
||||
'$piwikbaseurl' => ['baseurl', L10n::t('Piwik Base URL'), Config::get('piwik','baseurl' ), L10n::t('Absolute path to your Piwik installation. (without protocol (http/s), with trailing slash)')],
|
||||
'$piwikbaseurl' => ['baseurl', L10n::t('Matomo (Piwik) Base URL'), Config::get('piwik','baseurl' ), L10n::t('Absolute path to your Matomo (Piwik) installation. (without protocol (http/s), with trailing slash)')],
|
||||
'$siteid' => ['siteid', L10n::t('Site ID'), Config::get('piwik','siteid' ), ''],
|
||||
'$optout' => ['optout', L10n::t('Show opt-out cookie link?'), Config::get('piwik','optout' ), ''],
|
||||
'$async' => ['async', L10n::t('Asynchronous tracking'), Config::get('piwik','async' ), ''],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue