[FEATURE] stdWrap for list of results
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Classes / Controller / SearchFormController.php
index a38635a..323bf44 100644 (file)
@@ -767,21 +767,27 @@ class SearchFormController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
                                                // Add content header:
                                                $content .= $this->makeSectionHeader($id, $sectionTitleLinked, count($resultRows));
                                                // Render result rows:
+                                               $resultlist = '';
                                                foreach ($resultRows as $row) {
-                                                       $content .= $this->printResultRow($row);
+                                                       $resultlist .= $this->printResultRow($row);
                                                }
+                                               $content .= $this->cObj->stdWrap($resultlist, $this->conf['resultlist_stdWrap.']);
                                        }
                                        break;
                                default:
                                        // flat:
+                                       $resultlist = '';
                                        foreach ($resultRows as $row) {
-                                               $content .= $this->printResultRow($row);
+                                               $resultlist .= $this->printResultRow($row);
                                        }
+                                       $content .= $this->cObj->stdWrap($resultlist, $this->conf['resultlist_stdWrap.']);
                        }
                } else {
+                       $resultlist = '';
                        foreach ($resultRows as $row) {
-                               $content .= $this->printResultRow($row);
+                               $resultlist .= $this->printResultRow($row);
                        }
+                       $content .= $this->cObj->stdWrap($resultlist, $this->conf['resultlist_stdWrap.']);
                }
                return '<div' . $this->pi_classParam('res') . '>' . $content . '</div>';
        }