| @@ 891-893 (lines=3) @@ | ||
| 888 | if ($context['can_delete'] && ($context['topic_first_message'] == $message['id'])) |
|
| 889 | echo ' |
|
| 890 | <li><a href="', $scripturl, '?action=removetopic2;topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['are_sure_remove_topic'], '" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['remove_topic'], '</a></li>'; |
|
| 891 | elseif ($message['can_remove'] && ($context['topic_first_message'] != $message['id'])) |
|
| 892 | echo ' |
|
| 893 | <li><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['remove_message_question'], '" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['remove'], '</a></li>'; |
|
| 894 | ||
| 895 | // What about splitting it off the rest of the topic? |
|
| 896 | if ($context['can_split'] && !empty($context['real_num_replies'])) |
|
| @@ 527-529 (lines=3) @@ | ||
| 524 | <li><a href="', $scripturl . '?action=post;topic=', $post['topic'], '.', $post['start'], ';quote=', $post['id'], '"><span class="generic_icons quote"></span>', $txt['quote_action'], '</a></li>'; |
|
| 525 | ||
| 526 | // How about... even... remove it entirely?! |
|
| 527 | if ($post['can_delete']) |
|
| 528 | echo ' |
|
| 529 | <li><a href="', $scripturl, '?action=deletemsg;msg=', $post['id'], ';topic=', $post['topic'], ';profile;u=', $context['member']['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['remove_message'], '" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['remove'], '</a></li>'; |
|
| 530 | ||
| 531 | if ($post['can_reply'] || $post['can_quote'] || $post['can_delete']) |
|
| 532 | echo ' |
|