-
+ |
";
$reply_url = "";
if (can_reply($thread, $forum, $logged_in_user)) {
$reply_url = "forum_reply.php?thread=".$thread->id."#input";
- show_button($reply_url, tra("Post to thread"), "Add a new message to this thread");
+ show_actionlist_button($reply_url, tra("Post to thread"), "Add a new message to this thread");
}
if ($is_subscribed) {
$type = NOTIFY_SUBSCRIBED_POST;
BoincNotify::delete_aux("userid=$logged_in_user->id and type=$type and opaque=$thread->id");
$url = "forum_subscribe.php?action=unsubscribe&thread=".$thread->id."$tokens";
- show_button($url, tra("Unsubscribe"), "You are subscribed to this thread. Click here to unsubscribe.");
+ show_actionlist_button($url, tra("Unsubscribe"), "You are subscribed to this thread. Click here to unsubscribe.");
} else {
$url = "forum_subscribe.php?action=subscribe&thread=".$thread->id."$tokens";
- show_button($url, tra("Subscribe"), "Click to get email when there are new posts in this thread");
+ show_actionlist_button($url, tra("Subscribe"), "Click to get email when there are new posts in this thread");
}
//If the logged in user is moderator enable some extra features
//
if (is_moderator($logged_in_user, $forum)) {
if ($thread->hidden){
- show_button("forum_moderate_thread_action.php?action=unhide&thread=".$thread->id."$tokens", "Unhide", "Unhide this thread");
+ show_actionlist_button("forum_moderate_thread_action.php?action=unhide&thread=".$thread->id."$tokens", "Unhide", "Unhide this thread");
} else {
- show_button("forum_moderate_thread.php?action=hide&thread=".$thread->id, "Hide", "Hide this thread");
+ show_actionlist_button("forum_moderate_thread.php?action=hide&thread=".$thread->id, "Hide", "Hide this thread");
}
if ($thread->sticky){
- show_button("forum_moderate_thread_action.php?action=desticky&thread=".$thread->id."$tokens", "Make unsticky", "Make this thread not sticky");
+ show_actionlist_button("forum_moderate_thread_action.php?action=desticky&thread=".$thread->id."$tokens", "Make unsticky", "Make this thread not sticky");
} else {
- show_button("forum_moderate_thread_action.php?action=sticky&thread=".$thread->id."$tokens", "Make sticky", "Make this thread sticky");
+ show_actionlist_button("forum_moderate_thread_action.php?action=sticky&thread=".$thread->id."$tokens", "Make sticky", "Make this thread sticky");
}
if ($thread->locked) {
- show_button("forum_moderate_thread_action.php?action=unlock&thread=".$thread->id."$tokens", "Unlock", "Unlock this thread");
+ show_actionlist_button("forum_moderate_thread_action.php?action=unlock&thread=".$thread->id."$tokens", "Unlock", "Unlock this thread");
} else {
- show_button("forum_moderate_thread.php?action=lock&thread=".$thread->id."$tokens", "Lock", "Lock this thread");
+ show_actionlist_button("forum_moderate_thread.php?action=lock&thread=".$thread->id."$tokens", "Lock", "Lock this thread");
}
if ($forum->parent_type == 0) {
- show_button("forum_moderate_thread.php?action=move&thread=".$thread->id."$tokens", "Move", "Move this thread to a different forum");
+ show_actionlist_button("forum_moderate_thread.php?action=move&thread=".$thread->id."$tokens", "Move", "Move this thread to a different forum");
}
- show_button("forum_moderate_thread.php?action=title&thread=".$thread->id."$tokens", "Edit title", "Edit thread title");
+ show_actionlist_button("forum_moderate_thread.php?action=title&thread=".$thread->id."$tokens", "Edit title", "Edit thread title");
}
+echo " "; //End of action list
// Display a box that allows the user to select sorting of the posts
echo " |
diff --git a/html/user/friend.php b/html/user/friend.php
index 2a4b02f7fc..129580ca74 100644
--- a/html/user/friend.php
+++ b/html/user/friend.php
@@ -136,13 +136,10 @@ function handle_query($user) {
echo " $srcuser->name says: $friend->message ";
}
echo "
-
- Accept
- (click if $srcuser->name is in fact a friend)
-
- Decline
- (click if $srcuser->name is not a friend)
-
+ ";
+ show_actionlist_button("friend.php?action=accept&userid=".$srcid, tra("Accept friendship"), tra("Click accept if %1 is in fact a friend", $srcuser->name));
+ show_actionlist_button("friend.php?action=ignore&userid=".$srcid, tra("Decline"), tra("Click decline if %1 is not a friend", $srcuser->name));
+ echo "
";
page_tail();
}
@@ -236,10 +233,10 @@ function handle_cancel_confirm($user) {
echo "
Are you sure you want to cancel your friendship with $destuser->name?
- ";
- show_button("friend.php?action=cancel&userid=$destid", "Yes", "Cancel friendship");
- echo " ";
- show_button("home.php", "No", "Don't cancel friendship");
+ ";
+ show_actionlist_button("friend.php?action=cancel&userid=$destid", tra("Yes"), "Cancel friendship");
+ show_actionlist_button("home.php", tra("No"), "Stay friends");
+ echo " ";
page_tail();
}
diff --git a/html/user/pm.php b/html/user/pm.php
index 723860c9a7..9dcd46a36a 100644
--- a/html/user/pm.php
+++ b/html/user/pm.php
@@ -100,9 +100,10 @@ function do_inbox($logged_in_user) {
echo " ".time_str($msg->date)." | \n";
echo "".output_transform($msg->content, $options)." ";
$tokens = url_tokens($logged_in_user->authenticator);
- show_button("pm.php?action=delete&id=$msg->id&$tokens", tra("Delete"), "Delete this message");
- show_button("pm.php?action=new&replyto=$msg->id", tra("Reply"), "Reply to this message");
- echo " |
\n";
+ echo "