- Added some more explanations.
parent
ca95b491ff
commit
47daf7f006
|
@ -179,7 +179,7 @@ function blog_page_user($uid = 0, $date = 0) {
|
|||
}
|
||||
|
||||
if ($blog->comment) {
|
||||
$links[] = "<a href=\"node.php?id=$blog->nid\" title=\"". t("View this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>";
|
||||
$links[] = "<a href=\"node.php?id=$blog->nid\" title=\"". t("Read this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>";
|
||||
}
|
||||
|
||||
$output .= "<tr><td><div style=\"margin-left: 20px;\"><b>". check_output($blog->title) ."</b></div></td><td align=\"right\">". $theme->links($links) ."</td></tr>";
|
||||
|
@ -188,7 +188,7 @@ function blog_page_user($uid = 0, $date = 0) {
|
|||
}
|
||||
|
||||
$output .= "</table>";
|
||||
$output .= "<a href=\"module.php?mod=blog&op=feed&id=$account->uid\" title=\"". t("View the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n";
|
||||
$output .= "<a href=\"module.php?mod=blog&op=feed&id=$account->uid\" title=\"". t("Read the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n";
|
||||
|
||||
$theme->box(sprintf(t("%s's blog"), $account->name), $output, "main");
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ function blog_page_last() {
|
|||
}
|
||||
|
||||
$output .= "</table>";
|
||||
$output .= "<a href=\"module.php?mod=blog&op=feed\" title=\"". t("View the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n";
|
||||
$output .= "<a href=\"module.php?mod=blog&op=feed\" title=\"". t("Read the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n";
|
||||
|
||||
$theme->box(t("User blogs"), $output, "main");
|
||||
}
|
||||
|
@ -311,17 +311,17 @@ function blog_link($type, $node = 0) {
|
|||
global $user;
|
||||
|
||||
if ($type == "page" && user_access("access content")) {
|
||||
$links[] = "<a href=\"module.php?mod=blog\" title=\"". t("View the latest blog entries in chronological order.") ."\">". t("user blogs") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=blog\" title=\"". t("Read the latest blog entries.") ."\">". t("user blogs") ."</a>";
|
||||
}
|
||||
|
||||
if ($type == "menu") {
|
||||
$links[] = "<a href=\"module.php?mod=node&op=add&type=blog\" title=\"". t("Post a new entry to your personal blog.") ."\">". t("add blog entry") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=blog&op=view&id=$user->uid\" title=\"". t("View your latest blog entries in chronological order.") ."\">". t("view your blog") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=blog&op=view&id=$user->uid\" title=\"". t("Read your latest blog entries.") ."\">". t("view your blog") ."</a>";
|
||||
}
|
||||
|
||||
if ($type == "node" && $node->type == "blog") {
|
||||
if (blog_access("update", $node)) {
|
||||
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Update this blog entry.") ."\">". t("update this blog") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Edit this blog entry.") ."\">". t("edit this blog") ."</a>";
|
||||
}
|
||||
else {
|
||||
$links[] = "<a href=\"module.php?mod=blog&op=view&id=$node->uid\" title=\"". sprintf(t("Read %s's latest blog entries."), $node->name) ."\">". strtr(t("%a's blog"), array("%a" => $node->name)) ."</a>";
|
||||
|
@ -340,7 +340,7 @@ function blog_block() {
|
|||
$output .= "<a href=\"node.php?id=$node->nid\">". check_output($node->title) ."</a><br />\n";
|
||||
}
|
||||
|
||||
$output .= "<br /><div align=\"right\"><a href=\"module.php?mod=blog\" title=\"". t("View the latest blog entries in chronological order.") ."\">". t("more") ."</a></div>";
|
||||
$output .= "<br /><div align=\"right\"><a href=\"module.php?mod=blog\" title=\"". t("Read the latest blog entries.") ."\">". t("more") ."</a></div>";
|
||||
|
||||
$block[0]["subject"] = t("User blogs");
|
||||
$block[0]["content"] = $output;
|
||||
|
|
|
@ -179,7 +179,7 @@ function blog_page_user($uid = 0, $date = 0) {
|
|||
}
|
||||
|
||||
if ($blog->comment) {
|
||||
$links[] = "<a href=\"node.php?id=$blog->nid\" title=\"". t("View this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>";
|
||||
$links[] = "<a href=\"node.php?id=$blog->nid\" title=\"". t("Read this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>";
|
||||
}
|
||||
|
||||
$output .= "<tr><td><div style=\"margin-left: 20px;\"><b>". check_output($blog->title) ."</b></div></td><td align=\"right\">". $theme->links($links) ."</td></tr>";
|
||||
|
@ -188,7 +188,7 @@ function blog_page_user($uid = 0, $date = 0) {
|
|||
}
|
||||
|
||||
$output .= "</table>";
|
||||
$output .= "<a href=\"module.php?mod=blog&op=feed&id=$account->uid\" title=\"". t("View the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n";
|
||||
$output .= "<a href=\"module.php?mod=blog&op=feed&id=$account->uid\" title=\"". t("Read the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n";
|
||||
|
||||
$theme->box(sprintf(t("%s's blog"), $account->name), $output, "main");
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ function blog_page_last() {
|
|||
}
|
||||
|
||||
$output .= "</table>";
|
||||
$output .= "<a href=\"module.php?mod=blog&op=feed\" title=\"". t("View the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n";
|
||||
$output .= "<a href=\"module.php?mod=blog&op=feed\" title=\"". t("Read the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n";
|
||||
|
||||
$theme->box(t("User blogs"), $output, "main");
|
||||
}
|
||||
|
@ -311,17 +311,17 @@ function blog_link($type, $node = 0) {
|
|||
global $user;
|
||||
|
||||
if ($type == "page" && user_access("access content")) {
|
||||
$links[] = "<a href=\"module.php?mod=blog\" title=\"". t("View the latest blog entries in chronological order.") ."\">". t("user blogs") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=blog\" title=\"". t("Read the latest blog entries.") ."\">". t("user blogs") ."</a>";
|
||||
}
|
||||
|
||||
if ($type == "menu") {
|
||||
$links[] = "<a href=\"module.php?mod=node&op=add&type=blog\" title=\"". t("Post a new entry to your personal blog.") ."\">". t("add blog entry") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=blog&op=view&id=$user->uid\" title=\"". t("View your latest blog entries in chronological order.") ."\">". t("view your blog") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=blog&op=view&id=$user->uid\" title=\"". t("Read your latest blog entries.") ."\">". t("view your blog") ."</a>";
|
||||
}
|
||||
|
||||
if ($type == "node" && $node->type == "blog") {
|
||||
if (blog_access("update", $node)) {
|
||||
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Update this blog entry.") ."\">". t("update this blog") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Edit this blog entry.") ."\">". t("edit this blog") ."</a>";
|
||||
}
|
||||
else {
|
||||
$links[] = "<a href=\"module.php?mod=blog&op=view&id=$node->uid\" title=\"". sprintf(t("Read %s's latest blog entries."), $node->name) ."\">". strtr(t("%a's blog"), array("%a" => $node->name)) ."</a>";
|
||||
|
@ -340,7 +340,7 @@ function blog_block() {
|
|||
$output .= "<a href=\"node.php?id=$node->nid\">". check_output($node->title) ."</a><br />\n";
|
||||
}
|
||||
|
||||
$output .= "<br /><div align=\"right\"><a href=\"module.php?mod=blog\" title=\"". t("View the latest blog entries in chronological order.") ."\">". t("more") ."</a></div>";
|
||||
$output .= "<br /><div align=\"right\"><a href=\"module.php?mod=blog\" title=\"". t("Read the latest blog entries.") ."\">". t("more") ."</a></div>";
|
||||
|
||||
$block[0]["subject"] = t("User blogs");
|
||||
$block[0]["content"] = $output;
|
||||
|
|
|
@ -82,9 +82,9 @@ function book_save($op, $node) {
|
|||
/*
|
||||
** If a node administrator updates a book page, we don't create a
|
||||
** new revision unless we are explicitly instructed to. If a node
|
||||
** administrator updates a book page using the "update this book
|
||||
** page"-link (like regular users do) then he'll be treated as a
|
||||
** regular user.
|
||||
** administrator updates a book page using the "edit this page"
|
||||
** link (like regular users do) then he'll be treated as a regular
|
||||
** user.
|
||||
*/
|
||||
|
||||
return array("format", "parent", "weight");
|
||||
|
@ -103,7 +103,7 @@ function book_link($type, $node = 0, $main = 0) {
|
|||
}
|
||||
|
||||
if ($type == "node" && $node->type == "book" && book_access("update", $node)) {
|
||||
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("update this book page") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("edit this page") ."</a>";
|
||||
}
|
||||
|
||||
return $links ? $links : array();
|
||||
|
@ -136,7 +136,7 @@ function book_load($node) {
|
|||
/*
|
||||
** We set the revision field to indicate that we have to create
|
||||
** a new revision when updating this book page. We enable this
|
||||
** always such that the "update this book page"-links appear.
|
||||
** always such that the "edit this page"-links appear.
|
||||
*/
|
||||
|
||||
$book->revision = 1;
|
||||
|
@ -402,7 +402,7 @@ function book_view($node, $main = 0) {
|
|||
|
||||
$output .= " <tr><td colspan=\"3\"><hr /></td></tr>";
|
||||
$output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<a href=\"node.php?id=$prev->nid\" title=\"". t("View the previous page in this book.") ."\">". t("previous") ."</a>" : t("previous")) ."</td><td align=\"center\" width=\"34%\"><a href=\"module.php?mod=book\" title=\"". t("View this book's table of contents.") ."\">index</a></td><td align=\"right\" width=\"33%\">". ($next ? "<a href=\"node.php?id=$next->nid\" title=\"". t("View the next page in this book.") ."\">". t("next") ."</a>" : t("next")) ."</td></tr>";
|
||||
$output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<small>". check_output($prev->title) ."</small>" : " ") ."</td><td align=\"center\" width=\"34%\">". ($node->parent ? "<a href=\"node.php?id=$node->parent\" title=\"". t("View the parent section.") ."\">". t("up") ."</a>" : t("up")) ."</td><td align=\"right\" width=\"33%\">". ($next ? "<small>". check_output($next->title) ."</small>" : " ") ."</td></tr>";
|
||||
$output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<small>". check_output($prev->title) ."</small>" : " ") ."</td><td align=\"center\" width=\"34%\">". ($node->parent ? "<a href=\"node.php?id=$node->parent\" title=\"". t("View this page's parent section.") ."\">". t("up") ."</a>" : t("up")) ."</td><td align=\"right\" width=\"33%\">". ($next ? "<small>". check_output($next->title) ."</small>" : " ") ."</td></tr>";
|
||||
$output .= " <tr><td colspan=\"3\"><hr /></td></tr>";
|
||||
$output .= " <tr><td colspan=\"3\" align=\"right\"><div style=\"margin: 10 10 10 10;\">". $theme->links(link_node($node, $main)) ."</div></td></tr>";
|
||||
$output .= "</table>";
|
||||
|
|
|
@ -82,9 +82,9 @@ function book_save($op, $node) {
|
|||
/*
|
||||
** If a node administrator updates a book page, we don't create a
|
||||
** new revision unless we are explicitly instructed to. If a node
|
||||
** administrator updates a book page using the "update this book
|
||||
** page"-link (like regular users do) then he'll be treated as a
|
||||
** regular user.
|
||||
** administrator updates a book page using the "edit this page"
|
||||
** link (like regular users do) then he'll be treated as a regular
|
||||
** user.
|
||||
*/
|
||||
|
||||
return array("format", "parent", "weight");
|
||||
|
@ -103,7 +103,7 @@ function book_link($type, $node = 0, $main = 0) {
|
|||
}
|
||||
|
||||
if ($type == "node" && $node->type == "book" && book_access("update", $node)) {
|
||||
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("update this book page") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("edit this page") ."</a>";
|
||||
}
|
||||
|
||||
return $links ? $links : array();
|
||||
|
@ -136,7 +136,7 @@ function book_load($node) {
|
|||
/*
|
||||
** We set the revision field to indicate that we have to create
|
||||
** a new revision when updating this book page. We enable this
|
||||
** always such that the "update this book page"-links appear.
|
||||
** always such that the "edit this page"-links appear.
|
||||
*/
|
||||
|
||||
$book->revision = 1;
|
||||
|
@ -402,7 +402,7 @@ function book_view($node, $main = 0) {
|
|||
|
||||
$output .= " <tr><td colspan=\"3\"><hr /></td></tr>";
|
||||
$output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<a href=\"node.php?id=$prev->nid\" title=\"". t("View the previous page in this book.") ."\">". t("previous") ."</a>" : t("previous")) ."</td><td align=\"center\" width=\"34%\"><a href=\"module.php?mod=book\" title=\"". t("View this book's table of contents.") ."\">index</a></td><td align=\"right\" width=\"33%\">". ($next ? "<a href=\"node.php?id=$next->nid\" title=\"". t("View the next page in this book.") ."\">". t("next") ."</a>" : t("next")) ."</td></tr>";
|
||||
$output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<small>". check_output($prev->title) ."</small>" : " ") ."</td><td align=\"center\" width=\"34%\">". ($node->parent ? "<a href=\"node.php?id=$node->parent\" title=\"". t("View the parent section.") ."\">". t("up") ."</a>" : t("up")) ."</td><td align=\"right\" width=\"33%\">". ($next ? "<small>". check_output($next->title) ."</small>" : " ") ."</td></tr>";
|
||||
$output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<small>". check_output($prev->title) ."</small>" : " ") ."</td><td align=\"center\" width=\"34%\">". ($node->parent ? "<a href=\"node.php?id=$node->parent\" title=\"". t("View this page's parent section.") ."\">". t("up") ."</a>" : t("up")) ."</td><td align=\"right\" width=\"33%\">". ($next ? "<small>". check_output($next->title) ."</small>" : " ") ."</td></tr>";
|
||||
$output .= " <tr><td colspan=\"3\"><hr /></td></tr>";
|
||||
$output .= " <tr><td colspan=\"3\" align=\"right\"><div style=\"margin: 10 10 10 10;\">". $theme->links(link_node($node, $main)) ."</div></td></tr>";
|
||||
$output .= "</table>";
|
||||
|
|
|
@ -103,7 +103,7 @@ function calendar_block() {
|
|||
|
||||
function calendar_link($type) {
|
||||
if ($type == "page" && user_access("access content")) {
|
||||
$links[] = "<a href=\"module.php?mod=calendar\" title=\"". t("Check the archives for older content.") ."\">archives</a>";
|
||||
$links[] = "<a href=\"module.php?mod=calendar\" title=\"". t("Read the older content in our archive.") ."\">archives</a>";
|
||||
}
|
||||
|
||||
return $links ? $links : array();
|
||||
|
|
|
@ -7,7 +7,7 @@ function cvs_perm() {
|
|||
|
||||
function cvs_link($type) {
|
||||
if ($type == "page" && user_access("access cvs messages")) {
|
||||
$links[] = "<a href=\"module.php?mod=cvs\">" . t("cvs messages") . "</a>";
|
||||
$links[] = "<a href=\"module.php?mod=cvs\" title=\"". t("Read the recent CVS log messages.") ."\">" . t("cvs messages") . "</a>";
|
||||
}
|
||||
|
||||
return $links ? $links : array();
|
||||
|
|
|
@ -35,7 +35,7 @@ function forum_save($op, $node) {
|
|||
|
||||
function forum_link($type) {
|
||||
if ($type == "page" && user_access("access content")) {
|
||||
$links[] = "<a href=\"module.php?mod=forum\">". t("forum") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=forum\" title=\"". t("Read and participate in the discussion forums.") ."\">". t("forum") ."</a>";
|
||||
}
|
||||
|
||||
return $links ? $links : array();
|
||||
|
|
|
@ -35,7 +35,7 @@ function forum_save($op, $node) {
|
|||
|
||||
function forum_link($type) {
|
||||
if ($type == "page" && user_access("access content")) {
|
||||
$links[] = "<a href=\"module.php?mod=forum\">". t("forum") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=forum\" title=\"". t("Read and participate in the discussion forums.") ."\">". t("forum") ."</a>";
|
||||
}
|
||||
|
||||
return $links ? $links : array();
|
||||
|
|
|
@ -14,7 +14,7 @@ function rating_perm() {
|
|||
|
||||
function rating_link($type) {
|
||||
if ($type == "page" && user_access("access user ratings")) {
|
||||
$links[] = "<a href=\"module.php?mod=rating\">". t("user ratings") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=rating\" title=\"". t("Display an overview of the user ratings.") ."\">". t("user ratings") ."</a>";
|
||||
}
|
||||
|
||||
return $links ? $links : array();
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
function tracker_link($type) {
|
||||
|
||||
if ($type == "menu") {
|
||||
$links[] = "<a href=\"module.php?mod=tracker\">". t("recent comments") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=tracker\" title=\"". t("Display an overview of the recent comments.") ."\">". t("recent comments") ."</a>";
|
||||
}
|
||||
|
||||
return $links ? $links : array();
|
||||
|
@ -45,8 +45,8 @@ function tracker_comments($id = 0) {
|
|||
function tracker_menu() {
|
||||
global $user;
|
||||
|
||||
$links[] = "<a href=\"module.php?mod=tracker&id=$user->uid\">your recent comments</a>";
|
||||
$links[] = "<a href=\"module.php?mod=tracker\">all recent comments</a>";
|
||||
$links[] = "<a href=\"module.php?mod=tracker&id=$user->uid\" title=\"". t("Display an overview of your recent comments.") ."\">your recent comments</a>";
|
||||
$links[] = "<a href=\"module.php?mod=tracker\" title=\"". t("Display an overview of all the recent comments.") ."\">all recent comments</a>";
|
||||
|
||||
return "<div align=\"center\">". implode(" · ", $links) ."</div>";
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
function tracker_link($type) {
|
||||
|
||||
if ($type == "menu") {
|
||||
$links[] = "<a href=\"module.php?mod=tracker\">". t("recent comments") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=tracker\" title=\"". t("Display an overview of the recent comments.") ."\">". t("recent comments") ."</a>";
|
||||
}
|
||||
|
||||
return $links ? $links : array();
|
||||
|
@ -45,8 +45,8 @@ function tracker_comments($id = 0) {
|
|||
function tracker_menu() {
|
||||
global $user;
|
||||
|
||||
$links[] = "<a href=\"module.php?mod=tracker&id=$user->uid\">your recent comments</a>";
|
||||
$links[] = "<a href=\"module.php?mod=tracker\">all recent comments</a>";
|
||||
$links[] = "<a href=\"module.php?mod=tracker&id=$user->uid\" title=\"". t("Display an overview of your recent comments.") ."\">your recent comments</a>";
|
||||
$links[] = "<a href=\"module.php?mod=tracker\" title=\"". t("Display an overview of all the recent comments.") ."\">all recent comments</a>";
|
||||
|
||||
return "<div align=\"center\">". implode(" · ", $links) ."</div>";
|
||||
}
|
||||
|
|
|
@ -422,7 +422,7 @@ function user_search($keys) {
|
|||
|
||||
function user_link($type) {
|
||||
if ($type == "page") {
|
||||
$links[] = "<a href=\"module.php?mod=user\" title=\"". t("Create a user account, e-mail a new password or edit your account settings.") ."\">". t("user account") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=user\" title=\"". t("Create a user account, request a new password or edit your account settings.") ."\">". t("user account") ."</a>";
|
||||
}
|
||||
|
||||
if ($type == "menu") {
|
||||
|
|
|
@ -422,7 +422,7 @@ function user_search($keys) {
|
|||
|
||||
function user_link($type) {
|
||||
if ($type == "page") {
|
||||
$links[] = "<a href=\"module.php?mod=user\" title=\"". t("Create a user account, e-mail a new password or edit your account settings.") ."\">". t("user account") ."</a>";
|
||||
$links[] = "<a href=\"module.php?mod=user\" title=\"". t("Create a user account, request a new password or edit your account settings.") ."\">". t("user account") ."</a>";
|
||||
}
|
||||
|
||||
if ($type == "menu") {
|
||||
|
|
Loading…
Reference in New Issue