chiark / gitweb /
Added basic displaying of additional reuirements for apps.
authorHans-Emil Skogh <hansemil@gmail.com>
Mon, 23 Jan 2012 20:21:40 +0000 (21:21 +0100)
committerHans-Emil Skogh <hansemil@gmail.com>
Mon, 23 Jan 2012 20:21:40 +0000 (21:21 +0100)
wp-fdroid/wp-fdroid.php

index a4a945ab068062c3bb5344a38dca5747377a1a4e..5efb416f1748ef8ccf77435d4f95d0e84e75ac02 100644 (file)
@@ -147,6 +147,9 @@ class FDroid
                                                case "antifeatures";
                                                        $antifeatures=$el;
                                                        break;
+                                               case "requirements";
+                                                       $requirements=$el;
+                                                       break;
                                                case "package":
                                                        $thisapk=array();
                                                        foreach($el->children() as $pel) {
@@ -216,7 +219,12 @@ class FDroid
                                        }
                                }
 
-                               $out.="<p><b>License:</b> ".$license."</p>";
+                               $out.="<p>";
+                               $out.="<b>License:</b> ".$license;
+                               if(isset($requirements)) {
+                                       $out.='<br /><b>Additional requirements:</b> '.$requirements;
+                               }
+                               $out.="</p>";
 
                                $out.="<p>";
                                if(strlen($web)>0)