namespace Fluidbook\Tools\Links;
-class FlipcardLink extends ImageLink {
+class FlipcardLink extends ImageLink
+{
public $interactive = true;
public $defaultZIndex = 70;
public $forceTexture = true;
- public function getHTMLContent() {
+ public function getHTMLContent()
+ {
$this->copyExternalFile($this->to);
$this->copyExternalFile($this->alternative);
$res = '<a href="#" ' . $this->getTooltipAttribute() . '></a>';
return $res;
}
- public function getDefaultTooltip() {
+ public function getDefaultTooltip()
+ {
return 'click to flip';
}
- public function getAdditionnalContent() {
+ public function getAdditionnalContent()
+ {
$res = parent::getAdditionnalContent();
$res .= ' data-flipcard="' . ($this->width > $this->height ? 'axis-x' : 'axis-y') . '" ';
return $res;
}
+
+ public function getHTMLContainerClass()
+ {
+ return parent::getHTMLContainerClass() . " interactive ";
+ }
}
$anchor = trim($e[1], '# ');
}
if ($anchor) {
- $res = anchorLink::normalizeAnchor($anchor);
+ $res = AnchorLink::normalizeAnchor($anchor);
} else if ($this->numerotation === 'physical') {
$res = $p;
} else {