$this->json = false;
$this->json = true;
- $types = array(1, 2, 3, 4, 5, 6, 7, 11, 13, 14, 15, 16, 17);
+ $types = array(1, 2, 3, 4, 5, 6, 7, 11, 13, 14, 15, 16, 17, 18, 19, 24, 25);
if (wsDroits::revendeur()) {
- $types = array(1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21);
+ $types = array(1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 25);
}
if (wsDroits::admin()) {
$types = range(1, 30);
$flex->addBitmap($workingDir . '/' . $link['to'], 'link_datas_' . $id);
}
$imagesassets[$id] = true;
- } else if (in_array($link['type'], array(4, 6, 7, 9, 16, 17))) {
+ } else if (in_array($link['type'], array(4, 6, 7, 9, 16, 17, 25))) {
$workingFile = $workingDir . '/' . $link['to'];
if (file_exists($workingFile)) {
$filesToCopy['data/' . $link['to']] = $workingFile;
$this->config->bookmarkGroups[] = array('page' => ($link['page']), 'nb' => $link['to'], 'name' => $link['extra']);
}
+ public function addAudiodescription($link) {
+ $this->config->audiodescription[$link['page']] = $link['to'];
+ $this->copyLinkFile($link['to'], 'data/audiodescription/');
+ }
+
protected function writeJs() {
$config = $this->writeConfig();
file_put_contents($this->vdir . '/data/datas.js', $config);
case 21:
case 6:
return self::getMultimediaInstance($id, $init, $compiler);
- break;
case 23:
return new statsTagLink($id, $init, $compiler);
- break;
- case
- 24:
+ case 24:
return new phoneLink($id, $init, $compiler);
+ case 25:
+ $compiler->addAudiodescription($init);
+ break;
default:
return null;
}