/** * Returns the <link> tags for the CSS stylesheets. * * @param string|array $app The Horde application(s). * @param mixed $theme The theme to use; specify an empty value to * retrieve the theme from user preferences, and * false for no theme. * @param boolean $inherit Inherit Horde-wide CSS? * * @return string <link> tags for CSS stylesheets. */ function stylesheetLink($apps = null, $theme = '', $inherit = true) { $css = Horde::getStylesheets($apps, $theme, $inherit); $html = ''; foreach ($css as $css_link) { $html .= '<link href="' . $css_link['u'] . '" rel="stylesheet" type="text/css" />' . "\n"; } return $html; }