public function FrxSkin::addCSS in Forena Reports 7.4
Same name and namespace in other branches
- 7.3 FrxSkin.inc \FrxSkin::addCSS()
Add CSS Files
Parameters
$type:
$sheet:
2 calls to FrxSkin::addCSS()
- FrxSkin::load in ./
FrxSkin.inc - Load the skin based on the name.
- FrxSkin::loadSkinFiles in ./
FrxSkin.inc - Adds on report specific skin files to
File
- ./
FrxSkin.inc, line 34 - FrxSkin.inc Skinning
Class
- FrxSkin
- @file FrxSkin.inc Skinning
Code
public function addCSS($type, $sheet) {
if (strpos($sheet, 'http:') === 0 || strpos($sheet, 'https:') === 0) {
$this->stylesheets[$type][] = $sheet;
}
elseif (Frx::File()
->exists($sheet)) {
$this->stylesheets[$type][] = Frx::File()
->path($sheet);
}
elseif (file_exists($sheet)) {
$this->stylesheets[$type][] = $sheet;
}
}