public function OSMTemplate::getCSSFiles in MediaFront 7
Same name and namespace in other branches
- 6.2 players/osmplayer/player/OSMTemplate.php \OSMTemplate::getCSSFiles()
- 6 players/osmplayer/player/OSMTemplate.php \OSMTemplate::getCSSFiles()
Get an array of the CSS files for this player.
1 call to OSMTemplate::getCSSFiles()
- OSMTemplate::getCSSHeader in players/
osmplayer/ player/ OSMTemplate.php - Get the CSS header for this player.
File
- players/
osmplayer/ player/ OSMTemplate.php, line 196
Class
- OSMTemplate
- Copyright (c) 2010 Alethia Inc, http://www.alethia-inc.com Developed by Travis Tidwell | travist at alethia-inc.com
Code
public function getCSSFiles() {
$files = array();
// If they are using theme roller, then we will use the cached CSS files.
if ($this->settings['generateCSS']) {
// Get the CSS path.
$css_path = $this->css_dir ? $this->css_dir : dirname(__FILE__);
$css_local_path = $this->css_dir ? '' : 'css/';
// Cache the prefix name.
$id = $this->playerSettings['id'];
// The CSS files for this id.
$files['template'] = $css_local_path . "{$id}.css";
$files['template_ie'] = $css_local_path . "{$id}_ie.css";
// If the CSS files do not exist, then create them.
if (!is_file($css_path . '/' . $files['template'])) {
$this
->createCSS();
}
}
else {
$files = $this->settings['cssFiles'];
}
// Return the CSS files.
return $files;
}