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