19 declare(strict_types=1);
    32         $this->style_dir = $a_exp_dir . 
'/templates/default';
    33         $this->style_img_dir = $a_exp_dir . 
'/templates/default/images';
    34         $this->img_dir = $a_exp_dir . 
'/images';
    37                 $a_exp_dir . 
'/images/browser',
    38                 $a_exp_dir . 
'/images/media',
    39                 $a_exp_dir . 
'/images/nav',
    40                 $a_exp_dir . 
'/images/standard'    44         $this->
addImage(
'media/enlarge.svg');
    45         $this->
addImage(
'browser/blank.png', 
'/browser/plus.png');
    46         $this->
addImage(
'browser/blank.png', 
'/browser/minus.png');
    47         $this->
addImage(
'browser/blank.png', 
'/browser/blank.png');
    49         $this->
addImage(
'standard/icon_st.svg');
    50         $this->
addImage(
'standard/icon_pg.svg');
    51         $this->
addImage(
'standard/icon_lm.svg');
    52         $this->
addImage(
'nav/nav_arr_L.png');
    53         $this->
addImage(
'nav/nav_arr_R.png');
    60         foreach ($this->img_sub_dirs as $sub_browser) {
    68     public function addImage(
string $a_file, 
string $a_exp_file_name = 
''): void
    70         $this->images[] = [
'file' => $a_file,
    71                            'exp_file_name' => $a_exp_file_name
    80         $this->style_dir = dirname($this->style_dir, 2) . DIRECTORY_SEPARATOR . dirname($location_stylesheet);
    87             RecursiveIteratorIterator::SELF_FIRST
    89         foreach ($iterator as $item) {
    91                 mkdir($this->style_dir . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
    93                 copy($item->getPathname(), $this->style_dir . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
    98         foreach ($this->images as $im) {
    99             $from = $to = $im[
'file'];
   100             if ($im[
'exp_file_name'] != 
'') {
   101                 $to = $im[
'exp_file_name'];
   105                 $this->img_dir . 
'/' . $to
 
addImage(string $a_file, string $a_exp_file_name='')
Add (icon) image to the list of images to be exported. 
 
static getImagePath(string $img, 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="", string $a_css_location="")
get full style sheet file name (path inclusive) of current user 
 
static makeDirParents(string $a_dir)
Create a new directory and all parent directories. 
 
__construct(string $a_exp_dir)