You are here

search-api-spellcheck-multiple-suggestions.tpl.php in Search API Spellcheck 7

Displays a list of spellcheck suggestions

  • $suggestions: An array of $suggestion objects

    • $suggestion->link
    • $suggestion->text
    • $suggestion->submited_text
    • $suggestion->url

File

theme/search-api-spellcheck-multiple-suggestions.tpl.php
View source
<?php

/**
 * @file
 * Displays a list of spellcheck suggestions
 *
 * - $suggestions: An array of $suggestion objects
 *   - $suggestion->link
 *   - $suggestion->text
 *   - $suggestion->submited_text
 *   - $suggestion->url
 *
 * @ingroup themeable
 */
?>
<h3><?php

print t('Did you mean:');
?></h3>
<ul>
  <?php

foreach ($suggestions as $suggestion) {
  ?>
    <li><?php

  print $suggestion->link;
  ?></li>
  <?php

}
?>
</ul>