/* This file is part of nginx-fancyindex-flat-theme. * * nginx-fancyindex-flat-theme is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * nginx-fancyindex-flat-theme 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 General * Public License for more details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see * * http://www.gnu.org/licenses/ * * * Copyright (C) * 2018-2024 Alexander Haase * * * NOTE: The following comment will be used as short version of the copyright * notice above to be included in compressed files, too. */ /*! * * This file is part of the nginx-fancyindex-flat-theme, licensed under the GNU * General Public License. See the LICENSE file for details. * * Copyright (C) * 2018-2024 Alexander Haase */ /** * Print the breadcrumbs. * * This function will generate the breadcrumbs for the current page and updates * the 'breadcrumbs' element with the list of crumbs. */ function generateBreadcrumbs() { /** * Print a single breadcrumb. * * * @param string name the name of the breadcrumb * @param string url the url of the breadcrumb * @param string active whether this breadcrumb is active or not * * @return string the breadcrumb string */ function crumb(name, url, active) { return '