Commit 1b8d41f9 authored by lucha's avatar lucha Committed by lechuck

removing tracking js from Flattr plugin

parent 81a2da08
......@@ -18,7 +18,7 @@ class Flattr
/**
* @deprecated
*/
const API_SCRIPT = 'api.flattr.com/js/0.6/load.js?mode=auto';
//const API_SCRIPT = 'api.flattr.com/js/0.6/load.js?mode=auto';
const FLATTR_DOMAIN = 'flattr.com';
......@@ -350,6 +350,7 @@ class Flattr
}
public function insert_script() {
/* we do not want any tracking js on Noblogs
?><script type="text/javascript">
(function() {
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
......@@ -359,6 +360,7 @@ class Flattr
t.parentNode.insertBefore(s, t);
})();
</script><?php
*/
}
public function insert_wizard() {
......
......@@ -126,16 +126,7 @@
<th scope="row">Button type</th>
<td>
<ul>
<li>
<input type="radio" id="flattr_button_style_js"name="flattr_button_style" value="js"<?=(get_option('flattr_button_style')=="js")?" checked":"";?>/>
<?php Flattr::getInstance()->admin_script(); ?>
<a class="FlattrButton" href="http://wordpress.org/extend/plugins/flattr/" title="Wordpress Flattr plugin" lang="en_GB"
rel="flattr;uid:der_michael;category:software;tags:wordpress,plugin,flattr,rss;<?=get_option('flattr_compact')?"button:compact;":"";?>">
Give your readers the opportunity to Flattr your effort. See http://wordpress.org/extend/plugins/flattr/ for details.
</a>
<span class="description"><label for="flattr_button_style_js"><?php _e('Dynamic javascript version'); ?></label></span>
</li>
<li>
<li>
<input type="radio" id="flattr_button_style_image" name="flattr_button_style" value="image"<?=(get_option('flattr_button_style')=="image")?" checked":"";?>/>
<img src="<?=get_option('flattrss_custom_image_url');?>"/>
<span class="description"><label for="flattr_button_style_image"><?php _e('Static image version'); ?></label></span>
......@@ -148,19 +139,6 @@
</ul>
</td>
</tr>
<tr>
<th scope="row"><label for="flattr_compact"><?php _e('Use the compact button'); ?></label></th>
<td>
<input <?php if (get_option('flattr_compact', 'false') == 'true') { echo(' checked="checked"'); } ?> type="checkbox" id="flattr_compact" name="flattr_compact" value="true" />
<span class="description"><?php _e('Only applies to the javascript button type.'); ?></span>
</td>
</tr>
<tr>
<th scope="row"><label for="flattr_popout_enabled"><?php _e('Enable the button popout'); ?></label></th>
<td>
<input <?php if (get_option('flattr_popout_enabled', 'true')) { echo(' checked="checked"'); } ?> type="checkbox" id="flattr_popout_enabled" name="flattr_popout_enabled" value="true" />
</td>
</tr>
<tr>
<th scope="row"><label for="flattrss_custom_image_url">Custom Image URL</label></th>
<td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment