public static function replaceWildcards(\rex_extension_point $ep) { $ep->setSubject(Wildcard::replace($ep->getSubject())); }
'; $formElements = []; $n = []; $n['label'] = '<label for="wildcard-open-tag">' . $this->i18n('settings_wildcard_open_tag') . '</label>'; $n['field'] = '<input class="form-control" type="text" id="wildcard-open-tag" name="open_tag" value="' . htmlspecialchars(Wildcard::getOpenTag()) . '" />'; $formElements[] = $n; $n = []; $n['label'] = '<label for="wildcard-close-tag">' . $this->i18n('settings_wildcard_close_tag') . '</label>'; $n['field'] = '<input class="form-control" type="text" id="wildcard-close-tag" name="close_tag" value="' . htmlspecialchars(Wildcard::getCloseTag()) . '" />'; $formElements[] = $n; $fragment = new \rex_fragment(); $fragment->setVar('elements', $formElements, false); $content .= $fragment->parse('core/form/form.php'); $field = ''; $field .= '<input type="checkbox" id="wildcard-clang-switch" name="clang_switch"'; if (Wildcard::isClangSwitchMode()) { $field .= ' checked="checked" '; } $field .= ' value="1" />'; $formElements = []; $n = []; $n['label'] = '<label for="wildcard-clang-switch">' . $this->i18n('settings_wildcard_clang_switch') . '</label>'; $n['field'] = $field; $formElements[] = $n; $fragment = new \rex_fragment(); $fragment->setVar('elements', $formElements, false); $content .= $fragment->parse('core/form/checkbox.php'); $formElements = []; $n = []; $n['field'] = '<a class="btn btn-abort" href="' . \rex_url::currentBackendPage() . '">' . \rex_i18n::msg('form_abort') . '</a>'; $formElements[] = $n;