protected function compile()
    {
        $config  = StringUtil::deserialize($this->bs_navbarModules, true);
        $modules = [];
        $models  = $this->prefetchModules($config);

        foreach ($config as $module) {
            $id = $module['module'];

            if ($id != '' && !$module['inactive'] && array_key_exists($id, $models)) {
                $modules[] = $this->generateModule($module, $models[$id]);
            }
        }

        $cssID = $this->cssID;

        if ($this->cssID[1] == '') {
            $cssID[1] = 'navbar-light bg-light';
        }

        if ($this->bs_isResponsive && $this->bs_toggleableSize) {
            $cssID[1] = trim($cssID[1] . ' navbar-expand-' . $this->bs_toggleableSize);
        }

        $this->cssID             = $cssID;
        $this->Template->modules = $modules;
    }
protected function compile()
    {
        $config  = StringUtil::deserialize($this->bs_navbarModules, true);
        $modules = [];
        $models  = $this->prefetchModules($config);

        foreach ($config as $module) {
            $id = $module['module'];

            if ($id != '' && !$module['inactive'] && array_key_exists($id, $models)) {
                $modules[] = $this->generateModule($module, $models[$id]);
            }
        }

        $cssID = $this->cssID;

        if ($this->cssID[1] == '') {
            $cssID[1] = 'navbar-light bg-light';
        }

        if ($this->bs_isResponsive && $this->bs_toggleableSize) {
            $cssID[1] = trim($cssID[1] . ' navbar-expand-' . $this->bs_toggleableSize);
        }

        $this->cssID             = $cssID;
        $this->Template->modules = $modules;
    }
protected function compile ( ) { $ config = StringUtil :: deserialize ( $ this -> bs_navbarModules , true ) ; $ modules = [ ] ; $ models = $ this -> prefetchModules ( $ config ) ; foreach ( $ config as $ module ) { $ id = $ module [ 'module' ] ; if ( $ id != '' && ! $ module [ 'inactive' ] && array_key_exists ( $ id , $ models ) ) { $ modules [ ] = $ this -> generateModule ( $ module , $ models [ $ id ] ) ; } } $ cssID = $ this -> cssID ; if ( $ this -> cssID [ 1 ] == '' ) { $ cssID [ 1 ] = 'navbar-light bg-light' ; } if ( $ this -> bs_isResponsive && $ this -> bs_toggleableSize ) { $ cssID [ 1 ] = trim ( $ cssID [ 1 ] . ' navbar-expand-' . $ this -> bs_toggleableSize ) ; } $ this -> cssID = $ cssID ; $ this -> Template -> modules = $ modules ; }
Compile the navbar.

@return void
Compile the navbar .