@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Provide syntax highlighting css for oblivious phame posts

Summary: I have simply copied the existing css into the oblivious skin. I don't know if this is the right approach (code duplication), but considering this skin should be isolated (and will potentially differ) I think this makes sense.

Test Plan: Use a code block on a phame post.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin, chad

Differential Revision: https://secure.phabricator.com/D6313

authored by

Cam Spiers and committed by
epriestley
5cf72585 b62ecb7c

+15 -2
+15 -2
src/applications/phame/skins/PhameBasicTemplateBlogSkin.php
··· 11 11 $root = dirname(phutil_get_library_root('phabricator')); 12 12 require_once $root.'/support/phame/libskin.php'; 13 13 14 + $this->cssResources = array(); 14 15 $css = $this->getPath('css/'); 16 + 15 17 if (Filesystem::pathExists($css)) { 16 - $this->cssResources = array(); 17 18 foreach (Filesystem::listDirectory($css) as $path) { 18 19 if (!preg_match('/.css$/', $path)) { 19 20 continue; ··· 26 27 'href' => $this->getResourceURI('css/'.$path), 27 28 )); 28 29 } 29 - $this->cssResources = phutil_implode_html("\n", $this->cssResources); 30 30 } 31 + 32 + $map = CelerityResourceMap::getInstance(); 33 + $symbol_info = $map->lookupSymbolInformation('syntax-highlighting-css'); 34 + 35 + $this->cssResources[] = phutil_tag( 36 + 'link', 37 + array( 38 + 'rel' => 'stylesheet', 39 + 'type' => 'text/css', 40 + 'href' => PhabricatorEnv::getCDNURI($symbol_info['uri']), 41 + )); 42 + 43 + $this->cssResources = phutil_implode_html("\n", $this->cssResources); 31 44 32 45 $request = $this->getRequest(); 33 46 $content = $this->renderContent($request);