diff --git a/syntax.php b/syntax.php index e9d0537..0c8f8e1 100644 --- a/syntax.php +++ b/syntax.php @@ -58,6 +58,7 @@ public function connectTo($mode) { * - {{NEWPAGE>your:namespace:@INPUT@:start}} * - {{NEWPAGE>your:namespace:[date formats]}} {@see strftime()} * - {{NEWPAGE?config_overrides}} + * - {{NEWPAGE?label=custom}} * - {{NEWPAGE#newtpl1,newtpl2}} * - {{NEWPAGE#newtpl1|Title1,newtpl2|Title1}} * - {{NEWPAGE>your:namespace#newtpl1|Title1,newtpl2|Title1}} @@ -87,6 +88,7 @@ public function handle($match, $state, $pos, Doku_Handler $handler) { 'hide' => $this->getConf('addpage_hide'), 'hideacl' => $this->getConf('addpage_hideACL'), 'autopage' => $this->getConf('addpage_autopage'), + 'label' => 'okbutton', ) ); @@ -141,6 +143,12 @@ public function render($format, Doku_Renderer $renderer, $data) { $input = 'text'; if($this->options['autopage']) $input = 'hidden'; + // Button label. If given string is not localized, use it as-is + $label = $this->getLang($this->options['label']); + if (!$label) { + $label = $this->options['label']; + } + $form = '
' . '
' . '