| @@ 529-533 (lines=5) @@ | ||
| 526 | $oLink = new PMF_Link($url, $faqConfig); |
|
| 527 | $oLink->text = PMF_Utils::chopString($result->question, 15); |
|
| 528 | $oLink->itemTitle = $result->question; |
|
| 529 | if ($faqConfig->get('main.enableMarkdownEditor')) { |
|
| 530 | $answerPreview = PMF_Utils::chopString(strip_tags($parsedown->text($result->answer)), 10); |
|
| 531 | } else { |
|
| 532 | $answerPreview = PMF_Utils::chopString(strip_tags($result->answer), 10); |
|
| 533 | } |
|
| 534 | $response .= sprintf('<li>%s<br /><div class="searchpreview">%s...</div></li>', |
|
| 535 | $oLink->toHtmlAnchor(), |
|
| 536 | $answerPreview |
|
| @@ 259-263 (lines=5) @@ | ||
| 256 | $categoryInfo = array_values($categoryInfo); //Reset the array keys |
|
| 257 | $question = PMF_Utils::chopString($result->question, 15); |
|
| 258 | ||
| 259 | if ($this->_config->get('main.enableMarkdownEditor')) { |
|
| 260 | $answerPreview = PMF_Utils::chopString(strip_tags($parsedown->text($result->answer)), 25); |
|
| 261 | } else { |
|
| 262 | $answerPreview = PMF_Utils::chopString(strip_tags($result->answer), 25); |
|
| 263 | } |
|
| 264 | ||
| 265 | $searchterm = str_replace( |
|
| 266 | ['^', '.', '?', '*', '+', '{', '}', '(', ')', '[', ']', '"'], |
|
| @@ 269-273 (lines=5) @@ | ||
| 266 | $oLink = new PMF_Link($url, $this->_config); |
|
| 267 | $oLink->itemTitle = $oLink->text = $oLink->tooltip = $row->thema; |
|
| 268 | ||
| 269 | if ($this->_config->get('main.enableMarkdownEditor')) { |
|
| 270 | $answerPreview = PMF_Utils::chopString(strip_tags($parsedown->text($row->record_content)), 25); |
|
| 271 | } else { |
|
| 272 | $answerPreview = PMF_Utils::chopString(strip_tags($row->record_content), 25); |
|
| 273 | } |
|
| 274 | $faqdata[] = array( |
|
| 275 | 'record_id' => $row->id, |
|
| 276 | 'record_lang' => $row->lang, |
|