public function DocumentTypeBase::loadCSSFiles in Forena Reports 7.5
2 calls to DocumentTypeBase::loadCSSFiles()
- HtmlDocument::render in src/
DocumentFormats/ HTMLDocument.php - WordDocument::render in src/
DocumentFormats/ WordDocument.php
File
- src/
DocumentFormats/ DocumentTypeBase.php, line 29 - FrxDocument.inc Given a report, render the appropriate output given the document format. @author davidmetzler
Class
Namespace
Drupal\forena\DocumentFormatsCode
public function loadCSSFiles($format) {
// Add css files
$css = '';
foreach (Frx::Skin()->stylesheets as $type => $sheets) {
foreach ($sheets as $sheet) {
switch ($type) {
case 'all':
case $format:
$css .= file_get_contents($sheet);
break;
}
}
}
return $css;
}