return '';
}
- public function copyExternalFile($file, $video=false) {
+ public function copyExternalFile($file, $video = false) {
$this->packager->copyLinkFile($file, 'data/links/', $video);
}
public function getCSSContainer() {
$css = '#link' . $this->id . '{';
- $css.='left:' . $this->left . 'px;top:' . $this->top . 'px;';
- $css.='width:' . $this->width . 'px;height:' . $this->height . 'px;';
- $css.=$this->getCSS();
- $css.='}';
+ $css .= 'left:' . $this->left . 'px;top:' . $this->top . 'px;';
+ $css .= 'width:' . $this->width . 'px;height:' . $this->height . 'px;';
+ $css .= $this->getCSS();
+ $css .= '}';
return $css;
}
return '';
}
- public static function getUniversalLocation($loc, $css=false) {
+ public static function getUniversalLocation($loc, $css = false) {
$datas = parse_url($loc);
if (isset($datas['scheme']) && !is_null($datas['scheme'])) {
}
class contentLink extends wsPackagerHTML5Link {
-
+
}
class webLink extends normalLink {
}
public function getCSS() {
-
+
}
}
$res = '<video width="' . $w . '" height="' . $h . '"';
if ($this->video_auto_start) {
- $res.=' autoplay="autoplay"';
+ $res .= ' autoplay="autoplay"';
}
if ($this->video_controls) {
- $res.=' controls="controls"';
+ $res .= ' controls="controls"';
}
if ($this->video_loop) {
- $res.=' loop="loop"';
+ $res .= ' loop="loop"';
}
if (!$this->video_sound_on) {
- $res.=' audio="muted"';
+ $res .= ' audio="muted"';
}
- $res.=' poster="data/links/' . $basename . '.jpg"';
- $res.='>';
-
+ $res .= ' poster="data/links/' . $basename . '.jpg"';
+ $res .= '>';
$this->copyExternalFile($this->to, true);
if ($type != '') {
$type = " type='" . $type . "'";
}
- $res.='<source src="' . wsPackagerHTML5Link::getUniversalLocation($basename . '.' . $ext) . '"' . $type . ' />';
+ $res .= '<source src="' . wsPackagerHTML5Link::getUniversalLocation($basename . '.' . $ext) . '"' . $type . ' />';
}
$flashvars = array('video' => wsPackagerHTML5Link::getUniversalLocation($basename . '.mp4'),
- 'poster' => wsPackagerHTML5Link::getUniversalLocation($basename . '.jpg'),
- 'controls' => $this->video_controls == '1',
- 'autoPlay' => $this->video_auto_start == '1',
- 'loop' => $this->video_loop);
- $res.=cubeMedia::flashObject('swf/video.swf', $w, $h, $flashvars, 'swfplayer-' . $basename, '', 9, '#ffffff', '', 'true', 'noscale', 'normal');
- $res.='</video>';
+ 'poster' => wsPackagerHTML5Link::getUniversalLocation($basename . '.jpg'),
+ 'controls' => $this->video_controls == '1',
+ 'autoPlay' => $this->video_auto_start == '1',
+ 'loop' => $this->video_loop);
+ $res .= cubeMedia::flashObject('swf/video.swf', $w, $h, $flashvars, 'swfplayer-' . $basename, '', 9, '#ffffff', '', 'true', 'noscale', 'normal');
+ $res .= '</video>';
return $res;
}
}
class basketLink extends wsPackagerHTML5Link {
-
+
}
class colorLink extends contentLink {