$links[]="<a href=\"admin.php?mod=comment&op=edit&id=$comment->cid\" title=\"".t("Administer this comment.")."\"><font color=\"$theme->type\">".t("administer")."</font></a>";
$links[]="<a href=\"admin.php?mod=comment&op=edit&id=$comment->cid\" title=\"".t("Administer this comment.")."\"><span style=\"color: $theme->type;\">".t("administer")."</span></a>";
}
if(user_access("post comments")){
if(comment_access("edit",$comment)){
$links[]="<a href=\"module.php?mod=comment&op=edit&id=$comment->cid\"><font color=\"$theme->type\" title=\"".t("Make changes to your comment.")."\">".t("edit your comment")."</font></a>";
$links[]="<a href=\"module.php?mod=comment&op=edit&id=$comment->cid\" title=\"".t("Make changes to your comment.")."\"><span style=\"color: $theme->type\">".t("edit your comment")."</span></a>";
}
else{
$links[]="<a href=\"module.php?mod=comment&op=reply&id=$comment->nid&pid=$comment->cid\" title=\"".t("Reply to this comment.")."\"><font color=\"$theme->type\">".t("reply to this comment")."</font></a>";
$links[]="<a href=\"module.php?mod=comment&op=reply&id=$comment->nid&pid=$comment->cid\" title=\"".t("Reply to this comment.")."\"><span style=\"color: $theme->type;\">".t("reply to this comment")."</span></a>";
}
}
...
...
@@ -377,7 +377,7 @@ function comment_view($comment, $folded = 0) {
$links[]="<a href=\"admin.php?mod=comment&op=edit&id=$comment->cid\" title=\"".t("Administer this comment.")."\"><font color=\"$theme->type\">".t("administer")."</font></a>";
$links[]="<a href=\"admin.php?mod=comment&op=edit&id=$comment->cid\" title=\"".t("Administer this comment.")."\"><span style=\"color: $theme->type;\">".t("administer")."</span></a>";
}
if(user_access("post comments")){
if(comment_access("edit",$comment)){
$links[]="<a href=\"module.php?mod=comment&op=edit&id=$comment->cid\"><font color=\"$theme->type\" title=\"".t("Make changes to your comment.")."\">".t("edit your comment")."</font></a>";
$links[]="<a href=\"module.php?mod=comment&op=edit&id=$comment->cid\" title=\"".t("Make changes to your comment.")."\"><span style=\"color: $theme->type\">".t("edit your comment")."</span></a>";
}
else{
$links[]="<a href=\"module.php?mod=comment&op=reply&id=$comment->nid&pid=$comment->cid\" title=\"".t("Reply to this comment.")."\"><font color=\"$theme->type\">".t("reply to this comment")."</font></a>";
$links[]="<a href=\"module.php?mod=comment&op=reply&id=$comment->nid&pid=$comment->cid\" title=\"".t("Reply to this comment.")."\"><span style=\"color: $theme->type;\">".t("reply to this comment")."</span></a>";
}
}
...
...
@@ -377,7 +377,7 @@ function comment_view($comment, $folded = 0) {
$links[]="<a href=\"module.php?mod=queue\" title=\"".t("Moderate the content in the submission queue.")."\">".t("submission queue")."</a> (<font color=\"red\">".queue_count()."</font>)";
$links[]="<a href=\"module.php?mod=queue\" title=\"".t("Moderate the content in the submission queue.")."\">".t("submission queue")."</a> (<span style=\"color: red;\">".queue_count()."</span>)";
}
return$links?$links:array();
...
...
@@ -80,7 +80,7 @@ function queue_overview() {
$result=db_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.moderate = 1");
if(variable_get("account_register",1))$output.=" <a href=\"module.php?mod=user\" title=\"".t("Create a new user account.")."\">".t("REGISTER")."</a>\n";
$output.=form_textfield(t("Username"),"name",$edit["name"],30,64,t("Your full name or your prefered username: only letters, numbers and spaces are allowed."));
...
...
@@ -990,7 +979,7 @@ function user_edit($edit = array()) {
$output.=form_textfield(t("Username"),"name",$user->name,30,55,t("Your full name or your prefered username: only letters, numbers and spaces are allowed."));
...
...
@@ -1016,7 +1005,7 @@ function user_edit($edit = array()) {
$output.=form_select(t("Timezone"),"timezone",$user->timezone,$zones,t("Select what time you currently have and your timezone settings will be set appropriate."));
$output.=form_select(t("Language"),"language",$user->language,$languages,t("Selecting a different language will change the language of the site."));
$output.=form_textarea(t("Signature"),"signature",$user->signature,70,3,t("Your signature will be publicly displayed at the end of your comments.")."<br />".t("Allowed HTML tags").": ".htmlspecialchars(variable_get("allowed_html","")));
$output.=form_item(t("Password"),"<input type=\"password\" name=\"edit[pass1]\" size=\"12\" maxlength=\"24\"> <input type=\"password\" name=\"edit[pass2]\" size=\"12\" maxlength=\"24\">",t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password."));
$output.=form_item(t("Password"),"<input type=\"password\" name=\"edit[pass1]\" size=\"12\" maxlength=\"24\" /> <input type=\"password\" name=\"edit[pass2]\" size=\"12\" maxlength=\"24\" />",t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password."));
$output.=form_submit(t("Save user information"));
$output=form($output);
...
...
@@ -1046,10 +1035,10 @@ function user_view($uid = 0) {
if(variable_get("account_register",1))$output.=" <a href=\"module.php?mod=user\" title=\"".t("Create a new user account.")."\">".t("REGISTER")."</a>\n";
$output.=form_textfield(t("Username"),"name",$edit["name"],30,64,t("Your full name or your prefered username: only letters, numbers and spaces are allowed."));
...
...
@@ -990,7 +979,7 @@ function user_edit($edit = array()) {
$output.=form_textfield(t("Username"),"name",$user->name,30,55,t("Your full name or your prefered username: only letters, numbers and spaces are allowed."));
...
...
@@ -1016,7 +1005,7 @@ function user_edit($edit = array()) {
$output.=form_select(t("Timezone"),"timezone",$user->timezone,$zones,t("Select what time you currently have and your timezone settings will be set appropriate."));
$output.=form_select(t("Language"),"language",$user->language,$languages,t("Selecting a different language will change the language of the site."));
$output.=form_textarea(t("Signature"),"signature",$user->signature,70,3,t("Your signature will be publicly displayed at the end of your comments.")."<br />".t("Allowed HTML tags").": ".htmlspecialchars(variable_get("allowed_html","")));
$output.=form_item(t("Password"),"<input type=\"password\" name=\"edit[pass1]\" size=\"12\" maxlength=\"24\"> <input type=\"password\" name=\"edit[pass2]\" size=\"12\" maxlength=\"24\">",t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password."));
$output.=form_item(t("Password"),"<input type=\"password\" name=\"edit[pass1]\" size=\"12\" maxlength=\"24\" /> <input type=\"password\" name=\"edit[pass2]\" size=\"12\" maxlength=\"24\" />",t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password."));
$output.=form_submit(t("Save user information"));
$output=form($output);
...
...
@@ -1046,10 +1035,10 @@ function user_view($uid = 0) {