66 : void
67 {
69
70
71 $this->style_dir = dirname($this->style_dir, 2) . DIRECTORY_SEPARATOR . dirname($location_stylesheet);
72
74
75
76 $iterator = new RecursiveIteratorIterator(
77 new RecursiveDirectoryIterator(dirname($location_stylesheet), FilesystemIterator::SKIP_DOTS),
78 RecursiveIteratorIterator::SELF_FIRST
79 );
80 foreach ($iterator as $item) {
81 if ($item->isDir()) {
82 mkdir($this->style_dir . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
83 } else {
84 copy($item->getPathname(), $this->style_dir . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
85 }
86 }
87
88
89 foreach ($this->images as $im) {
90 $from = $to = $im['file'];
91 if ($im['exp_file_name'] != '') {
92 $to = $im['exp_file_name'];
93 }
94 copy(
96 $this->img_dir . '/' . $to
97 );
98 }
99 }
static getStyleSheetLocation(string $mode="output", string $a_css_name="", string $a_css_location="")
get full style sheet file name (path inclusive) of current user
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)