Theme function required!
| Project: | Blog Add-ons |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
You should write a theme function for blogs pages. for example: the blog_addons_page_results function should call to a "theme_user_blog" (or something like that). Maybe more than one: you could have one for each indivual blog entry, one for the general and one for the "title/date" tabs, the more the better.My point is that you need to provide a way that a themer can alter the output for the pages without having to modify the module's files. The blogs as unordered list really looks bad and it's really frustating for a themer not to have a way to alter that output. The most regular output should be with blog entries teasers.
Also, when creating lists you should user theme_item_list() instead of building the list yourself. Instead of:
$output .= "<ul>";
while ($foo = db_fetch_object($result))
{
$output .= "<li>" . l('some link', 'http://www.example.com') . "</li>";
}
$output .= "</ul>";it should go:
while ($foo = db_fetch_object($result))
{
$items[] = l('some link', 'http://www.example.com');
}
$output .= theme_item_list($items, $title = NULL, $type = 'ul', $attributes = NULL);