* @category Horde
* @license http://www.horde.org/licenses/lgpl LGPL-2
* @package Horde
*/
require_once __DIR__ . '/../../lib/Application.php';
Horde_Registry::appInit('horde', array('nologintaks' => true));
$tag = Horde_Util::getFormData('tag');
$results = array();
foreach ($registry->listAPIs() as $api) {
if ($registry->hasMethod($api . '/listTagInfo')) {
try {
$results = array_merge(
$results, $registry->{$api}->searchTags(array($tag), 10, 0, '', $registry->getAuth()));
} catch (Horde_Exception $e) {
Horde::log($e, 'ERR');
}
}
}
echo '
'
. sprintf(_("Results for %s"), '' . htmlspecialchars($tag) . '')
. ''
. Horde::link('#', '', '', '', '$(\'cloudsearch\').hide();', '', '', array('style' => 'font-size:75%;'))
. '(' . _("Hide Results") . ')
';
foreach ($results as $result) {
echo '- ' .
(empty($result['icon']) ? Horde_Themes_Image::tag(Horde_Themes::img($result['app'] . '.png', array('app' => $result['app'])), array('alt' => $result['app'])) : '') .
Horde::link($result['view_url'], '', '', '', '', '', '', array('style' => 'margin:4px')) .
(empty($result['icon']) ? htmlspecialchars($result['title']) : '
') .
'' . $result['desc'] . ' ';
}
echo '
';