use Cubist\Util\Graphics\Color;
-class ColorLink extends ContentLink
-{
+class ColorLink extends ContentLink {
protected $role = '';
- public function getCSS()
- {
+ public function getCSS() {
$res = parent::getCSS();
$res .= 'background-color:' . Color::colorToCSS($this->to, 1) . ';';
return $res;
}
- public function getAdditionnalContent()
- {
+ public function getAdditionnalContent() {
$res = parent::getAdditionnalContent();
$res .= ' data-color="' . Color::colorToCSS($this->to, 1) . '"';
return $res;
$this->addzindex = $animation['addzindex'];
}
}
- $res .= ' data-animations="' . htmlspecialchars(json_encode($animations), ENT_QUOTES) . '" ';
- if ($this->_isHiddenFirst($animations)) {
- $res .= ' data-animation-hide ';
- }
- if ($this->_isFinallyHidden($animations)) {
- $res .= ' data-animation-hide-on-leave ';
+ if($animations) {
+ $res .= ' data-animations="' . htmlspecialchars(json_encode($animations), ENT_QUOTES) . '" ';
+ if ($this->_isHiddenFirst($animations)) {
+ $res .= ' data-animation-hide ';
+ }
+ if ($this->_isFinallyHidden($animations)) {
+ $res .= ' data-animation-hide-on-leave ';
+ }
}
}
if ($this->forceTexture && $this->getDepth() >= 40) {
class Link {
+ const WEB_INFOS = 1;
+ const PRODUCT = 1;
+ const WEB = 2;
+ const GENERAL = 2;
+ const EMAIL = 3;
+ const VIDEO = 4;
+ const INTERNAL = 5;
+ const MULTIMEDIA = 6;
+ const PERSO = 7;
+ const CUSTOM = 7;
+ const PAGE_CORNER = 8;
+ const OBJECT3D = 9;
+ const WEBVIDEO = 10;
+ const ACTION = 11;
+ const CART = 12;
+ const BASKET = 12;
+ const ZOOM = 13;
+ const COLOR = 14;
+ const IMAGE = 15;
+ const FILE = 16;
+ const AUDIO = 17;
+ const TOOLTIP = 18;
+ const CALL = 19;
+ const BOOKMARKGROUP = 20;
+ const HTML5MULTIMEDIA = 21;
+ const BOOKMARK_CORNER = 22;
+ const STATSTAG = 23;
+ const PHONE = 24;
+ const AUDIODESCRIPTION = 25;
+ const PAGE_LABEL = 26;
+ const EVENT_OVERLAY = 27;
+ const ARTICLE = 28;
+ const LIKE = 29;
+ const SLIDESHOW = 30;
+ const IFRAME = 31;
+ const SHOWLINK = 32;
+ const ZOOMHD = 33;
+ const LOCK_CONTENTS = 34;
+ const TEXT = 35;
+ const ARTICLE_OPEN = 36;
+ const DOWNLOAD_PORTION = 37;
+ const TRIGGERSLINK = 38;
+ const LAYER = 39;
+ const ANCHOR = 40;
+ const FLIPCARD = 41;
+ const PDF=42;
+
+
protected static string|false|null $_linksKey = null;
public $left;
public $top;
foreach ($anims as $animation) {
$animation = trim($animation);
- if (!$animation) {
+ if (!$animation || $animation === 'none') {
continue;
}
$extras = self::parseExtras($animation, true);
*/
public function __construct($id, $init, &$compiler) {
$this->_init = $init;
+
foreach ($init as $k => $v) {
if ($k == 'extra') {
if (Json::isJson($v)) {