summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-25 10:57:01 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-25 10:57:01 +0000
commit1f79863053350f1a7d6cb654ac615123bc3b5133 (patch)
treebacfeada8244f49e0fd7ad38bc7bbbd6ac27bd57 /includes/theme.inc
parentd30751899897dc67f5f0563133ec14164cdfb993 (diff)
downloadbrdo-1f79863053350f1a7d6cb654ac615123bc3b5133.tar.gz
brdo-1f79863053350f1a7d6cb654ac615123bc3b5133.tar.bz2
- large commit of everything else that has been queued in my backlog:
it's not 100% stable yet
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index f7fe640dc..6182f8936 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -75,13 +75,13 @@ function theme_account($theme) {
function theme_blocks($region, $theme) {
- global $id, $PHP_SELF, $user;
+ global $id, $PHP_SELF, $status, $user;
switch (strrchr($PHP_SELF, "/")) {
case "/node.php":
if ($region != "left") {
if ($user->id) $node = db_fetch_object(db_query("SELECT * FROM nodes WHERE nid = '$id'"));
- if ($node->status == 1) theme_moderation_results($theme, $node);
+ if ($node->status == $status[queued]) theme_moderation_results($theme, $node);
// else theme_new_headlines($theme);
}
break;
@@ -113,6 +113,10 @@ function theme_moderation_results($theme, $node) {
}
}
+/*
+//
+// depricated -> new block strategy
+//
function theme_new_headlines($theme, $num = 10) {
$result = db_query("SELECT nid, title FROM nodes WHERE status = 2 AND type = 'story' ORDER BY nid DESC LIMIT $num");
while ($node = db_fetch_object($result)) $content .= "<LI><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A></LI>\n";
@@ -132,5 +136,6 @@ function theme_old_headlines($theme, $num = 10) {
}
$theme->box(t("Older headlines"), $content);
}
+*/
?>