This commit is contained in:
@@ -74,16 +74,12 @@ class syntax_plugin_luxtools_open extends SyntaxPlugin
|
||||
}
|
||||
|
||||
$serviceUrl = trim((string)$this->getConf('open_service_url'));
|
||||
$serviceToken = trim((string)$this->getConf('open_service_token'));
|
||||
|
||||
$attrs = ' type="button" class="luxtools-open"'
|
||||
. ' data-path="' . hsc($path) . '"';
|
||||
if ($serviceUrl !== '') {
|
||||
$attrs .= ' data-service-url="' . hsc($serviceUrl) . '"';
|
||||
}
|
||||
if ($serviceToken !== '') {
|
||||
$attrs .= ' data-service-token="' . hsc($serviceToken) . '"';
|
||||
}
|
||||
|
||||
$renderer->doc .= '<button' . $attrs . '>' . hsc($caption) . '</button>';
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user