| @@ 913-915 (lines=3) @@ | ||
| 910 | echo ' |
|
| 911 | <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>'; |
|
| 912 | ||
| 913 | elseif ($message['can_remove'] && ($context['topic_first_message'] != $message['id'])) |
|
| 914 | echo ' |
|
| 915 | <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>'; |
|
| 916 | ||
| 917 | // What about splitting it off the rest of the topic? |
|
| 918 | if ($context['can_split'] && !empty($context['real_num_replies'])) |
|
| @@ 538-540 (lines=3) @@ | ||
| 535 | <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>'; |
|
| 536 | ||
| 537 | // How about... even... remove it entirely?! |
|
| 538 | if ($post['can_delete']) |
|
| 539 | echo ' |
|
| 540 | <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>'; |
|
| 541 | ||
| 542 | if ($post['can_reply'] || $post['can_quote'] || $post['can_delete']) |
|
| 543 | echo ' |
|