public $cursor = '';
public $blinkdelay = 0;
public $stats = [];
+ public $visibility_os = 'all';
protected $role = 'button';
$init['inline'] = self::normalizeInlineIntegration($init['inline'] ?? '');
if ($init['inline'] === 'popup') {
return new Object3DPopupLink($id, $init, $compiler);
- }else{
+ } else {
return new Object3DLink($id, $init, $compiler);
}
case static::ACTION:
case static::COPY_TO_CLIPBOARD:
return new CopyToClipboardLink($id, $init, $compiler);
case static::PAGE_BACKGROUND_COLOR:
- $compiler->addPageBackground($init['page'], $init['to'] ?? '', $init['extra'] ?? '',$init['alternative']??'');
+ $compiler->addPageBackground($init['page'], $init['to'] ?? '', $init['extra'] ?? '', $init['alternative'] ?? '');
break;
default:
return null;
$this->$k = $v;
}
+ if (!$this->visibility_os) {
+ $this->visibility_os = 'all';
+ }
+
+
if ($this->target == '') {
$this->target = '_blank';
}
if ($this->relatedAnimation) {
$addContent .= ' data-related-animation="' . $this->relatedAnimation . '"';
}
+ if ($this->visibility_os !== 'all') {
+ $addContent .= ' data-visibility-os="' . $this->visibility_os . '"';
+ }
$attached = $this->attached ? ' data-attached="' . $this->attached . '" ' : '';
return '<div class="' . $this->getHTMLContainerClass() . '" style="mix-blend-mode:' . $this->blendmode . ';' . $this->inlineStyles . '" 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>';