const LAYER = 39;
const ANCHOR = 40;
const FLIPCARD = 41;
- const PDF=42;
+ const PDF = 42;
protected static string|false|null $_linksKey = null;
public $allowsAnimation = true;
+ public $attached = false;
+
protected static $_encryptedTypes = [14, 15, 35, 39];
protected static $_encryptedAttributes = ['image_rollover'];
return new DownloadPortionLink($id, $init, $compiler);
case 38:
if ($init['target'] != 'click') {
- $extras = self::parseExtras($init['extra']);
+
+ $extras = isset($init['extra']) ? self::parseExtras($init['extra']) : [];
$delay = $extras['delay'] ?? 0;
$compiler->addTriggersLink($init['page'], $init['to'], $delay);
} else {
protected function _getHTMLContainer() {
$addContent = $this->getAdditionnalContent();
- return '<div class="' . $this->getHTMLContainerClass() . '" data-blendmode="' . $this->blendmode . '" data-hidden="' . $this->hidden . '" data-scorm="' . $this->scorm . '" data-id="' . $this->uid . '" id="l_' . $this->id . '"' . $addContent . '>' . $this->getHTMLContent() . '</div>';
+
+ $attached = $this->attached ? ' data-attached="' . $this->attached . '" ' : '';
+ return '<div class="' . $this->getHTMLContainerClass() . '" data-blendmode="' . $this->blendmode . '" ' . $attached . ' data-hidden="' . $this->hidden . '" data-scorm="' . $this->scorm . '" data-id="' . $this->uid . '" id="l_' . $this->id . '"' . $addContent . '>' . $this->getHTMLContent() . '</div>';
}
public function getHTMLContainerClass() {