public function GetValue() { $showButton = true; $this->OnShow->Fire(array(&$showButton)); $result = false; if ($showButton) { $result = array('type' => 'link', 'name' => $this->GetName(), 'useImage' => $this->isUseImage(), 'link' => HtmlUtils::EscapeUrl($this->GetLink()), 'caption' => $this->GetCaption(), 'additionalAttributes' => $this->additionalAttributes); } return $result; }
public function GetValue() { $showButton = true; $this->OnShow->Fire(array(&$showButton)); $result = false; if ($showButton) { $result = array('type' => 'modal', 'name' => $this->GetName(), 'useImage' => $this->isUseImage(), 'link' => HtmlUtils::EscapeUrl($this->GetLink()), 'caption' => $this->GetCaption(), 'dialogTitle' => htmlspecialchars($this->dialogTitle)); } return $result; }
public function GetValue() { $showButton = true; $this->OnShow->Fire(array(&$showButton)); if ($showButton) { if ($this->GetImagePath() != null) { return StringUtils::Format('<a href="%s" title="%s" class="view-record-action"' . $this->additionalAttributes . '>' . '<i class="%s"></i>' . '</a>', HtmlUtils::EscapeUrl($this->GetLink()), $this->GetCaption(), $this->GetLinkClass()); } else { return StringUtils::Format('<span><a href="%s" ' . $this->additionalAttributes . '>%s</a></span>', HtmlUtils::EscapeUrl($this->GetLink()), $this->GetCaption()); } } else { return ''; } }
protected function clientCodeEditor($published) { $globals = 'var sitecakeGlobals = {' . 'editMode: true, ' . 'serverVersionId: "${version}", ' . 'phpVersion: "' . phpversion() . '@' . PHP_OS . '", ' . 'serviceUrl: "' . $this->options['SERVICE_URL'] . '", ' . 'configUrl: "' . $this->options['EDITOR_CONFIG_URL'] . '", ' . 'draftPublished: ' . ($published ? 'true' : 'false') . '};'; return HtmlUtils::wrapToScriptTag($globals) . HtmlUtils::scriptTag($this->options['EDITOR_EDIT_URL']); }
protected function clientCodeEditor($published) { $globals = "var sitecakeGlobals = {" . "editMode: true, " . 'serverVersionId: "SiteCake CMS 2.2.9", ' . "serviceUrl:'" . $this->options['SERVICE_URL'] . "', " . "configUrl:'" . $this->options['EDITOR_CONFIG_URL'] . "', " . "draftPublished: " . ($published ? 'true' : 'false') . "};"; return HtmlUtils::wrapToScriptTag($globals) . HtmlUtils::scriptTag($this->options['EDITOR_EDIT_URL']); }