diff options
author | natrak <> | 2001-06-11 17:42:52 +0000 |
---|---|---|
committer | natrak <> | 2001-06-11 17:42:52 +0000 |
commit | 83542a1b0128081bdfdd712becb8a870e8e99e86 (patch) | |
tree | f2476562ed0b2abaf0fc27f3c9b7f040f17ff53a /includes | |
parent | 8f7eddbed6ae6e9b244b601686bcdc2e31a40edc (diff) | |
download | brdo-83542a1b0128081bdfdd712becb8a870e8e99e86.tar.gz brdo-83542a1b0128081bdfdd712becb8a870e8e99e86.tar.bz2 |
Changes
- fixed the trailing | in some cases.
- removed theme_morelinks().
- added node_links().
- simplified BaseTheme->links().
- updated themes.
Notes
- the new links system is taking form, but concider it beta. There might still
be some major changes ahead so I suggest waiting a little longer before
modifying your theme to take advantage of it.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/node.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/node.inc b/includes/node.inc index 38dd79a85..73b8f8c1c 100644 --- a/includes/node.inc +++ b/includes/node.inc @@ -247,4 +247,13 @@ function node_access($account, $node) { return strstr($node->moderate, $account->userid); } +function node_links(&$links, &$node, $main = 0) { + if ($main) { + if ($node->body) $_links[] = array("node.php?id=$node->nid", t("read more")); + if ($node->comment) $_links[] = array("node.php?id=$node->nid", format_plural(node_get_comments($node->nid), "comment", "comments")); + } + $links = array_merge($_links, $links); + return $links; +} + ?>
\ No newline at end of file |