Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorBarePageView.php
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | if ($this->getDeviceReady()) { | ||||
| 'meta', | 'meta', | ||||
| array( | array( | ||||
| 'name' => 'viewport', | 'name' => 'viewport', | ||||
| 'content' => 'width=device-width, '. | 'content' => 'width=device-width, '. | ||||
| 'initial-scale=1, '. | 'initial-scale=1, '. | ||||
| 'maximum-scale=1', | 'maximum-scale=1', | ||||
| )); | )); | ||||
| } | } | ||||
| $manifest_tag = phutil_tag( | |||||
| 'link', | |||||
| array( | |||||
| 'rel' => 'manifest', | |||||
| 'href' => '/manifest.json', | |||||
| )); | |||||
| $icon_tag_76 = phutil_tag( | $icon_tag_76 = phutil_tag( | ||||
| 'link', | 'link', | ||||
| array( | array( | ||||
| 'rel' => 'apple-touch-icon', | 'rel' => 'apple-touch-icon', | ||||
| 'href' => celerity_get_resource_uri( | 'href' => celerity_get_resource_uri( | ||||
| '/rsrc/favicons/apple-touch-icon-76x76.png'), | '/rsrc/favicons/apple-touch-icon-76x76.png'), | ||||
| )); | )); | ||||
| Show All 39 Lines | if ($this->getRequest()) { | ||||
| if (strlen($postprocessor_key)) { | if (strlen($postprocessor_key)) { | ||||
| $response->setPostProcessorKey($postprocessor_key); | $response->setPostProcessorKey($postprocessor_key); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| $developer = PhabricatorEnv::getEnvConfig('phabricator.developer-mode'); | $developer = PhabricatorEnv::getEnvConfig('phabricator.developer-mode'); | ||||
| return hsprintf( | return hsprintf( | ||||
| '%s%s%s%s%s%s%s%s', | '%s%s%s%s%s%s%s%s%s', | ||||
| $viewport_tag, | $viewport_tag, | ||||
| $manifest_tag, | |||||
| $icon_tag_76, | $icon_tag_76, | ||||
| $icon_tag_120, | $icon_tag_120, | ||||
| $icon_tag_152, | $icon_tag_152, | ||||
| $apple_tag, | $apple_tag, | ||||
| $referrer_tag, | $referrer_tag, | ||||
| CelerityStaticResourceResponse::renderInlineScript( | CelerityStaticResourceResponse::renderInlineScript( | ||||
| $framebust.jsprintf('window.__DEV__=%d;', ($developer ? 1 : 0))), | $framebust.jsprintf('window.__DEV__=%d;', ($developer ? 1 : 0))), | ||||
| $response->renderResourcesOfType('css')); | $response->renderResourcesOfType('css')); | ||||
| Show All 12 Lines | |||||