$this->showText(sprintf(__('WP-Piwik %s is successfully connected to Piwik %s.','wp-piwik'),self::$wpPiwik->getPluginVersion(),$piwikVersion).' '.(!self::$wpPiwik->isNetworkMode()?sprintf(__('You are running WordPress %s.','wp-piwik'),get_bloginfo('version')):sprintf(__('You are running a WordPress %s blog network (WPMU). WP-Piwik will handle your sites as different websites.','wp-piwik'),get_bloginfo('version'))));
}else{
$this->showBox('error','no',sprintf(__('WP-Piwik %s was not able to connect to Piwik using your configuration. Check the »Connect to Piwik« section below.','wp-piwik'),self::$wpPiwik->getPluginVersion()));
$errorMessage=\WP_Piwik\Request::getLastError();
if(empty($errorMessage))
$this->showBox('error','no',sprintf(__('WP-Piwik %s was not able to connect to Piwik using your configuration. Check the »Connect to Piwik« section below.','wp-piwik'),self::$wpPiwik->getPluginVersion()));
else
$this->showBox('error','no',sprintf(__('WP-Piwik %s was not able to connect to Piwik using your configuration. During connection the following error occured: <br /><code>%s</code>','wp-piwik'),self::$wpPiwik->getPluginVersion(),$errorMessage));
}
}else
$this->showBox('error','no',sprintf(__('WP-Piwik %s has to be connected to Piwik first. Check the »Connect to Piwik« section below.','wp-piwik'),self::$wpPiwik->getPluginVersion()));
...
...
@@ -210,11 +214,11 @@ class Settings extends \WP_Piwik\Admin {
'header'=>__('Header','wp-piwik')
),__('Choose whether the JavaScript code is added to the footer or the header.','wp-piwik'),'',$isNotTracking,'wp-piwik-track-option wp-piwik-track-option-default wp-piwik-track-option-js wp-piwik-track-option-proxy wp-piwik-track-option-manually');
$this->showTextarea('noscript_code',__('Noscript code','wp-piwik'),2,'This is a preview of your <noscript> code which is part of your tracking code.',$isNotGeneratedTracking||self::$settings->getGlobalOption('track_mode')=='proxy','wp-piwik-track-option wp-piwik-track-option-default wp-piwik-track-option-js',true,'',true,false);
$this->showTextarea('noscript_code',__('Noscript code','wp-piwik'),2,'This is a preview of your <noscript> code which is part of your tracking code.',self::$settings->getGlobalOption('track_mode')=='proxy','wp-piwik-track-option wp-piwik-track-option-default wp-piwik-track-option-js wp-piwik-track-option-manually',true,'',(self::$settings->getGlobalOption('track_mode')!='manually'),false);
$this->showCheckbox('track_noscript',__('Add <noscript>','wp-piwik'),__('Adds the <noscript> code to your footer.','wp-piwik').' '.__('Disabled in proxy mode.','wp-piwik'),$isNotGeneratedTracking||self::$settings->getGlobalOption('track_mode')=='proxy','wp-piwik-track-option wp-piwik-track-option-default wp-piwik-track-option-js');
$this->showCheckbox('track_noscript',__('Add <noscript>','wp-piwik'),__('Adds the <noscript> code to your footer.','wp-piwik').' '.__('Disabled in proxy mode.','wp-piwik'),self::$settings->getGlobalOption('track_mode')=='proxy','wp-piwik-track-option wp-piwik-track-option-default wp-piwik-track-option-js wp-piwik-track-option-manually');
$this->showCheckbox('track_nojavascript',__('Add rec parameter to noscript code','wp-piwik'),__('Enable tracking for visitors without JavaScript (not recommended).','wp-piwik').' '.sprintf(__('See %sPiwik FAQ%s.','wp-piwik'),'<a href="http://piwik.org/faq/how-to/#faq_176">','</a>').' '.__('Disabled in proxy mode.','wp-piwik'),$isNotGeneratedTracking||self::$settings->getGlobalOption('track_mode')=='proxy','wp-piwik-track-option wp-piwik-track-option-default wp-piwik-track-option-js');
$this->showCheckbox('track_nojavascript',__('Add rec parameter to noscript code','wp-piwik'),__('Enable tracking for visitors without JavaScript (not recommended).','wp-piwik').' '.sprintf(__('See %sPiwik FAQ%s.','wp-piwik'),'<a href="http://piwik.org/faq/how-to/#faq_176">','</a>').' '.__('Disabled in proxy mode.','wp-piwik'),self::$settings->getGlobalOption('track_mode')=='proxy','wp-piwik-track-option wp-piwik-track-option-default wp-piwik-track-option-js wp-piwik-track-option-manually');
@@ -263,6 +267,14 @@ class Settings extends \WP_Piwik\Admin {
$this->showInput('track_heartbeat',__('Enable heartbeat timer','wp-piwik'),__('Enable a heartbeat timer to get more accurate visit lengths by sending periodical HTTP ping requests as long as the site is opened. Enter the time between the pings in seconds (Piwik default: 15) to enable or 0 to disable this feature. <strong>Note:</strong> This will cause a lot of additional HTTP requests on your site.','wp-piwik'),$isNotGeneratedTracking,$fullGeneratedTrackingGroup);
$this->showSelect('track_user_id',__('User ID Tracking','wp-piwik'),array(
'disabled'=>__('Disabled','wp-piwik'),
'uid'=>__('WP User ID','wp-piwik'),
'email'=>__('Email Address','wp-piwik'),
'username'=>__('Username','wp-piwik'),
'displayname'=>__('Display Name (Not Recommended!)','wp-piwik')
),__('When a user is logged in to WordPress, track their "User ID". You can select which field from the User\'s profile is tracked as the "User ID". When enabled, Tracking based on Email Address is recommended.','wp-piwik'),'',$isNotTracking,$fullGeneratedTrackingGroup);
@@ -312,7 +324,7 @@ class Settings extends \WP_Piwik\Admin {
),__('Choose if you want to get an update notice if WP-Piwik is updated.','wp-piwik'));
$this->showInput('set_download_extensions',__('Define all file types for download tracking','wp-piwik'),__('Replace Piwik\'s default file extensions for download tracking, divided by a vertical bar (|). Leave blank to keep Piwik\'s default settings.','wp-piwik').' '.sprintf(__('See %sPiwik documentation%s.','wp-piwik'),'<a href="https://developer.piwik.org/guides/tracking-javascript-guide#file-extensions-for-tracking-downloads">','</a>'));
echo$submitButton;
?>
</tbody>
...
...
@@ -406,7 +418,7 @@ class Settings extends \WP_Piwik\Admin {
* @param boolean $wide Create a wide box (default: false)
<?php_e('Please don\'t forget to vote the compatibility at the','wp-piwik');?><ahref="http://wordpress.org/extend/plugins/wp-piwik/">WordPress.org Plugin Directory</a>.
<?php_e('Please don\'t forget to vote the compatibility at the','wp-piwik');?><ahref="http://wordpress.org/extend/plugins/wp-piwik/">WordPress.org Plugin Directory</a>.
</div>
</div><?php
}
...
...
@@ -538,7 +550,7 @@ class Settings extends \WP_Piwik\Admin {
*/
publicfunctionshowCredits(){
?>
<p><strong><?php_e('Thank you very much for your donation','wp-piwik');?>:</strong> Marco L., Rolf W., Tobias U., Lars K., Donna F., Kevin D., Ramos S., Thomas M., John C., Andreas G., Ben M., Myra R. I., Carlos U. R.-S., Oleg I., M. N., Daniel K., James L., Jochen K., Cyril P., Thomas K., Patrik K., Zach, Sebastian W., Peakkom, Patrik K., <?php_e('the Piwik team itself','wp-piwik');?><?php_e(', and all people flattering this','wp-piwik');?>!</p>
<p><strong><?php_e('Thank you very much for your donation','wp-piwik');?>:</strong> Marco L., Rolf W., Tobias U., Lars K., Donna F., Kevin D., Ramos S., Thomas M., John C., Andreas G., Ben M., Myra R. I., Carlos U. R.-S., Oleg I., M. N., Daniel K., James L., Jochen K., Cyril P., Thomas K., Patrik K., Zach, Sebastian W., Peakkom, Patrik K., Kati K., <?php_e('the Piwik team itself','wp-piwik');?><?php_e(', and all people flattering this','wp-piwik');?>!</p>
<p><?php_e('Graphs powered by <a href="http://www.jqplot.com/">jqPlot</a> (License: GPL 2.0 and MIT) and <a href="http://omnipotent.net/jquery.sparkline/">jQuery Sparklines</a> (License: New BSD License).','wp-piwik');?></p>
<p><?php_e('Thank you very much','wp-piwik');?><ahref="https://www.transifex.com/projects/p/wp-piwik/">Transifex Translation Community</a><?php_e('for your translation work','wp-piwik');?>!</p>
<p><?php_e('Thank you very much, all users who send me mails containing criticism, commendation, feature requests and bug reports! You help me to make WP-Piwik much better.','wp-piwik');?></p>
...
...
@@ -693,4 +705,4 @@ class Settings extends \WP_Piwik\Admin {