public $video_width;
public $video_service;
public $inline;
+ public $in_popup = false;
public $display_area;
public $read_mode;
public $infobulle;
public function getAdditionnalContent() {
$i = $this->_init;
$i['inline'] = true;
+ $i['in_popup'] = true;
$i['width'] = $i['video_width'];
$i['height'] = $i['video_height'];
$res = '<iframe data-width="' . $iw . '" data-height="' . $ih . '" width="' . $iw . '" height="' . $ih . '" src="' . $this->_url . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
}
if ($this->_externalIframe !== false) {
- $iw = $this->_config['width'];
- $ih = $this->_config['height'];
- $res = '<iframe data-scale="' . $this->getCssScale() . '" data-width="' . $iw . '" data-height="' . $ih . '" width="' . $iw . '" height="' . $ih . '" src="' . $this->_externalIframe . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
+ $s = $this->in_popup ? 1 : $this->getCssScale();
+ $iw = $this->_config['width'] * $s;
+ $ih = $this->_config['height'] * $s;
+ $res = '<iframe data-scale="' . $s . '" data-width="' . $iw . '" data-height="' . $ih . '" width="' . $iw . '" height="' . $ih . '" src="' . $this->_externalIframe . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
}
foreach ($this->_config['inject'] as $i) {
$css .= $this->getCSSZIndex();
$css .= $this->getCSS();
$css .= '}';
- if ($this->_externalIframe !== false) {
+ if ($this->_externalIframe !== false && $this->in_popup) {
$css .= '#l_' . $this->id . '>iframe{' . wsHTML5::writeCSSUA('transform', 'scale(' . $this->getCssScale() . ')') . '}';
}
return $css;