forked from vufind-org/vufind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce results-list template between results and list templates.
This paves way for extended use (i.e. the possibility of rendering search results without the surrounding controls).
- Loading branch information
1 parent
1bc1f33
commit 7540f53
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
// Create a css class for results from the search class: | ||
$searchClass = $searchClassCss = $this->params->getSearchClassId(); | ||
if (!ctype_upper($searchClassCss)) { | ||
$searchClassCss = preg_replace('/([a-zA-Z])(?=[A-Z])/', '$1-', $searchClassCss); | ||
} | ||
$this->resultsClass = 'search-results-' . strtolower($searchClassCss); | ||
?> | ||
<?=$this->render('search/list-' . $this->params->getView() . '.phtml')?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters