$res = '<a href="#" ' . $this->getTooltipAttribute() . '></a>';
$res .= '<div class="flipcard-perspective">';
$res .= '<div class="flipcard">';
- $res .= '<div class="front"><img src="' . self::getUniversalLocation($this->to) . '"></div>';
- $res .= '<div class="back"><img src="' . self::getUniversalLocation($this->alternative) . '"></div>';
+ $res .= '<div class="front"><img src="' . $this->shortenURL(self::getUniversalLocation($this->to)) . '"></div>';
+ $res .= '<div class="back"><img src="' . $this->shortenURL(self::getUniversalLocation($this->alternative)) . '"></div>';
$res .= '</div>';
$res .= '</div>';
return $res;
$w = $this->width;
$h = $this->height;
$this->copyExternalFile($this->to);
- $res = '<img class="multimediaimage" data-scroll="' . $this->scroll . '" data-width="' . $w . '" data-height="' . $h . '" src="' . Link::getUniversalLocation($this->to) . '" width="' . $w . '" height="' . $h . '" aria-hidden="1" />';
+ $res = '<img class="multimediaimage" data-scroll="' . $this->scroll . '" data-width="' . $w . '" data-height="' . $h . '" src="' . $this->shortenURL(Link::getUniversalLocation($this->to)) . '" width="' . $w . '" height="' . $h . '" aria-hidden="1" />';
$alt=$this->getAlternativeText();
if($alt) {
$res .= '<div class="visually-hidden" aria-live="polite">' . $alt . '</div>';
if (null === $f) {
return '';
}
- return '<iframe src="' . $f . '" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" data-scale="' . $this->scale . '" scrolling="' . $this->scrolling . '" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
+ return '<iframe src="' . $this->shortenURL($f) . '" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" data-scale="' . $this->scale . '" scrolling="' . $this->scrolling . '" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
}
/**
{
$res = parent::getAdditionnalContent();
$markup = '<div class="iframeContainer" data-type="' . $this->iframeType . '">';
- $markup .= '<iframe src="' . IFrameLink::_handleFile($this) . '" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
+ $markup .= '<iframe src="' . $this->shortenURL(IFrameLink::_handleFile($this)) . '" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
$markup .= '</div>';
return $res . ' data-iframe="' . rawurlencode($markup) . '" ';
}
class ImageLink extends ContentLink
{
public $_ocr = ['to'];
+
public function getImageUrl()
{
- return Link::getUniversalLocation($this->to, false);
+ return $this->shortenURL(Link::getUniversalLocation($this->to, false));
}
public function getCSS()
if (isset($this->rollover) && $this->rollover) {
$res .= ' data-rollover="' . $this->rollover . '"';
}
- $res.=' data-rrr="1" ';
+ $res .= ' data-rrr="1" ';
return $res;
}