From 2a193c4f097f8459ea69645cc614aca6f83f6d3b Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 23 Mar 2012 01:44:24 -0700 Subject: [PATCH] updated page plugin --- page.tgz | Bin 959 -> 1014 bytes page/README | 3 --- page/page.php | 8 ++++---- 3 files changed, 4 insertions(+), 7 deletions(-) delete mode 100755 page/README diff --git a/page.tgz b/page.tgz index c684499b2af20280efbbdc4cb584b219d2e57a3b..ade28eb25411239128afec3a169c4391fd2b0b70 100644 GIT binary patch literal 1014 zcmVeiwFSXH*8M;1MO99Z=*&K_E+;OrmM8zQv!a8ohWCxp6*ih!{t)ts_Ta+ ziZ`%^RbZjZlGLs4zjp=`C-${!KQz}$-A4%6nb~=L7Al^Kp!d8OB94xxz47$$Xgogb z4X3m5>~Pe|JM>1Qqse4AnH(JsdqZ5H2&T`RSBs`LTm$q99;Z^@N%bdoRXUxGj*pMO zL{48270sV+ew9_v6yq=EKN(MFoB2=2Go1fqf;52PGv%{||M~pquW;^8@ZyC7FW@~d z#0mU>Y@pR!QO8(`CRN__%n@>amv!vJ7j;QHImKzs}qk@*d;F+i!hm{s1S zXnnKVb`@t_E^bg$B<(_X2} z9naT^I{kG@l<9VsK>+WtJs_80G66`lrOXA$8u$(kojwK>JkGqw%6JVAi?-?O2$xrz z7z_(#Vf0{h*{-klfl=jKidH}xnQX~%Nz%4MPZe$}aj&q7{wHFTX|(d%_Jgl{aocMDDWf^@v#SV8MkhG!Me6HG)Nk33Rej!bl0A|Ow;v=X=H=AAB^M6Pc<_GU9n`T*5z;JfnxmGc01Kf0lSU95vPF!7p2 z^CpknT~cqKhwai@Zv9=pfKT=25^A%`MaU@TLHmASRuz6TRjI_wP3`OI=CVj36Ee+A z$VM{;*b|Zuy27D ziPQn=wn$2zy9{%FBXS1#>%*-f6TjeBNbww-scsq0gWBESrM}PR0mpgdGGc2^Z<>P| z9Kd>1>pNKx-)i}*D3^~N9zcYYqQ+w0?OAj=&6CImoj>?YN9W~L&AiwFSEF>Fr&1MOBzZ`(!?)|LDf(}i17hD_=$!xfntv4S4rxNwT}U>Md) zTuBR4B)cT-Iz|3_XO^^VsVSU8JKiFl-8JZ-cvqX_@DDXeuKQ*{^6kwhwy=~#R>d^ z(?HUh$mdFCg-nwZ__#{%bBJYL5wX0WAxYAx&Is$fNa6=rr+0#e8tbHA;pDnrR=1X+K~!SlJc&r5 z>K4T5a#@{*G8f9WaIcH*kHXsgyWq)16D}@6E6MiC!Nxn-i2&M7B%sdzIStM@l6N4Z zfYHKHE+aAHiorbQc^+9k2$QASOm=R$TomsN0$b&)Kvn<}(p9z>5R722A{c$2{RNR+QW_YzozE?ar9T#y-cU z#4=>nU~Mu)4R)dGSM?+dB0ZO%MY?z@vk4*cO4VWBdgvWaO(n*m_6L8{(a^pL?XP|R z^+)J(a(Z??+1nlS;{U(?u)hDhqh5D}_kVXV9GUz7HK32IZNG56|JPX>7#J8B7#J8B h7#J8B7#J8B7#J8B7#J8B7#MsD{sJW}p*;X7007pc * based on pages plugin by @@ -23,7 +23,7 @@ function page_getpage($uid) { $pagelist = array(); - $contacts = q("SELECT `id`, `url`, `name` FROM `contact` + $contacts = q("SELECT `id`, `url`, `name`, `micro`FROM `contact` WHERE `network`= 'dfrn' AND `forum` = 1 AND `uid` = %d", intval($uid) ); @@ -32,7 +32,7 @@ function page_getpage($uid) { // Look if the profile is a community page foreach($contacts as $contact) { - $page[] = array("url"=>$contact["url"], "name"=>$contact["name"], "id"=>$contact["id"]); + $page[] = array("url"=>$contact["url"], "name"=>$contact["name"], "id"=>$contact["id"], "micro"=>$contact['micro']); } return($page); } @@ -50,7 +50,7 @@ function page_page_end($a,&$b) { $contacts = page_getpage($a->user['uid']); foreach($contacts as $contact) { - $page .= '
  • '. + $page .= '
  • ' . $contact['url'] . ' '. $contact["name"]."
  • "; } $page .= ""; -- 2.39.5