Commit 8c954094 authored by lucha's avatar lucha Committed by lechuck

removing tracking js from Flattr plugin

parent 7c85ff9a
......@@ -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,20 +126,6 @@
<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>
<input type="radio" name="flattr_button_style" value="image-white"<?=(get_option('flattr_button_style')=="image-white")?" checked":"";?>/>
<?= Flattr::getStaticImageButton($type='image-white') ?>
<span class="description"><?php _e('Static green-white image with with HiDPI support using srcset.'); ?></span>
</li>
<li>
<input type="radio" id="flattr_button_style_image" name="flattr_button_style" value="image"<?=(get_option('flattr_button_style')=="image")?" checked":"";?>/>
<?= Flattr::getStaticImageButton('image') ?>
......@@ -153,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>
......@@ -243,4 +216,4 @@
<p class="description"><?php _e('Only use if you for some reason want to presubmit content to Flattr.com prior to them being flattred.'); ?></p>
</td>
</tr>
</table>
\ No newline at end of file
</table>
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