* @author Bernhard Posselt * @author Christoph Wurst * @author Joas Schilling * @author Jörn Friedrich Dreyer * @author Julius Härtl * @author Lukas Reschke * @author Michael Letzgus * @author Morris Jobke * @author Robin McCorkell * @author Roeland Jago Douma * @author Thomas Müller * @author Vincent Petry * * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see * */ function p($string) { print(\OCP\Util::sanitizeHTML($string)); } /** * Prints a tag for loading css * @param string $href the source URL, ignored when empty * @param string $opts, additional optional options */ function emit_css_tag($href, $opts = '') { $s = '\n"); } /** * Prints all tags for CSS loading * @param array $obj all the script information from template */ function emit_css_loading_tags($obj) { foreach ($obj['cssfiles'] as $css) { emit_css_tag($css); } foreach ($obj['printcssfiles'] as $css) { emit_css_tag($css, 'media="print"'); } } /** * Prints a '; print_unescaped($s."\n"); } /** * Print all