protected function _debugMode() { if (get_class($this->_template) == 'XenForo_Template_Admin') { $this->_template->addRequiredExternal('css', 'public:th_debug_info_debugonpost'); } else { $this->_template->addRequiredExternal('css', 'th_debug_info_debugonpost'); } $this->_template->addRequiredExternal('js', 'js/themehouse/debugonpost/full/debugonpost.js'); $this->_append("<div id=\"DebugInfo\"><div><a href=\"\" id=\"DebugInfoClose\">Close</a>" . XenForo_Debug::getDebugHtml() . "</div></div>"); }
/** * Renders page-level debugging output and replaces the original view content * with it. Alternatively, it could inject itself into the view content. * * @param string $originalContent Original, rendered view content * * @return string Replacement rendered view content */ public function renderDebugOutput($originalContent) { $this->_response->clearHeaders(); $this->_response->setHttpResponseCode(200); $this->_response->setHeader('Content-Type', 'text/html; charset=UTF-8', true); $this->_response->setHeader('Last-Modified', gmdate('D, d M Y H:i:s') . ' GMT', true); return XenForo_Debug::getDebugPageWrapperHtml(XenForo_Debug::getDebugHtml()); }