basic vcalendar formatting support
This commit is contained in:
@@ -659,9 +659,11 @@ function widget_bookmarkedchats($arr) {
|
||||
$r = q("select * from xchat where xchat_xchan = '%s' group by xchat_url order by xchat_desc",
|
||||
dbesc($h)
|
||||
);
|
||||
|
||||
for($x = 0; $x < count($r); $x ++)
|
||||
$r[$x]['xchat_url'] = zid($r[$x]['xchat_url']);
|
||||
if($r) {
|
||||
for($x = 0; $x < count($r); $x ++) {
|
||||
$r[$x]['xchat_url'] = zid($r[$x]['xchat_url']);
|
||||
}
|
||||
}
|
||||
return replace_macros(get_markup_template('bookmarkedchats.tpl'),array(
|
||||
'$header' => t('Bookmarked Chatrooms'),
|
||||
'$rooms' => $r
|
||||
@@ -677,9 +679,11 @@ function widget_suggestedchats($arr) {
|
||||
if(! $h)
|
||||
return;
|
||||
$r = q("select *, count(xchat_url) as total from xchat group by xchat_url order by total desc, xchat_desc limit 24");
|
||||
|
||||
for($x = 0; $x < count($r); $x ++)
|
||||
$r[$x]['xchat_url'] = zid($r[$x]['xchat_url']);
|
||||
if($r) {
|
||||
for($x = 0; $x < count($r); $x ++) {
|
||||
$r[$x]['xchat_url'] = zid($r[$x]['xchat_url']);
|
||||
}
|
||||
}
|
||||
return replace_macros(get_markup_template('bookmarkedchats.tpl'),array(
|
||||
'$header' => t('Suggested Chatrooms'),
|
||||
'$rooms' => $r
|
||||
|
Reference in New Issue
Block a user