1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

Donate links (for apps that have them) into the index, and on the web site

This commit is contained in:
Ciaran Gultnieks 2011-01-22 13:45:18 +00:00
parent fa1c234eb4
commit 50b92e5377
3 changed files with 9 additions and 2 deletions

View File

@ -34,7 +34,7 @@ def read_metadata():
thisinfo['web'] = ''
thisinfo['source'] = ''
thisinfo['tracker'] = ''
thisinfo['donate'] = ''
thisinfo['donate'] = None
thisinfo['disabled'] = None
thisinfo['antifeatures'] = None
thisinfo['marketversion'] = ''

View File

@ -255,6 +255,8 @@ for app in apps:
addElement('web', app['web'], doc, apel)
addElement('source', app['source'], doc, apel)
addElement('tracker', app['tracker'], doc, apel)
if app['donate'] != None:
addElement('donate', app['donate'], doc, apel)
addElement('marketversion', app['marketversion'], doc, apel)
addElement('marketvercode', app['marketvercode'], doc, apel)
if not (app['antifeatures'] is None):

View File

@ -18,7 +18,7 @@ class FDroid
// Our text domain, for internationalisation
var $textdom='wp-fdroid';
var $site_path = "/var/www/fdroid";
var $site_path = "/home/fdroid/public_html";
// Constructor
function FDroid() {
@ -127,6 +127,9 @@ class FDroid
case "tracker":
$issues=$el;
break;
case "donate":
$donate=$el;
break;
case "web":
$web=$el;
break;
@ -179,6 +182,8 @@ class FDroid
$out.='<b>Issue Tracker:</b> <a href="'.$issues.'">'.$issues.'</a><br />';
if(strlen($source)>0)
$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 />';
$out.="</p>";
$out.="<h3>Packages</h3>";