Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
Show First 20 Lines • Show All 368 Lines • ▼ Show 20 Lines | protected function getHead() { | ||||
$response = CelerityAPI::getStaticResourceResponse(); | $response = CelerityAPI::getStaticResourceResponse(); | ||||
$font_css = null; | $font_css = null; | ||||
if (!empty($monospaced)) { | if (!empty($monospaced)) { | ||||
// We can't print this normally because escaping quotation marks will | // We can't print this normally because escaping quotation marks will | ||||
// break the CSS. Instead, filter it strictly and then mark it as safe. | // break the CSS. Instead, filter it strictly and then mark it as safe. | ||||
$monospaced = new PhutilSafeHTML( | $monospaced = new PhutilSafeHTML( | ||||
PhabricatorUserPreferences::filterMonospacedCSSRule( | PhabricatorMonospacedFontSetting::filterMonospacedCSSRule( | ||||
$monospaced)); | $monospaced)); | ||||
$font_css = hsprintf( | $font_css = hsprintf( | ||||
'<style type="text/css">'. | '<style type="text/css">'. | ||||
'.PhabricatorMonospaced, '. | '.PhabricatorMonospaced, '. | ||||
'.phabricator-remarkup .remarkup-code-block '. | '.phabricator-remarkup .remarkup-code-block '. | ||||
'.remarkup-code { font: %s !important; } '. | '.remarkup-code { font: %s !important; } '. | ||||
'</style>', | '</style>', | ||||
▲ Show 20 Lines • Show All 488 Lines • Show Last 20 Lines |