Пример #1
0
 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']);
 }
Пример #2
0
 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']);
 }