'.
'This page raised PHP errors. Find them in DarkConsole '.
'or the error log.'.
'
';
}
+ Javelin::initBehavior('device', array('id' => 'base-page'));
+ $agent = idx($_SERVER, 'HTTP_USER_AGENT');
+
+ // Try to guess the device resolution based on UA strings to avoid a flash
+ // of incorrectly-styled content.
+ $device_guess = 'device-desktop';
+ if (preg_match('/iPhone|iPod/', $agent)) {
+ $device_guess = 'device-phone';
+ } else if (preg_match('/iPad/', $agent)) {
+ $device_guess = 'device-tablet';
+ }
+
+ $classes = array(
+ 'phabricator-standard-page',
+ $admin_class,
+ $device_guess,
+ );
+ $classes = implode(' ', $classes);
+
return
($console ? ''.
+ phutil_render_tag(
+ 'div',
+ array(
+ 'id' => 'base-page',
+ 'class' => $classes,
+ ),
$header_chrome.
$this->bodyContent.
- '
'.
- '
'.
+ '