public function render(array $widget, $positionCode, array $params, XenForo_Template_Abstract $template, &$output) { $rendered = parent::render($widget, $positionCode, $params, $template, $output); if ($rendered === self::RENDERED) { // only work if the normal rendering routine runs throughly // this is done to make sure conditional is tested properly // since 1.2.1 $rendered = $output = ''; if (!empty($widget['options']['noVisitorPanel'])) { if (!defined(WidgetFramework_Core::NO_VISITOR_PANEL_FLAG)) { define(WidgetFramework_Core::NO_VISITOR_PANEL_FLAG, true); } $output .= WidgetFramework_Core::NO_VISITOR_PANEL_MARKUP; } } return $rendered; }