public function OSMTemplate::getCSSHeader in MediaFront 6
Same name and namespace in other branches
- 6.2 players/osmplayer/player/OSMTemplate.php \OSMTemplate::getCSSHeader()
- 7 players/osmplayer/player/OSMTemplate.php \OSMTemplate::getCSSHeader()
Get the CSS header for this player.
File
- players/
osmplayer/ player/ OSMTemplate.php, line 177
Class
- OSMTemplate
- Copyright (c) 2010 Alethia Inc, http://www.alethia-inc.com Developed by Travis Tidwell | travist at alethia-inc.com
Code
public function getCSSHeader() {
$playerPath = $this->playerSettings['playerPath'];
// Add the CSS files.
$css_files = $this
->getCSSFiles();
$header = '<link rel="stylesheet" type="text/css" href="' . $playerPath . $css_files['template'] . '" />';
$header .= "\n";
if (isset($css_files['template_ie'])) {
$header .= '<!--[if IE]><link rel="stylesheet" type="text/css" href="' . $playerPath . $css_files['template_ie'] . '" /><![endif]-->';
$header .= "\n";
}
// Return the header.
return $header;
}