// When we’ve searched for a place, sort by this place } echo '</a></li>'; } echo '</ul> <p>', I18N::translate('Places found'), ' ', count($places), '</p>'; } else { echo '<p>', I18N::translate('No results found.'), '</p>'; } echo '</div>'; } // Output Repositories if ($type == "repo") { echo '<div id="find-output">'; if ($filter) { $repo_list = FunctionsDb::searchRepositories($filter_array, array($WT_TREE)); } else { $repo_list = FunctionsDb::getRepositoryList($WT_TREE); } if ($repo_list) { usort($repo_list, '\\Fisharebest\\Webtrees\\GedcomRecord::compare'); echo '<ul>'; foreach ($repo_list as $repo) { echo '<li><a href="', $repo->getHtmlUrl(), '" onclick="pasteid(\'', $repo->getXref(), '\');"><span class="list_item">', $repo->getFullName(), '</span></a></li>'; } echo '</ul> <p>', I18N::translate('Repositories found'), " ", count($repo_list), '</p>'; } else { echo '<p>', I18N::translate('No results found.'), '</p>'; } echo '</div>';