]> git.mxchange.org Git - friendica-addons.git/blobdiff - piwik/piwik.php
DE: added translations for the addons from transifex
[friendica-addons.git] / piwik / piwik.php
index a0dd1c257c7f15d663c3ba9a796517289d302ba2..21bc7af204940dd63b6e678325752bf77cba38e1 100755 (executable)
@@ -3,7 +3,7 @@
  * Name: Piwik Analytics
  * Description: Piwik Analytics Plugin for Friendica
  * Version: 1.1
- * Author: Tobias Diekershoff <http://diekershoff.homeunix.net/friendika/profile/tobias>
+ * Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias>
  * Author: Klaus Weidenbach
  */
 
@@ -26,8 +26,6 @@
  *     installation has. Alter the baseurl to fit your needs, don't care
  *     about http/https but beware to put the trailing / at the end of your
  *     setting.
- *
- *     Documentation see http://diekershoff.homeunix.net/redmine/wiki/friendikaplugin/Piwik_Plugin
  */
 
 function piwik_install() {
@@ -84,17 +82,9 @@ function piwik_analytics($a,&$b) {
        }
 }
 function piwik_plugin_admin (&$a, &$o) {
-#      $t = file_get_contents( dirname(__file__)."/admin.tpl");
        $t = get_markup_template( "admin.tpl", "addon/piwik/" );
-
-       $includes = array(
-               '$field_input' => 'field_input.tpl',
-               '$field_checkbox' => 'field_select.tpl',
-       );
-       $includes = set_template_includes($a->theme['template_engine'], $includes);
-
-       $o = replace_macros( $t, $includes + array(
-               '$submit' => t('Submit'),
+       $o = replace_macros( $t, array(
+               '$submit' => t('Save Settings'),
                '$baseurl' => array('baseurl', t('Piwik Base URL'), get_config('piwik','baseurl' ), t('Absolute path to your Piwik installation. (without protocol (http/s), with trailing slash)')),
                '$siteid' => array('siteid', t('Site ID'), get_config('piwik','siteid' ), ''),
                '$optout' => array('optout', t('Show opt-out cookie link?'), get_config('piwik','optout' ), ''),