]> git.wh0rd.org - tt-rss.git/commitdiff
open flattr links in new tabs
authorJörg Thalheim <joerg@higgsboson.tk>
Sun, 20 Jan 2013 12:38:44 +0000 (13:38 +0100)
committerJörg Thalheim <joerg@higgsboson.tk>
Sun, 20 Jan 2013 12:38:44 +0000 (13:38 +0100)
Usually users don't want to leave ttrss, when clicking on a flattr link.

plugins/flattr/init.php

index 86f21fa13bc65338351a8c78796cc3eed9b3c2a5..09796d862e4c29f52a506f6ed76cce4fac00ccf7 100644 (file)
@@ -37,7 +37,7 @@ class Flattr extends Plugin {
 
     $rv = null;
     if ($response and array_key_exists('link', $response)) {
-      $rv = "<a id='flattr' href='" . $response['link'] . "'>
+      $rv = "<a id='flattr' target='_blank' href='" . $response['link'] . "'>
         <img src=\"".theme_image($this->link, 'plugins/flattr/flattr.png')."\"
         class='tagsPic' style=\"cursor : pointer\"
         title='".__('Flattr article')."'>