Я пытаюсь изменить регистр-модуль для gallery3 .Я добавил новый элемент в форму (который создается Forge), но хочу добавить гиперссылку на связанную метку.К сожалению, это не выполняется сценарием, даже html :: mark_clean () не помог.
Вот мой код:
$form = new Forge("register/handler", "", "post", array("id" => "g-register-form"));
$group = $form->group("register_user")->label(t("Register user"));
$group->checkbox("accept_terms")->label(html::mark_clean(t(html::mark_clean('I confirm to have read the <a href="%url">terms of usage</a>.'),
array("url" => html::mark_clean("http://www.google.de")))))
->id("g-accept-terms")
->rules("required")
->error_messages("accept", t("You have to accept the terms of usage before you may register."));
Как вы можете видеть, я добавилmark_clean в разных позициях для целей тестирования.
В результате получается следующее:
<label>
<input type="checkbox" class="checkbox" value="1" name="accept_terms" id="g-accept-terms">
I confirm to have read the <a href="http://www.google.de">terms of usage</a>.
</label>
Я бы хотел избежать изменения любого существующего файла ядра.Спасибо за вашу помощь!