function ApplyCachedData($arData)
{
global $APPLICATION;
if ($arData && is_array($arData))
{
if (array_key_exists("additionalCSS", $arData) && StrLen($arData["additionalCSS"]) > 0)
{
$fname = $_SERVER["DOCUMENT_ROOT"].$arData["additionalCSS"];
if (file_exists($fname))
$APPLICATION->SetAdditionalCSS($arData["additionalCSS"].'?'.filemtime($fname));
//Check if parent component exists and plug css it to it's "collection"
! if($this->__component && $this->__component->__parent)
$this->__component->__parent->__children_css[] = $this->__folder."/style.css";
}
}
} |