Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/skins/PhameBasicTemplateBlogSkin.php
| Show All 21 Lines | if (Filesystem::pathExists($css)) { | ||||
| 'rel' => 'stylesheet', | 'rel' => 'stylesheet', | ||||
| 'type' => 'text/css', | 'type' => 'text/css', | ||||
| 'href' => $this->getResourceURI('css/'.$path), | 'href' => $this->getResourceURI('css/'.$path), | ||||
| )); | )); | ||||
| } | } | ||||
| } | } | ||||
| $map = CelerityResourceMap::getNamedInstance('phabricator'); | $map = CelerityResourceMap::getNamedInstance('phabricator'); | ||||
| $resource_symbol = 'syntax-highlighting-css'; | $highlight_symbol = 'syntax-highlighting-css'; | ||||
| $resource_uri = $map->getURIForSymbol($resource_symbol); | $highlight_uri = $map->getURIForSymbol($highlight_symbol); | ||||
| $this->cssResources[] = phutil_tag( | $this->cssResources[] = phutil_tag( | ||||
| 'link', | 'link', | ||||
| array( | array( | ||||
| 'rel' => 'stylesheet', | 'rel' => 'stylesheet', | ||||
| 'type' => 'text/css', | 'type' => 'text/css', | ||||
| 'href' => PhabricatorEnv::getCDNURI($resource_uri), | 'href' => PhabricatorEnv::getCDNURI($highlight_uri), | ||||
| )); | |||||
| $remarkup_symbol = 'phabricator-remarkup-css'; | |||||
| $remarkup_uri = $map->getURIForSymbol($remarkup_symbol); | |||||
| $this->cssResources[] = phutil_tag( | |||||
| 'link', | |||||
| array( | |||||
| 'rel' => 'stylesheet', | |||||
| 'type' => 'text/css', | |||||
| 'href' => PhabricatorEnv::getCDNURI($remarkup_uri), | |||||
| )); | )); | ||||
| $this->cssResources = phutil_implode_html("\n", $this->cssResources); | $this->cssResources = phutil_implode_html("\n", $this->cssResources); | ||||
| $request = $this->getRequest(); | $request = $this->getRequest(); | ||||
| // Render page parts in order so the templates execute in order, if we're | // Render page parts in order so the templates execute in order, if we're | ||||
| // using templates. | // using templates. | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||