chiark / gitweb /
add Flattr button to app details page
authorTorsten Grote <t@grobox.de>
Sat, 12 Apr 2014 11:27:34 +0000 (13:27 +0200)
committerTorsten Grote <t@grobox.de>
Sat, 12 Apr 2014 11:27:34 +0000 (13:27 +0200)
wp-fdroid/wp-fdroid.php

index fa27ecf0bdebd4a640e27e21eef8687ea66131c9..45129ae45c2c451eabf43505c62796a37b4383a0 100644 (file)
@@ -227,6 +227,9 @@ class FDroid
                                        case "donate":
                                                $donate=$el;
                                                break;
+                                       case "flattr":
+                                               $flattr=$el;
+                                               break;
                                        case "web":
                                                $web=$el;
                                                break;
@@ -337,6 +340,8 @@ class FDroid
                                        $out.='<b>Source Code:</b> <a href="'.$source.'">'.$source.'</a><br />';
                                if($donate && strlen($donate)>0)
                                        $out.='<b>Donate:</b> <a href="'.$donate.'">'.$donate.'</a><br />';
+                               if($flattr && strlen($flattr)>0)
+                                       $out.='<b>Flattr:</b> <a href="https://flattr.com/thing/'.$flattr.'"><img src="/wp-content/uploads/flattr-badge-large.png" /></a><br />';
                                $out.="</p>";
 
                                $out.="<p>For full details and additional technical information, see ";