23 $this->exp_dir = $a_exp_dir;
24 $this->style_dir = $a_exp_dir.
"/style";
25 $this->style_img_dir = $a_exp_dir.
"/style/images";
26 $this->img_dir = $a_exp_dir.
"/images";
27 $this->img_browser_dir = $a_exp_dir.
"/images/browser";
31 $this->
addImage(
"browser/blank.png",
"/browser/plus.png");
32 $this->
addImage(
"browser/blank.png",
"/browser/minus.png");
33 $this->
addImage(
"browser/blank.png",
"/browser/blank.png");
43 $this->
addImage(
"browser/forceexp.png");
64 function addImage($a_file, $a_exp_file_name =
"")
66 $this->images[] = array(
"file" => $a_file,
67 "exp_file_name" => $a_file);
84 $style_name = $ilUser->prefs[
"style"].
".css";
85 copy($location_stylesheet, $this->style_dir.
"/".$style_name);
86 $fh = fopen($location_stylesheet,
"r");
87 $css = fread($fh, filesize($location_stylesheet));
88 preg_match_all(
"/url\(([^\)]*)\)/",$css,$files);
89 foreach (array_unique($files[1]) as $fileref)
91 $fileref = dirname($location_stylesheet).
"/".$fileref;
92 if (is_file($fileref))
94 copy($fileref, $this->style_img_dir.
"/".basename($fileref));
100 foreach ($this->images as $im)
102 $from = $to = $im[
"file"];
103 if ($im[
"exp_file_name"] !=
"")
105 $to = $im[
"exp_file_name"];
108 $this->img_dir.
"/".$to);