public function Skin::addCSS in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/Skin.php \Drupal\forena\Skin::addCSS()
Add CSS Files
Parameters
$type:
$sheet:
2 calls to Skin::addCSS()
- Skin::load in src/
Skin.php - Load the skin based on the name.
- Skin::loadSkinFiles in src/
Skin.php - Adds on report specific skin files to
File
- src/
Skin.php, line 36 - Skin.inc Skinning
Class
Namespace
Drupal\forenaCode
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;
}
}