2020-08-05 16:10:39 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @copyright 2020 Podlibre
|
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
|
|
|
|
|
|
|
use Config\Services;
|
|
|
|
|
|
|
|
/**
|
2020-10-02 15:38:16 +00:00
|
|
|
* Renders the breadcrumb navigation through the Breadcrumb service
|
2020-08-05 16:10:39 +00:00
|
|
|
*
|
2020-10-02 15:38:16 +00:00
|
|
|
* @param string $class to be added to the breadcrumb nav
|
2020-08-05 16:10:39 +00:00
|
|
|
* @return string html breadcrumb
|
|
|
|
*/
|
2020-10-02 15:38:16 +00:00
|
|
|
function render_breadcrumb($class = null)
|
2020-08-05 16:10:39 +00:00
|
|
|
{
|
|
|
|
$breadcrumb = Services::breadcrumb();
|
2020-10-02 15:38:16 +00:00
|
|
|
return $breadcrumb->render($class);
|
2020-08-05 16:10:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function replace_breadcrumb_params($newParams)
|
|
|
|
{
|
|
|
|
$breadcrumb = Services::breadcrumb();
|
|
|
|
$breadcrumb->replaceParams($newParams);
|
|
|
|
}
|