Commit 0c698310 authored by mfer's avatar mfer

Updated blogroll to use proper theming

parent a0e17268
......@@ -60,13 +60,11 @@ function bloginfo_block($op = 'list', $delta = 0) {
break;
case 'blogroll':
$results = db_query("SELECT uid, title FROM {bloginfo} WHERE title <> '' ORDER BY title ASC");
$output = '<ul>';
while ($item = db_fetch_array($results)) {
$output .= '<li>'. l($item['title'], 'blog/'. $item['uid']) .'</li>';
$output[] = l($item['title'], 'blog/'. $item['uid']);
}
$output .= '</ul>';
$block['subject'] = t('Blog Listing');
$block['content'] = $output;
$block['content'] = theme('item_list', $output);
return $block;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment