$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.="<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";
$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>";
$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>";
$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.="<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";
$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>";
$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>";
$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 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>";
$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 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>";
$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>";
$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>";