/** * Output gateway options form. */ public function admin_options_form() { if (!$this->is_editable()) { return; } $form = new Edr_Form(); $form->add_field_class('ib-edu-field'); $form->set_decorator('label_before', '<div class="ib-edu-label">'); $form->set_decorator('label_after', '</div>'); $form->set_decorator('control_before', '<div class="ib-edu-control">'); $form->set_decorator('control_after', '</div>'); foreach ($this->options as $name => $data) { $data['name'] = 'ibedu_' . $this->id . '_' . $name; $form->set_value($data['name'], $this->get_option($name)); $form->add($data); } $form->display(); }