From: Vincent Vanwaelscappel Date: Thu, 14 Dec 2023 16:27:03 +0000 (+0100) Subject: wait #6574 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=012a13a48546b73fcf869794556bad5454b650a3;p=fluidbook_tools.git wait #6574 @0:20 --- diff --git a/src/Links/FlipcardLink.php b/src/Links/FlipcardLink.php index b0b0870..d810c1c 100644 --- a/src/Links/FlipcardLink.php +++ b/src/Links/FlipcardLink.php @@ -2,12 +2,14 @@ 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 = 'getTooltipAttribute() . '>'; @@ -18,13 +20,20 @@ class FlipcardLink extends ImageLink { 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 "; + } } diff --git a/src/Links/InternalLink.php b/src/Links/InternalLink.php index 7d3b5eb..b467dd9 100644 --- a/src/Links/InternalLink.php +++ b/src/Links/InternalLink.php @@ -20,7 +20,7 @@ class InternalLink extends NormalLink $anchor = trim($e[1], '# '); } if ($anchor) { - $res = anchorLink::normalizeAnchor($anchor); + $res = AnchorLink::normalizeAnchor($anchor); } else if ($this->numerotation === 'physical') { $res = $p; } else {