From 724f65276b3bd857a76ed69bf8ad9e8015bdde9b Mon Sep 17 00:00:00 2001 From: David Sterry Date: Mon, 20 Dec 2010 16:22:57 -0800 Subject: [PATCH] fix blank first entry (repo), increase items per page, and add line breaks in html --- wp-fdroid/wp-fdroid.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php index 79de6eab..361e6f0b 100644 --- a/wp-fdroid/wp-fdroid.php +++ b/wp-fdroid/wp-fdroid.php @@ -207,7 +207,7 @@ class FDroid $out="

Applications matching ".$filter; $out.="

"; - $perpage=10; + $perpage=30; $skipped=0; $got=0; $total=0; @@ -215,6 +215,7 @@ class FDroid $xml = simplexml_load_file($this->site_path."/repo/index.xml"); foreach($xml->children() as $app) { + if($app->getName() == 'repo') continue; $attrs=$app->attributes(); $id=$attrs['id']; foreach($app->children() as $el) { @@ -239,22 +240,22 @@ class FDroid $skipped++; } else if($got<$perpage) { - $out.="
"; + $out.="
\n"; $out.='
'; - $out.='
'; + $out.='
'; $out.='
'; $out.='

Details...'; $out.="

"; - $out.="
"; + $out.="
\n"; $out.='

'.$name.""; - $out.="
".$summary."

"; + $out.="
".$summary."

\n"; - $out.=""; + $out.="\n"; $got++; } -- 2.30.2