mirror of
https://github.com/humhub/humhub.git
synced 2025-02-20 08:05:23 +01:00
24 lines
976 B
PHP
24 lines
976 B
PHP
<?php
|
|
/**
|
|
* This View shows the quick search results
|
|
*
|
|
* @property Boolean $moreResults if there are more results
|
|
* @property String $keyword is the query search query
|
|
* @property Array $results of search result content (html)
|
|
* @property String $spaceGuid if we search also inside of a space, this is the space guid
|
|
*
|
|
* @package humhub.controllers
|
|
* @since 0.5
|
|
*/
|
|
?>
|
|
<?php if (count($results) > 0): ?>
|
|
<?php foreach ($results as $result): ?>
|
|
<?php echo $result; ?>
|
|
<?php endforeach; ?>
|
|
|
|
<?php if ($moreResults): ?>
|
|
<li class="footer"><a id="show_more_button" href="<?php echo $this->createUrl('//search/index', array('sguid' => $spaceGuid, 'keyword' => $keyword)); ?>"><?php echo Yii::t('base', 'Show more results') ?></a></li>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<li><div style="padding: 10px; 5px; color: #999; font-weight: normal;"><em><?php echo Yii::t('base', 'Nothing found with your input.'); ?></em></div></li>
|
|
<?php endif; ?>
|