$this->copyExternalDir($d['dir'], $d['fdir']);
$this->path = $d['fdir'];
- $this->path_absolute = $this->compiler->vdir->path($d['fdir']);
+ $this->path_absolute = $this->compiler->getVirtualDirectory()->path($d['fdir']);
return '#/slideshow/' . $this->uid;
}
$res .= '<ul class="splide__list">';
foreach ($slides as $slide) {
- $image_path_relative = $this->compiler->vdir->relativePath($slide['path']);
+ $image_path_relative = $this->compiler->getVirtualDirectory()->relativePath($slide['path']);
$image_info = Image::getimagesize($slide['path']);
$image_info_json = ($image_info) ? json_encode(['width' => $image_info[0], 'height' => $image_info[1], 'ratio' => round($image_info[0] / $image_info[1], 4)]) : '';
$image_dimensions = ($image_info) ? $image_info[3] : '';