public function getAdditionnalContent() {
}
-
- public function getClasses(){
+
+ public function getClasses() {
return array();
}
class normalLink extends wsHTML5Link {
public function getHTMLContent() {
- $class =$this->getClasses();
+ $class = $this->getClasses();
if ($this->display_area) {
$class[] = 'displayArea';
}
return '#/video/' . $basename;
}
-
+
public function getAdditionnalContent() {
- return ' data-video="'.rawurlencode(videoLink::makeVideoTag($this)).'" ';
+ return ' data-video="' . rawurlencode(videoLink::makeVideoTag($this)) . '" ';
}
}
class multimediaLink extends wsHTML5Link {
public function getHTMLContent() {
- return cubeMedia::flashObject(wsHTML5Link::getUniversalLocation($this->to), $this->width * $this->compiler->getCssScale(), $this->height * $this->compiler->getCssScale(), array(), '', '', 9, '#ffffff', '', 'true', 'noscale', 'transparent');
+ $this->copyExternalFile($this->to);
+ $w = $this->width * $this->compiler->getCssScale();
+ $h = $this->height * $this->compiler->getCssScale();
+ if ($this->alternative != '') {
+ $this->copyExternalFile($this->alternative);
+ }
+ $alt = $this->alternative == '' ? '' : '<img src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $w . '" height="' . $h . '" />';
+ return cubeMedia::flashObject(wsHTML5Link::getUniversalLocation($this->to), $w, $h, array(), '', '', 9, '#ffffff', $alt, 'true', 'default', 'transparent');
}
}