bring in **ALL** style sheets defined on the tenant

NOTE: this does not check any relationships, etc.; if there is an instance of the Style Sheet class it will be loaded!
This commit is contained in:
Michael Becker 2025-09-19 19:11:03 -04:00
parent 8cd25ef90e
commit b577db2af4

View File

@ -2099,6 +2099,16 @@ EOF
"href" => System::ExpandRelativePath("~/themes/mocha/theme.css", false, true)
));
// FIXME: this should be brought in by the OMS because it causes way too many API calls
$styleSheets = $oms->getInstancesOf(new InstanceKey(1, 22009));
if (count($styleSheets) > 0) {
$content = "";
foreach ($styleSheets as $ss) {
$content .= $oms->getAttributeValue($ss, new InstanceKey(4, 2)) . "\n";
}
$this->renderTag("style", array ("type" => "text/css"), null, $content);
}
$this->renderTag("script", array("type" => "text/javascript", "src" => System::ExpandRelativePath("~/scripts/phast/ckeditor/ckeditor.js", false, true)));
$this->renderTag("script", array("type" => "text/javascript", "src" => System::ExpandRelativePath("~/scripts/phast/System.js.php", false, true)));
$this->renderTag("script", array("type" => "text/javascript", "src" => System::ExpandRelativePath("~/scripts/mocha.js.php", false, true)));