21 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
23 $active_css = explode(
'?', $active_css);
24 $css = fread(fopen($active_css[0],
'r'), filesize($active_css[0]));
25 preg_match_all(
"/url\(([^\)]*)\)/", $css,
$files);
27 chdir(dirname($active_css[0]));
28 foreach (array_unique(
$files[1]) as $fileref) {
29 if (is_file($fileref)) {
30 copy($fileref, $a_target_dir .
"/css/images/" . basename($fileref));
32 $css = str_replace($fileref,
"images/" . basename($fileref), $css);
35 fwrite(fopen($a_target_dir .
'/css/style.css',
'w'), $css);
static exportContentCSS($a_slm_object, $a_target_dir)
Export lm content css to a directory.
Utility class for scorm export.
static getContentStylePath($a_style_id, $add_random=true)
get content style path
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...