diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-11-09 13:59:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-11-09 13:59:36 +0000 |
commit | 562df8fe43f8794317c974dae463f5470cfdc497 (patch) | |
tree | 73d897d51f8b1873eff41193733d309495d01aea /modules/blog.module | |
parent | 29adfb4086c8ef6102d9f22f5351382485444be5 (diff) | |
download | brdo-562df8fe43f8794317c974dae463f5470cfdc497.tar.gz brdo-562df8fe43f8794317c974dae463f5470cfdc497.tar.bz2 |
* Added Jeremy's pager:
"This is a simple, generic pager for Drupal-CVS. It is designed to be
easily themeable and expandable. The code is highly-commented to
enhance readability."
"Pagers are constructed by combining the provided pieces (all of which
can be easily modified to display the text or image you prefer) into
your custom pager."
* Statistics module fixes by Jeremy:
- removed superfluous check for existence of watchdog()
- saving changes in admin page displays status and returns same page
- no longer return 1971/01/01 in "view statistics" table
- switched from "!=" to "<>" in SQL queries for ANSI-SQL compliance
- switched from "MAX(timestamp) as timestamp" to "MAX(timestamp) as
max_timestamp" moving towards ANSI-SQL compliance.
* Added a "theme_item_list" function to format itemized lists. Also
changed a couple of modules to take advantage of it. Makes for a
more consistent UI.
Diffstat (limited to 'modules/blog.module')
-rw-r--r-- | modules/blog.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blog.module b/modules/blog.module index ef75b500d..b603884fc 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -343,10 +343,10 @@ function blog_block($op = "list", $delta = 0) { if (user_access("access content")) { $result = db_query("SELECT u.uid, u.name, n.created, n.title, n.nid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.type = 'blog' ORDER BY n.nid DESC LIMIT 10"); while ($node = db_fetch_object($result)) { - $output .= l(check_output($node->title), array("id" => $node->nid)) ."<br />\n"; + $items[] = l(check_output($node->title), array("id" => $node->nid)); } - $output .= "<br /><div align=\"right\">". lm(t("more"), array("mod" => "blog"), "", array("title" => t("Read the latest blog entries."))) ."</div>"; - $block["content"] = $output; + + $block["content"] = theme_invoke("theme_item_list", $items) ."<br /><div align=\"right\">". lm(t("more"), array("mod" => "blog"), "", array("title" => t("Read the latest blog entries."))) ."</div>"; $block["subject"] = t("User blogs"); } return $block; |