', theme_linktree(), '
'; if (!empty($context['search_errors'])) { echo ' '; } echo '
', !empty($settings['use_buttons']) ? '' : '', $txt[183], '
', implode('
', $context['search_errors']['messages']), '
'; if ($context['simple_search']) { echo ' ', $txt[582], ':
'; if (empty($modSettings['search_simple_fulltext'])) echo ' '; echo '
 
', $txt['search_example'], '


', $txt['smf298'], ' '; } else { echo ' '; if (empty($modSettings['search_simple_fulltext'])) echo ' '; echo '
', $txt[582], ': ', $txt[583], ':
', $txt['search_example'], '

', $txt['search_post_age'], ':

', $txt['search_between'], '  ', $txt['search_and'], '  ', $txt[579], '.
', $txt['search_options'], ':

', $txt['search_order'], ':

'; // If $context['search_params']['topic'] is set, that means we're searching just one topic. if (!empty($context['search_params']['topic'])) echo ' ', $txt['search_specific_topic'], ' "', $context['search_topic']['link'], '".
'; else { echo '
', $txt[189], '
'; $alternate = true; foreach ($context['board_columns'] as $board) { if ($alternate) echo ' '; echo ' '; if (!$alternate) echo ' '; $alternate = !$alternate; } echo '

'; } echo '
'; } echo '
'; } function template_results() { global $context, $settings, $options, $txt, $scripturl; if (isset($context['did_you_mean']) || empty($context['topics'])) { echo '
', $txt['search_adjust_query'], '
'; // Did they make any typos or mistakes, perhaps? if (isset($context['did_you_mean'])) echo ' ', $txt['search_did_you_mean'], ' ', $context['did_you_mean'], '.
'; echo '
', $txt[582], ':
'; if (!empty($context['search_params']['brd'])) foreach ($context['search_params']['brd'] as $board_id) echo ' '; echo '
'; } if ($context['compact']) { echo '
', theme_linktree(), '
', $txt[139], ': ', $context['page_index'], '
'; // Quick moderation set to checkboxes? Oh, how fun :/. if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) echo '
'; echo ' '; if (!empty($context['topics'])) { echo ' '; if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) echo ' '; elseif (!empty($options['display_quick_mod'])) echo ' '; } else echo ' '; echo ' '; while ($topic = $context['get_topics']()) { // Work out what the class is if we remove sticky and lock info. if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false) $topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky')); if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false) $topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked')); echo ' '; if (!empty($options['display_quick_mod'])) { echo ' '; } echo ' '; } if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics'])) { echo ' '; } echo '
', $txt[70], ' ', $txt['search_relevance'], ' ', $txt[109], ' ', $txt['search_date_posted'], ' ', $txt['search_no_results'], '
' , $topic['is_locked'] && !empty($settings['seperate_sticky_lock']) ? '' : '' , ' ' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '' : '' , $topic['first_post']['link'] , $topic['is_sticky'] ? '' : '' , '
', $txt['smf88'], ' ', $topic['board']['link'], '
'; foreach ($topic['matches'] as $message) { echo '
', $message['subject_highlighted'], ' ', $txt[525], ' ', $message['member']['link'], '
'; if ($message['body_highlighted'] != '') echo '
', $message['body_highlighted'], '
'; } echo '
', $topic['relevance'], ' ', $topic['first_post']['member']['link'], ' ', $topic['first_post']['time'], ' '; if ($options['display_quick_mod'] == 1) echo ' '; else { if ($topic['quick_mod']['remove']) echo ' ', $txt[63], ''; if ($topic['quick_mod']['lock']) echo ' ', $txt['smf279'], ''; if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove']) echo '
'; if ($topic['quick_mod']['sticky']) echo ' ', $txt['smf277'], ''; if ($topic['quick_mod']['move']) echo ' ', $txt[132], ''; } echo '
'; if ($context['can_move']) { echo ' '; } echo '
'; if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics'])) echo '
'; echo '
', $txt[139], ': ', $context['page_index'], '
'; if ($settings['linktree_inline']) echo '
', theme_linktree(), '
'; echo '
 
'; } else { echo '
', theme_linktree(), '
', $txt[139], ': ', $context['page_index'], '
'; if (empty($context['topics'])) echo '

(', $txt['search_no_results'], ')

'; while ($topic = $context['get_topics']()) { foreach ($topic['matches'] as $message) { // Create buttons row. $quote_button = create_button('quote.gif', 145, 145, 'align="middle"'); $reply_button = create_button('reply_sm.gif', 146, 146, 'align="middle"'); $notify_button = create_button('notify_sm.gif', 131, 131, 'align="middle"'); $buttonArray = array(); if ($topic['can_reply']) { $buttonArray[] = '' . $reply_button . ''; $buttonArray[] = '' . $quote_button . ''; } if ($topic['can_mark_notify']) $buttonArray[] = '' . $notify_button . ''; echo '
 ', $message['counter'], ' 
 ', $topic['category']['link'], ' / ', $topic['board']['link'], ' / ', $message['subject_highlighted'], '
', $txt[30], ': ', $message['time'], ' 
', $txt[109], ' ', $topic['first_post']['member']['link'], ', ', $txt[72], ' ', $txt[525], ' ', $message['member']['link'], '
', $txt['search_relevance'], ': ', $topic['relevance'], '
', $message['body_highlighted'], '
 ', implode($context['menu_separator'], $buttonArray), '
'; } } echo '
', $txt[139], ': ', $context['page_index'], '
'; if ($settings['linktree_inline']) echo '
', theme_linktree(), '
'; } } ?>