', $txt['move_topic'], '

', $txt['move_to'], ':
'; // Disable the reason textarea when the postRedirect checkbox is unchecked... echo '

'; // Stick our "create a redirection topic" template in here... template_redirect_options('move'); echo '
'; if ($context['back_to_topic']) echo ' '; echo '
'; } /** * Redirection topic options * * @param string $type What type of topic this is for - currently 'merge' or 'move'. Used to display appropriate text strings... */ function template_redirect_options($type) { global $txt, $context, $modSettings; echo '
', $txt[$type . '_why'], '
'; if (!empty($modSettings['allow_expire_redirect'])) { echo '
', $txt['redirect_topic_expires'], '
'; } else echo ' '; echo '
'; } /** * Confirmation page shown when finished merging topics. */ function template_merge_done() { global $context, $txt, $scripturl; echo '

', $txt['merge'], '

', $txt['merge_successful'], '



'; } /** * Merge topic page. */ function template_merge() { global $context, $txt, $scripturl; echo '

', $txt['merge'], '

', $txt['merge_desc'], '
', $txt['topic_to_merge'], ':
', $context['origin_subject'], '

', $txt['target_topic'], '

'; if (isset($context['merge_categories'])) { echo '
', $txt['target_below'], ' (', $txt['board'], ': )
'; } else echo $txt['target_below']; echo '

'; // Don't show this if there aren't any topics... if (!empty($context['topics'])) { echo '
    '; foreach ($context['topics'] as $topic) echo '
  • ', $topic['subject'], ' ', $txt['started_by'], ' ', $topic['poster']['link'], '
  • '; echo '
'; } // Just a nice "There aren't any topics" message else echo '
', $txt['topic_alert_none'], '
'; echo '

', $txt['target_id'], '

', $txt['merge_to_topic_id'], ':
'; } /** * Extra options related to merging topics. */ function template_merge_extra_options() { global $context, $txt, $scripturl; echo '

', $txt['merge_topic_list'], '

'; foreach ($context['topics'] as $topic) echo ' '; echo '
', $txt['merge_check'], ' ', $txt['subject'], ' ', $txt['started_by'], ' ', $txt['last_post'], ' ' . $txt['merge_include_notifications'] . '
' . $topic['subject'] . ' ', $topic['started']['link'], '
', $topic['started']['time'], '
' . $topic['updated']['link'] . '
', $topic['updated']['time'], '

', $txt['merge_select_subject'], '

'; // Show an option to create a redirection topic as well... template_redirect_options('merge'); if (!empty($context['boards']) && count($context['boards']) > 1) { echo '
', $txt['merge_select_target_board'], '
    '; foreach ($context['boards'] as $board) echo '
  • ' . $board['name'] . '
  • '; echo '
'; } if (!empty($context['polls'])) { echo '
' . $txt['merge_select_poll'] . '
    '; foreach ($context['polls'] as $poll) echo '
  • ' . $poll['question'] . ' (' . $txt['topic'] . ': ' . $poll['topic']['subject'] . ')
  • '; echo '
  • (' . $txt['merge_no_poll'] . ')
'; } echo '
'; } ?>