public function getLinkDataAttributes() { $ret = parent::getLinkDataAttributes(); if (!Kwc_Abstract::getSetting($this->componentClass, 'hasPopup')) { $type = Kwc_Abstract::getSetting($this->componentClass, 'openType'); if ($type == 'blank') { $ret['kwc-popup'] = 'blank'; } else { throw new Kwf_Exception_NotYetImplemented(); } } $row = $this->_getLinkRow(); if (!isset($row->open_type) || !$row->open_type) { return ''; } if ($row->open_type == 'popup') { $pop = array(); if ($row->width) { $pop[] = 'width=' . $row->width; } if ($row->height) { $pop[] = 'height=' . $row->height; } $pop[] = 'menubar=' . ($row->menubar ? 'yes' : 'no'); $pop[] = 'toolbar=' . ($row->toolbar ? 'yes' : 'no'); $pop[] = 'location=' . ($row->locationbar ? 'yes' : 'no'); $pop[] = 'status=' . ($row->statusbar ? 'yes' : 'no'); $pop[] = 'scrollbars=' . ($row->scrollbars ? 'yes' : 'no'); $pop[] = 'resizable=' . ($row->resizable ? 'yes' : 'no'); $ret['kwc-popup'] = implode(',', $pop); } else { if ($row->open_type == 'blank') { $ret['kwc-popup'] = 'blank'; } } return $ret; }
public function getLinkDataAttributes() { $ret = parent::getLinkDataAttributes(); $ret['kwc-detail'] = json_encode(array('directoryComponentId' => $this->parent->componentId, 'directoryComponentClass' => $this->parent->componentClass)); return $ret; }
public function getLinkDataAttributes() { $ret = parent::getLinkDataAttributes(); $ret['kwc-popup'] = 'blank'; return $ret; }