/** * Is the library known? * * @param Horde_View $view The current view. * * @return The name of the template that should be used for display. */ private function _isKnownLibrary($view) { if (!in_array($view->libraryName, $view->libraries)) { $view->page_title = '404 Not Found'; return false; } else { $view->page_title = $view->shortLibraryName . ' library - The Horde Project'; $view->libraryDetails = HordeWeb_Utils::getLibraries()->fetchLibrary($view->libraryName); return true; } }
<h2><span> </span>Horde Libraries</h2> <?php $info = HordeWeb_Utils::getLibraries()->listDescriptions(); foreach ($info as $name => $description) { ?> <h3><a href="<?php echo $this->urlWriter->urlFor(array('controller' => 'library', 'library' => $name, 'action' => 'library')); ?> "><?php echo str_replace('Horde_', '', $name); ?> </a></h3> <p> <?php echo $description; ?> </p> <?php }