/**
  * @param $controllerResponse
  * @param $controllerName
  * @param $action
  */
 protected function _postDispatch($controllerResponse, $controllerName, $action)
 {
     parent::_postDispatch($controllerResponse, $controllerName, $action);
     if ($controllerResponse instanceof XenForo_ControllerResponse_View) {
         if (!XenForo_Autoloader::getInstance()->autoload('SimplePortal_BrandingFree')) {
             $controllerResponse->params['show_portal_branding'] = true;
         }
         $portalContainer = $this->getPortalConfig();
         if (isset($portalContainer->container)) {
             $controllerResponse->containerParams = array('containerTemplate' => $portalContainer->container);
         }
         if (SimplePortal_Static::option('defaultSidebar')) {
             $viewParams = $this->_getDefaultSidebarParams();
             $controllerResponse->params += $viewParams;
         }
     }
 }
Exemple #2
0
 protected function _postDispatch($controllerResponse, $controllerName, $action)
 {
     $this->_logRequest($controllerResponse, $controllerName, $action);
     parent::_postDispatch($controllerResponse, $controllerName, $action);
 }