use Cubist\Util\Xml;
use Fluidbook\Tools\Compiler\CompilerInterface;
use Illuminate\Support\Facades\Cache;
-use Illuminate\Support\Facades\Log;
use SodiumException;
use stdClass;
if (stristr($init['to'], '.zip')) {
$d = $compiler->unzipFile($init['to'], false, null, true);
if (Files::count($d['dir']) === 1) {
+ $zname = str_replace('.', '_', $init['to']);
$it = new RecursiveDirectoryIterator($d['dir']);
foreach ($it as $item) {
/** @var $item \SplFileInfo */
- copy($item->getPathname(), $compiler->getWorkingDir() . '/' . $item->getFilename());
- $init['to'] = $item->getFilename();
+ copy($item->getPathname(), $compiler->getWorkingDir() . '/' . $zname . '_' . $item->getFilename());
+ $init['to'] = $zname . '_' . $item->getFilename();
return new HTMLMultimediaPopupImage($id, $init, $compiler);
}
}
$attached = $this->attached ? ' data-attached="' . $this->attached . '" ' : '';
- return '<div class="' . $this->getHTMLContainerClass() . '" style="mix-blend-mode:' . $this->blendmode . ';'.$this->inlineStyles.'" data-blendmode="' . $this->blendmode . '" ' . $attached . ' data-hidden="' . $this->hidden . '" data-scorm="' . $this->scorm . '" data-id="' . $this->uid . '" id="l_' . $this->id . '"' . $addContent . '>' . $this->getHTMLContent() . '</div>';
+ return '<div class="' . $this->getHTMLContainerClass() . '" style="mix-blend-mode:' . $this->blendmode . ';' . $this->inlineStyles . '" data-blendmode="' . $this->blendmode . '" ' . $attached . ' data-hidden="' . $this->hidden . '" data-scorm="' . $this->scorm . '" data-id="' . $this->uid . '" id="l_' . $this->id . '"' . $addContent . '>' . $this->getHTMLContent() . '</div>';
}
public function getHTMLContainerClass()