/** * Open up a new HTML form. * * @param array $options * * @return string */ public function open(array $options = array()) { if (isset($this->config['use_custom']) and $this->config['use_custom'] == true) { array_add_to_key($options, 'class', 'custom'); } return $this->form->open($options); }
/** * @inheritdoc */ public function render($name, $value = null, $options = array()) { $checked = array_pull($options, 'checked'); // Custom input for Foundation array_add($options, 'style', ''); array_add_to_key($options, 'style', 'display:none;'); $additions = $this->preProcessAdditions($name, $options); return $this->process($name, $this->edifice->form->{$this->render_method}($name, $value, $checked, $options), $additions); }
/** * Opens a div using Foundation row as class. * * @param bool $error is set to true when a validation error occurs. * @param bool $prefixed * @param bool $postfixed * * @return string */ protected function openRow($error = false, $prefixed = false, $postfixed = false) { $attr['class'] = 'row'; if ($error === true) { array_add_to_key($attr, 'class', 'error'); } if ($prefixed === true || $postfixed === true) { array_add_to_key($attr, 'class', 'collapse'); } return open_div(array('class' => $attr['class'])); }