- $t = file_get_contents( dirname(__file__)."/admin.tpl");
- $o = replace_macros( $t, array(
- '$submit' => t('Submit'),
- '$baseurl' => array('baseurl', t('Piwik Base URL'), get_config('piwik','baseurl' ), ''),
- '$siteid' => array('siteid', t('Site ID'), get_config('piwik','siteid' ), ''),
- '$optout' => array('optout', t('Show opt-out cookie link?'), get_config('piwik','optout' ), ''),
- ));
+ $t = get_markup_template( "admin.tpl", "addon/piwik/" );
+ $o = replace_macros( $t, array(
+ '$submit' => t('Save Settings'),
+ '$piwikbaseurl' => array('baseurl', t('Piwik Base URL'), Config::get('piwik','baseurl' ), t('Absolute path to your Piwik installation. (without protocol (http/s), with trailing slash)')),
+ '$siteid' => array('siteid', t('Site ID'), Config::get('piwik','siteid' ), ''),
+ '$optout' => array('optout', t('Show opt-out cookie link?'), Config::get('piwik','optout' ), ''),
+ '$async' => array('async', t('Asynchronous tracking'), Config::get('piwik','async' ), ''),
+ ));