mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Donate links (for apps that have them) into the index, and on the web site
This commit is contained in:
parent
f775773439
commit
aaa98fe8b5
3 changed files with 9 additions and 2 deletions
|
@ -34,7 +34,7 @@ def read_metadata():
|
||||||
thisinfo['web'] = ''
|
thisinfo['web'] = ''
|
||||||
thisinfo['source'] = ''
|
thisinfo['source'] = ''
|
||||||
thisinfo['tracker'] = ''
|
thisinfo['tracker'] = ''
|
||||||
thisinfo['donate'] = ''
|
thisinfo['donate'] = None
|
||||||
thisinfo['disabled'] = None
|
thisinfo['disabled'] = None
|
||||||
thisinfo['antifeatures'] = None
|
thisinfo['antifeatures'] = None
|
||||||
thisinfo['marketversion'] = ''
|
thisinfo['marketversion'] = ''
|
||||||
|
|
|
@ -255,6 +255,8 @@ for app in apps:
|
||||||
addElement('web', app['web'], doc, apel)
|
addElement('web', app['web'], doc, apel)
|
||||||
addElement('source', app['source'], doc, apel)
|
addElement('source', app['source'], doc, apel)
|
||||||
addElement('tracker', app['tracker'], 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('marketversion', app['marketversion'], doc, apel)
|
||||||
addElement('marketvercode', app['marketvercode'], doc, apel)
|
addElement('marketvercode', app['marketvercode'], doc, apel)
|
||||||
if not (app['antifeatures'] is None):
|
if not (app['antifeatures'] is None):
|
||||||
|
|
|
@ -18,7 +18,7 @@ class FDroid
|
||||||
// Our text domain, for internationalisation
|
// Our text domain, for internationalisation
|
||||||
var $textdom='wp-fdroid';
|
var $textdom='wp-fdroid';
|
||||||
|
|
||||||
var $site_path = "/var/www/fdroid";
|
var $site_path = "/home/fdroid/public_html";
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
function FDroid() {
|
function FDroid() {
|
||||||
|
@ -127,6 +127,9 @@ class FDroid
|
||||||
case "tracker":
|
case "tracker":
|
||||||
$issues=$el;
|
$issues=$el;
|
||||||
break;
|
break;
|
||||||
|
case "donate":
|
||||||
|
$donate=$el;
|
||||||
|
break;
|
||||||
case "web":
|
case "web":
|
||||||
$web=$el;
|
$web=$el;
|
||||||
break;
|
break;
|
||||||
|
@ -179,6 +182,8 @@ class FDroid
|
||||||
$out.='<b>Issue Tracker:</b> <a href="'.$issues.'">'.$issues.'</a><br />';
|
$out.='<b>Issue Tracker:</b> <a href="'.$issues.'">'.$issues.'</a><br />';
|
||||||
if(strlen($source)>0)
|
if(strlen($source)>0)
|
||||||
$out.='<b>Source Code:</b> <a href="'.$source.'">'.$source.'</a><br />';
|
$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.="</p>";
|
||||||
|
|
||||||
$out.="<h3>Packages</h3>";
|
$out.="<h3>Packages</h3>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue