', $context['ban']['is_new'] ? $txt['ban_add_new'] : $txt['ban_edit'] . ' \'' . $context['ban']['name'] . '\'', '

'; if ($context['ban']['is_new']) echo '
', $txt['ban_add_notes'], '
'; // If there were errors for sending the PM, show them. if (!empty($context['error_messages'])) { echo '
', $txt['ban_errors_detected'], '
'; } echo '
', $txt['ban_name'], ':
'; if (isset($context['ban']['reason'])) echo '

', $txt['ban_reason_desc'], '
'; if (isset($context['ban']['notes'])) echo '

', $txt['ban_notes_desc'], '
'; echo '
', $txt['ban_expiration'], '
: ', $txt['ban_days'], '
', $txt['ban_restriction'], '

(?)



'; if (!empty($context['ban_suggestions'])) { echo '
', $txt['ban_triggers'], '
'; if (empty($modSettings['disableHostnameLookup'])) echo '
'; echo '
:
'; if (!empty($context['ban_suggestions']['other_ips'])) { foreach ($context['ban_suggestions']['other_ips'] as $key => $ban_ips) { if (!empty($ban_ips)) { echo '
', $txt[$key], ':
'; $count = 0; foreach ($ban_ips as $ip) echo '
'; echo '
'; } } } echo '
'; } echo '
'; if (!$context['ban']['is_new'] && empty($context['ban_suggestions'])) { echo '
'; template_show_list('ban_items'); } echo ' '; } function template_ban_edit_trigger() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '

', $context['ban_trigger']['is_new'] ? $txt['ban_add_trigger'] : $txt['ban_edit_trigger_title'], '

', $txt['ban_triggers'], '
'; if (empty($modSettings['disableHostnameLookup'])) echo '
'; echo '
:
'; } ?>