public function OSMTemplate::deleteCSS in MediaFront 6
Same name and namespace in other branches
- 6.2 players/osmplayer/player/OSMTemplate.php \OSMTemplate::deleteCSS()
- 7 players/osmplayer/player/OSMTemplate.php \OSMTemplate::deleteCSS()
Delete the current cached CSS files.
1 call to OSMTemplate::deleteCSS()
- OSMTemplate::resetCSS in players/
osmplayer/ player/ OSMTemplate.php - Resets all generated CSS files.
File
- players/
osmplayer/ player/ OSMTemplate.php, line 343
Class
- OSMTemplate
- Copyright (c) 2010 Alethia Inc, http://www.alethia-inc.com Developed by Travis Tidwell | travist at alethia-inc.com
Code
public function deleteCSS() {
// This is only necessary if they user Theme Roller.
if ($this->settings['generateCSS']) {
$css_path = $this->css_dir ? $this->css_dir : dirname(__FILE__) . '/css';
$css_path .= '/' . $this->playerSettings['id'];
$css = $css_path . '.css';
if (is_file($css)) {
@chmod($css, 0775);
unlink($css);
}
$css = $css_path . '_ie.css';
if (is_file($css)) {
@chmod($css, 0775);
unlink($css);
}
}
}