diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-11-09 23:27:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-11-09 23:27:22 +0000 |
commit | 951b553a9887df92d93ecc42e7e83ca568e26aae (patch) | |
tree | c35a2ae7f53ecbd83e6ff52b847a6c469e5a438a /modules/blog/blog.module | |
parent | 00ee7f747b0920f2b8375b494930b19a25030a57 (diff) | |
download | brdo-951b553a9887df92d93ecc42e7e83ca568e26aae.tar.gz brdo-951b553a9887df92d93ecc42e7e83ca568e26aae.tar.bz2 |
- Committed stage 2 of the theme system improvements! Patch by CodeMonkeyX.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index c8aa80a43..9acaf7bb0 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -119,7 +119,7 @@ function blog_page_user($uid) { $breadcrumb[] = l(t("Home"), NULL); $breadcrumb[] = l(t("Blogs"), "blog"); $breadcrumb[] = t("%name's blog", array("%name" => $account->name)); - theme("breadcrumb", $breadcrumb); + print theme("breadcrumb", $breadcrumb); $result = pager_query("SELECT nid FROM {node} WHERE type = 'blog' AND uid = '$account->uid' AND status = 1 ORDER BY nid DESC", variable_get("default_nodes_main", 10)); while ($node = db_fetch_object($result)) { @@ -135,7 +135,7 @@ function blog_page_last() { // Breadcrumb navigation: $breadcrumb[] = l(t("Home"), NULL); $breadcrumb[] = t("Blogs"); - theme("breadcrumb", $breadcrumb); + print theme("breadcrumb", $breadcrumb); $result = pager_query("SELECT nid FROM {node} WHERE type = 'blog' AND status = 1 ORDER BY nid DESC", variable_get("default_nodes_main", 10)); @@ -153,7 +153,7 @@ function blog_validate(&$node) { */ if (isset($node->body) && count(explode(" ", $node->body)) < variable_get("minimum_blog_size", 0)) { - $error["body"] = theme("theme_error", t("The body of your blog is too short.")); + $error["body"] = theme("error", t("The body of your blog is too short.")); } return $error; @@ -207,20 +207,20 @@ function blog_page() { } break; default: - theme("header"); + print theme("header"); if (arg(1)) { blog_page_user(arg(1)); } else { blog_page_last(); } - theme("footer"); + print theme("footer"); } } else { - theme("header"); - theme("box", t("Access denied"), message_access()); - theme("footer"); + print theme("header"); + print theme("box", t("Access denied"), message_access()); + print theme("footer"); } } @@ -237,12 +237,12 @@ function blog_view($node, $main = 0) { $breadcrumb[] = l(t("Home"), NULL); $breadcrumb[] = l(t("%name's blog", array("%name" => $node->name)), "blog/$node->uid"); // print the breadcrumb - theme("breadcrumb", $breadcrumb); + print theme("breadcrumb", $breadcrumb); } // prepair the node content $node = blog_content($node); // print the node - theme("node", $node, $main); + print theme("node", $node, $main); } function blog_link($type, $node = 0, $main) { |