summaryrefslogtreecommitdiff
path: root/modules/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-02-15 11:39:56 +0000
committerDries Buytaert <dries@buytaert.net>2003-02-15 11:39:56 +0000
commit83f5d82876e6b2102c2b5839b430f1d5f9a23ec1 (patch)
tree01fdcbf42575cd001bfd87af07b9ef1bd1ea8453 /modules/blog.module
parentd03872979756371aeff787bca107db9a88d7004a (diff)
downloadbrdo-83f5d82876e6b2102c2b5839b430f1d5f9a23ec1.tar.gz
brdo-83f5d82876e6b2102c2b5839b430f1d5f9a23ec1.tar.bz2
- Everything is using theme("function") now instead of $theme->function().
Diffstat (limited to 'modules/blog.module')
-rw-r--r--modules/blog.module20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/blog.module b/modules/blog.module
index 2c54e3f09..6917baa5b 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -146,7 +146,7 @@ function blog_feed_last() {
}
function blog_page_user($uid = 0) {
- global $user, $theme;
+ global $user;
if ($uid) {
$account = user_load(array((is_numeric($uid) ? "uid" : "name") => $uid, "status" => 1));
@@ -160,11 +160,11 @@ function blog_page_user($uid = 0) {
node_view(node_load(array("nid" => $node->nid)), 1);
}
print pager_display(NULL, variable_get("default_nodes_main", 10));
- print l("<img align=\"right\" src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />", "blog/feed/$account->uid", array("title" => t("View the XML version of %username's blog", array ("%username" => $account->name))));
+ print l("<img align=\"right\" src=\"". theme("image", "xml.gif") ."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />", "blog/feed/$account->uid", array("title" => t("View the XML version of %username's blog", array ("%username" => $account->name))));
}
function blog_page_last() {
- global $user, $theme;
+ global $user;
$result = pager_query("SELECT nid FROM node WHERE type = 'blog' AND status = 1 ORDER BY nid DESC", variable_get("default_nodes_main", 10));
@@ -172,7 +172,7 @@ function blog_page_last() {
$output = node_view(node_load(array("nid" => $node->nid)), 1);
}
$output .= pager_display(NULL, variable_get("default_nodes_main", 10));
- $output .= l("<img align=\"right\" src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />", "blog/feed", array("title" => t("Read the XML version of all blogs.")));
+ $output .= l("<img align=\"right\" src=\"". theme("image", "xml.gif") ."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />", "blog/feed", array("title" => t("Read the XML version of all blogs.")));
return $output;
}
@@ -220,7 +220,7 @@ function blog_form(&$node, &$help, &$error) {
}
function blog_page() {
- global $theme;
+
if (user_access("access content")) {
switch (arg(1)) {
@@ -233,20 +233,20 @@ function blog_page() {
}
break;
default:
- $theme->header();
+ theme("header");
if (arg(1)) {
blog_page_user(arg(1));
}
else {
print blog_page_last();
}
- $theme->footer();
+ theme("footer");
}
}
else {
- $theme->header();
- $theme->box(t("Access denied"), message_access());
- $theme->footer();
+ theme("header");
+ theme("box", t("Access denied"), message_access());
+ theme("footer");
}
}