/** * @brief display 调用模板,显示页面 * * @return void */ public static function display($path, $theme) { $tpl = LOGX_THEME . $theme . '/' . $path; // 如果是手机访问,尝试切换为简版 if (Request::isMobile()) { $tpls = LOGX_THEME . $theme . '/simple/' . $path; if (file_exists($tpls)) { $tpl = $tpls; } } if (file_exists($tpl)) { @(include_once $tpl); } else { throw new LogXException(sprintf(_t('Template not found: %s'), $path), E_ERROR); } }