$ext = mb_strtolower(files::getExtension($init['alternative']));
- if (in_array($ext, array('oam', 'zip', 'html'))) {
+ if (in_array($ext, array('oam', 'zip', 'html')) || substr($init['alternative'], 0, 4) == 'http') {
if ($init['inline']) {
return new htmlMultimediaLink($id, $init, $compiler);
} else {
public function getHTMLContent() {
if ($this->_content == '') {
$ext = files::getExtension($this->alternative);
- fb($this->alternative);
- fb($ext);
+
if ($ext == 'oam') {
$d = $this->unzipFile($this->alternative, true);
$this->_config = $this->getConfigOAM($d['dir']);
$this->_config = $this->getConfigHTML($d['dir'], $this->alternative);
$this->copyExternalFile($d['dir'] . '/' . $this->alternative);
}
+ if (substr($this->alternative, 0, 4) == 'http') {
+ $this->_url = $externalIframe = $this->alternative;
+ $this->_config = array('html' => false, 'width' => $this->width * $this->getCssScale(), 'height' => $this->height * $this->getCssScale());
+ }
fb($this->_config);
$w = $this->width * $this->getCssScale();
$h = $this->height * $this->getCssScale();
+ $res = '';
if ($this->_config['html']) {
$this->_url = $d['fdir'] . '/' . $this->_config['html'];
if ($this->extra) {
$iw = $this->_config['width'];
$ih = $this->_config['height'];
- $res = '<iframe width="' . $iw . '" height="' . $ih . '" src="' . $this->_url . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';
- } else {
- $res = '';
+ $res = '<iframe width="' . $iw . '" height="' . $ih . '" src="' . $this->_url . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
+ }
+ if (isset($externalIframe)) {
+ $res = '<iframe width="' . $w . '" height="' . $h . '" src="' . $externalIframe . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
}
foreach ($this->_config['inject'] as $i) {