Commit 413cb7ca authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Aide de vue FilAriane : ne doit rien générer si aucune page active trouvée.

parent 1b7be383
Loading
Loading
Loading
Loading
Loading
+6 −2
Changes for src/UnicaenApp/View/Helper/Navigation/FilAriane.php: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
<?php

namespace UnicaenApp\View\Helper\Navigation;

use Zend\Navigation\AbstractContainer;
use Zend\View\Helper\Navigation\Breadcrumbs;

/**
@@ -22,8 +24,6 @@ class FilAriane extends Breadcrumbs
    /**
     * Renders helper
     *
     * Implements {@link HelperInterface::render()}.
     *
     * @param  AbstractContainer $container [optional] container to render. Default is
     *                              to render the container registered in the helper.
     * @return string               helper output
@@ -31,6 +31,10 @@ class FilAriane extends Breadcrumbs
    public function render($container = null)
    {
        $html = parent::render($container);
        if ($html === '') {
            return '';
        }

        $html = sprintf('<ul class="breadcrumb"><li>%s</li></ul>', $html);
        
        return $html;