public function renderContainer(
        PhpRenderer $view,
        $name,
        $revisionId = null
    ) {
        $site = $this->getSite($view);

        $container = $site->getContainer($name);

        $pluginHtml = '';

        if (!empty($container)) {
            if (empty($revisionId)) {
                $revision = $container->getPublishedRevision();
            } else {
                $revision = $container->getRevisionById($revisionId);
            }

            $pluginWrapperRows = $revision->getPluginWrappersByRow();

            if (!empty($pluginWrapperRows)) {
                $pluginHtml = $this->getPluginRowsHtml($view, $pluginWrapperRows);
            }

            $revisionId = $revision->getRevisionId();
        } else {
            $revisionId = -1;
        }

        // The front end demands rows in empty containers
        if (empty($pluginHtml)) {
            $pluginHtml .= '<div class="row"></div>';
        }

        return $this->getContainerWrapperHtml(
            $revisionId,
            $name,
            $pluginHtml,
            false
        );
    }
public function renderContainer(
        PhpRenderer $view,
        $name,
        $revisionId = null
    ) {
        $site = $this->getSite($view);

        $container = $site->getContainer($name);

        $pluginHtml = '';

        if (!empty($container)) {
            if (empty($revisionId)) {
                $revision = $container->getPublishedRevision();
            } else {
                $revision = $container->getRevisionById($revisionId);
            }

            $pluginWrapperRows = $revision->getPluginWrappersByRow();

            if (!empty($pluginWrapperRows)) {
                $pluginHtml = $this->getPluginRowsHtml($view, $pluginWrapperRows);
            }

            $revisionId = $revision->getRevisionId();
        } else {
            $revisionId = -1;
        }

        // The front end demands rows in empty containers
        if (empty($pluginHtml)) {
            $pluginHtml .= '<div class="row"></div>';
        }

        return $this->getContainerWrapperHtml(
            $revisionId,
            $name,
            $pluginHtml,
            false
        );
    }
public function renderContainer ( PhpRenderer $ view , $ name , $ revisionId = null ) { $ site = $ this -> getSite ( $ view ) ; $ container = $ site -> getContainer ( $ name ) ; $ pluginHtml = '' ; if ( ! empty ( $ container ) ) { if ( empty ( $ revisionId ) ) { $ revision = $ container -> getPublishedRevision ( ) ; } else { $ revision = $ container -> getRevisionById ( $ revisionId ) ; } $ pluginWrapperRows = $ revision -> getPluginWrappersByRow ( ) ; if ( ! empty ( $ pluginWrapperRows ) ) { $ pluginHtml = $ this -> getPluginRowsHtml ( $ view , $ pluginWrapperRows ) ; } $ revisionId = $ revision -> getRevisionId ( ) ; } else { $ revisionId = - 1 ; } // The front end demands rows in empty containers if ( empty ( $ pluginHtml ) ) { $ pluginHtml .= '<div class="row"></div>' ; } return $ this -> getContainerWrapperHtml ( $ revisionId , $ name , $ pluginHtml , false ) ; }
Render a plugin container

@param PhpRenderer $view
@param string      $name       Container Name
@param integer     $revisionId Revision Id to Render

@return null|string
Render a plugin container