src/View/AbstractRender.php
protected function renderNest(Model $model, $isExpanded = false)
    {
        // Get the dom id.
        $domid = $model->getDomid();
        if ($domid !== '') {
            $domid = 'id="' . $domid . '"';
        }

        // Are we expanding this one?
        if ($isExpanded === true) {
            $style = '';
        } else {
            $style = 'khidden';
        }

        return str_replace(
            array(
                static::MARKER_STYLE,
                static::MARKER_MAIN_FUNCTION,
                static::MARKER_DOM_ID,
            ),
            array(
                $style,
                $model->renderMe(),
                $domid,
            ),
            $this->getTemplateFileContent(static::FILE_NEST)
        );
    }
protected function renderNest(Model $model, $isExpanded = false)
    {
        // Get the dom id.
        $domid = $model->getDomid();
        if ($domid !== '') {
            $domid = 'id="' . $domid . '"';
        }

        // Are we expanding this one?
        if ($isExpanded === true) {
            $style = '';
        } else {
            $style = 'khidden';
        }

        return str_replace(
            array(
                static::MARKER_STYLE,
                static::MARKER_MAIN_FUNCTION,
                static::MARKER_DOM_ID,
            ),
            array(
                $style,
                $model->renderMe(),
                $domid,
            ),
            $this->getTemplateFileContent(static::FILE_NEST)
        );
    }
protected function renderNest ( Model $ model , $ isExpanded = false ) { // Get the dom id. $ domid = $ model -> getDomid ( ) ; if ( $ domid !== '' ) { $ domid = 'id="' . $ domid . '"' ; } // Are we expanding this one? if ( $ isExpanded === true ) { $ style = '' ; } else { $ style = 'khidden' ; } return str_replace ( array ( static :: MARKER_STYLE , static :: MARKER_MAIN_FUNCTION , static :: MARKER_DOM_ID , ) , array ( $ style , $ model -> renderMe ( ) , $ domid , ) , $ this -> getTemplateFileContent ( static :: FILE_NEST ) ) ; }
Renders a nest with a anonymous function in the middle.

@param Model $model
The model, which hosts all the data we need.
@param boolean $isExpanded
The only expanded nest is the settings menu, when we render only the
settings menu.

@return string
The generated markup from the template files.
Renders a nest with a anonymous function in the middle .