castopod/app/Helpers/breadcrumb_helper.php
Yassine Doghri 7fb1de2cf3 feat: add breadcrumb in admin area
- add Breadcrumb library and service
- update authorizations
- add missing routes to avoid 404 links in breadcrumb
- add svg_helper globally in base controller
- update purgecss config to check .ts files

closes #17
2020-10-15 14:41:25 +00:00

29 lines
622 B
PHP

<?php
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
use Config\Services;
/**
* Returns the inline svg icon
*
* @param string $name name of the icon file without the .svg extension
* @param string $class to be added to the svg string
* @return string html breadcrumb
*/
function render_breadcrumb()
{
$breadcrumb = Services::breadcrumb();
return $breadcrumb->render();
}
function replace_breadcrumb_params($newParams)
{
$breadcrumb = Services::breadcrumb();
$breadcrumb->replaceParams($newParams);
}