$r['kind'] === 'page')); $settings = array_values(array_filter($results, static fn(array $r): bool => $r['kind'] === 'setting')); $highlight = static function (string $text, string $q): string { $text = h($text); foreach (preg_split('/\s+/', trim($q)) ?: [] as $term) { if ($term === '') continue; $text = preg_replace('/(' . preg_quote(h($term), '/') . ')/i', '$1', $text); } return $text; }; ?>
download', 'paypal', 'auction'],
h(t('acp.search.hint'))
) ?>
= t('acp.search.results_line', [ 'count' => count($results), 'noun' => (count($results) === 1) ? t('acp.search.result_one') : t('acp.search.result_many'), ]) ?> = h($query) ?>
$pages, t('acp.search.section_settings') => $settings) as $heading => $rows): ?>