src/InfinityBootstrap/View/Helper/Navigation/Bar.php
public function render($container = null)
    {
        // Get container
        if (null !== $container) {
            $this->setContainer($container);
        }

        // Load brand
        $container = $this->getContainer();
        $brand     = $container->findOneBy('class', 'brand');
        if ($brand) {
            $container->removePage($brand);
        }

        // Render navigation bar
        $viewModel            = new ViewModel();
        $viewModel->brand     = $brand;
        $viewModel->container = $container;

        $viewModel->setTemplate('helper/navigation/bar');
        return $this->getView()->render($viewModel);
    }
public function render($container = null)
    {
        // Get container
        if (null !== $container) {
            $this->setContainer($container);
        }

        // Load brand
        $container = $this->getContainer();
        $brand     = $container->findOneBy('class', 'brand');
        if ($brand) {
            $container->removePage($brand);
        }

        // Render navigation bar
        $viewModel            = new ViewModel();
        $viewModel->brand     = $brand;
        $viewModel->container = $container;

        $viewModel->setTemplate('helper/navigation/bar');
        return $this->getView()->render($viewModel);
    }
public function render ( $ container = null ) { // Get container if ( null !== $ container ) { $ this -> setContainer ( $ container ) ; } // Load brand $ container = $ this -> getContainer ( ) ; $ brand = $ container -> findOneBy ( 'class' , 'brand' ) ; if ( $ brand ) { $ container -> removePage ( $ brand ) ; } // Render navigation bar $ viewModel = new ViewModel ( ) ; $ viewModel -> brand = $ brand ; $ viewModel -> container = $ container ; $ viewModel -> setTemplate ( 'helper/navigation/bar' ) ; return $ this -> getView ( ) -> render ( $ viewModel ) ; }
Renders navigation bar

return string
Renders navigation bar