Lines Matching +full:check +full:- +full:attr
31 $this->query = $QUERY;
32 $this->parsedQuery = ft_queryParser($Indexer, $QUERY);
33 $this->searchState = new SearchState($this->parsedQuery);
35 $this->pageLookupResults = $pageLookupResults;
36 $this->fullTextResults = $fullTextResults;
37 $this->highlight = $highlight;
47 $searchHTML = $this->getSearchIntroHTML($this->query);
49 $searchHTML .= $this->getSearchFormHTML($this->query);
51 $searchHTML .= $this->getPageLookupHTML($this->pageLookupResults);
53 $searchHTML .= $this->getFulltextResultsHTML($this->fullTextResults, $this->highlight);
69 $searchForm = (new Form(['method' => 'get'], true))->addClass('search-results-form');
70 $searchForm->setHiddenField('do', 'search');
71 $searchForm->setHiddenField('id', $ID);
72 $searchForm->setHiddenField('sf', '1');
73 if ($INPUT->has('min')) {
74 $searchForm->setHiddenField('min', $INPUT->str('min'));
76 if ($INPUT->has('max')) {
77 $searchForm->setHiddenField('max', $INPUT->str('max'));
79 if ($INPUT->has('srt')) {
80 $searchForm->setHiddenField('srt', $INPUT->str('srt'));
82 $searchForm->addFieldsetOpen()->addClass('search-form');
83 $searchForm->addTextInput('q')->val($query)->useInput(false);
84 $searchForm->addButton('', $lang['btn_search'])->attr('type', 'submit');
86 $this->addSearchAssistanceElements($searchForm);
88 $searchForm->addFieldsetClose();
90 return $searchForm->toHTML('Search');
114 if ($INPUT->str('srt') === 'mtime') {
118 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
120 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
122 $currentWrapper->addClass('changed');
124 $searchForm->addHTML($options[$activeOption]['label']);
125 $searchForm->addTagClose('div');
128 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
131 $listItem = $searchForm->addTagOpen('li');
134 $listItem->addClass('active');
135 $searchForm->addHTML($option['label']);
137 … $link = $this->searchState->withSorting($option['sort'])->getSearchLink($option['label']);
138 $searchForm->addHTML($link);
140 $searchForm->addTagClose('li');
142 $searchForm->addTagClose('ul');
144 $searchForm->addTagClose('div');
148 …* Check if the query is simple enough to modify its namespace limitations without breaking the res…
164 …* Check if the query is simple enough to modify the fragment search behavior without breaking the …
190 $searchForm->addTagOpen('div')
191 ->addClass('advancedOptions')
192 ->attr('style', 'display: none;')
193 ->attr('aria-hidden', 'true');
195 $this->addFragmentBehaviorLinks($searchForm);
196 $this->addNamespaceSelector($searchForm);
197 $this->addDateSelector($searchForm);
198 $this->addSortTool($searchForm);
200 $searchForm->addTagClose('div');
210 if (!$this->isFragmentAssistanceAvailable($this->parsedQuery)) {
218 'and' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['and']),
219 'not' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['not']),
223 … 'and' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['and']),
224 … 'not' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['not']),
228 … 'and' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['and']),
229 … 'not' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['not']),
233 … 'and' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['and']),
234 … 'not' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['not']),
241 if ($this->parsedQuery['and'] === $option['and']) {
251 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
253 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
255 $currentWrapper->addClass('changed');
257 $searchForm->addHTML($options[$activeOption]['label']);
258 $searchForm->addTagClose('div');
261 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
264 $listItem = $searchForm->addTagOpen('li');
267 $listItem->addClass('active');
268 $searchForm->addHTML($option['label']);
270 $link = $this->searchState
271 ->withFragments($option['and'], $option['not'])
272 ->getSearchLink($option['label']);
273 $searchForm->addHTML($link);
275 $searchForm->addTagClose('li');
277 $searchForm->addTagClose('ul');
279 $searchForm->addTagClose('div');
291 if (!$this->isNamespaceAssistanceAvailable($this->parsedQuery)) {
297 $baseNS = empty($this->parsedQuery['ns']) ? '' : $this->parsedQuery['ns'][0];
298 $extraNS = $this->getAdditionalNamespacesFromResults($baseNS);
300 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
302 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
304 $currentWrapper->addClass('changed');
305 $searchForm->addHTML('@' . hsc($baseNS));
307 $searchForm->addHTML($lang['search_any_ns']);
309 $searchForm->addTagClose('div');
312 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
314 $listItem = $searchForm->addTagOpen('li');
316 $listItem->addClass('active');
317 $link = $this->searchState->withNamespace('')->getSearchLink($lang['search_any_ns']);
318 $searchForm->addHTML($link);
320 $searchForm->addHTML($lang['search_any_ns']);
322 $searchForm->addTagClose('li');
325 $listItem = $searchForm->addTagOpen('li');
329 $listItem->addClass('active');
330 $searchForm->addHTML($label);
332 $link = $this->searchState->withNamespace($ns)->getSearchLink($label);
333 $searchForm->addHTML($link);
335 $searchForm->addTagClose('li');
337 $searchForm->addTagClose('ul');
339 $searchForm->addTagClose('div');
353 foreach ($this->fullTextResults as $page => $numberOfHits) {
406 if ($INPUT->str('min') === $option['after']) {
412 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
414 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
415 if ($INPUT->has('max') || $INPUT->has('min')) {
416 $currentWrapper->addClass('changed');
418 $searchForm->addHTML($options[$activeOption]['label']);
419 $searchForm->addTagClose('div');
422 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
425 $listItem = $searchForm->addTagOpen('li');
428 $listItem->addClass('active');
429 $searchForm->addHTML($option['label']);
431 $link = $this->searchState
432 ->withTimeLimitations($option['after'], $option['before'])
433 ->getSearchLink($option['label']);
434 $searchForm->addHTML($link);
436 $searchForm->addTagClose('li');
438 $searchForm->addTagClose('ul');
440 $searchForm->addTagClose('div');
457 $queryPagename = $this->createPagenameFromQuery($this->parsedQuery);
524 //clear float (see http://www.complexspiral.com/publications/containing-floats/)
561 $restrictQueryToNSLink = $this->restrictQueryToNSLink(getNS($id));
615 if (!$this->isNamespaceAssistanceAvailable($this->parsedQuery)) {
618 if (!empty($this->parsedQuery['ns']) && $this->parsedQuery['ns'][0] === $ns) {
623 return $this->searchState->withNamespace($ns)->getSearchLink($name);