Example #1
0
 public static function front_controller_pre_view(XenForo_FrontController $fc, XenForo_ControllerResponse_Abstract &$controllerResponse, XenForo_ViewRenderer_Abstract &$viewRenderer, array &$containerParams)
 {
     self::$fc = $fc;
     self::$viewRenderer = $viewRenderer;
     if ($viewRenderer instanceof XenForo_ViewRenderer_HtmlPublic) {
         WidgetFramework_Core::getInstance()->bootstrap();
     }
     if (defined('WIDGET_FRAMEWORK_LOADED')) {
         if ($controllerResponse instanceof XenForo_ControllerResponse_View) {
             WidgetFramework_WidgetRenderer::markTemplateToProcess($controllerResponse);
         }
     }
 }