Lines Matching +full:check +full:- +full:attr

32         $this->query = $QUERY;
33 $this->parsedQuery = (new QueryParser())->convert($QUERY ?? '');
34 $this->searchState = new SearchState($this->parsedQuery);
36 $this->pageLookupResults = $pageLookupResults;
37 $this->fullTextResults = $fullTextResults;
38 $this->highlight = $highlight;
48 $searchHTML = $this->getSearchIntroHTML($this->query);
50 $searchHTML .= $this->getSearchFormHTML($this->query);
52 $searchHTML .= $this->getPageLookupHTML($this->pageLookupResults);
54 $searchHTML .= $this->getFulltextResultsHTML($this->fullTextResults, $this->highlight);
70 $searchForm = (new Form(['method' => 'get'], true))->addClass('search-results-form');
71 $searchForm->setHiddenField('do', 'search');
72 $searchForm->setHiddenField('id', $ID);
73 $searchForm->setHiddenField('sf', '1');
74 if ($INPUT->has('min')) {
75 $searchForm->setHiddenField('min', $INPUT->str('min'));
77 if ($INPUT->has('max')) {
78 $searchForm->setHiddenField('max', $INPUT->str('max'));
80 if ($INPUT->has('srt')) {
81 $searchForm->setHiddenField('srt', $INPUT->str('srt'));
83 $searchForm->addFieldsetOpen()->addClass('search-form');
84 $searchForm->addTextInput('q')->val($query)->useInput(false);
85 $searchForm->addButton('', $lang['btn_search'])->attr('type', 'submit');
87 $this->addSearchAssistanceElements($searchForm);
89 $searchForm->addFieldsetClose();
91 return $searchForm->toHTML('Search');
115 if ($INPUT->str('srt') === 'mtime') {
119 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
121 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
123 $currentWrapper->addClass('changed');
125 $searchForm->addHTML($options[$activeOption]['label']);
126 $searchForm->addTagClose('div');
129 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
132 $listItem = $searchForm->addTagOpen('li');
135 $listItem->addClass('active');
136 $searchForm->addHTML($option['label']);
138 … $link = $this->searchState->withSorting($option['sort'])->getSearchLink($option['label']);
139 $searchForm->addHTML($link);
141 $searchForm->addTagClose('li');
143 $searchForm->addTagClose('ul');
145 $searchForm->addTagClose('div');
149 …* Check if the query is simple enough to modify its namespace limitations without breaking the res…
165 …* Check if the query is simple enough to modify the fragment search behavior without breaking the …
191 $searchForm->addTagOpen('div')
192 ->addClass('advancedOptions')
193 ->attr('style', 'display: none;')
194 ->attr('aria-hidden', 'true');
196 $this->addFragmentBehaviorLinks($searchForm);
197 $this->addNamespaceSelector($searchForm);
198 $this->addDateSelector($searchForm);
199 $this->addSortTool($searchForm);
201 $searchForm->addTagClose('div');
211 if (!$this->isFragmentAssistanceAvailable($this->parsedQuery)) {
219 'and' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['and']),
220 'not' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['not']),
224 … 'and' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['and']),
225 … 'not' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['not']),
229 … 'and' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['and']),
230 … 'not' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['not']),
234 … 'and' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['and']),
235 … 'not' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['not']),
242 if ($this->parsedQuery['and'] === $option['and']) {
252 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
254 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
256 $currentWrapper->addClass('changed');
258 $searchForm->addHTML($options[$activeOption]['label']);
259 $searchForm->addTagClose('div');
262 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
265 $listItem = $searchForm->addTagOpen('li');
268 $listItem->addClass('active');
269 $searchForm->addHTML($option['label']);
271 $link = $this->searchState
272 ->withFragments($option['and'], $option['not'])
273 ->getSearchLink($option['label']);
274 $searchForm->addHTML($link);
276 $searchForm->addTagClose('li');
278 $searchForm->addTagClose('ul');
280 $searchForm->addTagClose('div');
292 if (!$this->isNamespaceAssistanceAvailable($this->parsedQuery)) {
298 $baseNS = empty($this->parsedQuery['ns']) ? '' : $this->parsedQuery['ns'][0];
299 $extraNS = $this->getAdditionalNamespacesFromResults($baseNS);
301 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
303 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
305 $currentWrapper->addClass('changed');
306 $searchForm->addHTML('@' . hsc($baseNS));
308 $searchForm->addHTML($lang['search_any_ns']);
310 $searchForm->addTagClose('div');
313 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
315 $listItem = $searchForm->addTagOpen('li');
317 $listItem->addClass('active');
318 $link = $this->searchState->withNamespace('')->getSearchLink($lang['search_any_ns']);
319 $searchForm->addHTML($link);
321 $searchForm->addHTML($lang['search_any_ns']);
323 $searchForm->addTagClose('li');
326 $listItem = $searchForm->addTagOpen('li');
330 $listItem->addClass('active');
331 $searchForm->addHTML($label);
333 $link = $this->searchState->withNamespace($ns)->getSearchLink($label);
334 $searchForm->addHTML($link);
336 $searchForm->addTagClose('li');
338 $searchForm->addTagClose('ul');
340 $searchForm->addTagClose('div');
354 foreach ($this->fullTextResults as $page => $numberOfHits) {
407 if ($INPUT->str('min') === $option['after']) {
413 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
415 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
416 if ($INPUT->has('max') || $INPUT->has('min')) {
417 $currentWrapper->addClass('changed');
419 $searchForm->addHTML($options[$activeOption]['label']);
420 $searchForm->addTagClose('div');
423 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
426 $listItem = $searchForm->addTagOpen('li');
429 $listItem->addClass('active');
430 $searchForm->addHTML($option['label']);
432 $link = $this->searchState
433 ->withTimeLimitations($option['after'], $option['before'])
434 ->getSearchLink($option['label']);
435 $searchForm->addHTML($link);
437 $searchForm->addTagClose('li');
439 $searchForm->addTagClose('ul');
441 $searchForm->addTagClose('div');
458 $queryPagename = $this->createPagenameFromQuery($this->parsedQuery);
525 //clear float (see http://www.complexspiral.com/publications/containing-floats/)
563 $restrictQueryToNSLink = $this->restrictQueryToNSLink(getNS($id));
579 if ($num <= $FulltextSearch->getMaxSnippets()) {
580 $resultBody['snippet'] = $FulltextSearch->snippet($id, $highlight);
617 if (!$this->isNamespaceAssistanceAvailable($this->parsedQuery)) {
620 if (!empty($this->parsedQuery['ns']) && $this->parsedQuery['ns'][0] === $ns) {
625 return $this->searchState->withNamespace($ns)->getSearchLink($name);